[PonyORM-list] Creating Dynamic Classes in Pony (need help)
webmailgroups at gmail.com
Sun Mar 15 20:13:13 UTC 2015
First of all, I'm absolutely new to DBs and relatively new to Python )))).
But got my work to do (EE student project). So please don't blame me for
My question is simple (at least it seems so to me ^_^):
Is it possible to create a dynamic classes with pony_orm?
Something similar to this:
By "dynamic" I mean that class attributes are not static.
For instance, let's say I have some "node.xls" file which contains some
table as this one:
param1 param2........ parmaN
element1 value 1 value2...........valueN
element2 value 1 value2...........valueN
element value 1 value2...........valueN
So I might define a class in pony_orm which will be called as Node() and
would include all those (param1 to paramN) and then just assign their
But this is a static way. What happens when I'll ( at some time) add
param(N+1) into my "node.xls"? So in such case I would need to redefine
Sounds not so hard task to do... But if there some more "xls" files and
more params will be added over time to each one of them...
I would definitely get into trouble, by spending all my free time to
actually make it up-to-date.
Hope my question clear enough.
Any provided help(ideas, code snippets of possible realization, links etc.)
will be highly appreciated.
Thanks a lot in advance,
More information about the ponyorm-list