Re: [web2py] Re: Alternative to Janrain: in pure Python

2012-08-14 Thread Massimo Di Pierro
I opened an issue about this. On Tuesday, 14 August 2012 12:52:52 UTC-5, Alec Taylor wrote: > > Can we get an update? > > I think this would be a good selling point for web2py, if ported. > > On Thursday, July 19, 2012 8:12:43 AM UTC+10, Daniel Gonzalez wrote: >> >> Hi, >> >> I have tried the exam

[web2py] Re: Electronic voting anybody?

2012-08-14 Thread Massimo Di Pierro
I rewrote most of the logic and I am posting a new version tonight. Please check again tomorrow. On Tuesday, 14 August 2012 15:14:29 UTC-5, Rob_McC wrote: > > Very cool app. > > I noticed following: > > 1- Had to add security exception in Firefox browser, https:// when I > clicked on > https://t

[web2py] Re: client-side validation plugin

2012-08-14 Thread Franco
Ups, I made a double post. Anyway if there are any interested, here is an example of use: def validation(): from plugin_ValidationEngine import JsSQLFORM f = JsSQLFORM.factory( Field('first_name', requires = [IS_NOT_EMPTY(), IS_LENGTH(20, 3)],label = 'First Name'),

[web2py] Re: DAL belongs() fails on App Engine

2012-08-14 Thread spiffytech
Yep, that fixes it! Thanks for your work on that! On Tuesday, August 14, 2012 6:18:29 PM UTC-4, howesc wrote: > > i added a patch against trunk to the ticket. spiffytech - can you see if > that works for you? > > cfh > > On Monday, August 13, 2012 12:20:02 AM UTC-7, howesc wrote: >> >> we do sp

[web2py] Re: What purpose? Search - Edit App Screen - web2py application, v 1.99 and 2.00

2012-08-14 Thread Anthony
I already submitted a ticket. Anthony On Tuesday, August 14, 2012 8:44:17 PM UTC-4, Massimo Di Pierro wrote: > > Please submit a ticket. I can fix this tonight. > > On Tuesday, 14 August 2012 11:48:36 UTC-5, Rob_McC wrote: >> >> Hey! >> >> > we're counting how many times you click on it. ;-) >> .

[web2py] Re: howto subset a select element

2012-08-14 Thread lucas
ok, moving along, what if i want the option of allowing the user to leave: ... Field('lecture_item_id', db.lecture_items, requires=IS_IN_DB(db, db.lecture_items.id, '%(title)s (%(id)s)')), ... blank. meaning, if the user choses it in the select element, fine, it should be in the refer

[web2py] Re: howto subset a select element

2012-08-14 Thread Anthony
IS_EMPTY_OR(IS_IN_DB(db, db.lecture_items.id, '%(title)s (%(id)s)')) Anthony On Tuesday, August 14, 2012 10:59:42 PM UTC-4, lucas wrote: > > ok, moving along, > > what if i want the option of allowing the user to leave: >... >Field('lecture_item_id', db.lecture_items, requires=IS_IN_DB(db

Re: [web2py] Re: client-side validation plugin

2012-08-14 Thread Alec Taylor
Thanks a heap Franco :) The only suggestion I have is to add the `IS_MATCH` validator On Wed, Aug 15, 2012 at 11:12 AM, Franco wrote: > Ups, I made a double post. Anyway if there are any interested, here is an > example of use: > > def validation(): > > > > from plugin_ValidationEngine impo

[web2py] Monitoring scheduler with supervisord

2012-08-14 Thread Yarin
I'm trying to use supervisord to monitor scheduler workers. My supervisord.conf file: [program:my_scheduler] command={my_site_path}/web2py/web2py.py -K my_app When I launch supervisord, a worker shows up in the scheduler. However, when I compare the listed pid in the supervisord console, it doe

[web2py] Re: What purpose? Search - Edit App Screen - web2py application, v 1.99 and 2.00

2012-08-14 Thread Massimo Di Pierro
Thanks. fixed. Let me know if there are still problems. On Tuesday, 14 August 2012 21:25:48 UTC-5, Anthony wrote: > > I already submitted a ticket. > > Anthony > > On Tuesday, August 14, 2012 8:44:17 PM UTC-4, Massimo Di Pierro wrote: >> >> Please submit a ticket. I can fix this tonight. >> >> On

[web2py] Re: session[id].r['Nav']['function']=True TypeError: 'NoneType' object is unsubscriptable

2012-08-14 Thread Annet
Hi Anthony, I meant if "r" does not exist within session -- although "r" exists at the > top level, there is no session.r defined, is there? > No, session[id] is defined, session.r is not. Now I understand why f=r['Nav']['function'] if f: session[id].f=True does work. Thanks for

[web2py] Re: comparing responding arg with request.args(0)

2012-08-14 Thread Annet
Hi Anthony, > >> Is it possible to put these conditions in a separate function, and call >> that function from every function that needs it? Something like: >> > > Yes, I was going to suggest that. > Yes, coding it the way I did was rather ugly. For now I'll use this solution, after finishing

[web2py] custom built login form

2012-08-14 Thread shartha
Hello, Quick question: Instead of {{=auth.login()}}, I am using the following to be able to customize my login form. However the resulting form does not work and I cannot login with the same username/password that enable me to login if I had used {{=auth.login()}} -- I get the flash error: Inva

[web2py] editing modules in modules folder

2012-08-14 Thread Janath
Hi, I have kept some subroutines in modules folder of a web2py application. I have been trying to edit those modules but was unable. Changes doesn't reflect, even when I delete the compiled version from the folder. Is that the way it designed or I am I doing something wrong? Appreciate your res

[web2py] Model-less approach should be standadized in web2py in future releases ...

2012-08-14 Thread David Marko
Something like this https://snipt.net/rochacbruno/again-an-approach-to-model-less-in-web2py/ should be standardized in web2py in future releases. There are a few concepts described in this forum but web2py needs some standardized approach integrated into core ... is there any discussion on thi

[web2py] [ANNOUNCE] FPDF for python v1.7: unicode ttf support, png alpha channel and more!

2012-08-14 Thread Mariano Reingart
I'm pleased to announce the 1.7 release of FPDF for python (pyfpdf) library, a port of the "Free-PDF" generator originally developed in PHP: https://code.google.com/p/pyfpdf/ Changelog: * added UTF-8 TTF font subset embedding * experimental Py3K compilance * added PNG alpha channel support *

[web2py] Adding hyperlink to response.subtitle?

2012-08-14 Thread Alec Taylor
In menu.db I tried with: response.subtitle = T('Aggregator for')+A('Company', _href='http://company.org/') And response.subtitle = T('Aggregator for')+'http://company.org/";>Company') But neither rendered the hyperlink, both left me with a subtitle displaying "a href"… How do I add a hyperl

Re: [web2py] Adding hyperlink to response.subtitle?

2012-08-14 Thread Bruno Rocha
response.subtitle = *XML*(T('Aggregator for')+A('Company', _href=' http://company.org/')) *Bruno Cezar Rocha** - @rochacbruno* rochacbr...@gmail.com | Mobile: +55 (11) 99210-8821 www.CursoDePython.com.br | www.rochacbruno.com.br Blog: Open links which points outside your own site in a new window

[web2py] Re: editing modules in modules folder

2012-08-14 Thread lyn2py
Modules will persist. Use this code in your controller in development mode :) from gluon.custom_import import track_changes; track_changes(True) On Wednesday, August 15, 2012 1:55:16 PM UTC+8, Janath wrote: > > Hi, > I have kept some subroutines in modules folder of a web2py application. I >

[web2py] Re: custom built login form

2012-08-14 Thread lyn2py
Maybe you can show us the controller code? The controller needs to have code that looks something like: form=SQLFORM(db.table) if form.process().accepted: response.flash = 'form accepted' elif form.errors: response.flash = 'form has errors' return dict(form=form)

<    1   2