Error in SQLFORM.grid after updating to Version 2.6.4-stable+timestamp.2013.06.26.11.24.52

42 views
Skip to first unread message

Jim S

unread,
Sep 26, 2013, 12:55:51 PM9/26/13
to web...@googlegroups.com
All of my SQLFORM.grids are failing when I click on the EDIT button with this traceback, pointing to sqlform.html.  Add's fail as well.

Traceback (most recent call last):
File "C:\dev\web2py\gluon\restricted.py", line 217, in restricted
exec ccode in environment
File "C:/dev/web2py/applications/sideboard/controllers/maintenance.py", line 1245, in <module>
File "C:\dev\web2py\gluon\globals.py", line 372, in <lambda>
self._caller = lambda f: f()
File "C:\dev\web2py\gluon\tools.py", line 3235, in f
return action(*a, **b)
File "C:/dev/web2py/applications/sideboard/controllers/maintenance.py", line 1237, in tickets
paginate=linesPerPage, maxtextlength=45,)
File "C:\dev\web2py\gluon\sqlhtml.py", line 2038, in grid
next=referrer)
File "C:\dev\web2py\gluon\html.py", line 2215, in process
self.validate(**kwargs)
File "C:\dev\web2py\gluon\html.py", line 2154, in validate
if self.accepts(**kwargs):
File "C:\dev\web2py\gluon\sqlhtml.py", line 1324, in accepts
**kwargs
File "C:\dev\web2py\gluon\html.py", line 2024, in accepts
if not formkeys or formkey not in formkeys:
TypeError: 'in <string>' requires string as left operand, not NoneType

-Jim

Niphlod

unread,
Sep 26, 2013, 2:21:34 PM9/26/13
to web...@googlegroups.com
what is the SQLFORM.grid call that generates this (i.e. what parameters are passed to the grid)?

Massimo Di Pierro

unread,
Sep 26, 2013, 2:36:02 PM9/26/13
to web...@googlegroups.com
The problem is not the grid. We are working on a new feature and it will break existing sessions. 
I just committed a change to trunk that should fix the problem.

massimo

Jim Steil

unread,
Sep 26, 2013, 2:55:47 PM9/26/13
to web...@googlegroups.com
I just did a hg pull from https://code.google.com/p/web2py and got no changes found.


--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/e9tGCO9T70A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Jim Steil

unread,
Sep 26, 2013, 3:00:56 PM9/26/13
to web...@googlegroups.com
FWIW, here is a sample:

    grid = SQLFORM.grid(query, fields=fields, orderby=orderby,
                        create=create, details=details, editable=editable,
                        deletable=deletable, csv=False, search_widget=ticketSearch,
                        paginate=linesPerPage, maxtextlength=45)

Massimo Di Pierro

unread,
Sep 26, 2013, 3:10:09 PM9/26/13
to web...@googlegroups.com
Please try once more.

Jim Steil

unread,
Sep 26, 2013, 3:12:26 PM9/26/13
to web...@googlegroups.com
Works now.   Thanks for the prompt response.

-Jim

Massimo Di Pierro

unread,
Sep 26, 2013, 7:40:04 PM9/26/13
to web...@googlegroups.com
Thanks for checking this. It was a small but critical change.
Reply all
Reply to author
Forward
0 new messages