devtools/fill.py
branchtls-sprint
changeset 1398 5fe84a5f7035
parent 1016 26387b836099
child 1802 d628defebc17
equal deleted inserted replaced
1397:6cbc7bc8ea6d 1398:5fe84a5f7035
   234     :type choice_func: function
   234     :type choice_func: function
   235     :param choice_func: a function that takes an entity type, an attrname and
   235     :param choice_func: a function that takes an entity type, an attrname and
   236                         returns acceptable values for this attribute
   236                         returns acceptable values for this attribute
   237     """
   237     """
   238     # XXX HACK, remove or fix asap
   238     # XXX HACK, remove or fix asap
   239     if etype in (('String', 'Int', 'Float', 'Boolean', 'Date', 'EGroup', 'EUser')):
   239     if etype in (('String', 'Int', 'Float', 'Boolean', 'Date', 'CWGroup', 'CWUser')):
   240         return []
   240         return []
   241     queries = []
   241     queries = []
   242     for index in xrange(entity_num):
   242     for index in xrange(entity_num):
   243         restrictions = []
   243         restrictions = []
   244         args = {}
   244         args = {}