Rename role.RoleView to role.View
authorSverre Rabbelier <srabbelier@gmail.com>
Wed, 03 Dec 2008 21:27:27 +0000
changeset 657 c781de4f6d39
parent 656 a76f1b443ea4
child 658 9964b1571ef8
Rename role.RoleView to role.View Patch by: Sverre Rabbelier
app/soc/views/models/host.py
app/soc/views/models/role.py
--- a/app/soc/views/models/host.py	Wed Dec 03 21:27:01 2008 +0000
+++ b/app/soc/views/models/host.py	Wed Dec 03 21:27:27 2008 +0000
@@ -72,7 +72,7 @@
 
   pass
 
-class View(role.RoleView):
+class View(role.View):
   """View methods for the Host model.
   """
 
@@ -106,7 +106,7 @@
 
     params = dicts.merge(params, new_params)
 
-    role.RoleView.__init__(self, params=params)
+    super(View, self).__init__(params=params)
 
   def _editPost(self, request, entity, fields):
     """See base.View._editPost().
--- a/app/soc/views/models/role.py	Wed Dec 03 21:27:01 2008 +0000
+++ b/app/soc/views/models/role.py	Wed Dec 03 21:27:27 2008 +0000
@@ -64,7 +64,7 @@
   to = forms.CharField(widget=helper.widgets.ReadOnlyInput())
 
 
-class RoleView(base.View):
+class View(base.View):
   """Views for all entities that inherit from Role.
 
   All views that only Role entities have are defined in this subclass.
@@ -143,7 +143,7 @@
     params['django_patterns_defaults'] = default_patterns
 
     params = dicts.merge(params, self._params)
-    patterns = super(RoleView, self).getDjangoURLPatterns(params)
+    patterns = super(View, self).getDjangoURLPatterns(params)
 
     return patterns