that would be awesome!!! :)
for now am sharing the DB: doing this for the "off line" (scripted)
access to the DB
db=DAL("sqlite://storage.sqlite",
folder='{0}/blueLite/
db_storage'.format(os.getcwd()))
and the webApp is doing:
db=DAL('sqlite://storage.sqlite',
folder=os.path.abspath('../../db_storage')\
,migrate=False)
both pointing to the same. (i just need to make sure to update the
webApp's db.py with the same db.define_table's when I make changes
(like adding or removing tables)
Mart :)
On Apr 28, 11:40 am, Massimo Di Pierro <[email protected]>
wrote:
> What would be nice is a something like two web2py apps where one can
> do
>
> db=DAL('mysql://....')
> db.serve(port=8080)
>
> and another can do
>
> db=DAL('connect://127.0.0.1:8080')
> db.fetch_tables()
>
> mind this would be not too difficult to implement.
>
> On Apr 28, 10:25 am, Ross Peoples <[email protected]> wrote:
>
>
>
>
>
>
>
> > After thinking about this a little more, maybe a custom DAL adapter or
> > something would probably be the only way to handle this, which is no easy
> > task. Does anyone else have any ideas?