installed pymongo

used the very plain skeleton as an example (http://webpy.org/skeleton/
0.3)

 - modified the config.py to:

import web
from pymongo import Connection
c = Connection()
DB = c.test
collection = DB.items
#DB = web.database(dbn='mongodb', db='test', user='admin',
pw='fooknose')
cache = False

Traceback:

<type 'exceptions.TypeError'> at /
'Collection' object is not callable. If you meant to call the 'find'
method on a 'Database' object it is failing because no such method
exists.

Python  build/bdist.linux-x86_64/egg/pymongo/collection.py in __call__,
line 1094
Web     GET http://206.251.38.181:8082/

this is not important - just always wanted to get my head around webpy
+mongo. i know Anand mentioned it a while back - just peeked my
curiosity :)

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en.

Reply via email to