Re: [SQLObject] SQLObeject.__getitem__ method
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oleg B. <ph...@ph...> - 2005-09-22 10:59:25
|
On Thu, Sep 22, 2005 at 12:11:26PM +0200, Tomas wrote: > patch for object accessing to attributes via indexing > obj['name'] returns obj.name > obj['type.name'] returns obj.type.name I am not sure this is in accord with SQLObject that is designed for attribute access. I think you'd beter make this as a wrapper object instead. BTW, some people ask if they can create a dictionary out of SQLObjects. The wrapper object is, probably, an answer. Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |