some typos tls-sprint
authorFlorent <florent@secondweb.fr>
Wed, 29 Apr 2009 18:56:53 +0200
branchtls-sprint
changeset 1545 53d3d783370f
parent 1544 d8fb60c56d69
child 1546 68c69980f6a1
some typos
web/form.py
web/views/actions.py
web/views/cwuser.py
--- a/web/form.py	Wed Apr 29 17:36:49 2009 +0200
+++ b/web/form.py	Wed Apr 29 18:56:53 2009 +0200
@@ -75,9 +75,9 @@
         # method on successful commit
         forminfo = self.req.get_session_data(sessionkey, pop=True)
         if forminfo:
-            req.data['formvalues'] = forminfo['values']
-            req.data['formerrors'] = errex = forminfo['errors']
-            req.data['displayederrors'] = set()
+            self.req.data['formvalues'] = forminfo['values']
+            self.req.data['formerrors'] = errex = forminfo['errors']
+            self.req.data['displayederrors'] = set()
             # if some validation error occured on entity creation, we have to
             # get the original variable name from its attributed eid
             foreid = errex.entity
--- a/web/views/actions.py	Wed Apr 29 17:36:49 2009 +0200
+++ b/web/views/actions.py	Wed Apr 29 18:56:53 2009 +0200
@@ -248,7 +248,7 @@
     order = 20
 
     def url(self):
-        return self.build_url('euser/%s'%self.req.user.login, vid='edition')
+        return self.build_url('cwuser/%s'%self.req.user.login, vid='edition')
 
 
 class LogoutAction(Action):
--- a/web/views/cwuser.py	Wed Apr 29 17:36:49 2009 +0200
+++ b/web/views/cwuser.py	Wed Apr 29 18:56:53 2009 +0200
@@ -38,7 +38,7 @@
 
     def url(self):
         login = self.rset.get_entity(self.row or 0, self.col or 0).login
-        return self.build_url('euser/%s'%login, vid='epropertiesform')
+        return self.build_url('cwuser/%s'%login, vid='epropertiesform')
 
 
 class CWUserPrimaryView(PrimaryView):