[web2py] Re: Problem using grid after crud

2015-01-10 Thread Konstantin Fadeev


https://lh4.googleusercontent.com/-oiNvwgidljw/VLEEKGeyu4I/C2I/QUCMxdozIxI/s1600/%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%2B%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%2B%D0%BE%D1%82%2B2015-01-10%2B13%3A48%3A57.png

https://lh4.googleusercontent.com/-oiNvwgidljw/VLEEKGeyu4I/C2I/QUCMxdozIxI/s1600/%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%2B%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%2B%D0%BE%D1%82%2B2015-01-10%2B13%3A48%3A57.png

-- 
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.


[web2py] Problem using grid after crud

2015-01-09 Thread Konstantin Fadeev
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.