Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 24746 → Rev 24747

/trunk/Scribus/codegen/fromrelaxng/impldescription.py
54,9 → 54,9
def addIncludes(self, datatypes, refnames):
#print datatypes, refnames
for p in self.properties:
if p.datatype == None and p.refname in refnames:
if p.datatype is None and p.refname in refnames:
p.datatype = refnames[p.refname].datatype
if p.datatype == None:
if p.datatype is None:
print "X>>>", p.name, p.refname, refnames
if p.datatype.find("<") > 0:
/trunk/Scribus/codegen/fromrelaxng/parserng.py
27,7 → 27,7
self.currentClass = c
elif self.currentClass != None:
newProp = Property(pattern, isOptional, isCollection)
if newProp.datatype == None:
if newProp.datatype is None:
ref = pattern.getchildren()[0]
if ref.tag == qn('rng:ref'):
newProp.refname = ref.get(an('name'))