comparison 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
comparison
equal deleted inserted replaced
258:aac82dee6091 259:11f71187d5e4
129 """Create a new profile 129 """Create a new profile
130 @param name: Name of the profile""" 130 @param name: Name of the profile"""
131 if self.params.has_key(name): 131 if self.params.has_key(name):
132 info (_('The profile name already exists')) 132 info (_('The profile name already exists'))
133 return 1 133 return 1
134 if not self.host.trigger.point("ProfileCreation", name):
135 return 0
134 self.params[name]={} 136 self.params[name]={}
135 return 0 137 return 0
136 138
137 def deleteProfile(self, name): 139 def deleteProfile(self, name):
138 """Delete an existing profile 140 """Delete an existing profile