Added a default _editSeed method
authorSverre Rabbelier <srabbelier@gmail.com>
Mon, 17 Nov 2008 00:01:59 +0000
changeset 497 73666a7cd718
parent 496 875bdc5741eb
child 498 1cd81063a4c6
Added a default _editSeed method Also added the invite shortcut in the host view.
app/soc/views/models/base.py
app/soc/views/models/host.py
--- a/app/soc/views/models/base.py	Mon Nov 17 00:01:33 2008 +0000
+++ b/app/soc/views/models/base.py	Mon Nov 17 00:01:59 2008 +0000
@@ -429,6 +429,16 @@
 
     pass
 
+  def _editSeed(self, request, seed):
+    """Performs any required processing on the form to get its edit page
+
+    Args:
+      request: the django request object
+      seed: the fields to seed the create page with
+    """
+
+    pass
+
   def checkUnspecified(self, access_type, request):
     """Checks whether an unspecified access_type should be allowed
 
--- a/app/soc/views/models/host.py	Mon Nov 17 00:01:33 2008 +0000
+++ b/app/soc/views/models/host.py	Mon Nov 17 00:01:59 2008 +0000
@@ -139,3 +139,4 @@
 edit = view.edit
 list = view.list
 public = view.public
+invite = view.invite