[Checkins] SVN: z3c.table/trunk/src/z3c/table/header.py allow column names to contain '-' characters
Roy Mathew
roymath at yahoo.com
Sun Mar 29 04:47:01 EDT 2009
Log message for revision 98442:
allow column names to contain '-' characters
Changed:
U z3c.table/trunk/src/z3c/table/header.py
-=-
Modified: z3c.table/trunk/src/z3c/table/header.py
===================================================================
--- z3c.table/trunk/src/z3c/table/header.py 2009-03-29 02:12:11 UTC (rev 98441)
+++ z3c.table/trunk/src/z3c/table/header.py 2009-03-29 08:47:00 UTC (rev 98442)
@@ -75,11 +75,11 @@
try:
currentSortID = int(currentSortID)
except ValueError:
- currentSortID = currentSortID.split('-')[2]
+ currentSortID = currentSortID.rsplit('-', 1)[-1]
currentSortOrder = table.getSortOrder()
- sortID = colID.split('-')[2]
+ sortID = colID.rsplit('-', 1)[-1]
sortOrder = table.sortOrder
if int(sortID) == int(currentSortID):
More information about the Checkins
mailing list