[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r6927 - trunk/gnue-common/src/datasources
From: |
jamest |
Subject: |
[gnue] r6927 - trunk/gnue-common/src/datasources |
Date: |
Mon, 31 Jan 2005 13:21:52 -0600 (CST) |
Author: jamest
Date: 2005-01-31 13:21:51 -0600 (Mon, 31 Jan 2005)
New Revision: 6927
Modified:
trunk/gnue-common/src/datasources/GDataSource.py
Log:
changed GSort* to GCSort* object names. designer strips the first 2 characters
from an object's name so the old names cause key index errors on save
Modified: trunk/gnue-common/src/datasources/GDataSource.py
===================================================================
--- trunk/gnue-common/src/datasources/GDataSource.py 2005-01-31 18:02:05 UTC
(rev 6926)
+++ trunk/gnue-common/src/datasources/GDataSource.py 2005-01-31 19:21:51 UTC
(rev 6927)
@@ -439,7 +439,7 @@
def __getSortOrder (self):
# If there is both, an order_by attribute *and* a sorting-tag, we've stop
- child = self.findChildOfType ('GSortOrder')
+ child = self.findChildOfType ('GCSortOrder')
if child is not None and hasattr (self, 'order_by'):
raise MarkupError, u_("The use of order_by is depreciated. Please "
"use <sortorder> instead")
@@ -447,7 +447,7 @@
# If there's a sorting tag, we'll use this first
if child is not None:
self.sorting = []
- for item in child.findChildrenOfType ('GSortField'):
+ for item in child.findChildrenOfType ('GCSortField'):
self.sorting.append ((item.name, item.descending))
# otherwise let's investigate the order_by attribute given
@@ -784,18 +784,18 @@
class GSortOrder (GObjects.GObj):
def __init__ (self, parent = None):
- GObjects.GObj.__init__ (self, parent, 'GSortOrder')
+ GObjects.GObj.__init__ (self, parent, 'GCSortOrder')
self.sorting = []
self._inits = [self._build]
def _build (self):
- for item in self.findChildrenOfType ('GSortField'):
+ for item in self.findChildrenOfType ('GCSortField'):
self.sorting.append ((item.name, item.descending))
class GSortField (GObjects.GObj):
def __init__ (self, parent = None):
- GObjects.GObj.__init__ (self, parent, 'GSortField')
+ GObjects.GObj.__init__ (self, parent, 'GCSortField')
#
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r6927 - trunk/gnue-common/src/datasources,
jamest <=