Re: [web2py] validator.py and T()

2010-12-28 Thread Martin Weissenboeck
Thank you very much - now is works! 2010/12/27 Bruno Rocha > That is because T() is not in context when validators are defined. you have > to pass error_message to your validators. > > db.table.field.requires=IS_NOT_EMPTY(error_message=T('this field cannot be > empty')) > > That is the way I am

[web2py] Re: Not open source yet... but

2010-12-28 Thread weheh
Very cool. Also enjoyed your Lagrange talk. On Dec 28, 1:55 am, mdipierro wrote: > http://vimeo.com/18232653

[web2py] Re: Web2Py Foundation?

2010-12-28 Thread Graham Dumpleton
On Tuesday, December 28, 2010 5:37:30 PM UTC+11, mdipierro wrote: > > Not sure what a single person framework means. This framework counts > almost 100 contributors and at least 50 people very skilled here. If I > get hit by a track any of them can take over by forking my branch as > allowed b

[web2py] Re: Not open source yet... but

2010-12-28 Thread qqsaqq
+1 that impressively shows what is possible with html5. I hope, 'they' get the websocket protocol fixed soon

[web2py] Mail.send failure:STARTTLS ...

2010-12-28 Thread Martin Weissenboeck
Hi, I want my website to send emails. I have tried (in db.py) mail.settings.server = 'smtp.gmail.com:587' # your SMTP server mail.settings.sender = 'mygmailaddr...@gmail.com' # your email mail.settings.login = 'mygmailaddr...@gmail.com:mygmailpassword'# your credentials or None an

[web2py] question about trapped ajax link

2010-12-28 Thread weheh
I'm trying to get a trapped ajax link, which deletes a record, to update two different divs on the screen. One div is rendered by its controller. But how about the other div, assuming that it is usually rendered by an entirely different controller? I tried using response.js and response.headers['we

[web2py] Re: Web2Py Foundation?

2010-12-28 Thread weheh
Gary is right.

[web2py] Re: Web2Py Foundation?

2010-12-28 Thread weheh
Unless Massimo has already willed the copyright and other web2py IP to ...?

[web2py] Re: Web2Py Foundation?

2010-12-28 Thread weheh
Sorry Graham, I meant you are right. On Dec 28, 3:47 am, weheh wrote: > Gary is right.

[web2py] components and css

2010-12-28 Thread weheh
When a single component reloads in it's cid, it is as if the css for that cid changes. I'm using some jQuery UI tabs and after the div updates, the tabs change from each being as wide as the text in the tab to each being 100% of the window. I'm pretty sure it's a css artifact. What happened?

Re: [web2py] Re: jquey effect problem

2010-12-28 Thread Sahil Arora
still not working On Mon, Dec 27, 2010 at 10:05 PM, Martín Mulone wrote: > For me this code is working, the jquery is loaded?, your source code > point to /hello/static/js/jquery.js this exist?. Also try to add ";" > to the end of jquery sentence and change ".two" with "#b". > > 2010/12/27 Sahil

[web2py] Re: INNER JOIIN and aliased table

2010-12-28 Thread HaM
No :) On Dec 27, 6:03 pm, mdipierro wrote: > Did this work with the old dal? > > On Dec 27, 9:41 am, HaM wrote: > > > Hi, > > > I'm trying to do INNER JOIN with aliased table and I'm experiencing > > problem. > > Here is my example: > > > Domain = db.domain > > Client = db.client > > Manager = d

[web2py] Re: strange problem with checkbox and ajax

2010-12-28 Thread weheh
return false; is definitely a problem. On Dec 28, 2:23 am, weheh wrote: > Running 1.89.5

[web2py] Re: Left Join with aliased table and the new DAL

2010-12-28 Thread HaM
It's fixed for me. It works with revision 1454:c4465e21c715 Thanks ! On Dec 27, 8:11 pm, mdipierro wrote: > This should now be fixed in trunk. Please confirm. > > On Dec 27, 3:23 am, HaM wrote: > > > First, Merry Christmas. > > > Since I still experiencing problem on left join I have looked mor

[web2py] Re: strange problem with checkbox and ajax

2010-12-28 Thread Martin.Mulone
I think you are checking request.vars instead of request.args

[web2py] Re: strange problem with checkbox and ajax

2010-12-28 Thread weheh
OK, I think I got it. web2py_ajax_page() is for updating whole components. ajax() is for doing more surgical stuff within the component. Perhaps that's why ajax(); is followed by returns false; because it's not supposed to update the entire component? So I went back to the ajax call and I was able

[web2py] Re: Not open source yet... but

2010-12-28 Thread Martin.Mulone
Look really good.

[web2py] Re: strange problem with checkbox and ajax [Closed]

2010-12-28 Thread weheh
On Dec 28, 5:20 am, weheh wrote: > OK, I think I got it. web2py_ajax_page() is for updating whole > components. ajax() is for doing more surgical stuff within the > component. Perhaps that's why ajax(); is followed by returns false; > because it's not supposed to update the entire component? So

[web2py] Re: components and css

2010-12-28 Thread weheh
False alarm? Now I think it may not be a web2py issue after all. I think this must be part of another jQuery package I'm using. I thought it was something to do with: in which file do I source global javascripts and css? On Dec 28, 4:19 am, weheh wrote: > When a single component reloads in it's c

[web2py] unique constraint of multiple columns (at database level)

2010-12-28 Thread canna
hello everybody! I created a table of contacts that requires the first name+last name to be unique the table: db.define_table("Contacts", Field("FirstName", "string", length=45, notnull=True), Field("LastName", "string", length=45, notnull=True), Field("Title", "string", length=

[web2py] Re: Possible bug in SQLFORM.factory in version 1.91.4?

2010-12-28 Thread Lisandro
I had already try with the nightly built for testers version, but not with trunk. Thank you very much! On 27 dic, 14:01, mdipierro wrote: > this has been fixed in trunk. I will post a new version soon. > > On Dec 27, 7:03 am, Lisandro wrote: > > > I've been working with web2py for a while. Lastn

[web2py] Re: jquey effect problem

2010-12-28 Thread Luther Goh Lu Feng
Have you looked at the javascript console for errors yet? On Dec 28, 5:28 pm, Sahil Arora wrote: > still not working > > On Mon, Dec 27, 2010 at 10:05 PM, Martín Mulone > wrote: > > > > > > > > > > > For me this code is working, the jquery is loaded?, your source code > > point to /hello/static/

[web2py] Re: question about trapped ajax link

2010-12-28 Thread Luther Goh Lu Feng
The link can trigger off 2 calls to web2py_component(url,id1) and web2py_component(url,id) via javascript. On Dec 28, 4:45 pm, weheh wrote: > I'm trying to get a trapped ajax link, which deletes a record, to > update two different divs on the screen. One div is rendered by its > controller. But

[web2py] Re: question about trapped ajax link

2010-12-28 Thread Luther Goh Lu Feng
This is based on pure memory recall so I might be mistaken. You may need to use the .live jquery method when new elements are added. Try it if you run into issues even though you are super suer your code is right. On Dec 28, 9:25 pm, Luther Goh Lu Feng wrote: > The link can trigger off 2 calls t

[web2py] New plugin for star rating

2010-12-28 Thread Arun K.Rajeevan
http://www.web2py.com/plugins/default/rating I took this rating plug-in and modified a bit. This plug-in uses jQuery extension and I'm aware that there is a better rating jQuery plug-in (http://orkans-tmp.22web.net/star_rating/). I've plan to port it to that js library. But for less complex th

[web2py] Re: New plugin for star rating

2010-12-28 Thread mr.freeze
Nice! Feel free to make a slice at web2pyslices.com. On Dec 28, 8:51 am, "Arun K.Rajeevan" wrote: > http://www.web2py.com/plugins/default/rating > > I took this rating plug-in and modified a bit. > This plug-in uses jQuery extension and I'm aware that there is a better > rating jQuery plug-in (ht

[web2py] Re: Logging of impersonation events

2010-12-28 Thread alexandremasbr
I used auth.add_permission(user_group_id,'impersonate','auth_user',0), since I want to allow to impersonate any user. On 27 dez, 17:14, mdipierro wrote: > Did you > > auth.add_permission(user_group_id,'impresonate','auth_user',217) > > ? > > On Dec 27, 12:51 pm, alexandremasbr wrote: > > > No

[web2py] Re: Mail.send failure:STARTTLS ...

2010-12-28 Thread Martin Weissenboeck
I have found a solution: In the file db.py I have found the following lines: Line 37-39: mail.settings.server = 'smtp.gmail.com:587' # your SMTP server mail.settings.sender = 'myqmailaddr...@gmail.com' # your email mail.settings.login = 'mygmailaddr...@gmail.com:mygmailpassword'# you

[web2py] Re: 1.91.4 error reading version file

2010-12-28 Thread reyelts
Both downloads were done using Linux, which wouldn't be playing around with the names like Windows. The downloads were done to a clean/empty directory, so no infection from a prior file, either.

Re: [web2py] Re: 1.91.4 error reading version file

2010-12-28 Thread Jonathan Lundell
On Dec 28, 2010, at 8:34 AM, reyelts wrote: > > Both downloads were done using Linux, which wouldn't be playing around > with the names like Windows. The downloads were done to a clean/empty > directory, so no infection from a prior file, either. What does unzip -l show you on the downloaded .zip

Re: [web2py] SQLFORM into a pop window

2010-12-28 Thread David J.
Can I have a peek at the app also? I am trying to get this working as well. Thanks. On 12/28/10 1:37 AM, Kenneth Lundström wrote: Thank you Bruno, my first thought when I tested it was that this doesn´t work at all, but now I see that it works quite nice. Kenneth Attached is an app whi

[web2py] Re: New plugin for star rating

2010-12-28 Thread mdipierro
Would you send me a patch to plugin-wiki with your changes? On Dec 28, 8:51 am, "Arun K.Rajeevan" wrote: > http://www.web2py.com/plugins/default/rating > > I took this rating plug-in and modified a bit. > This plug-in uses jQuery extension and I'm aware that there is a better > rating jQuery plug

[web2py] Re: Not open source yet... but

2010-12-28 Thread LightDot
Very nice! I hope we'll be able to take a peak at the source code in the future.

[web2py] Re: Not open source yet... but

2010-12-28 Thread David Marko
Why tornado as webserver? Any observations you can share? David

[web2py] Re: Web2Py Foundation?

2010-12-28 Thread mdipierro
A foundation is a corporation and, believe it or not, in US a corporation is a person: http://www.professorbainbridge.com/professorbainbridgecom/2010/01/the-corporation-is-a-legal-person-get-over-it.html The Django foundation was created two years ago (and Django is 4-5 years older than web2py

[web2py] Re: Web2Py Foundation?

2010-12-28 Thread VP
For what it's worth, here's my 2 cents: I think the concern that web2py is a one-man framework and how the makes enterprises (big guys) adopt web2py is a valid concern. Although in theory, people can simply fork web2py when Massimo no longer commits to the project, for whichever reason, from a bys

[web2py] Re: Not open source yet... but

2010-12-28 Thread mdipierro
I needed something that could do http get, http post and comet via html5 websockets. I looked at the other options gevent, twisted, etc, I either had installation problems, or performance issues, or it was hard to figure it out how to it. With tornado this was trivial: - begin -- LISTENE

Re: [web2py] Re: Not open source yet... but

2010-12-28 Thread Albert Abril
I think Orbited has the feature of emulate websocket. http://orbited.org/wiki/WebSocket On Tue, Dec 28, 2010 at 7:04 PM, mdipierro wrote: > I needed something that could do http get, http post and comet via > html5 websockets. > > I looked at the other options gevent, twisted, etc, I either had

Re: [web2py] Re: Not open source yet... but

2010-12-28 Thread Bruno Rocha
I Guess that Cyclone with RESTMQ is a good option for that. (I read about it) https://github.com/gleicon/restmq http://www.restmq.com/ 2010/12/28 mdipierro > I needed something that could do http get, http post and comet via > html5 websockets. > > I looked at the other options gevent, twisted

[web2py] variable include

2010-12-28 Thread mattynoce
hi all. i'm trying to have variable files included into my view, but i'm not sure that it's possible since it seems includes are compiled before runtime. i want to do something like: {{include nextStep + '.html'}} that isn't working because it gets compiled. so i tried: {{function getInclu

[web2py] Re: Not open source yet... but

2010-12-28 Thread mdipierro
I was talking serverside code. Client-side my app only works with Chrome but I am looking into these: https://github.com/gimite/web-socket-js http://socket.io/ The second looks really nice. On Dec 28, 12:13 pm, Albert Abril wrote: > I think Orbited has the feature of emulate > websocket.http:/

[web2py] experts4solution: please update your profile

2010-12-28 Thread mdipierro
... and after you have done so, email me personally.

[web2py] Iniciar con python

2010-12-28 Thread Nolberto
Soy nuevo en este lenguaje, me pueden orientar por donde empiezo, que libros o tutoriales leo. Utilizo UBUNTU, que herramientas me descargo, tanto librerias como IDE, Gestor de base de datos, etc

Re: [web2py] Re: try web2py with cherrypy, diesel, eventlet, fapws,flup, gnuicorn, paste, rocket, tornado, twisted, wsgiref

2010-12-28 Thread Branko Vukelić
Toranado used to be much faster (non-blocking), but it's been stagnating lately because of the ever-increasing overhead. They've been alrted, and will hopefully work on the performance. Have you tried bjoern, btw? On Tue, Dec 28, 2010 at 7:44 AM, mdipierro wrote: > Anyway... I have now try a few

Re: [web2py] Re: Web2Py Foundation?

2010-12-28 Thread Branko Vukelić
On Tue, Dec 28, 2010 at 6:28 PM, mdipierro wrote: >  http://www.google.com/trends?q=django? FTR, the graph is for the 'keyword' Django, which can be many things, and doesn't reflect the popularity of either the keyword or the Django project. The overall volume of searches for the keyword includes

[web2py] Re: Web2Py Foundation?

2010-12-28 Thread mdipierro
This is incorrect. You should look at the "thanks" in the commit log. I am not happy with Ranking contributors but Jonathan L., Thadeus B., Mariano R., Alvaro J., Iceberg to name a few. They know web2py as well as I do (and some parts better). Massimo On Dec 28, 12:03 pm, VP wrote: > For what i

[web2py] Re: try web2py with cherrypy, diesel, eventlet, fapws,flup, gnuicorn, paste, rocket, tornado, twisted, wsgiref

2010-12-28 Thread mdipierro
no On Dec 28, 9:39 am, Branko Vukelić wrote: > Toranado used to be much faster (non-blocking), but it's been > stagnating lately because of the ever-increasing overhead. They've > been alrted, and will hopefully work on the performance. > > Have you tried bjoern, btw? > > > > On Tue, Dec 28, 2010

[web2py] Re: unique constraint of multiple columns (at database level)

2010-12-28 Thread ron_m
I would like to respectfully ask how a first and last name combined could be unique in the real world? There are lots of people with identical first and last names. A better candidate in your table is Email. I know that doesn't answer your question but I think it is worth consieration. Ron

Re: [web2py] Iniciar con python

2010-12-28 Thread Bruno Rocha
Hay un grupo en tu idioma http://groups.google.com/group/web2py-usuarios En primer lugar instalar python-tk (sudo apt-get install python-tk) Descargue la versión estable de web2py en web2py.com Inicie el terminal con $ python2.X web2py.py Yo no uso IDE para el desarrollo. Yo uso el VI en la te

Re: [web2py] Iniciar con python

2010-12-28 Thread Bruno Rocha
Spanish version of teh book -> http://www.latinuxpress.com/books/drafts/web2py/ 2010/12/28 Nolberto > Soy nuevo en este lenguaje, me pueden orientar por donde empiezo, que > libros o tutoriales leo. > Utilizo UBUNTU, que herramientas me descargo, tanto librerias como > IDE, Gestor de base de dat

Re: [web2py] Re: Web2Py Foundation?

2010-12-28 Thread Bruno Rocha
> > > So the question: who can > > take over web2py, if Massimo no longer commits to it for whatever > > reason? It is not clear. > Looking at people list at google code page, I see Jlundell with comitter role. http://code.google.com/p/web2py/people/list Other contributors can write code reviews

[web2py] Re: variable include

2010-12-28 Thread ron_m
Its ugly but you must have a finite and small number of nextStep targets {{if nextStep == 'step1':}} {{include 'step1.html'}} {{elif nextStep == 'step2':}} {{include 'step2.html'}} .. will get you going but introduces a maintenance issue if you add a step later that ou have to remember to

[web2py] GEO region Searching...

2010-12-28 Thread Jason Brower
I know we can find good inforamtion geographical stuff in teh web2py manual. But is there a way to, for example, find things in a search area around a coordinate? My guess is that I should do the following: Get the logged in users geo information (lat and long) Get the distance away that I want to

Re: [web2py] Re: Web2Py Foundation?

2010-12-28 Thread pbreit
I think we're OK for now. While there is a small perceptual problem of web2py being a single person's effort, I think at this stage it is beneficial for Massimo to continue with his rapid and prudent improvements. The best thing now is for more people to become web2py experts. There's a lot of

[web2py] Re: variable include

2010-12-28 Thread Luther Goh Lu Feng
Try using http://www.web2py.com/book/default/chapter/13#Components-and-Plugins I think it should be what you are looking for. On Dec 29, 3:05 am, ron_m wrote: > Its ugly but you must have a finite and small number of nextStep targets > > {{if nextStep == 'step1':}} >   {{include 'step1.html'}} >

Re: [web2py] Re: Web2Py Foundation?

2010-12-28 Thread Vasile Ermicioi
I think web2py (Massimo) is moving in the right direction making web2py more modular (dal) or using some ready solution (rocket or cherrypy server before) doing so we can easily get experts for different modules

Re: [web2py] Re: Web2Py Foundation?

2010-12-28 Thread Jonathan Lundell
On Dec 28, 2010, at 11:05 AM, Bruno Rocha wrote: > > So the question: who can > > take over web2py, if Massimo no longer commits to it for whatever > > reason? It is not clear. > > Looking at people list at google code page, I see Jlundell with comitter > role. http://code.google.com/p/web2py/p

Re: [web2py] Re: Web2Py Foundation?

2010-12-28 Thread Michele Comitini
Should we push the expert4solutions brand a bit more? Yes but, not too much IMHO. That would suffice for some time eventually expert4solutions should care about creating a foundation or other amenities if there is enough busine$$ or investment on web2py. mic 2010/12/28 pbreit : > I think we're

Re: [web2py] Re: Web2Py Foundation?

2010-12-28 Thread ron_m
+1 we don't want too many cooks without a head chef.

Re: [web2py] experts4solution: please update your profile

2010-12-28 Thread Bruno Rocha
Is there a profile who needs to be updated -> http://experts4solutions.com/e4s/default/expert/1 LOL :o) 2010/12/28 mdipierro > ... and after you have done so, email me personally. -- Bruno Rocha http://about.me/rochacbruno/bio

Re: [web2py] Re: experts4solution: please update your profile

2010-12-28 Thread Michele Comitini
Who is that? ;-) Well I endorsed him anyway :-) 2010/12/28 mdipierro : > Ouch! > > On Dec 28, 1:27 pm, Bruno Rocha wrote: >> Is there a profile who needs to be updated >> ->http://experts4solutions.com/e4s/default/expert/1 >> >> LOL :o) >> >>

[web2py] Re: Web2Py Foundation?

2010-12-28 Thread VP
I love the fact that if I have a problem with web2py and asked a question, Massimo will likely answer it. But the perceptual problem of web2py is a single-person effort is real. Massimo fixes most of the bugs (it seems so). Massimo is mainly responsible for PR. Massimo is in charge of experts4so

Re: [web2py] Re: experts4solution: please update your profile

2010-12-28 Thread Branko Vukelić
I think Massimo said you cannot endorse users with incomplete profiles. On Tue, Dec 28, 2010 at 8:44 PM, Michele Comitini wrote: > Who is that? ;-) > Well I endorsed him anyway :-) > > > > 2010/12/28 mdipierro : >> Ouch! >> >> On Dec 28, 1:27 pm, Bruno Rocha wrote: >>> Is there a profile who nee

[web2py] Re: try web2py with cherrypy, diesel, eventlet, fapws,flup, gnuicorn, paste, rocket, tornado, twisted, wsgiref - TORNADO tried

2010-12-28 Thread David Marko
I just tried tornado on windowsXP wirh Python 2.7. I just used apache ab and its 2-3x faster than Rocket on the same hardware. 'hello5' example show 60 req/sec for 'hello5' example. Usi ng roekt I'm getting cca. 21 req/sec. Can you share your results? Please try some of ewb2py standard example s

[web2py] Re: Loading component with vars

2010-12-28 Thread mattynoce
i can confirm. request.args always comes through, whether ajax or not. request.vars is dependent upon ajax. {{=LOAD('comment', 'conversation_dropdown.load',vars={'dashboard':True}, ajax=False)}} : vars => {} {{=LOAD('comment', 'conversation_dropdown.load',vars={'dashboard':True}, ajax=True)}} : v

[web2py] Re: Loading component with vars

2010-12-28 Thread mattynoce
ps version 1.89.1 On Dec 28, 12:12 pm, mattynoce wrote: > i can confirm. request.args always comes through, whether ajax or not. > request.vars is dependent upon ajax. > > {{=LOAD('comment', > 'conversation_dropdown.load',vars={'dashboard':True}, ajax=False)}} > : vars => {} > > {{=LOAD('comment'

[web2py] cannot define_table after executesql drop table

2010-12-28 Thread apple
I called define_table to create a table "product". This worked fine. Then I called executesql("DROP TABLE PRODUCT"). The product table appears to have been dropped from the database. However when I run the application again it fails in the model in at the define_table line with "OperationalError: n

Re: [web2py] cannot define_table after executesql drop table

2010-12-28 Thread Bruno Rocha
Best way is manually defining migration file names, all the table history information and diffs are stored in /databases/xxx.table which is randomly named. You can do: db.define_table('products',Field('name'),migrate='products.table') In that way, when you need to purge the table inform

[web2py] Re: try web2py with cherrypy, diesel, eventlet, fapws,flup, gnuicorn, paste, rocket, tornado, twisted, wsgiref - TORNADO tried

2010-12-28 Thread David Marko
U just tested tornado using others 'example' pages and its much, much faster than rocket. It event doesnt generate failed requests comparing to rocket. Can tornado be better/faster solution then Apache wsgi? I mean some apache/nginx+reverse proxy & tornado+web2py? https://github.com/fiorix/cyc

[web2py] Re: variable include

2010-12-28 Thread mattynoce
great call, luther. thank to you and ron for the help. here was the solution: 1) have the main view code call a component i called "stepFunc" 2) have stepFunc then render the appropriate mini-view [views] ** first, i defined a view for each step. so there's a folder at default/views/step and it

Re: [web2py] Re: Web2Py Foundation?

2010-12-28 Thread Jonathan Lundell
On Dec 28, 2010, at 11:54 AM, VP wrote: > > I love the fact that if I have a problem with web2py and asked a > question, Massimo will likely answer it. But the perceptual problem > of web2py is a single-person effort is real. Massimo fixes most of > the bugs (it seems so). Massimo is mainly res

[web2py] Re: try web2py with cherrypy, diesel, eventlet, fapws,flup, gnuicorn, paste, rocket, tornado, twisted, wsgiref - TORNADO tried

2010-12-28 Thread Graham Dumpleton
That site you reference is meaningless. Neither Django or web.py are web servers but application frameworks. That is the same sort of flawed benchmarking that Tornado used to claim their web server was so much better when they first announced it. That is, they compared a hello world program wri

Re: [web2py] Re: Web2Py Foundation?

2010-12-28 Thread Tim Alexander
Then maybe a bit of info around massimo being the BDFL (python/linux, benevolent dictator for life) being out there might work. As said before, seems very much like a perception problem rather than something that will be solved via some sort of company or group running things rather than a single p

[web2py] Re: couchdb anybody?

2010-12-28 Thread Kevin
With CouchDB in particular, is there any thoughts for treating nested structures as though they had been retrieved through a join? Taking the following document: { _id: 'abcd1234', type: 'person', name: 'John Doe', phones: ['555-555-3614', '555-555-1812'], addresses: ['123 S Nowhere Ln.

[web2py] RunimeError: No table selected

2010-12-28 Thread Emceha
Hi I have such controller in default.py def index(): dzialy = db().select(db.dzialy.ALL,orderby=db.dzialy.kolejnosc) dzialy_reversed = dzialy.sort(lambda dzial: dzial.kolejnosc,reverse=True) return dict(dzialy=dzialy,dzialy_reversed=dzialy_reversed) I use this with google app engine S

[web2py] Cron: what happens if a process isn't finished and the next time to start it comes again?

2010-12-28 Thread Lorin Rivers
I am working on moving some of the computation-intensive processes to a cron-launched scheme. I have some that run every minute, every 2 minutes, every 5 minutes and every 15 minutes. In production, it's possible that the volume of incoming data would result in the task not finishing before its ne

[web2py] Re: New plugin for star rating

2010-12-28 Thread Arun K.Rajeevan
sure, I'll make it tomorrow.

[web2py] Re: Web2Py Foundation?

2010-12-28 Thread VP
>>Then maybe a bit of info around massimo being the BDFL (python/linux, >> benevolent dictator for life) being out there might work. As said before, >> seems very much like a perception problem rather than something that will be >> solved via some sort of company or group running things rather th

[web2py] Re: Web2Py Foundation?

2010-12-28 Thread Christopher Steel
While it is not required due to the nature of his position, I do hereby officially recognize Massimo Di Pierro as Web2py's Benevolent Dictator for Life as is in keeping with the Pythonic and opensource tradition and in recognition of his leadership and nurturing role in the development and maintena

Re: [web2py] Cron: what happens if a process isn't finished and the next time to start it comes again?

2010-12-28 Thread Jonathan Lundell
On Dec 28, 2010, at 1:18 PM, Lorin Rivers wrote: > I am working on moving some of the computation-intensive processes to a > cron-launched scheme. I have some that run every minute, every 2 minutes, > every 5 minutes and every 15 minutes. > > In production, it's possible that the volume of incom

[web2py] Re: variable include

2010-12-28 Thread Luther Goh Lu Feng
If the variables to be accessed from the original view are not needed to be passed back to python, it is possible to store the variables in javascript, and then access the variables from different components. To view the problem differently, you may wish to look at http://flowplayer.org/tools/dem

[web2py] web2py 1.91.5 is OUT

2010-12-28 Thread mdipierro
Mostly bug fixes about new dal (joins, with_alias, ordering on joins in postgresql, db().select(db.table.ALL) on GAE, behavior of boolean writable=False, upload of new apps with missing file) and some internal improvements (mostly due to Jonathan, so he can explain). Massimo

[web2py] Re: Web2Py Foundation?

2010-12-28 Thread mdipierro
benevolent? On Dec 28, 4:01 pm, Christopher Steel wrote: > While it is not required due to the nature of his position, I do > hereby officially recognize Massimo Di Pierro as Web2py's Benevolent > Dictator for Life as is in keeping with the Pythonic and opensource > tradition and in recognition o

Re: [web2py] Re: Web2Py Foundation?

2010-12-28 Thread Tim Alexander
Something like that. We could go with "semi tolerant dictator for life"... :) On Tue, Dec 28, 2010 at 4:21 PM, mdipierro wrote: > benevolent? > > On Dec 28, 4:01 pm, Christopher Steel wrote: > > While it is not required due to the nature of his position, I do > > hereby officially recognize Ma

Re: [web2py] Re: Web2Py Foundation?

2010-12-28 Thread Branko Vukelić
On Tue, Dec 28, 2010 at 11:21 PM, mdipierro wrote: > benevolent? What? Prefer malevolent? :) -- Branko Vukelic stu...@brankovukelic.com http://www.brankovukelic.com/

Re: [web2py] web2py 1.91.5 is OUT

2010-12-28 Thread Jonathan Lundell
On Dec 28, 2010, at 2:09 PM, mdipierro wrote: > > Mostly bug fixes about new dal (joins, with_alias, ordering on joins > in postgresql, db().select(db.table.ALL) on GAE, behavior of boolean > writable=False, upload of new apps with missing file) and some > internal improvements (mostly due to Jona

[web2py] Re: unique constraint of multiple columns (at database level)

2010-12-28 Thread Luther Goh Lu Feng
Is there a reason why you are not using Auth, if you aren't? http://www.web2py.com/book/default/chapter/08#Authentication Anyway, assuming that you truly want to add the unique constraint, then I am guessing that you could construct virtual fields http://www.web2py.com/book/default/chapter/06#Vi

[web2py] Recaptcha in Email Form

2010-12-28 Thread Andrew Evans
How can I add Recaptcha to an email form? I am defining my mail settings here def email_user(sender,message,subject="Web Request from [NamiYama]"): from gluon.tools import Mail mail=Mail() mail.settings.server='smtp.gmail.com:587' mail.settings.login=None or 'user:pass' mail.

[web2py] Re: GEO region Searching...

2010-12-28 Thread Luther Goh Lu Feng
http://arstechnica.com/civis/viewtopic.php?f=20&t=1115412 has quite a few tips. On Dec 29, 3:12 am, Jason Brower wrote: > I know we can find good inforamtion geographical stuff in teh web2py > manual.  But is there a way to, for example, find things in a search > area around a coordinate? > My g

Re: [web2py] web2py 1.91.5 is OUT

2010-12-28 Thread Robert
Nice! Deploying and testing it right away! :)

Re: [web2py] web2py 1.91.5 is OUT

2010-12-28 Thread Michele Comitini
I thought it was intentional to keep urlencode compat. I used to solve it like this: vars = (('a',1), ('b',2), ('b',3)) > There was a fix a little while back, I think, to handle this for incoming > URLs. Sometimes a key appears more than once in a URL query string, like this: > >        http:/

Re: [web2py] web2py 1.91.5 is OUT

2010-12-28 Thread Jonathan Lundell
On Dec 28, 2010, at 3:43 PM, Michele Comitini wrote: > > I thought it was intentional to keep urlencode compat. > > I used to solve it like this: > > vars = (('a',1), ('b',2), ('b',3)) request.vars is a dict already, so it was more straightforward to go the other way. Also, I think that's the

[web2py] How to test for a web2py record or record ID ?

2010-12-28 Thread Fabiano
Hi, using web2py, frequently I write functions that will do stuff with specific database records. When writing functions that will deal with specific database records, I want to write them to be flexible on the way I may reference the record I want. I mean, I may pass different kinds of arguments

[web2py] Book misinformation about Multiple submission prevention with multiple forms

2010-12-28 Thread Fabiano
Hi, I just read a paragraph on the book that really worried me, on Chapter 7, Section Forms and Validators / FORM / Multiple forms per page: It reads "(...) when multiple forms are present on the same page, the mechanism for preventing double submission breaks, and you must omit the session a

[web2py] Re: Book misinformation about Multiple submission prevention with multiple forms

2010-12-28 Thread mdipierro
The book is incorrect. There is no problem with multiple forms per page with one caveat. If two or more of the form are SQLFORM.factory forms or if they are SQLFORMs related to the same table, you must give each of them unique names. Massimo On Dec 28, 9:44 pm, Fabiano wrote: > Hi, > > I just r

[web2py] Re: Book misinformation about Multiple submission prevention with multiple forms

2010-12-28 Thread Fabiano
On Wednesday, December 29, 2010 1:59:24 AM UTC-2, mdipierro wrote: > The book is incorrect. There is no problem with multiple forms per page That is exactly what I said, but that is not my point. My point is: The fact that the book is incorrect may pose a security risk to users that follow it an

[web2py] Re: Powertable remarks

2010-12-28 Thread tomt
Hi Bruno, I've just tried using your powertables plugin and I love it. The general appearance is great and the default search function is exactly what I was looking for. I'm looking forward to trying out the features you've planned. One small concern I have is the example I implemented allows me

[web2py] Re: Book misinformation about Multiple submission prevention with multiple forms

2010-12-28 Thread mdipierro
You are right. We will fix it in the next edition. On Dec 28, 10:15 pm, Fabiano wrote: > On Wednesday, December 29, 2010 1:59:24 AM UTC-2, mdipierro wrote: > > The book is incorrect. There is no problem with multiple forms per page > > That is exactly what I said, but that is not my point. > > My

[web2py] Re: Book misinformation about Multiple submission prevention with multiple forms

2010-12-28 Thread cjrh
On Dec 29, 7:13 am, mdipierro wrote: > You are right. We will fix it in the next edition. I made a fix in the online book (more of a deletion, really). Please Fabiano check it to make sure the new text is accurate: http://web2py.com/book/default/chapter/07#Multiple-forms-per-page

[web2py] Re: Book misinformation about Multiple submission prevention with multiple forms

2010-12-28 Thread Fabiano
Yes, much better, you didn't forget to update the sample code as well ;) On Wednesday, December 29, 2010 4:01:36 AM UTC-2, cjrh wrote: > > On Dec 29, 7:13 am, mdipierro wrote: > > You are right. We will fix it in the next edition. > > I made a fix in the online book (more of a deletion, really)

  1   2   >