Re: [web2py] Re: SQLTABLE, orderby and components

2012-09-17 Thread Massimo Di Pierro
Makes sense. It is now in trunk. Thanks. Massimo On Monday, 17 September 2012 08:42:17 UTC-5, Massimiliano wrote: > > Yes, my proposal was to add an arguments cid to sqltable. > > I've attached a patch just to explain. > > Thank you > > On Mon, Sep 17, 2012 at 2:08 PM, Massimo Di Pierro > > > w

Re: [web2py] Re: SQLTABLE, orderby and components

2012-09-17 Thread Massimiliano
Yes, my proposal was to add an arguments cid to sqltable. I've attached a patch just to explain. Thank you On Mon, Sep 17, 2012 at 2:08 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > but there is no cid variable in sqlhtml.py. I am missing something? Can > you send me a patch and

Re: [web2py] Re: SQLTABLE, orderby and components

2012-09-17 Thread Massimo Di Pierro
but there is no cid variable in sqlhtml.py. I am missing something? Can you send me a patch and I will try it? On Monday, 17 September 2012 03:39:30 UTC-5, Massimiliano wrote: > > Just add an argument cid=None to SQLTABLE.__init__ > and change line 2408-9 > > from > row.appen

Re: [web2py] Re: SQLTABLE, orderby and components

2012-09-17 Thread Massimiliano
Just add an argument cid=None to SQLTABLE.__init__ and change line 2408-9 from row.append(TH(A(headers.get(c, c), _href=th_link+'?orderby=' + c))) to row.append(TH(A(headers.get(c, c),

[web2py] Re: SQLTABLE, orderby and components

2012-09-14 Thread Massimo Di Pierro
Can you provide an example? On Friday, 14 September 2012 03:23:25 UTC-5, Massimiliano wrote: > > Hi, > > I'm trying to use SQLTABLE in components... Is there a way to make orderby > links to works in components? > > It seems that miss an option to pass cid to orderby links. > > I can copy SQLTABL

[web2py] Re: SQLTABLE, orderby and components

2012-09-14 Thread villas
I do not think SQLTABLE was ever intended for production systems. Why not use the SQLFORM.grid()? You can switch off all the things you don't want. On Friday, September 14, 2012 9:23:25 AM UTC+1, Massimiliano wrote: > > Hi, > > I'm trying to use SQLTABLE in components... Is there a way to make