[Checkins] SVN: z3c.multiform/Sandbox/src/z3c/multiform/multiform.py rename Multiform.setUpForms/.setUpForm to .setUpItems/.setUpItem

Stefan Martin s.martin at iwm-kmrc.de
Mon Feb 5 08:33:58 EST 2007


Log message for revision 72368:
  rename Multiform.setUpForms/.setUpForm to .setUpItems/.setUpItem

Changed:
  U   z3c.multiform/Sandbox/src/z3c/multiform/multiform.py

-=-
Modified: z3c.multiform/Sandbox/src/z3c/multiform/multiform.py
===================================================================
--- z3c.multiform/Sandbox/src/z3c/multiform/multiform.py	2007-02-05 13:20:26 UTC (rev 72367)
+++ z3c.multiform/Sandbox/src/z3c/multiform/multiform.py	2007-02-05 13:33:57 UTC (rev 72368)
@@ -280,18 +280,15 @@
         super(MultiFormBase,self).__init__(context, request)
         self.filter = self.context
 
-    def setUpSubWidgets(self):
-        self.forms = list(self.filter.keys())
-        self.checkInputMode()
-        self.updateSelection()                
-
     def setUpWidgets(self, ignore_request=False):
         if not ignore_request:
-            self.setUpSubWidgets()
+            self.forms = list(self.filter.keys())
+            self.checkInputMode()
+            self.updateSelection()
         super(MultiFormBase,self).setUpWidgets(ignore_request=ignore_request)
-        self.setUpForms()
+        self.setUpItems()
 
-    def setUpForm(self, name, item, inputMode):
+    def setUpItem(self, name, item, inputMode):
         prefix = self.prefix + '.sf.' + name
         subForm = self.newSubForm(item)
         if inputMode is not None and not inputMode:
@@ -303,13 +300,13 @@
         subForm.setPrefix(prefix)
         self.subForms[name] = subForm
 
-    def setUpForms(self):
+    def setUpItems(self):
         self.forms = []
         self.subForms = {}
         for key, item in self.filter.items():
             self.forms.append(key)
             inputMode = self.subFormInputMode.get(key, self.itemFormFactory.inputMode)
-            self.setUpForm(key, item, inputMode)
+            self.setUpItem(key, item, inputMode)
         self.refreshSubActionNames()
 
     def resetForm(self):



More information about the Checkins mailing list