Leandro Lucarella wrote:
With svn's SQLObject now you can do:
ret = Person.get(PersonId).sqlmeta.asDict()
Yes. I've been looking forward to that feature's debut in TG. Can I
also pass a dictionary to SQLObject to set the attributes of an existing
or new object to the dictionaries values? It seems like I saw somewhere
that I can already do that?
If so, then by using Bonono's strategy, I would be able to do exactly
what I want. The only "tedious grunt work" I would have to do would be
to initialize my dict entries/attributes/fields once in my method for
putting up a form to get values for a new object. Everything else would
be just passing dictionaries and possible twiddling with an entry here
or there.
That would be exactly what I was looking for in TG. I looked at DJango,
etc. and decided that they looked too generalized. Django looked
great... if all you do is CMS. I wanted a generalized web "application"
framework. Not a web "CMS" framework. I want as much of the
flexibility of mod_python as I can retain, but with the framework
handling the wrote mechanical tedium.
BTW, bonono, I finally got to the reporting part of my app and tried out
the info in the link you provided me a while back to be able to do raw
SQL through SQLObject. Works great! But it did demonstrate to me how
I'd gotten used to the simplicity of SQLObject for doing simple DB
related things. (And it was a bit jarring having to switch gears even
insofar as what the fields db fields were named, e.g. "employee_phone"
vs "employeePhone".)
A fusion of the two ways of doing things into TG would be a match made
in heaven. The only problem being that I wouldn't have anything more to
complain about! ;-)
-Steve