Hi!

In order to work with spatialite I had to patch the Spatialite class in this way in my model file (actually in py4web but the pydal is a common project dependency):

from unittest import mock

...

# Before declaring first DAL instance

patcher = mock.patch('pydal.adapters.sqlite.Spatialite.SPATIALLIBS', {"Linux": "mod_spatialite"})
patcher.start()

...

# At the end of the file after all table definitions

patcher.stop()

The problem is that is changed the name of the geometric extension in sqlite3... Any other similar experience? Do you think it's a generic solution to submit as an issue to the pydal project? Or does it depends on my local package configuration?

Thanks a lot

    Manuele

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/b77e0b74-7488-2e8e-c757-4f5c64aa2cdd%40gmail.com.

Reply via email to