commit-gnue
[Top][All Lists]
Advanced

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

gnue/gnue-common/gnue/common GObjects.py


From: Jason Cater
Subject: gnue/gnue-common/gnue/common GObjects.py
Date: Wed, 27 Jun 2001 19:20:36 -0700

CVSROOT:        /home/cvs
Module name:    gnue
Changes by:     Jason Cater <address@hidden>    01/06/27 19:20:35

Modified files:
        gnue-common/gnue/common: GObjects.py 

Log message:
        Fixed problem w/dumpXML preventing forms from being saved in designer

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-common/gnue/common/GObjects.py.diff?cvsroot=OldCVS&tr1=1.11&tr2=1.12&r1=text&r2=text

Patches:
Index: gnue/gnue-common/gnue/common/GObjects.py
diff -u gnue/gnue-common/gnue/common/GObjects.py:1.11 
gnue/gnue-common/gnue/common/GObjects.py:1.12
--- gnue/gnue-common/gnue/common/GObjects.py:1.11       Tue Jun 26 20:20:35 2001
+++ gnue/gnue-common/gnue/common/GObjects.py    Wed Jun 27 19:20:35 2001
@@ -144,9 +144,10 @@
       val = self.__dict__[attribute]
       if lookupDict[xmlEntity].has_key('Attributes') and \
          lookupDict[xmlEntity]['Attributes'].has_key(attribute): 
-        if lookupDict[xmlEntity]['Attributes'][attribute].has_key('Default') 
and \
-           ('%s'%lookupDict[xmlEntity]['Attributes'][attribute]['Default']) != 
('%s'%val): 
-          if lookupDict[xmlEntity][1][attribute][2] == bool \
+        if val != None and \
+           (not 
lookupDict[xmlEntity]['Attributes'][attribute].has_key('Default') or \
+            (lookupDict[xmlEntity]['Attributes'][attribute]['Default']) != 
(val)): 
+          if lookupDict[xmlEntity]['Attributes'][attribute]['Typecast'] == 
bool \
              and val == 1:
             xmlString = xmlString + ' %s=""' % (attribute)
           else: 



reply via email to

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