self.method = method
def run(self, **kw):
- log.log_info("Data Method: %s %s" % (self.method, osrf.json.to_json(kw['params'])))
+ log.log_info("Data Method: %s %s" % (self.method, osrf.json.to_json(kw['params'])[1:-1]))
return self.run_method(*kw['params'])
if not self.data.get(PROP_COPY_ID) or not self.data.get(PROP_COPY_BARCODE):
copies = DataMethodTask(pcrud, method % 'acp').start(
- params = [auth, {'deleted' : 'f', 'id' : {'>' : 0}}, {'limit' : thread_count}])
+ params = [
+ auth,
+ {
+ 'deleted':'f',
+ 'id' : {'>' : 0},
+ 'holdable' : 't',
+ 'circulate' : 't',
+ '+acpl':{'holdable':'t'},
+ '+ccs':{'holdable':'t'}
+ },
+ {'limit' : thread_count, 'join': {'acpl' : {}, 'ccs' : {}}}
+ ]
+ )
if not self.data.get(PROP_COPY_ID):
self.insert_prop_data(PROP_COPY_ID, [obj.id() for obj in copies])
if not self.data.get(PROP_ORG_ID) or not self.data.get(PROP_ORG_SHORTNAME):
org_units = DataMethodTask(pcrud, method % 'aou').start(
- params = [auth, {'id' : {'>' : 0}}, {'limit' : thread_count}])
+ params = [
+ auth,
+ {'id' : {'>' : 0}, '+aout':{'can_have_vols' : 't', 'can_have_users' : 't'}},
+ {'limit' : thread_count, 'join' : 'aout'}
+ ]
+ )
if not self.data.get(PROP_ORG_ID):
self.insert_prop_data(PROP_ORG_ID, [obj.id() for obj in org_units])
if not self.data.get(PROP_ORG_SHORTNAME):
-
self.insert_prop_data(PROP_ORG_SHORTNAME, [obj.shortname() for obj in org_units])