diff src/tools/memory.py @ 259:11f71187d5e4

core, plugin Maildir: added "ProfileCreation" Trigger This trigger is user by maildir to create account data for the new profile
author Goffi <goffi@goffi.org>
date Tue, 18 Jan 2011 01:07:12 +0100
parents f5181f6dd98f
children a00e87d48213
line wrap: on
line diff
--- a/src/tools/memory.py	Tue Jan 18 01:04:20 2011 +0100
+++ b/src/tools/memory.py	Tue Jan 18 01:07:12 2011 +0100
@@ -131,6 +131,8 @@
         if self.params.has_key(name):
             info (_('The profile name already exists'))
             return 1
+        if not self.host.trigger.point("ProfileCreation", name):
+            return 0
         self.params[name]={}
         return 0