gnowledge/gstudio — pull request #830 by AvadootNachankar (2014-09-22 19:19:08+00:00)
Title: MIS updates - NUSSD/Available Course Registartion Implementation & Other enhancements

**Functionalities implemented:**

**1) views/course.py**

- ```course_create_edit()``` function modified to save/update NUSSD/Available Course

**2) templates/ndf/nussd_course_create_edit.html**

- New following fields within appropriate tabs added:

1) ```Basic tab```: course type, course name, course code, tags, theory credit, field work credit, qualifying attendance %, evaluation type, minimium marks, maximum marks, description

2) ```Requirements```: Minimum qualification requirements for Master-trainer & Voluntary Trainer

**3) templates/ndf/html_field_widget.html**

- Missing types (int & float) added along with missed attributes for corresponding html-widget

**4) templatetags/ndf_tags.py**

- ```jsonify()``` template-filter added that parses python value into json-type (useful in converting python list/dict into javascript/json object).

**5) views/methods.py**

- ```get_property_order_with_value()``` modified

- altnames for content_org field changed from "Content" to "Description"

- ```create_gattribute()``` modified

- ```status``` update implemented (now making using of DELETED)

- Now if no value (empty list/dict/value) is provided

- For existing ones, their status is changed from PUBLISHED to DELETED and corresponding key-value pair is removed from attribute_set of respective GSystem

- For new ones, their status is set to DELETED and corresponding key-value pair is not added to attribute_set of respective GSystem

- Code modified to update attribute_set of respective GSystem

- Code modified to compare list of dictionaries for GAttribute node