Skip to content

Bug reported to Pyramid issue tracker #5

Closed
mcdonc opened this Issue Jun 8, 2011 · 1 comment

1 participant

@mcdonc
Pylons Project member
mcdonc commented Jun 8, 2011

bug.py:

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

$ python bug.py
Traceback (most recent call last):
File "bug.py", line 5, in
config.scan()
File "/usr/local/lib/python2.6/dist-packages/pyramid-1.0-py2.6.egg/pyramid/config.py", line 1805, in scan
scanner.scan(package, categories=categories)
File "/usr/local/lib/python2.6/dist-packages/venusian-0.8-py2.6.egg/venusian/init.py", line 55, in scan
invoke(name, ob)
File "/usr/local/lib/python2.6/dist-packages/venusian-0.8-py2.6.egg/venusian/init.py", 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/collection.py", line 1101, in call
self.__name.split(".")[-1])
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.

@mcdonc
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…
…nsane

  module-scope objects.  See #5 .

Closes #5.
e8b5bdb
@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.