I am having the following problem when I use 'edit' on SQLFORM grid, and 
then submit the changes. I tried downloading the latest trunk and also 
created the app afresh to ensure things were otherwise clean




1.

2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.

Traceback (most recent call last):
  File "C:\Users\Peter\web2py\gluon\restricted.py", line 204, in restricted
    exec ccode in environment
  File "C:/Users/Peter/web2py/applications/labels/controllers/default.py" 
<http://127.0.0.1:8000/admin/default/edit/labels/controllers/default.py>, line 
144, in <module>
  File "C:\Users\Peter\web2py\gluon\globals.py", line 162, in <lambda>
    self._caller = lambda f: f()
  File "C:/Users/Peter/web2py/applications/labels/controllers/default.py" 
<http://127.0.0.1:8000/admin/default/edit/labels/controllers/default.py>, line 
75, in view
    orderby='label',paginate=300)
  File "C:\Users\Peter\web2py\gluon\sqlhtml.py", line 1582, in grid
    next=referrer)
  File "C:\Users\Peter\web2py\gluon\html.py", line 1950, in process
    self.validate(**kwargs)
  File "C:\Users\Peter\web2py\gluon\html.py", line 1909, in validate
    next = next % self.vars
ValueError: unsupported format character 'D' (0x44) at index 45

ERROR SNAPSHOT [image: help]

<type 'exceptions.ValueError'>(unsupported format character 'D' (0x44) at 
index 45)

the view the 'edit' is diverting from is

def view(): iconup = IMG(_src=URL('static','images',args='up.png') ) 
icondown = IMG(_src=URL('static','images',args='down.png') ) 
table=SQLFORM.grid(db.labels,deletable=False,create=False,csv=False,details=False,
 
orderby='label',paginate=300) return dict(table=table)

Thanks

Peter


Reply via email to