Re: Patch for kaa.xmlutils. Add support for more than one text element inside an element
Jason Tackaberry <[email protected]>
| Newsgroups | gmane.comp.video.freevo.devel |
|---|---|
| Message-ID | <1281905928.3366.3.camel@willow> |
On Sun, 2010-08-15 at 18:03 +0200, Dirk Meyer wrote:
> Well, this does not work due to the minus. But the following (ugly code)
> shoudl work (untested)
>
> node.add_child("video", **{"mplayer-options": "foo"})
Yes, I already suggested that earlier in this thread. :)
So now it's more a question of how do we fix kaa.xmlutils to support
this. Either implement __setitem__ and __getitem__ or implement
__setattr__ and always translate underscores in python to dashes in xml
attributes.
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev