[TransWarp] typo in element.py

Ulrich Eck ueck at net-labs.de
Wed Feb 26 16:37:10 EST 2003


> first there is a typo in model/elements.py in line 502:
>
>         def _doGet(ob):
>             value = oldGet(ob)
>             if isinstance(value,LazyLoader):
>                 d.__delete__(ob)
>                 ^^^^^^^^^^^^^^^^ -> d should probably be ob ??
>                 value.load(ob,attr)
>                 return oldGet(ob)
>             return value
>

err .. i didn't look what i typed ...

it should probably be:

        def _doGet(ob):
            value = oldGet(ob)
            if isinstance(value,LazyLoader):
                oldDel(ob)
                value.load(ob,attr)
                return oldGet(ob)
            return value


cheers

Ulrich Eck
------------------------------------------------------------------------
net-labs Systemhaus GmbH
Ebersberger Str. 46
85570 Markt Schwaben
fon:   +49-8121-4747-11
fax:   +49-8121-4747-77
email: ueck at net-labs.de
http://www.net-labs.de




More information about the PEAK mailing list