[web2py] Re: Uploading multiple images in web2py

2016-07-06 Thread Massimo Di Pierro
Mind that with modern browsers (tested on chrome), dropzone is not necessary as it is the default behavior. All you need to do is use CSS to style the to make it clear to users they can drop files there. On Tuesday, 5 July 2016 16:28:11 UTC-5, Fabio Ceccarani wrote: > > I'm trying with dropzon

[web2py] Re: Use a controller with upload and auth.wiki, page is unresponsive

2016-07-06 Thread Daniel Vogel
Hi Anthony Thanks for the hint. If I use a URL instead the component, it should work. I tried with a Link on the wiki page and it works. [[Edit Picture [Edit] @//picture/form_a.html]] Daniel On Saturday, July 2, 2016 at 3:18:33 PM UTC+2, Daniel Vogel wrote: > > Hi > > I use a controller to up

[web2py] Re: new experimental feature in trunk - rows.join(...)

2016-07-06 Thread Marlysson Silva
Great funcionality!! Em terça-feira, 5 de julho de 2016 15:20:06 UTC-3, Massimo Di Pierro escreveu: > > db = DAL() > > db.define_table('person',Field('name')) > > db.define_table('thing',Field('name'),Field('owner','reference person')) > > > for name in ('Max','Tim','Jim'): > > i = db.person.

[web2py] Re: Bootstrap datepicker plugin

2016-07-06 Thread Donald McClymont
This is nice and a great improvement for dates. I thought I could easily replicate for datetime by using this which seems to be a fork of the original to allow time input as well http://www.malot.fr/bootstrap-datetimepicker/demo.php?utm_source=siteweb&utm_medium=demo&utm_campaign=Site%2BWeb ht

Re: [web2py] Re: Identifyng Relationship

2016-07-06 Thread Carlos Cesar Caballero Díaz
Hi Anthony, that's exactly what I need, because (among other things) when the parent key is part of the child primary key I can do something like child.parent_id, and it works the same with a relationship of depth n, for example in the relation author-book-page-sentence-word, I can ask what aut

[web2py] Re: new experimental feature in trunk - rows.join(...)

2016-07-06 Thread Ron Chatterjee
I am not too familiar with python way of looping since I come from traditional coding background. How would this for loop be implemented? in terms of. persons = {'Max','Tim','Jim'}; item = {'Chair','Table','Bike''}; #nested for loop. for i in range of len(persons): ii = db.person.inser

[web2py] Re: new experimental feature in trunk - rows.join(...)

2016-07-06 Thread Anthony
It's not quite clear what you are asking. It looks like you are implementing the same looping as in Massimo's original example -- what was wrong with that code? Anyway, if you want to use an index in the loop, it would be range(len(persons)). Anthony On Wednesday, July 6, 2016 at 11:12:27 AM U

Re: [web2py] Re: Identifyng Relationship

2016-07-06 Thread Anthony
On Wednesday, July 6, 2016 at 8:39:57 AM UTC-4, Carlos Cesar Caballero wrote: > > Hi Anthony, that's exactly what I need, because (among other things) when > the parent key is part of the child primary key I can do something like > child.parent_id, and it works the same with a relationship of de

[web2py] Re: new experimental feature in trunk - rows.join(...)

2016-07-06 Thread Ron Chatterjee
range (0, len (item)). a define incremental value defaulted as 1. I am saying there is another way to write the same. But you are right Anthony. Its same. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.g

[web2py] Re: new experimental feature in trunk - rows.join(...)

2016-07-06 Thread Anthony
On Wednesday, July 6, 2016 at 1:21:33 PM UTC-4, Ron Chatterjee wrote: > > range (0, len (item)) That's the same as range(len(item)). Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/we

Re: [web2py] Re: new experimental feature in trunk - rows.join(...)

2016-07-06 Thread Marlysson Silva
To get the index of list , too could use "for index, value in enumerate(list)" . 2016-07-06 14:24 GMT-03:00 Anthony : > On Wednesday, July 6, 2016 at 1:21:33 PM UTC-4, Ron Chatterjee wrote: >> >> range (0, len (item)) > > > That's the same as range(len(item)). > > Anthony > > -- > Resources: >

[web2py] How can I keep the user input value in form after user submit the form?

2016-07-06 Thread Jing Lu
Dear Web2Py developers, Is there any way that I can keep the user input value in the form using SQLFORM? Thanks, Jing -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Re

[web2py] Re: How can I keep the user input value in form after user submit the form?

2016-07-06 Thread isi_jca
Hi!!! http://web2py.com/books/default/chapter/29/07/forms-and-validators#keepvalues Sometime you want an insert form that, upon submission and after the insert, retains the preceding values to help the user insert a new record. This can be done: db=SQLDB('sqlite://db.db') db.define_table('use

[web2py] Re: Bootstrap datepicker plugin

2016-07-06 Thread Donald McClymont
This now seems to be along the correct lines - the issue I had was a styling conflict with calendar.css file in web2py for the hour class being set to 2em and my hack for now to fix was to append the following to the std datetimepicker.css that can be downloaded however not sure if there is a

[web2py] Re: How can I keep the user input value in form after user submit the form?

2016-07-06 Thread Jing Lu
Thanks! That works perfectly. Best, Jing On Wednesday, July 6, 2016 at 6:33:35 PM UTC-4, isi_jca wrote: > > Hi!!! > > > http://web2py.com/books/default/chapter/29/07/forms-and-validators#keepvalues > > > Sometime you want an insert form that, upon submission and after the > insert, retains th

[web2py] choosing radio and submit inputs in view

2016-07-06 Thread lucas
hello one and all, i'm asking for the best way to chose the single radio input under the view when you setup the field with widget=SQLFORM.widgets.radio.widget. so i know that under the view you would setup something like: {{=form.custom.begin}} {{=form.custom.widget.report_default_report['some