[rhmessaging-commits] rhmessaging commits: r3458 - mgmt/trunk/cumin/python/cumin/account.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Wed Jun 17 16:21:38 EDT 2009


Author: justi9
Date: 2009-06-17 16:21:38 -0400 (Wed, 17 Jun 2009)
New Revision: 3458

Added:
   mgmt/trunk/cumin/python/cumin/account/model.py
Log:
Add missing file

Added: mgmt/trunk/cumin/python/cumin/account/model.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/account/model.py	                        (rev 0)
+++ mgmt/trunk/cumin/python/cumin/account/model.py	2009-06-17 20:21:38 UTC (rev 3458)
@@ -0,0 +1,19 @@
+from cumin.model import Task
+
+from user import *
+
+class ChangePasswordTask(Task):
+    def __init__(self, app, cls):
+        super(ChangePasswordTask, self).__init__(app, cls)
+
+        self.form = ChangePasswordForm(self.app, "change_password", self)
+
+    def get_title(self, session):
+        return "Change password"
+
+    def get_description(self, session, subject):
+        return "Change password of user '%s'" % subject.name
+
+    def do_invoke(self, session, subject, password):
+        subject.password = crypt_password(password)
+        subject.syncUpdate()




More information about the rhmessaging-commits mailing list