I use auto_import:
db = DAL("mysql://...", folder='applications/shop/databases', pool_size=3, auto_import=True, migrate_enabled = SETS.migrate_enabled, migrate=SETS.migrate, fake_migrate=SETS.fake_migrate, check_reserved=['all'], ) when open db in appadmin - error 127.0.0.1.2015-01-21.19-36-43.bcbf410b-d686-422d-8b5a-91d2eea067de <type 'exceptions.NameError'> name 'step' is not definedVersionweb2py™Version 2.9.5-trunk+timestamp.2014.03.29.21.54.41PythonPython 2.7.6: C:\Python27\python.exe (prefix: C:\Python27)Traceback 1. 2. 3. 4. 5. 6. 7. Traceback (most recent call last): File "C:\web2py-m\gluon\restricted.py", line 220, in restricted exec ccode in environment File "C:/web2py-m/applications/bs3b/views/appadmin.html" <http://127.0.0.1:8000/admin/default/edit/bs3b/views/appadmin.html>, line 178, in <module> {{=ram['keys']}} NameError: name 'step' is not defined Error snapshot [image: help] <http://127.0.0.1:8000/admin/default/ticket/bs3b/127.0.0.1.2015-01-21.19-36-43.bcbf410b-d686-422d-8b5a-91d2eea067de#> <type 'exceptions.NameError'>(name 'step' is not defined) inspect attributes Frames - *File C:\web2py-m\gluon\restricted.py in restricted at line 220* code arguments variables - *File C:\web2py-m\applications\bs3b\views\appadmin.html in <module> at line 178* code arguments variables Function argument list () Code listing 169. 170. 171. 172. 173. 174. 175. 176. 177. 178. 179. 180. 181. 182. 183. 184. 185. 186. 187. 188. response.write(T('"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN')) response.write('</p>\n <br/><br/>\n <h4>', escape=False) response.write(T("%s selected", nrows)) response.write('</h4>\n ', escape=False) if start>0: response.write(A(T('previous %s rows') % step,_href=URL('select',args=request.args[0],vars=dict(start=start-step)),_class="btn")) pass response.write('\n ', escape=False) if stop<nrows: response.write(A(T('next %s rows') % step,_href=URL('select',args=request.args[0],vars=dict(start=start+step)),_class="btn")) pass response.write('\n ', escape=False) if rows: response.write('\n <div style="overflow:auto; width:80%;">\n ', escape=False) linkto = lambda f, t, r: URL('update', args=[request.args[0], r, f]) if f else "#" response.write('\n ', escape=False) upload=URL('download',args=request.args[0]) response.write('\n ', escape=False) response.write(SQLTABLE(rows,linkto,upload,orderby=True,_class='sortable')) response.write('\n </div>\n ', escape=False) Variablesramundefined Contex -- 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. For more options, visit https://groups.google.com/d/optout.