summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-03-02 12:04:01 +0000
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-03-02 12:04:01 +0000
commit83c85dd54a7e1d29913dc525ca81823185b55e73 (patch)
tree2c3ae05bd2442eaafb6167bb2204510917daaf4c
parentc3e345d80f65657741475fcb93d907f0ee96d260 (diff)
downloadpykolab-83c85dd54a7e1d29913dc525ca81823185b55e73.tar.gz
Plugins now get a configuration class object passed too
-rw-r--r--pykolab/plugin/defaultfolders/__init__.py4
-rw-r--r--pykolab/plugin/dynamicquota/__init__.py6
2 files changed, 6 insertions, 4 deletions
diff --git a/pykolab/plugin/defaultfolders/__init__.py b/pykolab/plugin/defaultfolders/__init__.py
index 53429d5..576546a 100644
--- a/pykolab/plugin/defaultfolders/__init__.py
+++ b/pykolab/plugin/defaultfolders/__init__.py
@@ -22,7 +22,9 @@ class KolabDefaultfolders(object):
Example plugin to create a set of default folders.
"""
- def __init__(self):
+ def __init__(self, conf=None):
+ if not conf == None:
+ self.conf = conf
pass
def create_user_folders(self, kw={}, args=()):
diff --git a/pykolab/plugin/dynamicquota/__init__.py b/pykolab/plugin/dynamicquota/__init__.py
index ecde07e..ac2fd6e 100644
--- a/pykolab/plugin/dynamicquota/__init__.py
+++ b/pykolab/plugin/dynamicquota/__init__.py
@@ -22,7 +22,9 @@ class KolabDynamicquota(object):
Example plugin making quota adjustments given arbitrary conditions.
"""
- def __init__(self):
+ def __init__(self, conf=None):
+ if not conf == None:
+ self.conf = conf
pass
def set_user_folder_quota(self, kw={}, args=()):
@@ -36,8 +38,6 @@ class KolabDynamicquota(object):
(used, current_quota, new_quota) = args
- print args
-
# Escape the user without quota
if new_quota == 0:
return 0