Re: [web2py] Hide the achive links for a table.

2017-04-28 Thread Santiago Cartasegna
linked_tables=[] would do the trick. Thanks! -- 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

[web2py] Re: upload image and save in dinamic directory profile

2017-04-28 Thread Dave S
On Friday, April 28, 2017 at 11:52:53 AM UTC-7, felipe...@tksolucoes.com.br wrote: > > hi, > > I want save one image in dinamic directory web2py, but ai not using > SQLFORM, > > When i do upload the image i recieve in controller C:/FAKEPATH/imagename > > how do i handle this path or other

Re: [web2py] OPTGROUP and OPTION dinamically

2017-04-28 Thread Richard Vézina
Hmm... I would first bring this piece of code into the controller as helpers which are slow are suppose to be even slower if use from the view. It will make the code less heavy... I am not sure what you are exactly want. Since you already loop over you myfields dict, you can just use the values

[web2py] upload image and save in dinamic directory profile

2017-04-28 Thread felipe . marcos
hi, I want save one image in dinamic directory web2py, but ai not using SQLFORM, When i do upload the image i recieve in controller C:/FAKEPATH/imagename how do i handle this path or other upload ? sorry my inglish. look my code: View: Primeiro Nome

Re: [web2py] Hide the achive links for a table.

2017-04-28 Thread Áureo Dias Neto
in you smartgrid definition, form = SQLFORM.smartgrid(db.table,linked_tables=[]) or form = SQLFORM.smartgrid(db.table,linked_tables=None) I dont remember whats the correct -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code)

[web2py] Hide the achive links for a table.

2017-04-28 Thread Santiago Cartasegna
Hello everyone, I am using a Smartgrid to display some data. I was wondering if there is any chanche of hidding the links that redirect to the archive records. Is there any easy way of doing this?

Re: [web2py] Re: Polymer and SQLFORM

2017-04-28 Thread Luis Valladares
We choose to use materializecss instead of polymer because polymer was not very stable at the time. El vie., abr. 28, 2017 10:13 AM, escribió: > @Luis Valladares I also like the idea of Polymer + web2py. Where you able > to use both in combination? If so - do you have some

[web2py] Re: Polymer and SQLFORM

2017-04-28 Thread tset . no
@Luis Valladares I also like the idea of Polymer + web2py. Where you able to use both in combination? If so - do you have some example code to share on Github? Cheers Tset Am Montag, 21. September 2015 01:51:00 UTC+2 schrieb Luis Valladares: > > Hello! > > I'm building a web2py site and i want

Re: [web2py] Re: Open Sourced dating website

2017-04-28 Thread David Shavers
Bump -- 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

Re: [web2py] Re: How can I union 2 different table datasets?

2017-04-28 Thread Anthony
Create a view or materialized view in the db, and then just create a DAL model based on that view (turn off migrations for that model so the DAL does not attempt to create a table for it). From that point, you can use that model for queries via the DAL. Anthony On Thursday, April 27, 2017 at

[web2py] Re: btw: great job

2017-04-28 Thread Pierre
welcome aboard !!! this is not your captain speaking.we shall take off in a few minutes. *do not fasten your seat belts and stop smoking* -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] OPTGROUP and OPTION dinamically

2017-04-28 Thread António Ramos
How do i change my code to dinamically create the OPTGROUP and OPTION from myfields {{myfields={ "driver":{"tja":[{"value":"joe","id":1},{"value":"anne","id":2}],"abc":[{"value":"cris","id":3},{"value":"pat","id":4}]},

[web2py] Re: sql COUNT function and DAL

2017-04-28 Thread Pierre
Marlysson : just in case, from now on i keep this one under my pillow :)) https://media.readthedocs.org/pdf/pydal/stable/pydal.pdf -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] wsgihandler.py hangs after updating pandas library

2017-04-28 Thread Nicolas Petitclerc
Hi, I need to update pandas - web2py uses the Ubuntu distribution version (which is getting old Pandas 0.17.0). So I pip installed the latest version into 'web2py/site-packages/' but then the page hangs for like 5min and then all I get is this error message in /var/log/apache2/error.log : [Fri

[web2py] Re: sql COUNT function and DAL

2017-04-28 Thread Pierre
wonderful !! and I can even cache it to prevent waste thanks Anthony -- 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

[web2py] Re: dal

2017-04-28 Thread T.R.Rajkumar
Yes that is a round about way. dal should allow creation of primary keys. This is a requirement in rdbms. In book primary key is said for legacy databases with constraints. Can I define the primary key in backend database. Will dal not bother about it? Thanks. On Friday, April 28, 2017 at

[web2py] Re: dal

2017-04-28 Thread 黄祥
a, i c, so combination of 2 fields : field amcno & field unitid that you want to ensure that is unique, hm, perhaps you can create new field to store combination of those field and use before insert call back or form validation to assign that combination field into 1 new field and put unique =

[web2py] Re: dal

2017-04-28 Thread T.R.Rajkumar
Thank you Stifan. I would like to have amcno+unitid to be unique. In dal we can set each field to be unique. How to do that for a combination of fields? On Friday, April 28, 2017 at 1:12:24 PM UTC+5:30, T.R.Rajkumar wrote: > > I have a table in which two fields say amcno and unit are there. Now

[web2py] Re: dal

2017-04-28 Thread 黄祥
perhaps you can use dal field constructor unique = True and requires = IS_NOT_IN_DB() best regards, stifan -- 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)

[web2py] dal

2017-04-28 Thread T.R.Rajkumar
I have a table in which two fields say amcno and unit are there. Now how to ensure amcno+unitid is unique in dal? -- 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

[web2py] Re: Is web2py incompatible with 2nd generation Google Cloud SQL ?

2017-04-28 Thread Karoly Kantor
Hello Massimo, One more piece of information that might be useful: One Google support person at the "Google App Engine" forum here told me my login attempt was made with password "password", which is NOT the password I set into the environment variable as seen in my attempted hack above, as