Use role_name from Role Logic as key to store the different Role Views.
authorLennard de Rijk <ljvderijk@gmail.com>
Thu, 23 Jul 2009 14:41:53 +0200
changeset 2666 5de9eba17661
parent 2665 1f4acb80fd95
child 2667 260aaea36e49
Use role_name from Role Logic as key to store the different Role Views.
app/soc/views/models/role.py
--- a/app/soc/views/models/role.py	Thu Jul 23 14:37:44 2009 +0200
+++ b/app/soc/views/models/role.py	Thu Jul 23 14:41:53 2009 +0200
@@ -53,7 +53,8 @@
 
   global ROLE_VIEWS
   params = view.getParams()
-  name = params['url_name']
+  role_logic = params['logic']
+  name = role_logic.role_name
   ROLE_VIEWS[name] = view