devtools/fill.py
branchstable
changeset 7815 2a164a9cf81c
parent 7445 5331ba22c0e0
child 7995 9a9f35ef418c
equal deleted inserted replaced
7814:1ec9fe1dfba9 7815:2a164a9cf81c
   350     try:
   350     try:
   351         rql = 'Any %s WHERE %s' % (selectvar, constraints)
   351         rql = 'Any %s WHERE %s' % (selectvar, constraints)
   352         if objtype:
   352         if objtype:
   353             rql += ', %s is %s' % (selectvar, objtype)
   353             rql += ', %s is %s' % (selectvar, objtype)
   354         rset = cursor.execute(rql)
   354         rset = cursor.execute(rql)
   355     except:
   355     except Exception:
   356         print "could restrict eid_list with given constraints (%r)" % constraints
   356         print "could restrict eid_list with given constraints (%r)" % constraints
   357         return []
   357         return []
   358     return set(eid for eid, in rset.rows)
   358     return set(eid for eid, in rset.rows)
   359 
   359 
   360 
   360