[web2py] easy way to validate a list of emails?

2011-07-05 Thread Luis Goncalves
Hello!!! I have a form where an organizer can input a list of comma-separated email address, so that each person receives an invitation to register on the website (you can only register for the site if you have an invitation). Is there an easy way to get the "if form.accepts()" to use "req

Re: [web2py] How to call user/register with pre-defined fields (name, email)?

2011-07-05 Thread Luis Goncalves
For the record, here's how I was able to implement an "by invitation only" registration form. Assuming that the user received an email with a link of form http://.../default/user/register?token=sfaasdfasfa, and assuming I have defined a db table 'registrant' associating a token with a name a

Re: [web2py] Re: cron "Too many open files" regression?

2011-07-05 Thread ron_m
Sounds like some kind of race condition between the cron scripts because it doesn't happen every time. Is there any chance the 3 cron scripts are dependent on each other in some way such as a file passed between or sharing a database. If there is any relationship between the cron scripts would i

[web2py] Re: Query construction question

2011-07-05 Thread pbreit
I don't totally understand but would this do it? db(db.memo_store.created_by==auth.user.id)(db.viewed_memos.memo==db.memo_store.id).select()

Re: [web2py] Temporary changing default values of a Form

2011-07-05 Thread Luis Goncalves
I found the answer searching through the group posts: form.element(_name='email')['_readonly']=True although this doesn't seem to be documented in the manual, and even looking through the gluon directory (and grepping for _readonly ) didn't reveal anything. Would this have been obvio

[web2py] Query construction question

2011-07-05 Thread Martin Barnard
I have the following models. I am storing memos in table *memo_store*, and user_views in *viewed_memos*. Each user can have multiple views for each memo. Every time they look at a memo, I store a new entry in* viewed_memos*. My question is: *How can I construct a query which will display all unr

[web2py] Re: Error on LOAD() in trunk

2011-07-05 Thread GoldenTiger
I referred to generic views by default, like http://web2py.com/examples/simple_examples/hello6 and discussed recently here Invalid view in 1.97.1: https://groups.google.com/group/web2py/browse_thread/thread/c3a14f5ee0997e2a/3b6898c0e70e8dd2 I agree the security issue, in fact I have thought so s

Re: [web2py] Temporary changing default values of a Form

2011-07-05 Thread Luis Goncalves
One more question: How do I make the pre-populated elements of the form appear read-only (so that they cannot be altered)? I've tried in the view: {{=form.custom.begin}} First name: {{=predef.fname}} Last name: {{=predef.lname}} Email: {{=predef.email}} Password: {{=for

Re: [web2py] Re: Call functions periodically from WEB2PY at short time basis (like 0.05 ... 5 seconds)

2011-07-05 Thread Roberto De Ioris
>> I do not know if it is pertinent with the topic, but uWSGI has tons of >> (cheap, very cheap compared with solutions like celery) facilities to >> allow this sort of tasks: >> >> http://projects.unbit.it/uwsgi/wiki/Decorators > > I have uwsgi-0.9.7.1 installed > is it compatible with uwsgi deco

[web2py] Re: Error on LOAD() in trunk

2011-07-05 Thread Anthony
On Tuesday, July 5, 2011 8:38:07 PM UTC-4, GoldenTiger wrote: > > These last days, I have been reported by various customers about a lot > of broken webapps. > I have to dedicate next days to review all these webs to patch , > which I barely remember how I did. > > So, this unexpected compa

[web2py] Re: Error on LOAD() in trunk

2011-07-05 Thread GoldenTiger
>>00 Preface - "whilst always maintaining backward compatibility" >>Please, return previous ajax=False functionality (with passing current >>request to all LOAD(ajax=False) functions). >>It's a really important feature for component development. >>I have 2 sites broken because of it. =\ Massimo, I

Re: [web2py] Re: cron "Too many open files" regression?

2011-07-05 Thread John Duddy
I have dug further, and it is definitely a cron issue. I have 3 cron tasks firing every minute, and they always completed in under 1 second. But every so often, the process lauched by web2py would seem to hang - it never executed my code (first line was logging, not executed for that process). Thes

[web2py] Re: OffTopic Google+

2011-07-05 Thread mikech
I am interested, but not anxious to add to my social load at the moment. What are your impressions? Mike

[web2py] Re: talks

2011-07-05 Thread mikech
Damn, will be up there weekend of the 16th. Anyone in the L.A. area btw who is involved with socal-piggies? Mike

[web2py] Re: Auth Tables not exposed in AppAdmin

2011-07-05 Thread Anthony
> > > Also, for API details, see http://web2py.com/book/default/chapter/04#API and > http://www.web2py.com/examples/static/epydoc/index.html. > And, of course, there's always the source code: http://code.google.com/p/web2py/source/browse/

[web2py] Re: Auth Tables not exposed in AppAdmin

2011-07-05 Thread Anthony
Exactly where is auth being defined -- is it in /app/models/db.py, or is it in a subfolder of /app/models? Note, if you're using the current version of web2py, you no longer need to pass globals() to auth, so just do auth=Auth(db). Also, for API details, see http://web2py.com/book/default/cha

[web2py] PowerTable question?

2011-07-05 Thread Jim Steil
Not sure if this is the right place to ask questions about PowerTable, but I have 3. 1. Where to find the documentation, can't seem to locate it at http://powertable.blouweb.com/ 2. I want to enable clicking on a row to navigate to a URL containing the record key field. Can't seem to find w

[web2py] Re: Auth Tables not exposed in AppAdmin

2011-07-05 Thread pbreit
If you don't need to customize the auth_user table, I would suggest not including this code and just using Web2py's default auth_user table which works fine for most applications. If you are going to customize auth_user table with that code, you need to uncomment: auth = Auth(db) and auth.defi

[web2py] Auth Tables not exposed in AppAdmin

2011-07-05 Thread beedge
Hi. N00b and presumably doing something stupid. Picked the below up from the book and dropped into my own model file in my own Application. All good except the auth tables aren't exposed in Appadmin. This is a problem at the moment because I'm playing around with authentication to see what i

Aw: Re: [web2py] Re: estore

2011-07-05 Thread ma...@rockiger.com
You can use estore for simple shop systems. But it is very basic, you will have to implement the payment systems by yourself. It is not suited for bigger ecommerce sites. Marco

[web2py] Re: Call functions periodically from WEB2PY at short time basis (like 0.05 ... 5 seconds)

2011-07-05 Thread Francisco Costa
> I do not know if it is pertinent with the topic, but uWSGI has tons of > (cheap, very cheap compared with solutions like celery) facilities to > allow this sort of tasks: > > http://projects.unbit.it/uwsgi/wiki/Decorators I have uwsgi-0.9.7.1 installed is it compatible with uwsgi decorators?

Re: [web2py] Re: cron "Too many open files" regression?

2011-07-05 Thread John Duddy
I am seeing lots of processes (20 or so) backing up, yet as far as I can tell, they are not doing anything. I'll add some tracing to see if they are actually processing, but slowly. On Tue, Jul 5, 2011 at 12:32 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Are you starting a lot of

[web2py] Re: cron "Too many open files" regression?

2011-07-05 Thread Massimo Di Pierro
Are you starting a lot of cron tasks that do not terminate before the next one starts? I suggest you use a background process and do not use cron. To my knowledge there is no bug but cron become unpredictable if jobs take too long. Massimo On Jul 5, 10:34 am, John Duddy wrote: > I'm getting th

Re: [web2py] Temporary changing default values of a Form

2011-07-05 Thread Luis Goncalves
That worked great!!! Thanks so much, Anthony!!! L. On Tue, Jul 5, 2011 at 10:23 AM, Anthony wrote: > I'm not sure you can pre-populate a registration form that way. > form.vars.email has to be set after the form is created but before > form.accepts is called -- however, auth.register() creates

Re: [web2py] Re: estore

2011-07-05 Thread Alfonso de la Guarda
pbreit, SISVENTI has 10 years and a lot of tables because is a BIG system (including production, logistics, distribution), was develop for Dunkin Donuts in Peru... but the POS module only requires some tables (filled in the demo) The target is not the e-commerce if not presencial o remote sale

Re: [web2py] Re: Temporary changing default values of a Form

2011-07-05 Thread Luis Goncalves
Yes, I am trying to create an 'invitation' only registration, where the person receives an email with a link (and identifying token), and on my website I use the token to pre-populate the registration form, so that the user only has to pick his password. thx, Luis. On Tue, Jul 5, 2011 at 10:20 AM

Re: [web2py] Temporary changing default values of a Form

2011-07-05 Thread Anthony
I'm not sure you can pre-populate a registration form that way. form.vars.email has to be set after the form is created but before form.accepts is called -- however, auth.register() creates the form and calls form.accepts. Instead, you can pre-populate by manipulating the form DOM directly: f

[web2py] Re: Temporary changing default values of a Form

2011-07-05 Thread Massimo Di Pierro
Can you explain the logic? Are you trying to override whatever emails is typed in by the user on registration? On Jul 5, 12:08 pm, Luis Goncalves wrote: > This doesn't seem to work with auth() forms: > > form = auth.register() > > form.vars.email = 'l...@vision.caltech.edu' > > return dict(form=f

[web2py] cron "Too many open files" regression?

2011-07-05 Thread John Duddy
I'm getting the following stack trace in my console after leaving my app running overnight. We use cron for several tasks. I saw the below thread, which indicated that the issue has been resolved: http://groups.google.com/group/web2py/browse_thread/thread/e788b0783e8fc758/6a210abb2898763d?lnk=rao

Re: [web2py] Temporary changing default values of a Form

2011-07-05 Thread Luis Goncalves
This doesn't seem to work with auth() forms: form = auth.register() form.vars.email = 'l...@vision.caltech.edu' return dict(form=form) doesn't show the predefined value for 'email' in a view that renders {{=form}} Does anybody know why? Thanks!! Luis.

[web2py] Re: estore

2011-07-05 Thread pbreit
The estore is dated but seems to work: https://code.google.com/p/web2py-estore/ The sisventi thing is a total mess. 100+ tables and very little web2py code. I was not able to get much working.

[web2py] Re: estore

2011-07-05 Thread Ross Peoples
Apple, When dealing with Google Code, it is expected that you use Mercurial to get the code rather than waiting on the author to provide a direct download link. You should use: hg clone https://web2py-estore.googlecode.com/hg/ web2py-estore Or if you just want to browse the code: https://code

[web2py] Re: estore

2011-07-05 Thread apple
There are no downloads listed at this link. On Jul 5, 5:28 pm, pbreit wrote: > The estore is dated but seems to work:https://code.google.com/p/web2py-estore/ > > The sisventi thing is a total mess. 100+ tables and very little web2py code. > I was not able to get much working.

Re: [web2py] Insert "One to many" related tables in GAE

2011-07-05 Thread José Luis Redrejo Rodríguez
2011/7/5 howesc : > GAE will always choose the ID for you (at least with web2py dal, custom GAE > keys are not implemented).  You could maybe add an extra field to the > province table to store your "internal id" and use the for lookup when > loading the second table. That's the method I used fin

[web2py] Re: URGENT: help needed with Auth and Facebook data

2011-07-05 Thread howesc
http://www.web2pyslices.com/slices/take_slice/77 see the update from 2010-May-04. The code has not been tested against the latest versions of web2py and may do things in outdated/less efficient ways, but it has worked in the past. at least perhaps you can see how to implement a custom authen

[web2py] json call

2011-07-05 Thread ariel.glez.m
I have this code, in the initial view shows the elements of the table service with a json call, i want whenever insert a new element in the form of form.html view (the view form.html is a popup window) re-make the json call and refresh the initial view, i tried several variations and all have faile

Re: [web2py] Insert "One to many" related tables in GAE

2011-07-05 Thread howesc
GAE will always choose the ID for you (at least with web2py dal, custom GAE keys are not implemented). You could maybe add an extra field to the province table to store your "internal id" and use the for lookup when loading the second table. or if you are doing the load back to back, create a

Re: [web2py] Re: trailling space on crud.update form for field string type that is part of sql standard seems not logic

2011-07-05 Thread Richard Vézina
No problem... As you say since I change the model definition by hand and it's coming from the database... it is not a web2py issue. Thank to taking care. Richard On Tue, Jul 5, 2011 at 11:31 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > I do not think this is a web2py issue. Yo

[web2py] Re: trailling space on crud.update form for field string type that is part of sql standard seems not logic

2011-07-05 Thread Massimo Di Pierro
I do not think this is a web2py issue. You are defining a table manually and the database is doing padding of the fields. It is not web2py's doing, it is the database. You can make custom web2py validators that remove the spaces in forms when data is extracted but it is not always obvious you want

Re: [web2py] PowerFormWizard 0.1.4 - Bug Fixes and auto_validation (+ a new plugin for grids)

2011-07-05 Thread Alfonso de la Guarda
Hello, Nice... i will add to SISVENTI for the composition lists.. works with autocomplete? Saludos, Alfonso de la Guarda Centro Open Source(COS) http://www.cos-la.net http://alfonsodg.net Telef. 991935157 1024D/B23B24A4 5469 ED92 75A3 BBDB FD6B 58A5 54A1 851D

[web2py] Re: Why using 'statusbar' for menu zone?

2011-07-05 Thread Massimo Di Pierro
I do not understand the question On Jul 5, 2:25 am, chinakr wrote: > Why not using 'menu' or some others? Is there any reason?

[web2py] Re: estore

2011-07-05 Thread Massimo Di Pierro
Also take a look at this: https://bitbucket.org/alfonsodg/sisventi On Jul 5, 7:53 am, Chris May wrote: > I sure hope so... The only thing I have been looking to is Massimo's > brief tutorial on credit card > paymentshttp://groups.google.com/group/web2py/msg/00df672fe3d67aab > > On Jul 5, 4:48 am

Re: [web2py] Added filtering in autocomplete

2011-07-05 Thread Alfonso de la Guarda
Hello, The demo account is explained here: https://bitbucket.org/alfonsodg/sisventi/wiki/onlinedemo Only adds filtering to the existing widget provided for web2py (using jquery), i am not really a windows explorer user (only use Beos/Linux from 1999) with the mozilla or chrome browsers (and befo

[web2py] Re: PowerFormWizard 0.1.4 - Bug Fixes and auto_validation (+ a new plugin for grids)

2011-07-05 Thread Massimo Di Pierro
Do we have a method to upload plugins in web2pyslices? If not, I will extend web2py.com/plugins it is becoming hard for me to keep track On Jul 5, 4:53 am, Bruno Rocha wrote: > HI, > > I just finished the refactoring for PFWizard plugin, major bug fixes (thanks > everyone testing and reporting) >

Re: [web2py] Added filtering in autocomplete

2011-07-05 Thread Anthony
How do you log in -- is there a demo account (doesn't appear to be any way to register)? Note, some of use have had problems getting the autocomplete widget to work in IE. Anthony On Tuesday, July 5, 2011 11:07:39 AM UTC-4, Alfonso de la Guarda wrote: > Hello, > > When you search a product,

Re: [web2py] Added filtering in autocomplete

2011-07-05 Thread Alfonso de la Guarda
Hello, When you search a product, by example, you can filter warehouse items or sales items (in the db, both are differents with the "genero" (genere) flag in mode 1 or 2) Try: http://ictec.biz:8000/sisventi/almacen/kardex And http://ictec.biz:8000/sisventi/ventas/totales_productos Just put

Re: [web2py] Added filtering in autocomplete

2011-07-05 Thread Nicolas Palumbo
i'm seeing the online demo, exacltly in which part of the code is the autocomplete with filtering stuff? I;d like to use that On Mon, Jul 4, 2011 at 5:25 PM, Alfonso de la Guarda wrote: > Hi, > Because SISVENTI, i have made some minor changes to the autocomplete widget > adding filtering, is poss

Re: [web2py] how to implement database tables with one level of indirection?

2011-07-05 Thread Anthony
That type of method will work, but it will result in a new database table being created for each event/custom profile. There are various alternatives for implementing user defined fields -- here are some Stackoverflow links: http://stackoverflow.com/questions/5106335/how-to-design-a-database-fo

Re: [web2py] how to implement database tables with one level of indirection?

2011-07-05 Thread Richard Vézina
I thougth about it too, but I didn't find the thread... ;-) Richard On Mon, Jul 4, 2011 at 9:19 PM, Bruno Rocha wrote: > The web2py app wizard has a Dynamic model creator, may be you can take a > look in to the wizard code. And fork as a plugin. > > > On Mon, Jul 4, 2011 at 9:38 PM, Richard Vé

Re: [web2py] Re: Call functions periodically from WEB2PY at short time basis (like 0.05 ... 5 seconds)

2011-07-05 Thread Roberto De Ioris
> This loops every 5 seconds regardless of how long the remainder of the > loop > takes (as long as it is somewhat less than 5 seconds) > > from time import time, sleep > > next_time = time()+5 > while True: > sleep(next_time-time()) > next_time+=5 > # ... > > I do not know if it is p

[web2py] Why using 'statusbar' for menu zone?

2011-07-05 Thread chinakr
Why not using 'menu' or some others? Is there any reason?

Re: [web2py] Re: Call functions periodically from WEB2PY at short time basis (like 0.05 ... 5 seconds)

2011-07-05 Thread John La Rooy
This loops every 5 seconds regardless of how long the remainder of the loop takes (as long as it is somewhat less than 5 seconds) from time import time, sleep next_time = time()+5 while True: sleep(next_time-time()) next_time+=5 # ... Cheers, John La Rooy On Mon, Jul 4, 2011 at 10:5

[web2py] Re: estore

2011-07-05 Thread Chris May
I sure hope so... The only thing I have been looking to is Massimo's brief tutorial on credit card payments http://groups.google.com/group/web2py/msg/00df672fe3d67aab On Jul 5, 4:48 am, apple wrote: > Is this no longer maintained? It does not seem to be available to > dowload. > > Are there any

Re: [web2py] help for a query

2011-07-05 Thread Manuele Pesenti
On 05/07/2011 12:32, Vasile Ermicioi wrote: _count = tab.measure.count() _gr = (tab.timestamp.year(),tab.timestamp.month(),tab.timestamp.day()) rows = db(tab).select(_count, groupby=_gr) for row in rows: print row[_count] nice solution... thank you very mutch! :) Manuele

[web2py] Missing authorization header in 1.97.1 under Apache

2011-07-05 Thread demetrio
Hi, we have a very strange behaviour. We have 2 apps: CAS (the one from the free appliances), modified in order to receive 2 types more of authorization. DevelApp this application sends a REST call to CAS to create a user. This works under web2py 1.94.6 in both rocket and apache servers, include

Re: [web2py] help for a query

2011-07-05 Thread Vasile Ermicioi
_count = tab.measure.count() _gr = (tab.timestamp.year(),tab.timestamp.month(),tab.timestamp.day()) rows = db(tab).select(_count, groupby=_gr) for row in rows: print row[_count]

[web2py] help for a query

2011-07-05 Thread Manuele Pesenti
supposing to have a table of data like this: tab = define_table('measured_data', Field('measure', 'double'), Field('timestamp', 'datetime') ) how can I get from a query how many measures I have for each day? thanks for any help Manuele

[web2py] Re: PowerFormWizard 0.1.4 - Bug Fixes and auto_validation (+ a new plugin for grids)

2011-07-05 Thread Bruno Rocha
Smalll typo, the new method is called *.auto_validation()* #not auto_validate()

[web2py] PowerFormWizard 0.1.4 - Bug Fixes and auto_validation (+ a new plugin for grids)

2011-07-05 Thread Bruno Rocha
HI, I just finished the refactoring for PFWizard plugin, major bug fixes (thanks everyone testing and reporting) *# NOTES* - It works only wih web2py 1.97+ - It works only for SQLFORM based forms, you have to pass a db.table - It does not works for Crud() , does not allows editing or delete yet (

[web2py] web2py and DreamPie - The Python shell you've always dreamed about!

2011-07-05 Thread Bruno Rocha
Does anybody knows how can we run web2py in shell mode under DreamPie? http://dreampie.sourceforge.net/ -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ]

[web2py] estore

2011-07-05 Thread apple
Is this no longer maintained? It does not seem to be available to dowload. Are there any other examples of web2py ecommerce sites?