gnowledge/gstudio — pull request #415 by supriyasawant (2014-04-30 13:49:28+00:00)
Title: Getting the creator from pan.do/ra for Pandora Videos

Pandora videos original creator getting from pan.do/ra.
Fire following commands on shell for deleting existing pandora_videos otherwises current modification will not get reflected.
1. pandora_video_st=collection.Node.one({'$and':[{'name':'Pandora_video'},{'_type':'GSystemType'}]})
2. source_id_at=collection.Node.one({'$and':[{'name':'source_id'},{'_type':'AttributeType'}]})
3. get_member_set=collection.Node.find({'$and':[{'member_of': {'$all': [ObjectId(pandora_video_st._id)]}},{'_type':'File'}]})
4. att_set=collection.Node.one({'$and':[{'_type':'GAttribute'},{'attribute_type.$id':source_id_at._id}]})
5. for each in get_member_set:
each.delete()
6. for each in att_set:
each.delete()