summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-03-13 18:15:37 +0000
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-03-13 18:15:37 +0000
commitc183e5772139ca67cda102540c14e5410780f1bb (patch)
tree9ada4ef99519f66a404c3e72d4d91be4458cd4d8
parentb7fc8775fcd2b3a2f278b80b63a14acd5120df09 (diff)
downloadpykolab-c183e5772139ca67cda102540c14e5410780f1bb.tar.gz
Add api call for the domain section
-rw-r--r--pykolab/auth/__init__.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/pykolab/auth/__init__.py b/pykolab/auth/__init__.py
index 2d71607..8154284 100644
--- a/pykolab/auth/__init__.py
+++ b/pykolab/auth/__init__.py
@@ -130,15 +130,17 @@ class Auth(object):
def list_users(self, primary_domain, secondary_domains=[]):
self.connect(domain=primary_domain)
users = self._auth[primary_domain]._list_users(primary_domain, secondary_domains)
- #print "USERS RETURNED FROM self._auth['%s']._list_users():", users
return users
def domain_default_quota(self, domain):
self.connect(domain=domain)
- print self._auth
return self._auth[domain]._domain_default_quota(domain)
- def get_user_attribute(self, user, attribute):
+ def domain_section(self, domain):
+ self.connect(domain=domain)
+ return self._auth[domain]._domain_section(domain)
+
+ def get_user_attribute(self, domain, user, attribute):
return self._auth[domain]._get_user_attribute(user, attribute)
def set_user_attribute(self, domain, user, attribute, value):