Message161577
stupid question but why shouldn't this be possible ?
class Element(_Element):
def __init__(self,name,**kwargs):
_Element.__init__(self,name)
attributes = kwargs.get("attributes")
children = kwargs.get("children")
for key,value in attributes.iteritems():
self.setAttribute(key,value)
for child in children:
self.appendChild(child) |
|
Date |
User |
Action |
Args |
2012-05-25 12:07:43 | avono | set | recipients:
+ avono, exarkun, BreamoreBoy, Alexandre.Zani |
2012-05-25 12:07:43 | avono | set | messageid: <1337947663.63.0.426995182324.issue4849@psf.upfronthosting.co.za> |
2012-05-25 12:07:43 | avono | link | issue4849 messages |
2012-05-25 12:07:42 | avono | create | |
|