|
|
|
decompose_b26(index,
ascii=False)
return a letter (base-26) decomposition of index |
source code
|
|
|
get_max_length(eschema,
attrname)
returns the maximum length allowed for 'attrname' |
source code
|
|
|
_default_choice_func(etype,
attrname)
default choice_func for insert_entity_queries |
source code
|
|
|
insert_entity_queries(etype,
schema,
vreg,
entity_num,
choice_func=_default_choice_func)
returns a list of 'add entity' queries (couples query, args)
:type etype: str
:param etype: the entity's type |
source code
|
|
|
make_entity(etype,
schema,
vreg,
index=0,
choice_func=_default_choice_func,
form=False)
generates a random entity and returns it as a dict |
source code
|
|
|
select(constraints,
cursor,
selectvar='O',
objtype=None)
returns list of eids matching <constraints> |
source code
|
|
|
make_relations_queries(schema,
edict,
cursor,
ignored_relations=(),
existingrels=None)
returns a list of generated RQL queries for relations
:param schema: The instance schema |
source code
|
|
|
|
|
check_card_satisfied(card,
remaining,
subj,
rschema,
obj) |
source code
|
|
|
|
|
make_tel(num_tel)
takes an integer, converts is as a string and inserts
white spaces each 2 chars (french notation) |
source code
|
|
|
|