domino: augment cache time in domino ws, fix logging
This commit is contained in:
parent
6af1644bd7
commit
edd4bf95ef
|
@ -160,4 +160,4 @@ def synchronize_domino(publisher):
|
|||
pass # still waiting for the payment
|
||||
|
||||
get_publisher_class().register_cronjob(CronJob(function=synchronize_domino,
|
||||
hours=range(0, 24), minutes=range(0, 60)))
|
||||
hours=range(0, 24), minutes=range(0, 60, 30)))
|
||||
|
|
|
@ -54,7 +54,7 @@ def object_cached(function):
|
|||
if not hasattr(self, cache_name):
|
||||
setattr(self, cache_name, (time.time(), {}))
|
||||
t, d = getattr(self, cache_name)
|
||||
if time.time() - t > 30:
|
||||
if time.time() - t > 80:
|
||||
setattr(self, cache_name, (time.time(), {}))
|
||||
t, d = getattr(self, cache_name)
|
||||
k = tuple(*args) + tuple(sorted(kwargs.items()))
|
||||
|
@ -426,9 +426,9 @@ class DominoWs(object):
|
|||
print 'call', function_name, args
|
||||
|
||||
try:
|
||||
self.logger.debug('soap call to %r(%r)', function_name, args)
|
||||
self.logger.debug(('soap call to %s(%s)' % (function_name, args)).encode('utf-8'))
|
||||
data = getattr(self.client.service, function_name)(self.domain, self.login, self.password, *args)
|
||||
self.logger.debug('result: %r', data)
|
||||
self.logger.debug((u'result: %s' % data).encode('utf-8'))
|
||||
self.data = data
|
||||
except IOError, e:
|
||||
raise DominoException('Erreur IO', e)
|
||||
|
|
Reference in New Issue