Skip to content

Bug reported to Pyramid issue tracker #5

mcdonc opened this Issue Jun 8, 2011 · 1 comment

1 participant

Pylons Project member
mcdonc commented Jun 8, 2011

from pyramid.config import Configurator
import pymongo
db = pymongo.Connection()['test']
config = Configurator()

$ python
Traceback (most recent call last):
File "", line 5, in
File "/usr/local/lib/python2.6/dist-packages/pyramid-1.0-py2.6.egg/pyramid/", line 1805, in scan
scanner.scan(package, categories=categories)
File "/usr/local/lib/python2.6/dist-packages/venusian-0.8-py2.6.egg/venusian/", line 55, in scan
invoke(name, ob)
File "/usr/local/lib/python2.6/dist-packages/venusian-0.8-py2.6.egg/venusian/", line 44, in invoke
if not attached_categories.attached_to(ob):
File "/usr/local/lib/python2.6/dist-packages/pymongo-1.11-py2.6-linux-x86_64.egg/pymongo/", line 1101, in call
TypeError: 'Collection' object is not callable. If you meant to call the 'attached_to' method on a 'Collection' object it is failing because no such method exists.

Pylons Project member
mcdonc commented Jun 8, 2011
@mcdonc mcdonc added a commit that closed this issue Jun 8, 2011
@mcdonc mcdonc - Prevent corner case scan-time exception when trying to introspect i…

  module-scope objects.  See #5 .

Closes #5.
@mcdonc mcdonc closed this in e8b5bdb Jun 8, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.