app/soc/views/models/role.py
changeset 2666 5de9eba17661
parent 2656 25210120d67b
child 2668 7fd0951332ef
equal deleted inserted replaced
2665:1f4acb80fd95 2666:5de9eba17661
    51   """Adds the specified view to the known role views.
    51   """Adds the specified view to the known role views.
    52   """
    52   """
    53 
    53 
    54   global ROLE_VIEWS
    54   global ROLE_VIEWS
    55   params = view.getParams()
    55   params = view.getParams()
    56   name = params['url_name']
    56   role_logic = params['logic']
       
    57   name = role_logic.role_name
    57   ROLE_VIEWS[name] = view
    58   ROLE_VIEWS[name] = view
    58 
    59 
    59 
    60 
    60 class View(base.View):
    61 class View(base.View):
    61   """Views for all entities that inherit from Role.
    62   """Views for all entities that inherit from Role.