equal
deleted
inserted
replaced
273 probably replaced by a nicer way to specify choices |
273 probably replaced by a nicer way to specify choices |
274 :type choice_func: function |
274 :type choice_func: function |
275 :param choice_func: a function that takes an entity type, an attrname and |
275 :param choice_func: a function that takes an entity type, an attrname and |
276 returns acceptable values for this attribute |
276 returns acceptable values for this attribute |
277 """ |
277 """ |
278 # XXX HACK, remove or fix asap |
|
279 if etype in set(('String', 'Int', 'Float', 'Boolean', 'Date', 'CWGroup', 'CWUser')): |
|
280 return [] |
|
281 queries = [] |
278 queries = [] |
282 for index in xrange(entity_num): |
279 for index in xrange(entity_num): |
283 restrictions = [] |
280 restrictions = [] |
284 args = {} |
281 args = {} |
285 for attrname, value in make_entity(etype, schema, vreg, index, choice_func).items(): |
282 for attrname, value in make_entity(etype, schema, vreg, index, choice_func).items(): |