Re: Dynamic Class Creation

2010-04-02 Thread Aahz
In article <8d79f0cb-9c5b-4243-8891-a15fb311f...@z18g2000prh.googlegroups.com>, Josh English wrote: > > >Analog Science Fiction and Fact >Analog >Science Fiction >First Contact >Hard Science Fiction > >Stanley Schmidt, Editor >267 Broadway, 4th Floor >

Re: Dynamic Class Creation

2010-03-17 Thread Gerard Flanagan
Josh English wrote: Chris, Thanks. This worked for the attributes, but I think the tactic is still misleading. There are child elements I can't quite determine how to deal with: Analog Science Fiction and Fact Analog Science Fiction First Contact Hard Science Fiction

Re: Dynamic Class Creation

2010-03-16 Thread Josh English
Chris, Thanks. This worked for the attributes, but I think the tactic is still misleading. There are child elements I can't quite determine how to deal with: Analog Science Fiction and Fact Analog Science Fiction First Contact Hard Science Fiction Stanley Schmidt

Re: Dynamic Class Creation

2010-03-16 Thread Chris Rebert
On Tue, Mar 16, 2010 at 9:49 AM, Jack Diederich wrote: > On Tue, Mar 16, 2010 at 2:18 AM, Chris Rebert wrote: >> On Mon, Mar 15, 2010 at 11:01 PM, Josh English >> wrote: >>> What's the best way to create these helper methods? > > You can either define a catch-all __getattr__ method to look them

Re: Dynamic Class Creation

2010-03-16 Thread Jack Diederich
On Tue, Mar 16, 2010 at 2:18 AM, Chris Rebert wrote: > On Mon, Mar 15, 2010 at 11:01 PM, Josh English > wrote: >> I have a large program with lots of data stored in XML. I'm upgrading >> my GUI to use ObjectListView, but with my data in XML, I don't have >> regular objects to interact with the OL

Re: Dynamic Class Creation

2010-03-15 Thread Chris Rebert
On Mon, Mar 15, 2010 at 11:01 PM, Josh English wrote: > I have a large program with lots of data stored in XML. I'm upgrading > my GUI to use ObjectListView, but with my data in XML, I don't have > regular objects to interact with the OLV. I do have an XML validator > that defines the structure of

Dynamic Class Creation

2010-03-15 Thread Josh English
I have a large program with lots of data stored in XML. I'm upgrading my GUI to use ObjectListView, but with my data in XML, I don't have regular objects to interact with the OLV. I do have an XML validator that defines the structure of the XML elements, and I'm trying to dynamically create a class