On Aug 16, 5:26 am, Christoph Haas <[EMAIL PROTECTED]> wrote:
> Worse is that I can't query for objects through "paster shell". I get
> this exception:
>
> /home/chaas/projekte/dnsdhcp/dnsdhcp/model/__init__.py in pylons_scope()
>      16     import thread
>      17     from pylons import config
> ---> 18     return "Pylons|%s|%s" % (thread.id, id(config))
>      19
>      20 # Global session manager.  Session() returns the session object 
> appropriate for the current web request.
>
> AttributeError: 'module' object has no attribute 'id'
>
> I'm not threading expert so I don't know where to look. In "ipython" the
> thread module doesn't have an id.

the proper call is thread.get_ident(), changed in r92


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to