commit-gnue
[Top][All Lists]
Advanced

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

gnue/designer src/TemplateBase.py src/TemplateP...


From: Jason Cater
Subject: gnue/designer src/TemplateBase.py src/TemplateP...
Date: Thu, 13 Sep 2001 23:27:30 -0400

CVSROOT:        /home/cvs
Module name:    gnue
Changes by:     Jason Cater <address@hidden>    01/09/13 23:27:30

Modified files:
        designer/src   : TemplateBase.py TemplateParser.py 
        designer/templates/forms: Simple.py 

Log message:
        synching machines (updates to templates/wizards)

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/designer/src/TemplateBase.py.diff?cvsroot=OldCVS&tr1=1.5&tr2=1.6&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/designer/src/TemplateParser.py.diff?cvsroot=OldCVS&tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/designer/templates/forms/Simple.py.diff?cvsroot=OldCVS&tr1=1.5&tr2=1.6&r1=text&r2=text

Patches:
Index: gnue/designer/src/TemplateBase.py
diff -u gnue/designer/src/TemplateBase.py:1.5 
gnue/designer/src/TemplateBase.py:1.6
--- gnue/designer/src/TemplateBase.py:1.5       Wed Jul  4 20:30:55 2001
+++ gnue/designer/src/TemplateBase.py   Thu Sep 13 23:27:30 2001
@@ -37,7 +37,7 @@
 #   object passed to the Start method.  If you successfully
 #   created your object, you should return a TRUE value in
 #   Start.  Otherwise, return false.  If a TRUE value is 
-#   returned, Designer assumed that the passed <Form|Report>
+#   returned, Designer assumes that the passed <Form|Report>
 #   object now contains a valid object. 
 #
 # NOTE: It is VERY important that in any reference to a 
@@ -124,9 +124,9 @@
     p = self._connections.getAllConnectionParameters()
     for conn in p.keys(): 
       if p[conn].has_key('comment'):
-        rv.append(conn, '%s [%s]' % (p[conn]['comment'], conn))
+        rv.append((conn, '%s [%s]' % (p[conn]['comment'], conn)))
       else: 
-        rv.append(conn, '%s [%s]' % (conn, p[conn]['provider']))
+        rv.append((conn, '%s [%s]' % (conn, p[conn]['provider'])))
     return rv
 
 
Index: gnue/designer/src/TemplateParser.py
diff -u gnue/designer/src/TemplateParser.py:1.3 
gnue/designer/src/TemplateParser.py:1.4
--- gnue/designer/src/TemplateParser.py:1.3     Wed Jun 27 22:26:19 2001
+++ gnue/designer/src/TemplateParser.py Thu Sep 13 23:27:30 2001
@@ -263,3 +263,8 @@
   def OnCharLower(self, event): 
     event.Skip()
 
+
+
+class SetTextField(wxTextCtrl): 
+  def __init__(self, source, parent, pos=wxDefaultPosition, 
size=wxDefaultSize): 
+    wxTextCtrl.__init__(self, parent, -1, pos=pos, size=size)
Index: gnue/designer/templates/forms/Simple.py
diff -u gnue/designer/templates/forms/Simple.py:1.5 
gnue/designer/templates/forms/Simple.py:1.6
--- gnue/designer/templates/forms/Simple.py:1.5 Thu Sep 13 17:42:01 2001
+++ gnue/designer/templates/forms/Simple.py     Thu Sep 13 23:27:30 2001
@@ -49,21 +49,10 @@
   def Start(self, form): 
     self.form = form
 
+    print self.GetAvailableConnections()
 
-  # Return the markup for a specific page 
-  def GetStep(self, stepCode):
-    return self.pages[stepCode]
-
-
-  # We have all the data, so generate our form
-  # This is called 
-  def GetFinal(self): 
-
-#    self.
-    return 1
-    
-
-  pages = { '0':  # Step #1 / Get Title, et al
+    self.pages = { 
+            '0':  # Step #1 / Get Title, et al
                { 'title': 'Basic Form Information', 
                  'content': (WizardText('Welcome to the sample form wizard.'),
                              WizardText('To create your form, I need to know 
some basic information. \n'
@@ -73,7 +62,7 @@
                                          size=40), 
                              WizardText('What connection should this form use 
to connect to the \ndatabase?'), 
                              WizardInput('connection',label='Connection:', 
required=1, 
-                                         set=(('gnue','GNUe Test Connection 
[gnue]'),('gnue','Production Database [op]'))),
+                                         set=self.GetAvailableConnections()),
  
                  ), #formTemplateGetSource(variables,multple=0), 
                  'prev': None, 
@@ -91,6 +80,20 @@
                  'content': (WizardText('This is\nText'),), 
                  'next': None } }
   
+
+
+  # Return the markup for a specific page 
+  def GetStep(self, stepCode):
+    return self.pages[stepCode]
+
+
+  # We have all the data, so generate our form
+  # This is called 
+  def GetFinal(self): 
+
+#    self.
+    return 1
+    
 
 #
 # Basic information about this template



reply via email to

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