equal
deleted
inserted
replaced
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 = {} |