Mind this is not thread safe.

On Mar 14, 7:22 pm, DenesL <[email protected]> wrote:
> Thanks for the explain Yarko, this could go in the new wiki.
>
> That is the understanding I had, my problem was to think about a class
> only as an instance factory and not as an object itself, which can
> also track the objects that have been instanced by it.
>
> A simplified model of it would be:
>
> class K:
>    inst=[]
>    def __init__(self):
>       K.inst.append(self)
>
> Back to views now...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to