gnowledge/gstudio — pull request #397 by AvadootNachankar (2014-04-24 08:44:30+00:00)
Title: Bug resolved: Now Org-version gets converted to floating type from the commands output

**Functionalities Implemented:**

**Bug resolved: Now Org-version gets converted to floating type from the commands output**
- Files modified:
1. org2any.py

**Updates regarding implementation of MIS-GAPP (schema building & data-entry)**

1) group_set added to data_entry; and already created check for GAttribute & GRelation
- File modified:
1. data_entry.py

2) JSON-file content formatting code added (just before parsing) in case of creating GRelation
- File modified:
1. data_entry.py

3) Case insensitive search implemented.
- File modified:
1. data_entry.py

4) Code added for parsing datetime (only year),bool, and IS operator fields' data
- File modified:
1. data_entry.py

5) Code added for creating log-files [Only in case of GSystems' creation]
- File modified:
1. data_entry.py

**get_neighbourhood() function added to Node class**
- This function attaches attributes and relations to nodes' structure (including it's data-type and values, if exists)

- File modified:
1. models.py

- Example
```
n = collection.GSystem()
# Set member_of field of the node
n.member_of.append(gst_page._id) # Here putting Page GSystemType's ObjectId

# Then just make a call to this function
n.get_neighbourhood()

# ---- How to retrieve data-types ?
# Say if u have created AttributeType, named as 'gender'
n.structure["gender"]

# Say if u have created RelationType, named as 'belongs_to_state'
n.structure["state"]
# This will return ObjectId of GSystemType of right_subject_type of the RelationType

# ---- How to retrieve values ?
# Say if u have created AttributeType, named as 'gender'
n.gender

# Say if u have created RelationType, named as 'belongs_to_state'
n.state
```