commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r8668 - trunk/gnue-forms/src/GFObjects


From: reinhard
Subject: [gnue] r8668 - trunk/gnue-forms/src/GFObjects
Date: Mon, 11 Sep 2006 16:56:27 -0500 (CDT)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]