Changeset View
Changeset View
Standalone View
Standalone View
pykolab/cli/cmd_delete_mailbox_acl.py
Show All 37 Lines | |||||
def description(): | def description(): | ||||
return """Delete an ACL entry for a folder.""" | return """Delete an ACL entry for a folder.""" | ||||
def execute(*args, **kw): | def execute(*args, **kw): | ||||
try: | try: | ||||
folder = conf.cli_args.pop(0) | folder = conf.cli_args.pop(0) | ||||
try: | try: | ||||
identifier = conf.cli_args.pop(0) | identifier = conf.cli_args.pop(0) | ||||
except IndexError, errmsg: | except IndexError: | ||||
identifier = utils.ask_question(_("ACI Subject")) | identifier = utils.ask_question(_("ACI Subject")) | ||||
except IndexError, errmsg: | except IndexError: | ||||
folder = utils.ask_question(_("Folder name")) | folder = utils.ask_question(_("Folder name")) | ||||
quota = utils.ask_question(_("ACI Subject")) | quota = utils.ask_question(_("ACI Subject")) | ||||
if len(folder.split('@')) > 1: | if len(folder.split('@')) > 1: | ||||
domain = folder.split('@')[1] | domain = folder.split('@')[1] | ||||
else: | else: | ||||
domain = conf.get('kolab', 'primary_domain') | domain = conf.get('kolab', 'primary_domain') | ||||
Show All 14 Lines |