I make it:
db.py:
# -*- coding: utf-8 -*-
db = DAL('sqlite://storage.sqlite',pool_size=1,check_reserved=['all'])
from gluon.tools import Auth, Service, PluginManager, Crud
auth = Auth(db)
service = Service()
plugins = PluginManager()
crud = Crud(db)
db.define_table('t_test',
Field('f_test','string'),
Field('f_test_1','string'))
default.py:
def index():
return locals()
def test_bug():
test_id = request.args(0)
test_crud = crud.read(db.t_test, test_id)
test_grid = SQLFORM.grid(db.t_test, user_signature=False)
return locals()
default/index.html:
{{=A('test', _href=URL("test_bug", args=1))}}
default/test_bug.html:
{{=BEAUTIFY(response._vars)}}
After click on link 'test' (index.html page) turn to test_bug.html.
On test_bug.html after click buttons "+ Add Records" or "View" or "Edit" in
grid, open URL /test_bug/default/test_bug/[ACTION]/t_test and message -
"404 NOT FOUND".
It is bug? Or I made wrong?
Sorry my bad English.
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.