equal
deleted
inserted
replaced
223 """returns a list of 'add entity' queries (couples query, args) |
223 """returns a list of 'add entity' queries (couples query, args) |
224 :type etype: str |
224 :type etype: str |
225 :param etype: the entity's type |
225 :param etype: the entity's type |
226 |
226 |
227 :type schema: cubicweb.schema.Schema |
227 :type schema: cubicweb.schema.Schema |
228 :param schema: the application schema |
228 :param schema: the instance schema |
229 |
229 |
230 :type entity_num: int |
230 :type entity_num: int |
231 :param entity_num: the number of entities to insert |
231 :param entity_num: the number of entities to insert |
232 |
232 |
233 XXX FIXME: choice_func is here for *historical* reasons, it should |
233 XXX FIXME: choice_func is here for *historical* reasons, it should |
323 |
323 |
324 |
324 |
325 def make_relations_queries(schema, edict, cursor, ignored_relations=(), |
325 def make_relations_queries(schema, edict, cursor, ignored_relations=(), |
326 existingrels=None): |
326 existingrels=None): |
327 """returns a list of generated RQL queries for relations |
327 """returns a list of generated RQL queries for relations |
328 :param schema: The application schema |
328 :param schema: The instance schema |
329 |
329 |
330 :param e_dict: mapping between etypes and eids |
330 :param e_dict: mapping between etypes and eids |
331 |
331 |
332 :param ignored_relations: list of relations to ignore (i.e. don't try |
332 :param ignored_relations: list of relations to ignore (i.e. don't try |
333 to generate insert queries for these relations) |
333 to generate insert queries for these relations) |