[web2py] Form self-submit broken after redirection

2013-11-21 Thread weheh
I couldn't find this in my search of threads, so apologies if already answered. I'm opening a dialog and putting an ordinary form in the dialog. If the user presses the form's submit button, the form's controller gets called and the form.process().accepted step gets executed. Good so far. How

Re: [web2py] Re: Virtual Field and sqlform.grid

2013-11-21 Thread Tim Richardson
On Thursday, November 21, 2013 11:29:36 PM UTC+11, Eduardo Cruz wrote: > > I does not work, sadly. > Where does it fail? is the id passed to the function ok? > On Wednesday, November 20, 2013 6:52:56 PM UTC-4, Tim Richardson wrote: >> >> Also, my experience with virtual fields is limited

[web2py] Re: version 2.7.4 (windows) cannot edit files in the Browser

2013-11-21 Thread Dave S
On Thursday, November 21, 2013 5:39:26 PM UTC-8, Dreamer wrote: > > Hi all, > I just updated Web2py from 2.4 to 2.7.4 ; However i cannot edit any file > (web2py file) in the browser...any reason why that might be happening the > rest all works jus fine...i am using google chrome as my default bro

[web2py] version 2.7.4 (windows) cannot edit files in the Browser

2013-11-21 Thread Dreamer
Hi all, I just updated Web2py from 2.4 to 2.7.4 ; However i cannot edit any file (web2py file) in the browser...any reason why that might be happening the rest all works jus fine...i am using google chrome as my default browser.. Regards Cshekhar -- Resources: - http://web2py.com - http://web2

Re: [web2py] Re: Bootstrap modal window with date widget

2013-11-21 Thread Richard Vézina
z-index Richard On Wed, Nov 20, 2013 at 7:55 PM, webpypy wrote: > Hi, > > in version 2.7.4, , the calendar popup pops up behind the modal window. > > Ashraf > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) >

Re: [web2py] UWSGI memory error

2013-11-21 Thread Roberto De Ioris
> I am testing out nginx/uwsgi on our production server over an ssh tunnel. > > The server is working hard (load average of 9-14 constantly) and I am > running long running queries (some more than 40 minutes). > > I have seen this in the logs now and am a bit concerned about it and would > like to

[web2py] Re: {{=form.custom.widget.fieldname}} for Remember me checkbox

2013-11-21 Thread Michael Gheith
Great, thanks for this Anthony! On Thursday, November 21, 2013 2:31:18 PM UTC-6, Anthony wrote: > > Because that field is not part of the database table, it isn't part of the > SQLFORM and therefore not in form.custom.widget. Instead, it is added to > the form DOM after the form has been created

Re: [web2py] Re: Virtual Field and sqlform.grid

2013-11-21 Thread Massimo Di Pierro
What do you mean by "does not work"? Can you show a traceback? There should be no problem to returning lists. On Thursday, 21 November 2013 06:29:36 UTC-6, Eduardo Cruz wrote: > > I does not work, sadly. > > On Wednesday, November 20, 2013 6:52:56 PM UTC-4, Tim Richardson wrote: >> >> Also, my ex

[web2py] Re: DAL table definition behaves differently in model ...versus... a module method ??

2013-11-21 Thread Niphlod
generally, as soon as the table is defined and the corresponding .table file is not found on the databases/ folder, it will be created. "generally" applies to every scenario unless lazy_tables = True. In that case, the table is actually defined as soon as there is an attempt to access it (that's

Re: [web2py] Re: DAL db.table.field.contains

2013-11-21 Thread Niphlod
why contains instead of == ? db(db.Book.Author == Author.id).select(db.Book.ALL, orderby=db.Book.Name) On Thursday, November 21, 2013 4:31:53 PM UTC+1, Richard wrote: > > Ok, figured out, I think, what happen is that you use index to get record > in l (that actually is a pretty bad variable name

[web2py] Re: {{=form.custom.widget.fieldname}} for Remember me checkbox

2013-11-21 Thread Anthony
Because that field is not part of the database table, it isn't part of the SQLFORM and therefore not in form.custom.widget. Instead, it is added to the form DOM after the form has been created. If you want just the checkbox widget, you can do: {{=form.element('input#auth_user_remember')}} Anth

Re: [web2py] DAL db.table.field.contains

2013-11-21 Thread Richard Vézina
Each book that refer to an Author will only has one Author what the problem there? You may want to aggregate the book for one author in the same cell of a table that is another thing that you could address in different way... Most probably iter over all the book for an author and build manually a

[web2py] {{=form.custom.widget.fieldname}} for Remember me checkbox

2013-11-21 Thread Michael Gheith
My controller is: def index(): return dict(form=auth.login()) I'm trying to customize the web2py login form in the view like the following: {{=form.custom.begin}} E-mail: {{=form.custom.widget.email}} Password: {{=form.custom.widget.password}} Login: {{=form.custom.submit}} {{=form.custom.

[web2py] DAL table definition behaves differently in model ...versus... a module method ??

2013-11-21 Thread floydpetrus
Hi there fellow web2py-users ! At the moment I'm working with / supervising a web2py-driven project .in which we use both " db.define_table( . " (in model) and " current.db.define_table( . " (in some module methods that handles the creation of data-relations from user-triggered

Re: [web2py] DAL db.table.field.contains

2013-11-21 Thread Richard Vézina
.contains() should do that... Could you post model and controller, the issue is maybe somewhere else in your code. Richard On Thu, Nov 21, 2013 at 9:59 AM, Kevin Bethke wrote: > each book has one author but I want to select all Books which have Author > id=7 > > > On Thu, Nov 21, 2013 at 3:30

Re: [web2py] Re: DAL db.table.field.contains

2013-11-21 Thread Richard Vézina
Ok, figured out, I think, what happen is that you use index to get record in l (that actually is a pretty bad variable name since it could be confused with 1 - ONE with some fonts)... By using an index you always get only the first row in rows because your "l" variable is a rows object that contain

[web2py] Re: DAL db.table.field.contains

2013-11-21 Thread BlueShadow
def Authors(): AL=db().select(db.Author.ALL, orderby=db.Author.Name) TheList=[] for Author in AL: l=db(db.Book.Author.contains(Author.id)).select(db.Book.ALL, orderby =db.Book.Name) if len(l)>0: TheList.append([l[0]]) else: TheList.append(

Re: [web2py] DAL db.table.field.contains

2013-11-21 Thread Kevin Bethke
each book has one author but I want to select all Books which have Author id=7 On Thu, Nov 21, 2013 at 3:30 PM, Richard Vézina wrote: > Each book that refer to an Author will only has one Author what the > problem there? > > You may want to aggregate the book for one author in the same cell of

Re: [web2py] DAL db.table.field.contains

2013-11-21 Thread Richard Vézina
Also, version of web2py and backend you use may be helpfull, if you found a bug... Richard On Thu, Nov 21, 2013 at 10:08 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > .contains() should do that... > > Could you post model and controller, the issue is maybe somewhere else in > your

[web2py] UWSGI memory error

2013-11-21 Thread Johann Spies
I am testing out nginx/uwsgi on our production server over an ssh tunnel. The server is working hard (load average of 9-14 constantly) and I am running long running queries (some more than 40 minutes). I have seen this in the logs now and am a bit concerned about it and would like to know how can

Re: [web2py] Re: Virtual Field and sqlform.grid

2013-11-21 Thread Eduardo Cruz
I does not work, sadly. On Wednesday, November 20, 2013 6:52:56 PM UTC-4, Tim Richardson wrote: > > Also, my experience with virtual fields is limited to returning > non-iterable types, not lists. > > On Thursday, November 21, 2013 9:48:57 AM UTC+11, Tim Richardson wrote: >> >> I can't see what'

Re: [web2py] UWSGI memory error

2013-11-21 Thread Johann Spies
Thanks. I have missed that one. I have doubled it now from 512 to 1024. Regards Johann On 21 November 2013 15:00, Roberto De Ioris wrote: > > > I am testing out nginx/uwsgi on our production server over an ssh tunnel. > > > > The server is working hard (load average of 9-14 constantly) and I

[web2py] DAL db.table.field.contains

2013-11-21 Thread BlueShadow
Hi I got two tables Books and Authors Book(Name,List:Author,...) each book has at least one author now I want to have a list of all the books one Author has written. So I came up with this line of code: l=db(db.Books.Author.contains(Author.id)).select(db.Books.ALL, orderby=db: Books.Name) which wor

[web2py] Select Image In Custom Registration

2013-11-21 Thread Noah Corradin
I have a custom registration form and i am getting a good grasp of the concepts behind customizing the auth_table. I was curious about one thing i could not find a good direction for. I want users to be able to select an image from a drop down menu at the registration page for their avatar. A

[web2py] Uploading file through restful webservice

2013-11-21 Thread Raj Chinna
Can someone give me a pointer.. I am waiting for the response.. -- 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