[web2py] Re: Problem with SQLFORM.grid

2017-03-10 Thread Dave S
On Friday, March 10, 2017 at 9:11:03 AM UTC-8, Oasis Agano wrote: > > Did this issue get solved im facing it too > I suggest starting a new thread so your problem recieves the attention it needs. But be sure and let us know * your table definition * how you are invoking the grid * what error

[web2py] Re: Problem with SQLFORM.grid

2017-03-10 Thread Oasis Agano
Did this issue get solved im facing it too On Monday, September 5, 2011 at 11:47:01 AM UTC+2, brushek wrote: > > Hello, > > I have following table with custom type (database: postgres): > from gluon.sql import SQLCustomType > inet = SQLCustomType ( type='string', native='inet', encoder=lambda x

Re: [web2py] Re: Problem with SQLFORM.grid

2011-09-06 Thread Bruno Rocha
On Tue, Sep 6, 2011 at 4:05 AM, Johann Spies wrote: > if field.type in ('string','text')]) > > TypeError: reduce() of empty sequence with no initial value > > That is a bug I already reported [0] grid does not works with tables without fields of type 'string' or 'text', also it can't work with

Re: [web2py] Re: Problem with SQLFORM.grid

2011-09-06 Thread Johann Spies
On 5 September 2011 20:04, brushek wrote: > Can anybody help ? or grid and smartgrid shouldn't be used with custom > fields ? > > I have tried your model and controller and get the following error when I try to use SQLFORM.smartgrid or -grid: File "/home/js/web2py/applications/isi_proef/control

[web2py] Re: Problem with SQLFORM.grid

2011-09-05 Thread brushek
Can anybody help ? or grid and smartgrid shouldn't be used with custom fields ? Regards brushek On 5 Wrz, 16:22, brushek wrote: > On 5 Wrz, 15:55, Johann Spies wrote: > > > Hallo Brushek, > > > I am also trying out SQLFORM.grid/smartgrid and learn as I go. > > > @auth.requires_login()> def doda

[web2py] Re: Problem with SQLFORM.grid

2011-09-05 Thread brushek
On 5 Wrz, 15:55, Johann Spies wrote: > Hallo Brushek, > > I am also trying out SQLFORM.grid/smartgrid and learn as I go. > > @auth.requires_login()> def dodajserwer(): > >    response.flash = T('Serwery') > >    form=SQLFORM.grid(db.serwery) > > Apparently the usage is either SQLFORM.smartgrid(t