Hi Guys database tables doesn't work in my web2py. whatever ı do get same ticket. what ı am doing wrong ? <type 'exceptions.NameError'> name 'tb' is not defined>
Frame - *File /root/Masaüstü/web2py/gluon/restricted.py in restricted at line 227* code arguments variables *File /root/Masaüstü/web2py/applications/unwatercamera/views/appadmin.html in <module> at line 124* code arguments variables Function argument list () Code listing 115. 116. 117. 118. 119. 120. 121. 122. 123. 124. 125. 126. 127. 128. 129. 130. 131. 132. 133. 134. response.write('\n ', escape=False) pass response.write('\n </table>\n </div>\n <div class="tab-pane" id="hooks">\n ', escape=False) response.write(LOAD('appadmin', 'hooks', ajax=True)) response.write('\n </div>\n </div>\n', escape=False) elif request.function=='select': response.write('\n <h2>', escape=False) response.write(XML(str(T("Database %s select"))%A(request.args[0],_href=URL('index')))) response.write('\n </h2>\n ', escape=False) if tb: response.write('\n <h3>', escape=False) response.write(T('Traceback')) response.write('</h3>\n <pre>\n ', escape=False) response.write(tb) response.write('\n </pre>\n ', escape=False) pass response.write('\n ', escape=False) if table: response.write('\n ', escape=False) response.write(A(str(T('New Record')),_href=URL('insert',args=[request.args[0],table]),_class="btn btn-default")) -- 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.