gnowledge/gstudio — pull request #284 by krishna31 (2014-03-18 07:31:14+00:00)
Title: Removed redundant code from filldb

writen 3 methods to create factory GSystemType, RelationType, AttributeType
removed all redundant code that individually create above types

1) for creating GSystemType we only need to add new GSystemType name in factory_gsystem_types varialbe listed on page filldb.py
example :factory_gsystem_types = ['Twist', 'Reply', 'Author', 'Shelf', 'QuizItem', 'Pandora_video', 'profile_pic']
add yours new GSystemType in above list.

2) for creating factory RelationType:
i){'relation_type_name:{'subject_type':['GSystmeType_name'],'object_type':['GSystmeType_name'], 'inverse_name':'name_of_your_inverse_name}}
add yours value in above dict to create factory RelationType

3)for creating factory AttributeType:
{'attribute_type_name':{'gsystem_names_list':['GSystemType_name'], 'data_type':'str(QUIZ_TYPE_CHOICES_TU)'}}
add your value in above dict to create factory AttributeType

Note:1)These varialbe listed on filldb.py
2)do python manage.py filldb
after pull this commit