Re: [web2py] Re: MongoDBAdapter -- in DAL

2011-05-05 Thread joseph simpson
Try the following code: ## #!/usr/bin/python import sys import time sys.path.append('/Users/pcode/Desktop/mongodb_test/web2py') from gluon.dal import DAL, Field db = DAL('mongodb://127.0.0.1:5984/db') db.define_table('m_test', Field('name','text'),

Re: [web2py] Re: MongoDBAdapter -- in DAL

2011-05-04 Thread joseph simpson
OK, I will find some time in the next few days to look at this.. Thanks for your quick response to the question.. On Wed, May 4, 2011 at 8:02 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Please help me try if > > db=DAL('mongodb://127.0.0.1:5984/db') > db.define_table('mytable'

[web2py] Re: MongoDBAdapter -- in DAL

2011-05-04 Thread Massimo Di Pierro
Please help me try if db=DAL('mongodb://127.0.0.1:5984/db') db.define_table('mytable',...) db.mytable.insert(...) try different field types and let me know which ones fail. works. On May 4, 9:42 am, "David J." wrote: > Ahh; Ok; > > Perhaps I will use MongEngine for now and then come back to DA

Re: [web2py] Re: MongoDBAdapter -- in DAL

2011-05-04 Thread David J.
Ahh; Ok; Perhaps I will use MongEngine for now and then come back to DAL once we have time for it; I think its not worth your time to build in support for something not so many people are using; Besides anyone can use MongoEngine with Web2py without much difficulty; I did some simple tests

[web2py] Re: MongoDBAdapter -- in DAL

2011-05-04 Thread Massimo Di Pierro
mongodb with DAL does not currently work but, if you help with tests, we could make it work On May 4, 8:56 am, "David J." wrote: > Is this in trunk; > > I will start a new project today and use Mongo For DB > > I think I tried it last month and I had some problems; I didnt have the > time to loo

Re: [web2py] Re: MongoDBAdapter -- in DAL

2011-05-04 Thread David J.
Is this in trunk; I will start a new project today and use Mongo For DB I think I tried it last month and I had some problems; I didnt have the time to look into it. I will update and try again. Thanks. On 5/4/11 9:30 AM, Massimo Di Pierro wrote: fixing it now. Looks like not many people t

[web2py] Re: MongoDBAdapter -- in DAL

2011-05-04 Thread Massimo Di Pierro
fixing it now. Looks like not many people testing it. :-) On May 3, 9:56 pm, joseph simpson wrote: > The current dal.py file contains the following code, between lines > 3381 and 3404: > > ADAPTERS = { >     'sqlite': SQLiteAdapter, >     'sqlite:memory': SQLiteAdapter, >     'mysql': MySQLAdapte