Author: reinhard
Date: 2006-09-11 16:56:26 -0500 (Mon, 11 Sep 2006)
New Revision: 8668
Modified:
trunk/gnue-forms/src/GFObjects/GFField.py
Log:
Minor cleanup.
Modified: trunk/gnue-forms/src/GFObjects/GFField.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFField.py 2006-09-11 21:39:28 UTC (rev
8667)
+++ trunk/gnue-forms/src/GFObjects/GFField.py 2006-09-11 21:56:26 UTC (rev
8668)
@@ -24,10 +24,10 @@
Implementation of block fields
"""
-from gnue.common.apps import errors
-from gnue.forms.GFObjects.GFValue import GFValue
from gnue.common.definitions import GParser
+from gnue.forms.GFObjects import GFObj
+
# =============================================================================
# Exceptions
# =============================================================================
@@ -45,19 +45,20 @@
msg = u_("Datasource '%(name)s' not found") % {'name': name}
GParser.MarkupError.__init__ (self, msg, field._url, field._lineNumber)
+
# =============================================================================
# A field of a block
# =============================================================================
-class GFField(GFValue):
+class GFField(GFObj.GFObj):
# -------------------------------------------------------------------------
# Constructor
# -------------------------------------------------------------------------
- def __init__(self, parent=None, value=None):
+ def __init__(self, parent=None):
- GFValue.__init__(self, parent, value, 'GFField')
+ GFObj.GFObj.__init__(self, parent, 'GFField')
# Default attributes (these may be replaced by parser)
self.typecast = "text"
@@ -277,7 +278,7 @@
def _phase_1_init_(self):
- GFValue._phase_1_init_(self)
+ GFObj.GFObj._phase_1_init_(self)
self._block = self.findParentOfType ('GFBlock')
self._block._fieldMap [self.name] = self
_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue