Ah! That's why. Thanks Niphlod!
On Tue, Oct 23, 2012 at 9:08 AM, Niphlod <niph...@gmail.com> wrote: > you have to be logged-in . By default web2py doesn't allow random users to > modify your "precious" data. > > you can turn off this safe behaviour with user_signature=False > > """ > By default all the URL generated by the grid are digitally signed and > verified. This means one cannot perform certain actions (create, update, > delete) without being logged-in > """ > > > http://web2py.com/books/default/chapter/29/07#SQLFORM.grid-and-SQLFORM.smartgrid > > On Tuesday, October 23, 2012 3:47:20 PM UTC+2, Omi Chiba wrote: >> >> I don't what I'm doing wrong. I made a new sample grid app with ver 2.1.1 >> and it doesn't display create, editable, deletable by default or with True. >> >> Model >> db.define_table('Category', >> Field('Code', 'integer'), >> Field('Name'), >> format='%(Name)s') >> >> Controller >> def index(): >> query = db.Category.id >0 >> grid = SQLFORM.grid(query,csv=True,**paginate=10) >> return dict(grid=grid) >> >> View >> {{extend 'layout.html'}} >> {{=grid}} >> >> >> >> >> -- > > > > --