Ok then, should this work?
(Version 2.3.2 (2012-12-17 15:03:30) stable, source, nightly build, from
12/31)
*Connection*
db = DAL('sqlite://storage.sqlite',pool_size=1,check_reserved=['all'])
db1 = DAL('mysql://root:www@localhost:3306/xxx', migrate=True, fake_migrate=
False, check_reserved=['common','mysql']) #www and xxx's have been blanked
(place markers)
*Model*
db.define_table('luPace',
Field('Description','string', label='Pace'),
Field('icon','string', length=100),
Field('bgcolor','string'),
Field('fgcolor','string'))
db1.define_table('luStart1',
Field('Description','string', label='Start'),
Field('icon','string'),
Field('bgcolor','string'),
Field('fgcolor','string'))
*Controller*
def pace():
tablel = SQLFORM.grid(db.luPace)
return locals()
def start():
tablel = SQLFORM.grid(db.luStart1)
return locals()
Execute the following:
*pace ..*
as expected
*start ....*
Traceback (most recent call last):
File "C:\web2py15\gluon\restricted.py", line 212, in restricted
exec ccode in environment
File "C:/web2py15/applications/test1/controllers/test.py"
<http://127.0.0.1:8000/admin/default/edit/test1/controllers/test.py>, line 13,
in <module>
File "C:\web2py15\gluon\globals.py", line 193, in <lambda>
self._caller = lambda f: f()
File "C:/web2py15/applications/test1/controllers/test.py"
<http://127.0.0.1:8000/admin/default/edit/test1/controllers/test.py>, line 9,
in start
tablel = SQLFORM.grid(db.luStart1)
File "C:\web2py15\gluon\dal.py", line 7255, in __getattr__
return ogetattr(self, key)
AttributeError: 'DAL' object has no attribute 'luStart1'
*luStart1* works from appadmin
--