[web2py] Re: bootstrap 3 - if you care help test trunk now

2014-08-30 Thread Joe Barnhart
I think there may be a change in operation for contains() in the DAL. With the last release, I can use an empty string as an argument to contains, and it will return all values (i.e. the empty string matches all). In the trunk version the empty string matches nothing. I don't know which is

Re: [web2py] How can I prevent a user from pressing the browser's back button?

2014-08-30 Thread Marin Pranjić
You can't. This is something you should take care of on server side. Use session to store user's state, or store it in DB. On Tue, Aug 26, 2014 at 11:36 PM, Fotis Gioulekas gioule...@gmail.com wrote: Hello to everybody, I have built a quiz that randomlycreates questions. Each time a user

Re: [web2py] Re: Can't get web2py working with GAE locally

2014-08-30 Thread Richard Baron Penman
oh, where is that documented? I didn't find it in the help message (web2py.py -h) or the book. On Sat, Aug 30, 2014 at 1:31 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: But now we simply do web2py.py -G GAE and everything is taken care for you you automatically. On Wednesday,

[web2py] Creating tutorial videos.

2014-08-30 Thread Jason Brower
I was thinking of making some tutorial videos showing how to get started with web2py. These could be link from the online book and perhaps even available in the app admin or other place. I could even see the videos used in a special every growing app of all the tutorials with live examples.

[web2py] Re: How can I prevent a user from pressing the browser's back button?

2014-08-30 Thread Anthony
The details will depend on exactly how you want to control access to quiz questions, but the general solution would be to store the user state in the session, and when a particular page/question is requested, check the session, and redirect elsewhere if the session check fails. Anthony On

[web2py] smartgrid form submit button behaviour

2014-08-30 Thread 98ujko9
1) smartgrid produces a form for a new record 2) I click on an input field and with the help of javascript smaller (second) browser window opens with related table content 3) I select a row in the window and ID is inserted in the first window field, the smaller second window closes. 4) I click

[web2py] Re: Creating tutorial videos.

2014-08-30 Thread Anthony
Be sure to check out what's already been done: https://www.youtube.com/playlist?list=PL5E2E223FE3777851 https://www.youtube.com/watch?v=BXzqmHx6edY http://www.web2py.com/examples/default/videos/ Anthony On Saturday, August 30, 2014 10:19:29 AM UTC-4, Encompass solutions wrote: I was thinking

Re: [web2py] Re: Can't get web2py working with GAE locally

2014-08-30 Thread Massimo Di Pierro
You need the nightly build version. On Saturday, 30 August 2014 02:06:08 UTC-5, Richard Penman wrote: oh, where is that documented? I didn't find it in the help message (web2py.py -h) or the book. On Sat, Aug 30, 2014 at 1:31 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote:

[web2py] Enter date as 1963-08-28 error

2014-08-30 Thread Richard
I have used an sql form for adding records with date fields. After some changes the error Enter date as 1963-08-28 pops up when entering a date. In db.py db.define_table('local_ev_def', ... Field('ev_start_date', 'date', required=True,

[web2py] Help in server config

2014-08-30 Thread Carlos Correia
Hi, After migrating a web2py tree with several apps from one server to the other, I found that in the new server I had to put a symbolic link in admin/static to itself with the release name prefixed by an underscore in order to get a normal (css/js) admin interface, i.e., in

[web2py] Re: two forms submitted into the same cotroller

2014-08-30 Thread Andrey K
Hi Massimo, Here is my dilemma: I have one view with 3 tabs (DIVS), where I would like to have one tab for user tool selection and two forms in 2 separated tabs(DIVs) : 1)static form and 2)dynamic form(generated based on user selection in first tab). Also I would like to submit all information

[web2py] Re: Insert a record after user has been verified

2014-08-30 Thread Anthony
Maybe something like: def add_company(user_set, fields): if 'registration_key' in fields and not fields['registration_key']: for user in user_set.select(): dbs.company.update_or_insert(name=user.Company, created_by=user. id) dbs.auth_user._after_update.append(add_company)

[web2py] Re: two forms submitted into the same cotroller

2014-08-30 Thread Massimo Di Pierro
I believe your problem is the XY problem. http://mywiki.wooledge.org/XyProblem Y = submitting to forms to the same controller. Do no ask about Y. What it your original problem X for which you think Y is a good solution? On Saturday, 30 August 2014 15:24:16 UTC-5, Andrey K wrote: Hi Massimo,

[web2py] new web2py videos

2014-08-30 Thread Massimo DiPierro
Nico has helped edit and re-organize some my class lectures about web2py. They are now split into 30 small videos: https://vimeo.com/album/3016728 Please join me in thanking Nico. Massimo -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] Re: Virtual Fields in auth_user?

2014-08-30 Thread Tim Korb
Did you ever get this working? I tried the same thing, adding Field.Virtual('last_first', lambda row: %s, %s % (row.auth_user.last_name, row.auth_user.first_name)) to auth.settings.extra_fields['auth_user'], but get the same error message when trying to build the SQLFORM.grid. Tim

[web2py] web2py database migration workflow

2014-08-30 Thread Diogo Munaro
Hey guys, I was thinking about web2py migrates and how control database version. I did a workflow that take care of database version control and it's extensible for a lot of version controls (like git or mercurial, but by now only git) and databases (by now only mysql and postgres, but

[web2py] Re: web2py resources

2014-08-30 Thread Massimo Di Pierro
+ videos: https://vimeo.com/album/3016728 On Monday, 30 April 2012 14:49:41 UTC-5, Anthony wrote: Most web2py resources can be found on web2py.com, but here are some Google Groups topics identifying additional resources: web2py help resources

[web2py] SQLFORM.accept is clobbering formstyle='bootstrap' when custom widgets are used

2014-08-30 Thread Jeremy Field
I believe this line https://github.com/web2py/web2py/blob/master/gluon/sqlhtml.py#L1499 in sqlhtml.py is disturbing the way formstyle_bootstrap displays custom widgets: parent.components = [widget] The older formstyles (table3cols, table2cols, etc) all wrap their controls within a dedicated