equal
deleted
inserted
replaced
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. |