johannes | 8 Jun 14:28 2006

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

Author: johannes
Date: 2006-06-08 07:28:54 -0500 (Thu, 08 Jun 2006)
New Revision: 8489

Modified:
   trunk/gnue-forms/src/GFObjects/GFEntry.py
   trunk/gnue-forms/src/GFObjects/GFField.py
   trunk/gnue-forms/src/GFObjects/GFObj.py
   trunk/gnue-forms/src/GFObjects/GFTabStop.py
Log:
Code cleanup and basic validation stub

Modified: trunk/gnue-forms/src/GFObjects/GFEntry.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFEntry.py	2006-05-30 05:09:42 UTC (rev 8488)
+++ trunk/gnue-forms/src/GFObjects/GFEntry.py	2006-06-08 12:28:54 UTC (rev 8489)
 <at>  <at>  -122,7 +122,13  <at>  <at> 

         return self.navigable and self._block.navigable and not self.hidden

+    # -------------------------------------------------------------------------

+    def _validate_(self):
+
+        self._field.validate()
+
+
     # =========================================================================
     # Trigger functions
     # =========================================================================
(Continue reading)

reinhard | 12 Jun 16:07 2006

[gnue] r8490 - in trunk: gnue-common/src/logic gnue-forms/src/uidrivers/wx26/widgets

Author: reinhard
Date: 2006-06-12 09:07:22 -0500 (Mon, 12 Jun 2006)
New Revision: 8490

Modified:
   trunk/gnue-common/src/logic/usercode.py
   trunk/gnue-forms/src/uidrivers/wx26/widgets/menuitem.py
Log:
Added possibility to dynamically enable/disable menu items.

issue79 in-progress

Modified: trunk/gnue-common/src/logic/usercode.py
===================================================================
--- trunk/gnue-common/src/logic/usercode.py	2006-06-08 12:28:54 UTC (rev 8489)
+++ trunk/gnue-common/src/logic/usercode.py	2006-06-12 14:07:22 UTC (rev 8490)
 <at>  <at>  -161,6 +161,9  <at>  <at> 
         """
         UserCode.__init__(self, parent, object_type)

+        #: Commanders attached to this action
+        self.__commanders = []
+
         # Trigger support
         self._triggerGlobal = True
         self._triggerFunctions = {
 <at>  <at>  -210,8 +213,25  <at>  <at> 

     def __trigger_set_enabled(self, value):
         self.enabled = value
(Continue reading)

reinhard | 13 Jun 16:54 2006

[gnue] r8491 - in trunk: gnue-common/src/logic gnue-forms/src/uidrivers/wx26/widgets

Author: reinhard
Date: 2006-06-13 09:54:27 -0500 (Tue, 13 Jun 2006)
New Revision: 8491

Modified:
   trunk/gnue-common/src/logic/usercode.py
   trunk/gnue-forms/src/uidrivers/wx26/widgets/menuitem.py
Log:
Implemented toggleable menu items.

issue79 in-progress

Modified: trunk/gnue-common/src/logic/usercode.py
===================================================================
--- trunk/gnue-common/src/logic/usercode.py	2006-06-12 14:07:22 UTC (rev 8490)
+++ trunk/gnue-common/src/logic/usercode.py	2006-06-13 14:54:27 UTC (rev 8491)
 <at>  <at>  -239,6 +239,15  <at>  <at> 
 class GCommander(GObjects.GObj):
     """
     Any object that is bound to an action.
+
+    A commander can either be linked to a single action, in which case the
+    action is executed whenever the commander is fired, or it can be linked to
+    an L{action} and an L{action_off}, in which case the commander is a toggle
+    and the action is executed when the toggle is switched on and the
+    action_off is fired when the toggle is switched off.
+
+    For toggles, the action determines icon, label, and description, rather
+    than the action_off.
     """
(Continue reading)

reinhard | 13 Jun 22:04 2006

[gnue] r8492 - trunk/gnue-common/src/definitions

Author: reinhard
Date: 2006-06-13 15:04:03 -0500 (Tue, 13 Jun 2006)
New Revision: 8492

Modified:
   trunk/gnue-common/src/definitions/GParserHelpers.py
Log:
Be a little more restrictive about what to copy when assigning an object.

Modified: trunk/gnue-common/src/definitions/GParserHelpers.py
===================================================================
--- trunk/gnue-common/src/definitions/GParserHelpers.py	2006-06-13 14:54:27 UTC (rev 8491)
+++ trunk/gnue-common/src/definitions/GParserHelpers.py	2006-06-13 20:04:03 UTC (rev 8492)
 <at>  <at>  -139,6 +139,13  <at>  <at> 
     for (name, value) in source.__dict__.items ():
       if name in ['_ParserObj__parent', '_children']:
         continue
+      # Do not copy "magic" attributes, they are reserved for Python
+      if name.endswith('__'):
+        continue
+      # Do not copy the list of phaseInit method pointers, they point to the
+      # methods of the source object!
+      if name == '_inits':
+        continue

       self.__dict__ [name] = value

reinhard | 13 Jun 22:17 2006

[gnue] r8493 - trunk/gnue-common/src/definitions

Author: reinhard
Date: 2006-06-13 15:17:51 -0500 (Tue, 13 Jun 2006)
New Revision: 8493

Modified:
   trunk/gnue-common/src/definitions/GParserHelpers.py
Log:
Only merge on the same object tree level.

Modified: trunk/gnue-common/src/definitions/GParserHelpers.py
===================================================================
--- trunk/gnue-common/src/definitions/GParserHelpers.py	2006-06-13 20:04:03 UTC (rev 8492)
+++ trunk/gnue-common/src/definitions/GParserHelpers.py	2006-06-13 20:17:51 UTC (rev 8493)
 <at>  <at>  -166,30 +166,32  <at>  <at> 

   def merge (self, other, maxIdLength = None):
     """
-    Incorporate all subtrees from the given object tree of this instances type.
+    Merge another object tree into this tree.

+    The node itself is left untouched. All child nodes that don't exist in the
+    other tree are left untouched, too. All child nodes that exist in the other
+    tree are replaced by that version. All nodes that exist only in the other
+    tree are copied to the end of this tree.
+
      <at> param other: L{ParserObj} tree to be merged into this object tree
     """

-    # First find objects of the same type in the other tree
-    candidates = other.findChildrenOfType (self._type, True, True)
(Continue reading)

reinhard | 14 Jun 16:02 2006

[gnue] r8494 - in trunk/gnue-forms/src: . uidrivers/wx26/widgets

Author: reinhard
Date: 2006-06-14 09:02:28 -0500 (Wed, 14 Jun 2006)
New Revision: 8494

Modified:
   trunk/gnue-forms/src/GFInstance.py
   trunk/gnue-forms/src/GFParser.py
   trunk/gnue-forms/src/uidrivers/wx26/widgets/menu.py
Log:
Support for loading a default menu from a separate file.

issue79 in-progress

Modified: trunk/gnue-forms/src/GFInstance.py
===================================================================
--- trunk/gnue-forms/src/GFInstance.py	2006-06-13 20:17:51 UTC (rev 8493)
+++ trunk/gnue-forms/src/GFInstance.py	2006-06-14 14:02:28 UTC (rev 8494)
 <at>  <at>  -36,6 +36,7  <at>  <at> 
 import sys
 import dircache

+from gnue import paths
 from gnue.forms.GFForm import *
 from gnue.forms.GFParser import loadFile
 from gnue.forms import VERSION
 <at>  <at>  -47,6 +48,7  <at>  <at> 
 from gnue.common.utils.FileUtils import dyn_import
 from gnue.common.utils.FileUtils import openResource, openBuffer
 from gnue.common.utils import CaselessDict
+from gnue.common.logic import usercode
(Continue reading)

btami | 15 Jun 12:40 2006

[gnue] r8495 - trunk/gnue-common/packaging/win32

Author: btami
Date: 2006-06-15 05:40:12 -0500 (Thu, 15 Jun 2006)
New Revision: 8495

Modified:
   trunk/gnue-common/packaging/win32/README
Log:
docs fix

Modified: trunk/gnue-common/packaging/win32/README
===================================================================
--- trunk/gnue-common/packaging/win32/README	2006-06-14 14:02:28 UTC (rev 8494)
+++ trunk/gnue-common/packaging/win32/README	2006-06-15 10:40:12 UTC (rev 8495)
 <at>  <at>  -43,7 +43,7  <at>  <at> 

 http://kinterbasdb.sourceforge.net/

-http://www.sapdb.org/7.4/sap_db_downloads.htm
+http://www.mysql.com/products/maxdb/sapdbapi.html

 http://sourceforge.net/projects/reportlab/

johannes | 19 Jun 20:55 2006

[gnue] r8496 - trunk/gnue-common/src/datasources

Author: johannes
Date: 2006-06-19 13:55:46 -0500 (Mon, 19 Jun 2006)
New Revision: 8496

Modified:
   trunk/gnue-common/src/datasources/ConnectionTriggerObj.py
Log:
Changed type of object so dumpXML() works for forms after phased init

Modified: trunk/gnue-common/src/datasources/ConnectionTriggerObj.py
===================================================================
--- trunk/gnue-common/src/datasources/ConnectionTriggerObj.py	2006-06-15 10:40:12 UTC (rev 8495)
+++ trunk/gnue-common/src/datasources/ConnectionTriggerObj.py	2006-06-19 18:55:46 UTC (rev 8496)
 <at>  <at>  -52,7 +52,7  <at>  <at> 

     self.__connection = connection
     self.name         = name
-    GObjects.GObj.__init__ (self, type = "ConnTrigObj")
+    GObjects.GObj.__init__ (self, type = "GCConnection")

     self._triggerGlobal = True
     self._triggerFunctions = {}
reinhard | 20 Jun 11:35 2006

[gnue] r8497 - in trunk/gnue-forms/src: . uidrivers/qt/widgets

Author: reinhard
Date: 2006-06-20 04:35:43 -0500 (Tue, 20 Jun 2006)
New Revision: 8497

Modified:
   trunk/gnue-forms/src/GFInstance.py
   trunk/gnue-forms/src/uidrivers/qt/widgets/button.py
Log:
Removed obsolete event "fireButton".

Modified: trunk/gnue-forms/src/GFInstance.py
===================================================================
--- trunk/gnue-forms/src/GFInstance.py	2006-06-19 18:55:46 UTC (rev 8496)
+++ trunk/gnue-forms/src/GFInstance.py	2006-06-20 09:35:43 UTC (rev 8497)
 <at>  <at>  -129,7 +129,6  <at>  <at> 
                            'requestUSERCOMMAND'  : self.executeUserCommand,

                            'fireTRIGGER'         : self.fireTrigger,
-                           'buttonActivated'     : self.fireButton,

 ##                            # Dialog Support
 ##                            'requestDIALOG'        : self.activateDialog,
 <at>  <at>  -1252,12 +1251,3  <at>  <at> 
       event._form.fireTrigger ("KEY-%s" % event.triggerName.upper())
     except KeyError:
       pass
-      
-
-  # ---------------------------------------------------------------------------
-  # Fire the action-trigger bound to a button
(Continue reading)

reinhard | 20 Jun 11:39 2006

[gnue] r8498 - trunk/gnue-forms/src

Author: reinhard
Date: 2006-06-20 04:39:00 -0500 (Tue, 20 Jun 2006)
New Revision: 8498

Modified:
   trunk/gnue-forms/src/GFInstance.py
Log:
Removed obsolete event "fireTRIGGER".

Modified: trunk/gnue-forms/src/GFInstance.py
===================================================================
--- trunk/gnue-forms/src/GFInstance.py	2006-06-20 09:35:43 UTC (rev 8497)
+++ trunk/gnue-forms/src/GFInstance.py	2006-06-20 09:39:00 UTC (rev 8498)
 <at>  <at>  -127,11 +127,6  <at>  <at> 
                            'requestABOUT'        : self.executeAbout,
                            'requestMODETOGGLE'   : self.toggleInsertMode,
                            'requestUSERCOMMAND'  : self.executeUserCommand,
-
-                           'fireTRIGGER'         : self.fireTrigger,
-
-##                            # Dialog Support
-##                            'requestDIALOG'        : self.activateDialog,
                      })

     self.connections = connections       # Link to the GBaseApp's GConnections
 <at>  <at>  -1235,14 +1230,9  <at>  <at> 

 
   # ---------------------------------------------------------------------------
-  # Fire a trigger of the form
(Continue reading)


Gmane