VirtualMailManager/cli/handler.py
branchv0.7.x
changeset 686 5f4abdab738e
parent 676 2bc11dada296
child 711 2a75058fc064
--- a/VirtualMailManager/cli/handler.py	Sun Jan 13 17:24:01 2013 +0000
+++ b/VirtualMailManager/cli/handler.py	Sun Jan 13 18:12:51 2013 +0000
@@ -66,7 +66,7 @@
             raise VMMError(_("Invalid section: '%s'") % section,
                            INVALID_SECTION)
 
-    def user_add(self, emailaddress, password=None):
+    def user_add(self, emailaddress, password=None, note=None):
         """Override the parent user_add() - add the interactive password
         dialog.
 
@@ -81,6 +81,8 @@
         if password is None:
             password = (read_pass, randompw)[rand_pass]()
         acc.set_password(password)
+        if note:
+            acc.set_note(note)
         acc.save()
         self._make_account_dirs(acc)
         return (None, password)[rand_pass]