Re: [web2py] populating DB in first app run

2015-08-29 Thread Carlos Cesar Caballero Díaz
Thank you everyone for your answers, I'm going to use the variable approach and putting it in the .ini config file. Thanks again!!! El 28/08/15 a las 17:54, 黄祥 escribió: please take a look at this discussion too https://groups.google.com/forum/#!topic/web2py/o_4l95C78sc best regards, stifan

[web2py] Re: Unable to install HandsOnTable plugin

2015-08-29 Thread Martti Lamberg
I tried it on several views and apps but it didn't work, until I figured out it might be because of I'm using python anywhere. So yes, I got it to work on normal desktop web2py. That might actually be the root of my original problem. -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: How to define id for a form created with SQLFORM.factory ?

2015-08-29 Thread at
Thanks Anthony. Before posting the question I tried the same and got syntax error as I missed the ',' On Friday, 28 August 2015 17:54:05 UTC+5, Anthony wrote: FORM and SQLFORM are just HTML helpers, so you can add HTML attributes to them when they are constructed as well: myform =

[web2py] Re: Using form.element to show hide form element

2015-08-29 Thread José Eloy
Thanks Anthony for your answer. Yes, I want to show/hide elements dinamically based in values of other fields, I know I can do this using javascript or css, but I'd like to use form.element. Is it possible? Regards. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] How accept latin letters on args

2015-08-29 Thread Leonardo Pires Felix
Hi guys, I'm doing a little CMS for my application, My application can have some posts, so every post should be in a url like this /application/cms/post/{arg0:postid}/{arg1:the title of the post). The title of the post i'll not use it, it's just for a more friendly url. But if the title has

[web2py] Re: Using form.element to show hide form element

2015-08-29 Thread Anthony
All Python gets executed on the server before the page is returned to the browser, so it is not possible to use Python to change HTML dynamically in the browser based on user input. This must be done via JavaScript. However, you can use the built-in conditional fields functionality (check the

[web2py] Re: How to store etree object that can't be pickled

2015-08-29 Thread Leonel Câmara
Well you can use etree.tostring and save that. Another alternative is to put it in cache ram which does not pickle. -- 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: How to store etree object that can't be pickled

2015-08-29 Thread Ian W. Scott
On Saturday, August 29, 2015 at 10:03:42 PM UTC-4, Leonel Câmara wrote: Well you can use etree.tostring and save that. Another alternative is to put it in cache ram which does not pickle. I'd like to avoid serializing out to a string because I'd then have to do the parsing over again on

[web2py] Re: Using form.element to show hide form element

2015-08-29 Thread José Eloy
Hi Anthony. I understand. Thanks for telling me about conditional fields, I'll try them. Regards. -- 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

[web2py] Re: Hide First and Last name in Auth_User

2015-08-29 Thread Ben Lawrence
Just for the record, this works for me { 2.11.2-stable+timestamp.2015.05.30.16.33.24 (Running on Apache/2.4.7 (Ubuntu), Python 2.7.6)} auth.define_tables(username=False, signature=False) db.auth_user.last_name.writable = db.auth_user.last_name.readable = False On Wednesday, December 11, 2013 at