commit-gnue
[Top][All Lists]
Advanced

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

[gnue] r7650 - in trunk: gnue-forms/src gnue-navigator/src


From: jamest
Subject: [gnue] r7650 - in trunk: gnue-forms/src gnue-navigator/src
Date: Fri, 24 Jun 2005 08:21:49 -0500 (CDT)

Author: jamest
Date: 2005-06-24 08:21:47 -0500 (Fri, 24 Jun 2005)
New Revision: 7650

Modified:
   trunk/gnue-forms/src/GFClient.py
   trunk/gnue-forms/src/GFInstance.py
   trunk/gnue-navigator/src/UIwx.py
Log:
comment out the calls to addDialog as they appear to not be used anymore and 
prevent forms from running


Modified: trunk/gnue-forms/src/GFClient.py
===================================================================
--- trunk/gnue-forms/src/GFClient.py    2005-06-23 13:59:10 UTC (rev 7649)
+++ trunk/gnue-forms/src/GFClient.py    2005-06-24 13:21:47 UTC (rev 7650)
@@ -178,8 +178,8 @@
     gDebug (4, "Parsing form definition")
     instance.addFormFromFile (formfile)
 
-    gDebug (4, "Parsing standard dialogs")
-    instance.addDialogs ()
+    #gDebug (4, "Parsing standard dialogs")
+    #instance.addDialogs ()
 
     gDebug (4, "Activating form")
     instance.activate ()

Modified: trunk/gnue-forms/src/GFInstance.py
===================================================================
--- trunk/gnue-forms/src/GFInstance.py  2005-06-23 13:59:10 UTC (rev 7649)
+++ trunk/gnue-forms/src/GFInstance.py  2005-06-24 13:21:47 UTC (rev 7650)
@@ -167,42 +167,42 @@
   # Add the basic dialogs
   # ---------------------------------------------------------------------------
 
-  def addDialogs (self):
-    """
-    Loads the base dialogs into memory.
+#   def addDialogs (self):
+#     """
+#     Loads the base dialogs into memory.
+# 
+#     Base dialogs include items such as the jump to record
+#     dialog and error dialogs.
+#     """
+# 
+#     # Import and register dialogs
+#     basedir = os.path.dirname (sys.modules [self.__module__].__file__)
+#     basedir = os.path.join (basedir, 'dialogs')
+# 
+#     for dialogName in dircache.listdir (basedir):
+# 
+#       if dialogName [0] == '_' or dialogName == '.svn':
+#         continue
+# 
+#       filename    = os.path.join (basedir, dialogName)
+#       (name, ext) = os.path.splitext (dialogName)
+# 
+#       if os.path.isfile (filename) and ext == '.py':
+#         dialog = dyn_import ('gnue.forms.dialogs.%s' % name)
+# 
+#       elif os.path.isdir (filename):
+#         dialog = dyn_import ('gnue.forms.dialogs.%s' % dialogName)
+# 
+#       else:
+#         continue
+# 
+#       try:
+#         self.addFormFromBuffer (dialog.buildForm ())
+# 
+#       except StandardError, mesg:
+#         print "WARNING: Cannot build %s form \n%s" % (dialogName, mesg)
 
-    Base dialogs include items such as the jump to record
-    dialog and error dialogs.
-    """
 
-    # Import and register dialogs
-    basedir = os.path.dirname (sys.modules [self.__module__].__file__)
-    basedir = os.path.join (basedir, 'dialogs')
-
-    for dialogName in dircache.listdir (basedir):
-
-      if dialogName [0] == '_' or dialogName == '.svn':
-        continue
-
-      filename    = os.path.join (basedir, dialogName)
-      (name, ext) = os.path.splitext (dialogName)
-
-      if os.path.isfile (filename) and ext == '.py':
-        dialog = dyn_import ('gnue.forms.dialogs.%s' % name)
-
-      elif os.path.isdir (filename):
-        dialog = dyn_import ('gnue.forms.dialogs.%s' % dialogName)
-
-      else:
-        continue
-
-      try:
-        self.addFormFromBuffer (dialog.buildForm ())
-
-      except StandardError, mesg:
-        print "WARNING: Cannot build %s form \n%s" % (dialogName, mesg)
-
-
   # ---------------------------------------------------------------------------
   # Load a form from a buffer
   # ---------------------------------------------------------------------------

Modified: trunk/gnue-navigator/src/UIwx.py
===================================================================
--- trunk/gnue-navigator/src/UIwx.py    2005-06-23 13:59:10 UTC (rev 7649)
+++ trunk/gnue-navigator/src/UIwx.py    2005-06-24 13:21:47 UTC (rev 7650)
@@ -282,7 +282,7 @@
       #
       # Start the instance
       #
-      instance.addDialogs()
+      #instance.addDialogs()
 
       #instance.buildForm(form)
       instance.activate()





reply via email to

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