[Checkins] SVN: z3c.table/trunk/src/z3c/table/table.py typo

Godefroid Chapelle gotcha at bubblenet.be
Wed Jun 10 05:40:23 EDT 2009


Log message for revision 100787:
  typo
  make pep8.py happy
  

Changed:
  U   z3c.table/trunk/src/z3c/table/table.py

-=-
Modified: z3c.table/trunk/src/z3c/table/table.py
===================================================================
--- z3c.table/trunk/src/z3c/table/table.py	2009-06-10 09:13:02 UTC (rev 100786)
+++ z3c.table/trunk/src/z3c/table/table.py	2009-06-10 09:40:22 UTC (rev 100787)
@@ -36,11 +36,15 @@
 
 
 def getSortMethod(idx):
+
     def getSortKey(item):
         sublist = item[idx]
+
         def getColumnSortKey(sublist):
             return sublist[1].getSortKey(sublist[0])
+
         return getColumnSortKey(sublist)
+
     return getSortKey
 
 
@@ -89,7 +93,6 @@
         self.rows = []
         self.selectedItems = []
 
-
     def initColumns(self):
         # setup columns
         self.columns = self.setUpColumns()
@@ -113,8 +116,8 @@
 # setup
 
     def setUpColumns(self):
-        cols = list(zope.component.getAdapters((self.context, self.request, self),
-            interfaces.IColumn))
+        cols = list(zope.component.getAdapters(
+            (self.context, self.request, self), interfaces.IColumn))
         # use the adapter name as column name
         return [nameColumn(col, name) for name, col in cols]
 
@@ -287,7 +290,7 @@
         # use batch values from request or the existing ones
         self.batchSize = self.getBatchSize()
         self.batchStart = self.getBatchStart()
-        # use srting values from request or the existing ones
+        # use sorting values from request or the existing ones
         self.sortOn = self.getSortOn()
         self.sortOrder = self.getSortOrder()
 



More information about the Checkins mailing list