commit-gnue
[Top][All Lists]
Advanced

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

gnue-designer/src/forms/wizards CreateWebForm.py


From: Jan Ischebeck
Subject: gnue-designer/src/forms/wizards CreateWebForm.py
Date: Mon, 22 Sep 2003 16:24:51 -0400

CVSROOT:        /cvsroot/gnue
Module name:    gnue-designer
Branch:         
Changes by:     Jan Ischebeck <address@hidden>  03/09/22 16:24:51

Modified files:
        src/forms/wizards: CreateWebForm.py 

Log message:
        - bugfix: don't use height. it should be Char__height
        - add basic dropdown widget support (not yet supported by js client)

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

Patches:
Index: gnue-designer/src/forms/wizards/CreateWebForm.py
diff -c gnue-designer/src/forms/wizards/CreateWebForm.py:1.5 
gnue-designer/src/forms/wizards/CreateWebForm.py:1.6
*** gnue-designer/src/forms/wizards/CreateWebForm.py:1.5        Tue Jun 10 
15:48:22 2003
--- gnue-designer/src/forms/wizards/CreateWebForm.py    Mon Sep 22 16:24:51 2003
***************
*** 357,363 ****
--- 357,372 ----
  
        if hasattr(obj,'__Char_height'):
          outp+="entry.__char_height='%s';\n" % obj.__Char_heigth
+ 
+       ## Foreign key (f. dropdown) support
+       if hasattr(obj,'fk_source'):
+         outp+="entry.fk_source='%s';\n" % obj.fk_source
+         
+       if hasattr(obj,'fk_key'):
+         outp+="entry.fk_key='%s';\n" % obj.fk_key
          
+       if hasattr(obj,'fk_description'):
+         outp+="entry.fk_descripion=%s';\n" % obj.fk_description
        outp+='\n'
  
  
***************
*** 504,510 ****
          outp+='\n\n  <!-- Entry %s -->\n' % obj.name
          if obj.style=="password":
            outp+='  <input type="password"'
!         elif obj.height>1:
            outp+='  <textarea'
          else:
            outp+='  <input type="text"'
--- 513,522 ----
          outp+='\n\n  <!-- Entry %s -->\n' % obj.name
          if obj.style=="password":
            outp+='  <input type="password"'
!         elif obj.style=="dropdown":
!           outp+='  <select'        
!         print "ATTENTION: creating dropdown widgets which are not supported 
by the javascript client yet!"
!         elif obj.Char__height>1:
            outp+='  <textarea'
          else:
            outp+='  <input type="text"'
***************
*** 518,525 ****
  
          if not hasattr(obj,"default"):
            obj.default=""
!           
!         if obj.height>=1:
            outp+='>%s</textarea>\n' % obj.default
          else:
            outp+='value="%s">\n' % obj.default
--- 530,539 ----
  
          if not hasattr(obj,"default"):
            obj.default=""
! 
!         if obj.style=="dropdown":
!           outp+='><options>%s</options></select>\n' % obj.default
!         elif obj.Char__height>1:
            outp+='>%s</textarea>\n' % obj.default
          else:
            outp+='value="%s">\n' % obj.default




reply via email to

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