commit-gnue
[Top][All Lists]
Advanced

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

gnue/designer/src/forms/wizards AddDropDown.py


From: Jason Cater
Subject: gnue/designer/src/forms/wizards AddDropDown.py
Date: Mon, 07 Oct 2002 22:07:05 -0400

CVSROOT:        /home/cvs
Module name:    gnue
Changes by:     Jason Cater <address@hidden>    02/10/07 22:07:05

Modified files:
        designer/src/forms/wizards: AddDropDown.py 

Log message:
        fixed bugs in the New Datasource wizard

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/designer/src/forms/wizards/AddDropDown.py.diff?cvsroot=OldCVS&tr1=1.6&tr2=1.7&r1=text&r2=text

Patches:
Index: gnue/designer/src/forms/wizards/AddDropDown.py
diff -c gnue/designer/src/forms/wizards/AddDropDown.py:1.6 
gnue/designer/src/forms/wizards/AddDropDown.py:1.7
*** gnue/designer/src/forms/wizards/AddDropDown.py:1.6  Fri Aug 16 00:51:12 2002
--- gnue/designer/src/forms/wizards/AddDropDown.py      Mon Oct  7 22:07:05 2002
***************
*** 87,92 ****
--- 87,103 ----
        if self.__firstConnection:
          self.variables['connection'] == self.__firstConnection
  
+       if len (self.__datasourceMap):
+           set=((0,'Create a new datasource'),
+                (1,'Use an existing datasource'),
+                ##(2,'Specify a static list of valid choices' )
+                )
+       else:
+           set=((0,'Create a new datasource'),
+                ##(2,'Specify a static list of valid choices' )
+                )
+ 
+ 
        return   { 'title': 'Add Dropdown Entry',
                   'content': (WizardText('To create your dropdown, I need to 
know some basic information. '
                                          'First, what field will store the 
dropdown\'s value?'),
***************
*** 95,103 ****
                               WizardText('Where will this dropdown pull its 
data?'),
                               WizardInput('datasource', label='Source:', 
required=1,
                                           maxSelections=1,
!                                          set=((0,'Create a new datasource'),
!                                               (1,'Use an existing 
datasource'),
!                                               (2,'Specify a static list of 
valid choices' )))
                              ),
                   'prev': None,
                   'next': '1' }
--- 106,112 ----
                               WizardText('Where will this dropdown pull its 
data?'),
                               WizardInput('datasource', label='Source:', 
required=1,
                                           maxSelections=1,
!                                          set=set)
                              ),
                   'prev': None,
                   'next': '1' }
***************
*** 154,160 ****
        return   { 'title': 'Datasource Connection',
                   'content': (WizardText('What connection should this form use 
to connect to the \ndatabase?'),
                               WizardInput('connection',label='Connection:', 
required=1,
!                                          set=self.__GetExistingDatasources()),
                               WizardText('You may be asked to login to this 
connection.')),
                   'prev': '0',
                   'next': '2:reuse' }
--- 163,169 ----
        return   { 'title': 'Datasource Connection',
                   'content': (WizardText('What connection should this form use 
to connect to the \ndatabase?'),
                               WizardInput('connection',label='Connection:', 
required=1,
!                                          set=self.__getExistingDatasources()),
                               WizardText('You may be asked to login to this 
connection.')),
                   'prev': '0',
                   'next': '2:reuse' }
***************
*** 306,311 ****
--- 315,322 ----
          self.__datasourceMap[child.name] = child
          if not self.__firstConnection:
            self.__firstConnection = child.database
+     print self.__datasourceSet
+     return self.__datasourceSet
  
  
  




reply via email to

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