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
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
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
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
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)
>
> 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
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
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
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
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
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
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
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.
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
.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
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
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(
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
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
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
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'
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
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
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
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
25 matches
Mail list logo