Changeset View
Changeset View
Standalone View
Standalone View
pykolab/plugins/sievemgmt/__init__.py
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | def add_options(self, *args, **kw): | ||||
pass | pass | ||||
def sieve_mgmt_refresh(self, *args, **kw): | def sieve_mgmt_refresh(self, *args, **kw): | ||||
""" | """ | ||||
The arguments passed to the 'sieve_mgmt_refresh' hook: | The arguments passed to the 'sieve_mgmt_refresh' hook: | ||||
user - the user identifier | user - the user identifier | ||||
""" | """ | ||||
if not len(kw.keys()) == 1 or not kw.has_key('user'): | if not len(kw) == 1 or not kw.has_key('user'): | ||||
log.error(_("Wrong number of arguments for sieve management plugin")) | log.error(_("Wrong number of arguments for sieve management plugin")) | ||||
return | return | ||||
else: | else: | ||||
address = kw['user'] | address = kw['user'] | ||||
auth = Auth() | auth = Auth() | ||||
auth.connect() | auth.connect() | ||||
▲ Show 20 Lines • Show All 373 Lines • Show Last 20 Lines |