I'm getting this same error and cannot figure it out. Any help would be much appreciated.
On Wednesday, July 16, 2014 at 4:12:28 PM UTC-6, Jakob Hartman wrote: > > <type 'exceptions.NameError'> name 'step' is not definedVersionweb2py™Version > 2.9.5-stable+timestamp.2014.03.16.02.35.39PythonPython 2.7.8: > /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python > > (prefix: /Library/Frameworks/Python.framework/Versions/2.7)Traceback > > 1. > 2. > 3. > 4. > 5. > 6. > 7. > > Traceback (most recent call last): > File "/Users/Jakob/Desktop/web2py/gluon/restricted.py", line 220, in > restricted > exec ccode in environment > File "/Users/Jakob/Desktop/web2py/applications/mqr/views/appadmin.html" > <http://127.0.0.1:8000/admin/default/edit/mqr/views/appadmin.html>, line 183, > in <module> > <h4>{{=T("DISK")}}</h4> > NameError: name 'step' is not defined > > Error snapshot [image: help] > <http://127.0.0.1:8000/admin/default/ticket/mqr/127.0.0.1.2014-07-16.16-09-03.414e51c6-b160-4650-8732-ec72a76ef962#> > > <type 'exceptions.NameError'>(name 'step' is not defined) > > inspect attributes > Frames > > - > > *File /Users/Jakob/Desktop/web2py/gluon/restricted.py in restricted at > line 220* code arguments variables > - > > *File /Users/Jakob/Desktop/web2py/applications/mqr/views/appadmin.html > in <module> at line 183* code arguments variables > Function argument list > > () > Code listing > > 174. > 175. > 176. > 177. > 178. > 179. > 180. > 181. > 182. > 183. > > 184. > 185. > 186. > 187. > 188. > 189. > 190. > 191. > 192. > 193. > > 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) > > > -- 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.