server/session.py
branchstable
changeset 7526 ae31063f3274
parent 7502 e7190f7e850e
child 7536 29961a416faa
child 7573 c8f8762c986d
equal deleted inserted replaced
7525:1f6839019e6a 7526:ae31063f3274
   268         """
   268         """
   269         self.add_relations([(rtype, [(fromeid,  toeid)])])
   269         self.add_relations([(rtype, [(fromeid,  toeid)])])
   270 
   270 
   271     def add_relations(self, relations):
   271     def add_relations(self, relations):
   272         '''set many relation using a shortcut similar to the one in add_relation
   272         '''set many relation using a shortcut similar to the one in add_relation
   273         
   273 
   274         relations is a list of 2-uples, the first element of each
   274         relations is a list of 2-uples, the first element of each
   275         2-uple is the rtype, and the second is a list of (fromeid,
   275         2-uple is the rtype, and the second is a list of (fromeid,
   276         toeid) tuples
   276         toeid) tuples
   277         '''
   277         '''
   278         edited_entities = {}
   278         edited_entities = {}