Nothing changed here. I cannot reproduce it.
On Nov 16, 12:29 pm, Bruno Rocha <[email protected]> wrote: > I forgot mentioning that I am running the latest version. > > 2010/11/16 Bruno Rocha <[email protected]> > > > > > > > I tried to delete multiple records on appadmin: > > >https://myapp.com.br/init/appadmin/select/store?query=store.doacao.id>0 > > > I want to delete all the records in the table, but > > > TRACEBACK > > > 1. > > 2. > > 3. > > 4. > > 5. > > 6. > > 7. > > 8. > > 9. > > 10. > > > Traceback (most recent call last): > > > File "/home/rochacbruno/webapps/natalanimal3/web2py/gluon/restricted.py", > > line 188, in restricted > > > exec ccode in environment > > > File > > "/home/rochacbruno/webapps/natalanimal3/web2py/applications/init/controllers/appadmin.py" > > > > <https://natalanimal.com.br/admin/default/edit/init/controllers/appadm...>, > > line 209, in <module> > > > File "/home/rochacbruno/webapps/natalanimal3/web2py/gluon/globals.py", > > line 96, in <lambda> > > > self._caller = lambda f: f() > > > File > > "/home/rochacbruno/webapps/natalanimal3/web2py/applications/init/controllers/appadmin.py" > > > > <https://natalanimal.com.br/admin/default/edit/init/controllers/appadm...>, > > line 134, in select > > > match=regex.match(request.vars.query) > > TypeError: expected string or buffer > > > ode listing > > > 129. > > 130. > > 131. > > 132. > > 133. > > > 134. > > > 135. > > 136. > > 137. > > 138. > > > import re > > > db=get_database(request) > > > dbname=request.args[0] > > > regex=re.compile('(?P<table>\w+)\.(?P<field>\w+)=(?P<value>\d+)') > > > if request.vars.query: > > > match=regex.match(request.vars.query) > > > if match: request.vars.query='%s.%s.%s==%s' % > > (request.args[0],match.group('table'),match.group('field'),match.group('value')) > > > else: > > > request.vars.query=session.last_query > > > query=get_query(request) > > > Variables regex <_sre.SRE_Pattern object at 0xa63fef8> global > > request<Storage {'function': 'select', 'body': <open fi...ry': ' > > store.doacao.id>0', 'update_fields': ''}>}> regex.match <built-in method > > match of _sre.SRE_Pattern object at 0xa63fef8> request.vars.query [' > > store.doacao.id>0', 'store.doacao.id>0'] request.vars <Storage > > {'delete_check': 'on', 'query': ['store...d>0', 'store.doacao.id>0'], > > 'update_fields': ''}> match undefined > > > -- > > > Bruno Rocha > >http://about.me/rochacbruno/bio > > -- > > Bruno Rochahttp://about.me/rochacbruno/bio

