[web2py] Alternate solutions for the SELECT generated by list:reference, multiple=True

2015-01-18 Thread Wes Hall
Problem: db field uses type='list:reference *other_table*', multiple=True. I need to an easy-to-use UI to search the referenced table, offer auto-complete and create a separate input for each selection to make selecting multiple options deliberate and obvious. I started out with something along

[web2py] Re: FORM factors (controlling input box size)

2015-01-18 Thread Wes Hall
Any issues with using jQuery? In your controller: INPUT(_name='left', requires=[IS_NOT_EMPTY(), IS_HEXSTR()], _id= 'activation_left'), And in your view: jQuery('#activation_left').width(50); You could also attempt to solve the root problem (css) by adding your own custom css that takes preceden

[web2py] Re: Ajax call does not redirect.

2015-01-18 Thread Leonel Câmara
Hey, For ajax calls you need to use: redirect(URL('default', 'display_canvas', args=[screen_width]), client_side=True) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (

[web2py] Routes for 2 domains and 2 apps

2015-01-18 Thread Jean-François Milants
Hi, I currently have a web2py app running on my server. Lets call it App1. I created a VirtualHost for my Apache so that 'domain1' points to this app. This app supports 2 languages (fr and en). I already have a certificate for this domain, so, it is running in HTTPS. Now, I want to add a secon

[web2py] WebSockets, AMQP, Where to Place Code

2015-01-18 Thread Phil
Caveat: I am not knowledgeable about web development. Situation: Our company develops IoT software enabling IoT product developers to easily connect their sensors to a backend datastore through amqp. Recently, a key player left and I must complete a demonstration that allows configuration of da

Re: [web2py] Re: web3py status

2015-01-18 Thread Massimo Di Pierro
py4web? On Sunday, 18 January 2015 15:22:10 UTC-6, Michele Comitini wrote: > > the 3 in web3py is not related to python3, just as the 2 was not related > to python2. > > We could skip the 3 and use 4 which is much more meaningful :-) > > look: > web 2(to) py > web 4(for) py > > and compare: > web

[web2py] request.now - one day

2015-01-18 Thread Mark Anderson
Should be an easy one... How do I subtract one day from a request.now? Seems like it should be easy but I can't find clear documentation. I tried subtracting 86400 but request.now is in a datetime format. Thanks in advance. -- Resources: - http://web2py.com - http://web2py.com/book (Documenta

[web2py] where to find syntax smart_query

2015-01-18 Thread olivier hubert
I use smart_query in my project but I can't found a complete supported syntax in the documentation. Have you more info about that or a reference of the syntax analyser in the web2py code ? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web

[web2py] Ajax call does not redirect.

2015-01-18 Thread James O' Driscoll
I am creating a canvas on a webpage to display some graphics. In order to create the graphics I need to grab the screen size of the device. To do this I am using a ajax call in the header of the view of the display_canvas function to pass the screen width to a helper function which redirect

[web2py] Re: Stripe - Create a customer.

2015-01-18 Thread UG
Thanks for the pointer. It was quite easy but as a beginner it took me a while to figure this out, so i thought i would write what i did in the hope it helps someone else. I followed the instructions in the documentation. https://stripe.com/docs You need to install the API as described then yo

[web2py] Re: web2py 2.9.12 is OUT

2015-01-18 Thread Ariya Owam-aram
Thank you, On Saturday, January 17, 2015 at 1:20:14 PM UTC+7, Massimo Di Pierro wrote: > > Changelog: > > - Modular DAL, thanks Giovanni > - Added coverage support, thanks Niphlod > - More tests, thanks Niphlod and Paolo Valleri > - Added support for show_if in readonly sqlform, thanks Paolo > -

Re: [web2py] Re: web3py status

2015-01-18 Thread Michele Comitini
the 3 in web3py is not related to python3, just as the 2 was not related to python2. We could skip the 3 and use 4 which is much more meaningful :-) look: web 2(to) py web 4(for) py and compare: web 3(???) py?? 2015-01-17 7:22 GMT+01:00 Massimo Di Pierro : > Nothing anytime soon. Stick with

[web2py] Re: web2py 2.9.12 is OUT

2015-01-18 Thread Ron McOuat
Downloaded the source package, unzipped, put in the two symlinks for the apps and updated any files in the apps derived from the scaffolding. Tested one app developed 2 years ago, another I am working on, all is good. Thank you, Ron -- Resources: - http://web2py.com - http://web2py.com/book

Re: [web2py] web2py 2.9.12 is OUT

2015-01-18 Thread Martin Weissenboeck
On a testsystem I have installed version 2.9.11. Afterwarsd I copies all the files of version 2.9.12beta over this version - 2.9.12beta worked fine. Now I have used the "upgrade button" and I got this error "unable to upgrade because "[Error 13] Permission denied: '/home/www-data/web2py/applicatio

[web2py] Re: Web2Py compute fields not working on update

2015-01-18 Thread 黄祥
hi, i face the same problem, when trying to update the other table that have computed field with after_update callback. e.g. # after_update_purchase_header def __after_update_purchase_header(s, f): purchase = s.select().first() # purchase_header db(db.purchase_detail.purchase_no == purchase.id).

[web2py] Re: Mixing pydal with web2py - how to manage the non-web2py setup

2015-01-18 Thread Niphlod
if it exist already you don't need .table at all. just set migrate=False. .table files are web2py way of tracking what is supposed to be already in the database for two reasons: - if you define a table that doesn't exist, create it - if you changed the definition of a table (e.g. added a field),

[web2py] Re: web2py 2.9.12 is OUT

2015-01-18 Thread Richard D
I upgrade manually from 2.9.11 to 2.9.12, looks fine so far, thank you :) Richard D On Saturday, January 17, 2015 at 7:20:14 AM UTC+1, Massimo Di Pierro wrote: > > Changelog: > > - Modular DAL, thanks Giovanni > - Added coverage support, thanks Niphlod > - More tests, thanks Niphlod and Paolo Val

[web2py] Re: web2py 2.9.12 is OUT

2015-01-18 Thread Oli
Is it possible that there is an errory in 2.9.12 with simplejson? Traceback (most recent call last): File "/home/oliver/apps/web2py/gluon/restricted.py", line 224, in restricted exec ccode in environment File "/home/oliver/apps/web2py/applications/stoppwatch/controllers/default.py"