else: # simple parameter
self.params[tag] = xxxParam(node)
else:
+ pass
# Remove all other nodes
- element.removeChild(node)
- node.unlink()
+# element.removeChild(node)
+# node.unlink()
+
# Check that all required params are set
for param in self.required:
if not self.params.has_key(param):
# Simulate normal parameter for encoding
class xxxEncoding:
- def __init__(self, val):
- self.encd = val
def value(self):
- return self.encd
+ return g.currentEncoding
def update(self, val):
- self.encd = val
+ g.currentEncoding = val
# Special class for root node
class xxxMainNode(xxxContainer):
# Reset required parameters after processing XML, because encoding is
# a little special
self.required = ['encoding']
- self.params['encoding'] = xxxEncoding(dom.encoding)
+ self.params['encoding'] = xxxEncoding()
################################################################################
# Top-level windwows
# Just like bitmap
class xxxIcon(xxxObject):
- allParams = ['icon']
- required = ['icon']
+ allParams = []
################################################################################
# Controls