To have the buttons, EITHER use user_signature=False (which means data can be edited without login) OR log into an account that has permissions to access the page (which means user_signature defaults to True). Use the latter where possible.
On Wednesday, November 21, 2012 3:33:53 PM UTC+8, software.ted wrote: > > ...Okey can someone explain what the user_signature=False switch...adding > it to the grid changes everything and all buttons appear..changing it like > so.. > > form = SQLFORM.grid(db.department, > searchable=True, > deletable=True, > details=True, > selectable=False, > csv=False, user_signature=False) > > > On Wed, Nov 21, 2012 at 7:51 AM, Teddy Nyambe > <softwa...@gmail.com<javascript:> > > wrote: > >> Hey all, >> >> Having trouble using SQLFORM.smartgrid/grid...this is how my controller >> looks like: >> def myfiles(): >> response.title=" Files in the system " >> grid = SQLFORM.grid(db.myfile,deletable=True, editable=True, >> details=False,create=True, csv=False) >> return dict(grid=grid) >> >> My view: >> >> {{extend 'layout.html'}} >> <h1>Files</h1> >> {{=grid}} >> >> The problem is the buttons for add, delete, edit are not appearing. What >> attribute am I missing? >> >> Teddy L. >> -- >> >> ....................................................................................... >> Teddy Lubasi Nyambe >> Opensource Zambia >> Lusaka, ZAMBIA >> >> Cell: +260 97 7760473 >> website: http://www.opensource.org.zm >> >> ~/ >> Human Knowledge belongs to the world! - AntiTrust >> >> Man is a tool-using animal. Without tools he is nothing, with tools he is >> all - Thomas Carlyle 1795-1881 >> >> /~ >> > > > > -- > > ....................................................................................... > Teddy Lubasi Nyambe > Opensource Zambia > Lusaka, ZAMBIA > > Cell: +260 97 7760473 > website: http://www.opensource.org.zm > > ~/ > Human Knowledge belongs to the world! - AntiTrust > > Man is a tool-using animal. Without tools he is nothing, with tools he is > all - Thomas Carlyle 1795-1881 > > /~ > --