[orm-devel] dbclass - __getattr__
Diedrich Vorberg
orm-devel@mailman.tux4web.de
Wed, 27 Aug 2003 18:58:49 +0200
Hi Mike,
> if name[0] == "_":
> try:
> return self.__dict__[name]
> except KeyError:
> # remapped the error so that getattr (was failing on
>__getstate__) works in pickle and other standard Python library
>functions
> raise AttributeError
I've changed this as you suggested, it's in the CVS version.
Diedrich
--
_..._ Diedrich Vorberg
.' '.
/ _ _ \ http://www.tux4web.de
| (o)_(o) | info@tux4web.de
\( ) / .---.
//'._.'\ \ / \ Internet Dienstleistungen
// . \ \ \.@-@./ und 'Consulting'.
|| . \ \ /`\_/`\
|\ : / | // _ \\ Linux Rules!
\ `) ' (` /_ | \ )|_
_)``".____,.'"` (_ /`\_`> <_/ \
) )'--'( ( \__/'---'\__/
'---` `---`