[web2py] Re: Raspberry Pi: 'CommonDialect' object has no attribute 'quote_template'. How come?

2016-06-30 Thread Ben Lawrence
Thanks. For the record I know what I did wrong. The error is caused by my installing sudo pip install pydal first, and then installing web2py. Apparently the pip version is behind the current version of pydal, and as web2py was using the pip version, there were errors. In the first case, where

[web2py] Menu not working after redirecting to another view

2016-06-30 Thread ktesr123456
Team I am redirecting to a view using {{redirect(URL('ShowData')) the menu is not working as both the views got "extend layout.hml" it is overwriting and blocking the menu to work I have a menu with 5 menu items in it, when the first view loads it works fine but after redirecting to another vi

[web2py] Re: Update a form with new attributes

2016-06-30 Thread Jing Lu
OK, i figure it out by adding a hidden function to generate the form. On Wednesday, June 22, 2016 at 1:23:56 PM UTC-4, Jing Lu wrote: > > Hi Web2py developers, > > I have a trivial question, but I don't know how to solve. My index.html > has a form with some default parameters. I get the input fr

[web2py] How to use the administrator account to check error for apache + web2py framework?

2016-06-30 Thread Jing Lu
Dear Web2py developers, The admin is blocked by the apache config. If I still want to use admin account to check error information, what should I do? Thanks, Jing -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https

[web2py] Re: jQuery.web2py.component "Synchronous XMLHttpRequest ..." error

2016-06-30 Thread Michael Beller
arghh ... this one was a pain. For the record: I had created a listener on the modal's show event to load the component (using the code below). Datepicker also triggers an event it calls show. Since it was loading within the scope of the modal, it would trigger the show listener when it was o

[web2py] Re: Raspberry Pi: 'CommonDialect' object has no attribute 'quote_template'. How come?

2016-06-30 Thread Niphlod
download a stable release first and foremost there's no way to tell what On Thursday, June 30, 2016 at 6:42:59 AM UTC+2, Ben Lawrence wrote: > > Wait, no, I just downloaded the web2py software from the original > raspberry pi that I installed and functioned ok. I get the same error. Let >

[web2py] Re: accesskey for form

2016-06-30 Thread Anthony
Aside from that approach, there are two other options if you don't want to have to create a custom form in the view. First, you can define a custom widget for a given field: db.define_table(..., Field('myfield', ..., widget=lambda f, v: SQLFORM.widgets.radio.widget(f , v, _accesskey='x')),

[web2py] Re: SQL Server question, transactions remaining open

2016-06-30 Thread Jason Solack
Thank you for the replies! I am going to try being more explicit and see if that cleans things up On Wednesday, June 29, 2016 at 5:53:36 PM UTC-4, Dave S wrote: > > > > On Wednesday, June 29, 2016 at 11:59:23 AM UTC-7, Niphlod wrote: >> >> you need to be explicit everywhere if you are not in a w

[web2py] Re: accesskey for form

2016-06-30 Thread Marlysson Silva
Try use custom.form, and you add some property: form.custom.widget.field_name["_accesskey"] = "some_key" Em quinta-feira, 30 de junho de 2016 10:22:58 UTC-3, ahz...@gmail.com escreveu: > > How do I define HTML accesskeys (keyboard shortcuts) for a form, so the > user can quickly enter data wit

[web2py] accesskey for form

2016-06-30 Thread ahz001
How do I define HTML accesskeys (keyboard shortcuts) for a form, so the user can quickly enter data without the mouse? I want to enable shortcuts for two elements: a list:string (rendered as RADIO) and the submit button. The list always has exactly three choices, and the form is rendered simpl