gnowledge/gstudio — pull request #735 by AvadootNachankar (2014-08-30 14:11:50+00:00)
Title: MIS collection values' updates and minor bug fixes

**Functionalities implemented:**

1) **Now default GAPPs to be listed can be set**

- Defined new varaible: DEFAULT_GAPPS_LIST
- This is an empty list
- Please override this variable in local_setting file on respective server

- Functions dealing with GAPPS listing also modified in template-tags

- File modified:

1) settings.py

2) templatetags/ndf_tags.py

2) **Values for MIS GAPP are populated based on logged-in user's agency_type field's value**

- Updated: ```management/commands/schema_files/STs.csv```

- MIS GAPP's 'collection_set' field set to empty list
- Previously populated with certain values which were used for registration (not site-registration)

- Program Officer & Steering Committe Member (GSystemTypes) - 'collection_set' field is populated

- Views modified:

- Fetch agency-type of user (only if logged-in)

- Extract it's collection_set field's value, and

- Populate extracted collection values in left panel for MIS GAPP

- CSS updates in related html files

- Files modified:

1) views/mis.py

2) views/person.py

3) templates/ndf/mis_base.html

4) templates/ndf/mis_base_create_edit.html

5) templates/ndf/mis_create_edit.html

6) templates/ndf/mis_details.html

7) templates/ndf/mis_list.html

3) **Script updated to populate MIS-data in other group(s) wherever required**

- Option implemented to populate data into group [-d/--setup-data]

- Timestamp added; and now by default, this script does nothing!

- File modified:

1) management/commands/mis_college_group.py

4) **Conflict resolved (with commit #733): blocktrans tag syntax rectified.**

- Files modified:

1) templates/ndf/html_field_widget.html

2) templates/ndf/person_create_edit.html

3) templates/ndf/student_create_edit.html

4) templates/ndf/uDashboard.html

5) **Bug fixes**

- Files modified:

1) notification/models.py

- Was getting following error while running a script which was importing from methods.py (view file); which in turn importing from ndf.notification module:

- ValueError: @python_2_unicode_compatible cannot be applied to NoticeType because it doesn't define __str__().

2) management/commands/filldb.py

- Few queries updated: Ignore documents of all classes used for search module (ToReduceDocs, ReducedDocs, IndexedWordList)

3) management/commands/sync_existing_documents.py

- Few queries updated: Ignore documents of node_holder class

4) views/methods.py

- Updated get_user_tasks(): Execute query only if searched node/document exists

5) templates/ndf/wikidata.html

- Missing tag added for loading template-tags (i.e. load ndf_tags )