# HG changeset patch # User Lennard de Rijk # Date 1248352913 -7200 # Node ID 5de9eba1766141e25afa0c5cec54c56f2e9c8e75 # Parent 1f4acb80fd95b7a165e24a95a60858fb096f9e54 Use role_name from Role Logic as key to store the different Role Views. diff -r 1f4acb80fd95 -r 5de9eba17661 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