[web2py] SQLFORM security question

2016-01-03 Thread Joe
When I create a form do I need to do anything other than just have this line in the controller: form = SQLFORM(db.example).process() and then {{=form}} in the view? As far as security, this is enough just like that, right? The reason I am asking because I just looked through the records in the d

[web2py] How to update app keeping the database intact

2016-01-03 Thread Ron Chatterjee
Happy New Year Everyone, I want to understand what everyone think about this problem. Let's say I have an app installed in python anywhere. I have few users. There are some changes to my app or for various other reason I need to delete the current code with an updated version of my web2py appl

Re: [web2py] Re: why you should upgrade to web2py 2.13.4

2016-01-03 Thread Richard Vézina
Will try it tomorrow... :) Richard On Thu, Dec 31, 2015 at 3:01 PM, Dave S wrote: > > > On Tuesday, December 29, 2015 at 6:34:38 PM UTC-8, Dave S wrote: >> >> >> >> On Tuesday, December 29, 2015 at 4:41:31 PM UTC-8, Dave S wrote: >>> >>> >>> See below: >>> >>> On Saturday, December 26, 2015 at

[web2py] Re: "Unable to handle upload" error when manually adding an entry for a file dropped into TinyMCE

2016-01-03 Thread Boa
Problem solved: it seems the .store() function returns a unicode object instead of a string, and unicode can't be inserted into the DB as the filename. It can be fixed by casting the unicode text as a string: db.t_image.insert(f_image_file = *str(*db.t_image.f_image_file.store(file = image_file

[web2py] Problems validating SQLFORMs w/o DB IO

2016-01-03 Thread Anthony
Please show your code as well as the traceback. -- 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 th

[web2py] Problems validating SQLFORMs w/o DB IO

2016-01-03 Thread Scott Hunter
If I create a SQLFORM from a table, but avoid DBIO (either by just calling validate, or calling process(dbio=False).accept), if a required field is missing, instead of the form coming back w/ errors, It throws a NOT_IN_DB exception. If instead I use a SQLFORM.factory, missing required fields pa

[web2py] Re: web2py 2.13.3 is OUT

2016-01-03 Thread Dmitri Ermolaev
hey - do you see cryptocurrency Auth? in NEXT - http://nxt.org/ - it have token by user account in cryptocurrency четверг, 24 декабря 2015 г., 18:21:42 UTC+3 пользователь Massimo Di Pierro написал: > > web2py 2.13.3 is out. MERRY CHRISTMAS EVERYBODY!!! > > It contains some bug fixes for bugs int

[web2py] "Unable to handle upload" error when manually adding an entry for a file dropped into TinyMCE

2016-01-03 Thread Boa
I'm getting the Exception " Unable to handle upload" when attempting to insert a file uploaded with the TinyMCE text editor into a DB table. The TinyMCE editor allows the user to drag and drop image files directly into the editing window. I'm using BeautifulSoup to parse out the image files, a

[web2py] Re: Why this doesn't work as expected?

2016-01-03 Thread Anthony
On Sunday, January 3, 2016 at 9:36:56 AM UTC-5, RAGHIB R wrote: > > {{for x in uu:}} > > I think it does work as expected if you have read the documentation. The above code will insert a record into the db.store table with the value of the "stuff" field set to x.id. It appears what you want is

Re: [web2py] Why this doesn't work as expected?

2016-01-03 Thread Marin Pranjić
Change your expectations :P You are inserting into database while generating the view, before view even gets to the client (browser). Your "href" needs to point to a controller, for example: {{= x.name}} Then, in "mycontroller.py" file you need to have a "my_insert_function" like this: def my_

[web2py] Why this doesn't work as expected?

2016-01-03 Thread RAGHIB R
{{for x in uu:}} {{=x.name}} {{pass}} This doesn't work as expected. How to fix it? -- 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 me

[web2py] Re: Failing at Google Cloud SQL again: missing MySQLdb import somewhere?

2016-01-03 Thread Niphlod
glad to have fixed a solvable issue : waiting for the unsolvable :P On Sunday, January 3, 2016 at 3:29:54 AM UTC+1, Tom Campbell wrote: > > Argh, I should have updated this. Thank you for answering! Adding the > import to dev_appserver.py did not work. But I had to learn about pip > (ahem) and i

Re: [web2py] Re: what's wrong in this code? please help

2016-01-03 Thread Kiran Subbaraman
It will help if you work your way through the book. Start here, and understand the web2py concepts: http://web2py.com/books/default/chapter/29/03/overview#Simple-examples. You need to understand what a 'view', 'controller', 'model', etc are. This will help you understand the replies provided on

[web2py] Re: Changing navbar color

2016-01-03 Thread 'DenesL' via web2py-users
You could add the following to the end of web2py-bootstrap3.css .navbar { background-color: #963; background-image: none; } On Wednesday, December 16, 2015 at 8:10:22 PM UTC-5, Joe wrote: > > I am trying to change the background-color of the nav bar in the newest > web2py bootstrap 3 versi

[web2py] Re: SQLFORM.smartgrid with two references to same perent table

2016-01-03 Thread 'DenesL' via web2py-users
I see no way of blocking it in the source code. You could hide it using JS, something like: $('.row_buttons > a:nth-child(3)').addClass('hidden') On Friday, December 25, 2015 at 11:37:54 PM UTC-5, Jose Eleudson Gurgel Queiroz wrote: > > > *With this tables:* > db.define_table('tbProduct', \

[web2py] Re: what's wrong in this code? please help

2016-01-03 Thread RAGHIB R
{{for x in uu:}} {{=x.name}} {{pass}} This doesn't work as expected. -- 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

[web2py] Re: what's wrong in this code? please help

2016-01-03 Thread RAGHIB R
I appreciate the help Alessio. That sounds little complicated. So what if I do something like this. What should I do in place of the comment. Will be thankful for your help. {{for x in uu:}} {{pass}} -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.co

[web2py] Re: what's wrong in this code? please help

2016-01-03 Thread Alessio Varalta
you can simple create a form like in the web2py guide and a controller that references the from see web2py guide that are basic exmpale you can't do all operation in the view and you put the update and insert operation in the controller not in the view, in the view only select On Sunday, 3 Janu

[web2py] Re: what's wrong in this code? please help

2016-01-03 Thread RAGHIB R
{{=A ... Can be used but it is only for URL. Please help me out of this. This is nowhere in the book. -- 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