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 uses
http://www.mongodb.org/display/DOCS/Connections mongodb uri 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 Alan
Etkin
Verzonden: vrijdag 9 december 2011 15:53
Aan: web2py-users
Onderwerp: [web2py] Re: Progress update on Mongodb adapter 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 on Mongodb adapter 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 the Mongodb 
> > 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

Reply via email to