Hey Mark,

Do you have any complex object usage examples? Thanks, good work so far 
with simple stuff.

On Saturday, December 10, 2011 7:28:42 PM UTC-5, Mark Breedveld wrote:
>
> Yeah, there is plenty more to do.
> Thanks for your testing.
>
> I turned it into a runtimeError like the others.
> So next time, you don't get the import exception.
> The next update will contain it.
>
> I'll check the id problem out next time, cause it is kinda strange.
> But I'll thing I turn them in to functions like in CouchDB driver.
> Because changing the _id to id happens in the parse function,
> And maybe thatÂ’s already too late.
>
> Thanks and I would really comments.
> Cause I don't have that many experience and probably make really silly
> "solutions"
>
> Regards Mark,
>
> -----Oorspronkelijk bericht-----
> Van: web2py@googlegroups.com [mailto:web2py@googlegroups.com] Namens Alan
> Etkin
> Verzonden: zaterdag 10 december 2011 16:24
> Aan: web2py-users
> Onderwerp: [web2py] Re: Progress update on Mongodb adapter now forked GIT
> repo
>
> It works as smooth as a calm lake in springtime on clear weather now:
>
> -The system requires mongodb installed. If not, web2py throws this:
>
> DEBUG: connect attempt 0, connection error:
> Traceback (most recent call last):
>   File "/home/alan/web2py-for-mongodb/gluon/dal.py", line 4880, in __init__
>     self._adapter = ADAPTERS[self._dbname](*args)
>   File "/home/alan/web2py-for-mongodb/gluon/dal.py", line 3761, in __init__
>     import pymongo.uri_parser
>   File "/home/alan/web2py-for-mongodb/gluon/custom_import.py", line 293, in
> __call__
>     fromlist, level)
>   File "/home/alan/web2py-for-mongodb/gluon/custom_import.py", line 78, in
> __call__
>     level)
> ImportError: No module named pymongo.uri_parser
>
> -Basic Insert and Select from admin worked, but appadmin repeats the id
> field when reading a record:
>
> Id: 4ee3671c421aa92668000000
> Id: 4ee3671c421aa92668000000
> Of Group: vertebrae
> Of Class: mammal
> Of Kind: walrus
> Of Subclass: bignosed
> Of Species: nossicus walrusa
> Of Type: arctic big nosed walrus
>
> It inserts non ASCII characters without errors too
>
> -And update is not supported, raising the expected exception:
> ...
> RuntimeError: Not implemented
>
> My system:
> Mandriva GNU/Linux Free 2010.2
> Python 2.6.5
> Last web2py modified clone for mongodb
> pymongo version 2.1
>
> Great work. Thank you again
>
> On 10 dic, 06:48, Mark Breedveld <markbr...@hotmail.com> wrote:
> > I have solved it. The current version didn't offer support for auth.
> > But now it should have support for every option except connecting 
> > without a database.
> > I have only tested auth, but it 
> > useshttp://www.mongodb.org/display/DOCS/Connectionsmongodburi as
> connection string. So all options should work.
> >
> > The new version is in the trunk my forked repo.
> >
> > -----Oorspronkelijk bericht-----
> > Van: web2py@googlegroups.com [mailto:web2py@googlegroups.com] Namens 
> > AlanEtkin
> > Verzonden: vrijdag 9 december 2011 15:53
> > Aan: web2py-users
> > Onderwerp: [web2py] Re: Progress update onMongodbadapter now forked 
> > GIT repo
> >
> > I tried to connect to a MongoHQ with the last web2py source from 
> > Google Code. It raises an exception:
> >
> > Traceback (most recent call last):
> >   File "/home/alan/web2py-hg/gluon/restricted.py", line 204, in 
> > restricted
> >     exec ccode in environment
> >   File "/home/alan/web2py-hg/applications/mongo/models/db.py", line 
> > 10, in <module>
> >     db = DAL('mongodb://spametki:....@staff.mongohq.com:10039/
> > spametki')
> >   File "/home/alan/web2py-hg/gluon/dal.py", line 4283, in __init__
> >     self._adapter = ADAPTERS[self._dbname](*args)
> >   File "/home/alan/web2py-hg/gluon/dal.py", line 3770, in __init__
> >     raise SyntaxError, "Invalid URI string in DAL: %s" % self.uri
> > SyntaxError: Invalid URI string in 
> > DAL:mongodb://spametki:....@staff.mongohq.com:10039/spametki
> >
> > Note: i replaced the account password from the connection string with 
> > dots (anyway i could share the password for development if needed)
> >
> > Thanks
> >
> > On 8 dic, 17:23, Mark Breedveld <markbr...@hotmail.com> wrote:
> >
> >
> >
> > > Yes, that's all
> >
> > > -----Oorspronkelijk bericht-----
> > > Van: web2py@googlegroups.com [mailto:web2py@googlegroups.com] Namens 
> > > Massimo Di Pierro
> > > Verzonden: donderdag 8 december 2011 16:25
> > > Aan: web2py-users
> > > Onderwerp: [web2py] Re: Progress update onMongodbadapter now forked 
> > > GIT repo
> >
> > > I am happy to include this. Do I just need the adapter from your dal?
> >
> > > On Dec 8, 5:42 am, Mark Breedveld <m.breedv...@solcon.nl> wrote:
> >
> > > > The GIT repository below contains theMongodb 
> > > > adapter.https://github.com/MarkBreedveld/web2py
> >
> > > > Currently working
> > > > - Select with
> > > >    - startswith, endswith,contains, like, < > >= <= = != & | IN 
> > > > NOT EQ LIMIT ORDER
> > > >    - Snapshot switch
> > > >    - safe switch
> > > > - truncate
> > > > - count()
> > > > - drop()
> > > > - create_table()
> >
> > > > TODO
> > > > - update
> > > > - capped collections
> > > > - embedded collections
> > > > - MOD, DIV, SUB, ADD, MUL, AS
> >
> > > > TESTS
> > > > - with AUTH
> > > > - against official SQL LIKE, STARTSWITH, ENDSWITH operators
> > > > - BELONGS
> > > > - writing tests
> >
> > > -----
> > > Geen virus gevonden in dit bericht.
> > > Gecontroleerd door AVG -www.avg.com
> > > Versie: 2012.0.1873 / Virusdatabase: 2102/4667 - datum van uitgifte:
> > > 12/08/11
> >
> > -----
> > Geen virus gevonden in dit bericht.
> > Gecontroleerd door AVG -www.avg.com
> > Versie: 2012.0.1873 / Virusdatabase: 2102/4668 - datum van uitgifte:
> > 12/08/11
>
> -----
> Geen virus gevonden in dit bericht.
> Gecontroleerd door AVG - www.avg.com
> Versie: 2012.0.1873 / Virusdatabase: 2102/4672 - datum van uitgifte:
> 12/10/11
>
>

Reply via email to