Changeset 4050 for exist


Ignore:
Timestamp:
18/07/08 11:25:17 (11 years ago)
Author:
domlowe
Message:

Adding Mike's fix as described in ticket 955

File:
1 edited

Legend:

Unmodified
Added
Removed
  • exist/trunk/python/ndgUtils/xmlHandler2.py

    r3125 r4050  
    133133        nslist={}  
    134134        for ns in self.realns: nslist[self.realns[ns]]=ns 
    135         r=' %s="%s"'%(span('xmlns','xmlAttrTyp'),span(nslist['default'],'xmlAttrVal')) 
     135        if 'default' in nslist: r=' %s="%s"'%(span('xmlns','xmlAttrTyp'),span(nslist['default'],'xmlAttrVal')) 
     136        else: r='' 
    136137        for ns in nslist: 
    137138            if ns<>'default': r+=' %s="%s"'%(span('xmlns:%s'%ns,'xmlAttrTyp'),span(nslist[ns],'xmlAttrVal')) 
Note: See TracChangeset for help on using the changeset viewer.