[web2py:19724] Confirming bug - creating new application should redirect!

2009-04-14 Thread Italo Maia
I noticed that if i create a new application and then press the return button in my browser, web2py will try to resubmit the form. For what i understand, this happens because there should be a redirect after the form submission. Is this correct? Was this "behavior" planned? --~--~-~--~

[web2py:19725] Re: welcome to our friends from Brazil

2009-04-14 Thread Italo Maia
Entrando!!! On 11 abr, 17:10, "pirata.dabaixada" wrote: > Já entrei ! > > g-man escreveu: > > > Tudo bem! > > > On Apr 11, 11:35 am, Álvaro Justen [Turicas] > > wrote: > > >> Para quem fala Português, entre agora mesmo na lista de usuários > >> brasileiros do web2py. :-) > >> Participe e chame

[web2py:19726] how to detect connected users?

2009-04-14 Thread Marco Prosperi
hi all, how can I verify if there are users currently connected to my web2py application? I just want to know if there is at least one. The evolution of this question could be: how could I notify my app's users that I will stop the application for maintenance? thanks for hints, Marco --~--~--

[web2py:19727] Good article about authentication with web2py

2009-04-14 Thread Italo Maia
Hi! I'm new to web2py(as new as it gets), and i'm having some trouble with authentication stuff. Like, how to reference to it in db.py and stuff. So, if someone could tell me of a nice article covering the subject, i would love to read it = ] --~--~-~--~~~---~--~~ Y

[web2py:19728] Re: pyForum B3 released

2009-04-14 Thread Italo Maia
Nice =D I made a forum myself some time ago, with django, and yours looks great! On 14 abr, 01:28, Speedbird wrote: > Released a couple of minutes ago, the update contains Pseudo-html code > support added, and a little bit of code cleanup, read what this update > contain athttp://www.pyforum.org

[web2py:19729] Re: Good article about authentication with web2py

2009-04-14 Thread Jason Brower
I am using this now... http://mdp.cti.depaul.edu/AlterEgo/default/show/101 On Tue, 2009-04-14 at 00:51 -0700, Italo Maia wrote: > Hi! I'm new to web2py(as new as it gets), and i'm having some trouble > with authentication stuff. Like, how to reference to it in db.py and > stuff. So, if someone

[web2py:19730] Re: Good article about authentication with web2py

2009-04-14 Thread Jason Brower
Err... oops.. http://mdp.cti.depaul.edu/examples/default/tools#authentication This will help a lot more. BR -Jason On Tue, 2009-04-14 at 00:51 -0700, Italo Maia wrote: > Hi! I'm new to web2py(as new as it gets), and i'm having some trouble > with authentication stuff. Like, how to reference to i

[web2py:19731] Re: Threaded Based discussion examples

2009-04-14 Thread murray3
Thanks Julio, I changed some things around but still have not got it working. Here is my code: now I have a problem with "id" model: db.define_table("prodj", SQLField("timestamp",'datetime',default=now), SQLField("uuid",length=128,writable=False,default=str(uuid.uuid4 ())), SQLField(

[web2py:19734] Re: '%LIKE%' syntax.

2009-04-14 Thread web2py <<>> technicalbloke.com
Cool, thanks :-) On Apr 10, 6:13 pm, mdipierro wrote: > db(db.name.like('%alex%)).select() > > On Apr 10, 4:04 pm, "web2py <<>> technicalbloke.com" > > wrote: > > I can't seem to find a clear example of using 'like' in database > > selects. > > > I'd like to do something like... > > > SELECT *

[web2py:19733] Re: pyForum B3 released

2009-04-14 Thread rbuc
cool, keep up the good work! On Apr 14, 9:54 am, Italo Maia wrote: > Nice =D I made a forum myself some time ago, with django, and yours > looks great! > > On 14 abr, 01:28, Speedbird wrote: > > > Released a couple of minutes ago, the update contains Pseudo-html code > > support added, and a li

[web2py:19732] Re: GAE bug ?

2009-04-14 Thread rbuc
Hi! I tested with 1.60 and that query still doesn't work. Can this be resolved? Btw, is it possible to use the Entity key instead of an incrementing id? May be that would work? Thank you Ramon On Mar 9, 3:07 am, rbuc wrote: > Hi! > > any progress on this? the query doesn't seem to work with

[web2py:19735] Re: WARNING:root:unable to import dbhash (only from external cron)

2009-04-14 Thread AchipA
I don't follow. What does the shell choice got to do with tickets, especially in this (automated invocation) context ? On Apr 13, 6:59 am, Yarko Tymciurak wrote: > ...and even worse, the shell could be any number of applications (well - > python or ipython at least...) > > On Wed, Apr 8, 2009 at

[web2py:19736] Re: '%LIKE%' syntax.

2009-04-14 Thread AchipA
Yes, that syntax would cover it (not sure how obvious it would be to newbies, though). Massimo: the result should be something like "user input string" LIKE table.keyword_column On Apr 13, 3:30 pm, Wes James wrote: > On Sat, Apr 11, 2009 at 11:20 PM, mdipierro wrote: > > > I do not understand.

[web2py:19737] Re: how to detect connected users?

2009-04-14 Thread notabene
Hint: I don't believe You can notify user's - except if You have a javascript, which pulls notifications (if any) from the server (with certain intervals). Regards Niels Bjerre On Apr 14, 9:40 am, Marco Prosperi wrote: > hi all, how can I verify if there are users currently connected to my >

[web2py:19738] Re: how to detect connected users?

2009-04-14 Thread notabene
Hint You could save session-records to the database and se who has recently started a session (Modified Datetime). But it is difficult to notify the user - except when he calls a controller/function. On Apr 14, 9:40 am, Marco Prosperi wrote: > hi all, how can I verify if there are users current

[web2py:19739] Re: Threaded Based discussion examples

2009-04-14 Thread mdipierro
this line discuss=db(db.discuss.id==prodj.id).select(orderby=~db.discuss.score) should be discuss=db(db.discuss.id==prodj).select(orderby=~db.discuss.score) On Apr 14, 4:52 am, murray3 wrote: > Thanks Julio, > I changed some things around but still have not got it working. Here > is my code:

[web2py:19741] Re: pyForum B3 released

2009-04-14 Thread mdipierro
I think the forum is excellent but you need a better logo image. ;-) On Apr 14, 5:13 am, rbuc wrote: > cool, keep up the good work! > > On Apr 14, 9:54 am, Italo Maia wrote: > > > Nice =D I made a forum myself some time ago, with django, and yours > > looks great! > > > On 14 abr, 01:28, Speedb

[web2py:19740] Re: GAE bug ?

2009-04-14 Thread mdipierro
Please use 1.61 (it is faster on GAE). That query still does not work. On Apr 14, 5:12 am, rbuc wrote: > Hi! > > I tested with 1.60 and that query still doesn't work. Can this be > resolved? > > Btw, is it possible to use the Entity key instead of an incrementing > id? May be that would work? >

[web2py:19742] Using Ajax with forms

2009-04-14 Thread Nazgi
Hi, I'm a newbie for this framework, so i'm facing problems using Ajax. I actually want to create a form with a select option for the user. Based on the selection he makes, another select menu should be displayed with a few more options. And based on this selection, yet another selection men

[web2py:19743] Setting default language

2009-04-14 Thread CK Ng
I've created a simple appliance, and it needs to be in Chinese as default language, En as a fall back. Setting it using browser is not ideal as users are multi-lingual and probably accessing from public computer. I've tried putting this into the controller but to no avail. def index(): request

[web2py:19744] Re: Setting default language

2009-04-14 Thread mdipierro
T.force('en-zh') On Apr 14, 6:20 am, CK Ng wrote: > I've created a simple appliance, and it needs to be in Chinese as > default language, En as a fall back. > Setting it using browser is not ideal as users are multi-lingual and > probably accessing from public computer. > > I've tried putting th

[web2py:19745] Re: Confirming bug - creating new application should redirect!

2009-04-14 Thread mdipierro
with "press the return button in my browser," do you mean the "back" button? I am not sure how to avoid this. Any advice? Massimo On Apr 14, 2:09 am, Italo Maia wrote: > I noticed that if i create a new application and then press the return > button in my browser, web2py will try to resubmit t

[web2py:19746] Re: '%LIKE%' syntax.

2009-04-14 Thread mdipierro
I usually do db(db.name.like('%'+user_input_string+'%')).select() On Apr 14, 6:51 am, AchipA wrote: > Yes, that syntax would cover it (not sure how obvious it would be to > newbies, though). > > Massimo: the result should be something like "user input string" LIKE > table.keyword_column > > On

[web2py:19747] Re: welcome to our friends from Brazil

2009-04-14 Thread Tito Garrido
+1 :) On Tue, Apr 14, 2009 at 4:36 AM, Italo Maia wrote: > > Entrando!!! > > On 11 abr, 17:10, "pirata.dabaixada" > wrote: > > Já entrei ! > > > > g-man escreveu: > > > > > Tudo bem! > > > > > On Apr 11, 11:35 am, Álvaro Justen [Turicas] > > > wrote: > > > > >> Para quem fala Português, entre

[web2py:19748] WSGI, Apache2, and web2py NOT at root

2009-04-14 Thread Mark Larsen
I'm struggling setting up web2py with Apache2 and mod_wsgi. I've followed the manual, (page 205) mainly--> Alias / /home/web2py/applications/ ## setup WSGI WSGIScriptAlias / /home/web2py/wsgihandler.py WSGIDaemonProcess web2py user=www-data group=www-data home=/home/web2py/ 12 processes=10 maxim

[web2py:19749] Re: '%LIKE%' syntax.

2009-04-14 Thread AchipA
That won't match because of the (potential) extra characters in user_input_string. Imagine user_input_string is "web2py python web framework" and the keyword in the database is "%python%". On Apr 14, 1:51 pm, mdipierro wrote: > I usually do > > db(db.name.like('%'+user_input_string+'%')).select(

[web2py:19750] Re: Using Ajax with forms

2009-04-14 Thread Wes James
On Tue, Apr 14, 2009 at 3:11 AM, Nazgi wrote: > > Hi, > >     I'm a newbie for this framework, so i'm facing problems using > Ajax. I actually want to create a form with a select option for the > user. Based on the selection he makes, another select menu should be > displayed with a few more opti

[web2py:19751] To fill the fields of the form

2009-04-14 Thread Jose
I must insert information to the same table from three different SQLFORMs, as if it was a wizard. form1 -> form2 -> form3. In every form I force a field determined to take certain value. Except this field the others can be the same that the previous form. I want is to be able to fill the form

[web2py:19752] Re: To fill the fields of the form

2009-04-14 Thread mdipierro
def form1(): form=FORM() if form.accepts(request.vars): session.vars=form.vars redirect(URL(r=request,f='form2')) return dict(form=form) def form2(): if not session.vars: redirect(URL(r=request,f='form1')) form=FORM() if form.accepts(request.vars)

[web2py:19753] Re: Routes Help Plz :)

2009-04-14 Thread ceej
any ideas? Thank you in advance :) On Apr 14, 1:42 am, ceej wrote: > I've noticed that if I have mydomain.com/http://google.com?a=testit > will ignore a in path, is there anyway in routes I can convert ? to > safe text? I've created a tinyurl.com but better in web2py. This is my > last problem

[web2py:19754] Re: Issue: sqlite:memory:

2009-04-14 Thread vihang
The issue I raised coincides with what iceberg has described. I also agree with Yarko on the data persistence as a backend. But db in ram would be amazing as you can seamlessly use all DAL features ! Hopefully if we can get more traction on this feature. On Apr 14, 9:31 am, Yarko Tymciurak wrote

[web2py:19755] Re: To fill the fields of the form

2009-04-14 Thread Jose
On 14 abr, 15:18, mdipierro wrote: > def form1(): >     form=FORM() >     if form.accepts(request.vars): >          session.vars=form.vars >          redirect(URL(r=request,f='form2')) >     return dict(form=form) > > def form2(): >     if not session.vars: redirect(URL(r=request,f='form1')

[web2py:19756] Re: how to detect connected users?

2009-04-14 Thread Yarko Tymciurak
Notifications could be done by view-template panels that update system status (and perhaps nothing by default).Start reading: http://en.wikipedia.org/wiki/Push_technology 2009/4/14 notabene > > Hint > > You could save session-records to the database and se who has recently > started a session (

[web2py:19757] Re: Routes Help Plz :)

2009-04-14 Thread mdipierro
No routes does not see the path_info but that should transparently be passed to your app. On Apr 14, 10:27 am, ceej wrote: > any ideas? > > Thank you in advance :) > > On Apr 14, 1:42 am, ceej wrote: > > > I've noticed that if I have mydomain.com/http://google.com?a=testit > > will ignore a in

[web2py:19758] Re: Routes Help Plz :)

2009-04-14 Thread ceej
Hmm well for some reason it's ignoring and not passing anything past a ? On Apr 14, 11:00 am, mdipierro wrote: > No routes does not see the path_info but that should transparently be > passed to your app. > > On Apr 14, 10:27 am, ceej wrote: > > > any ideas? > > > Thank you in advance :) > > >

[web2py:19759] Re: RFC auto fields

2009-04-14 Thread mdipierro
but the user can already define its own parse(text) and use it db.define_table(*parse(text)) I am talking about *forcing* a new syntax to our users instead of having everybody come up with their own shortcuts. The solution I propose introduce a simpler syntax to define tables and set de

[web2py:19760] Re: Threaded Based discussion examples

2009-04-14 Thread Yarko Tymciurak
On Tue, Apr 14, 2009 at 8:32 AM, mdipierro wrote: > > this line > > discuss=db(db.discuss.id==prodj.id).select(orderby=~db.discuss.score) > > should be > > discuss=db(db.discuss.id==prodj).select(orderby=~db.discuss.score) You use prodj 3 ways, so this is really hard to read. prodj: the local

[web2py:19761] Re: '%LIKE%' syntax.

2009-04-14 Thread Yarko Tymciurak
function! - what function do you wnat? tokens=parcel(user_input_string) for token in parcel(user_input_string): db(db.name.like('%'+token+'%').select() (I leave it to you to coalesce to a single where phrase) On Tue, Apr 14, 2009 at 9:39 AM, AchipA wrote: > > That won't match because

[web2py:19762] Re: WSGI, Apache2, and web2py NOT at root

2009-04-14 Thread Yarko Tymciurak
you may need to set other things... (servername?) See if http://forum.webfaction.com/viewtopic.php?pid=8473#p8473 provides any hints for you On Tue, Apr 14, 2009 at 9:27 AM, Mark Larsen wrote: > > I'm struggling setting up web2py with Apache2 and mod_wsgi. I've > followed the manual, (page

[web2py:19763] Re: '%LIKE%' syntax.

2009-04-14 Thread mdipierro
I think we need db(db.table.field.contains_any(tokens)).select() db(db.table.field.contains_all(tokens)).select() I may have this already somewhere. I will add to 1.62 by next week. Massimo On Apr 14, 11:28 am, Yarko Tymciurak wrote: > function! - what function do you wnat? > tokens=parcel(

[web2py:19764] Re: how to detect connected users?

2009-04-14 Thread Jason Brower
Could you create a global variable. Have it check it, like we do with the response.flash stuff. if the value exists then show a modal popup with js or something similar. Regards, Jason Brower On Tue, 2009-04-14 at 05:01 -0700, notabene wrote: > Hint > > You could save session-records to the dat

[web2py:19765] Re: Can't seem to control number of apache procs

2009-04-14 Thread Fran
On Apr 12, 10:39 pm, Skip Montanaro wrote: > I'm trying to get web2py installed and running w/ WSGI on an Ubuntu > Intrepid virtual server.  Apache by itself was working just fine.  After > installing WSGI and setting up web2py using these instructions: > >    http://jdoe.asidev.com/2009/02/26/co

[web2py:19766] Re: RFC auto fields

2009-04-14 Thread Yarko Tymciurak
On Tue, Apr 14, 2009 at 11:18 AM, mdipierro wrote: > > but the user can already define its own > > parse(text) > > and use it > > db.define_table(*parse(text)) H not pre-this discussion. Anyway, if you are talking about parsing to create one string so that your chosen solution is i

[web2py:19767] Re: '%LIKE%' syntax.

2009-04-14 Thread Yarko Tymciurak
On Tue, Apr 14, 2009 at 11:56 AM, mdipierro wrote: > > I think we need > > db(db.table.field.contains_any(tokens)).select() > db(db.table.field.contains_all(tokens)).select() I like this - between your original suggestion (the entire user string) any and all ... this could be useful. There se

[web2py:19768] Re: Confirming bug - creating new application should redirect!

2009-04-14 Thread Álvaro Justen [Turicas]
On Tue, Apr 14, 2009 at 10:49 AM, mdipierro wrote: > with "press the return button in my browser," do you mean the "back" > button? > > I am not sure how to avoid this. Any advice? It's a "Django way of develop" that I like. Django's manual teach some good Web programming practices. :-) You can

[web2py:19769] Re: Confirming bug - creating new application should redirect!

2009-04-14 Thread Yarko Tymciurak
On Tue, Apr 14, 2009 at 1:13 PM, Álvaro Justen [Turicas] < alvarojus...@gmail.com> wrote: > > On Tue, Apr 14, 2009 at 10:49 AM, mdipierro > wrote: > > with "press the return button in my browser," do you mean the "back" > > button? > > > > I am not sure how to avoid this. Any advice? > > It's a "

[web2py:19770] Re: Confirming bug - creating new application should redirect!

2009-04-14 Thread Yarko Tymciurak
On Tue, Apr 14, 2009 at 2:09 AM, Italo Maia wrote: > > I noticed that if i create a new application and then press the return > button in my browser, web2py will try to resubmit the form. For what i > understand, this happens because there should be a redirect after the > form submission. Is this

[web2py:19771] Re: Confirming bug - creating new application should redirect!

2009-04-14 Thread mdipierro
Alvaro is right. This is a bug in the admin app. The site page does not redirect to self after form submission. I will fix it tonight. Massimo On Apr 14, 1:25 pm, Yarko Tymciurak wrote: > On Tue, Apr 14, 2009 at 2:09 AM, Italo Maia wrote: > > > I noticed that if i create a new application and

[web2py:19772] Re: Routes Help Plz :)

2009-04-14 Thread Álvaro Justen [Turicas]
On Tue, Apr 14, 2009 at 12:27 PM, ceej wrote: > > any ideas? > > Thank you in advance :) > > On Apr 14, 1:42 am, ceej wrote: >> I've noticed that if I have mydomain.com/http://google.com?a=testit >> will ignore a in path, is there anyway in routes I can convert ? to >> safe text? I've created a

[web2py:19773] Re: Routes Help Plz :)

2009-04-14 Thread Álvaro Justen [Turicas]
On Tue, Apr 14, 2009 at 3:41 PM, Álvaro Justen [Turicas] wrote: > as I requested in other thread[1], I think we can improve routes.py with: [1] http://groups.google.com/group/web2py/browse_thread/thread/dafc5113dfd8f07/9a9a8b3fffb36dc7?lnk=gst&q=routes.py#9a9a8b3fffb36dc7 -- Álvaro Justen P

[web2py:19774] Re: Routes Help Plz :)

2009-04-14 Thread mdipierro
You right. I am adding something along these lines. ... On Apr 14, 1:41 pm, Álvaro Justen [Turicas] wrote: > On Tue, Apr 14, 2009 at 12:27 PM, ceej wrote: > > > any ideas? > > > Thank you in advance :) > > > On Apr 14, 1:42 am, ceej wrote: > >> I've noticed that if I have mydomain.com/http://g

[web2py:19775] Poor performance on GAE

2009-04-14 Thread Ted G
I'm wondering if anyone has tips on where I should start in trying to track down performance problems running my web2py application on GAE. Initially I created an application using only the api's supplied by GAE. This app was very fast in terms of response times. I've since recreated and updated

[web2py:19776] Re: Threaded Based discussion examples

2009-04-14 Thread murray3
Thanks for your time guy's. I will heed your advice regarding code. cnhrism On Apr 14, 5:20 pm, Yarko Tymciurak wrote: > On Tue, Apr 14, 2009 at 8:32 AM, mdipierro wrote: > > > this line > > > discuss=db(db.discuss.id==prodj.id).select(orderby=~db.discuss.score) > > > should be > > > discuss=db

[web2py:19777] Re: Poor performance on GAE

2009-04-14 Thread mdipierro
I do not know how to profile on GAE. There are some things to consider: 0) make sure you use the provided gaehandler.py 1) you get the benefit of chaching bytecode compiler models and actions only if the page if accessed often 2) you will get a speed up if you use memcache session instead of data

[web2py:19778] Re: Poor performance on GAE

2009-04-14 Thread Robin B
Some ideas: There is a log_stats decorator in gaehandler.py that can be uncommented and enabled in production to give a more precise timing profile than the log coarse timing. The main caching mechanism is in compileapp.py and the compiled code should be cached in a dict called 'cfs' which can b

[web2py:19779] Re: Threaded Based discussion examples

2009-04-14 Thread Yarko Tymciurak
NP - Massimo's suggestion (if you rename prodj => requested_proj_id) is (probably) correct; the item var you have (and the associated select) seems not needed... On Tue, Apr 14, 2009 at 3:16 PM, murray3 wrote: > > Thanks for your time guy's. I will heed your advice regarding code. > cnhrism >

[web2py:19780] Re: pyForum B3 released

2009-04-14 Thread Speedbird
Yeah, that was a failed attempt of creating "something" in gimp in like 20 minutes :D I'll see what I can come up with in the next few weeks.. On Apr 14, 6:34 am, mdipierro wrote: > I think the forum is excellent but you need a better logo image. ;-) > > On Apr 14, 5:13 am, rbuc wrote: > > > >

[web2py:19781] Re: Poor performance on GAE

2009-04-14 Thread mdipierro
Another trick is put as much code you can in a module (in yourapp/ modules/) as and just call that from your models and controllers. Massimo On Apr 14, 3:38 pm, Robin B wrote: > Some ideas: > > There is a log_stats decorator in gaehandler.py that can be > uncommented and enabled in production t

[web2py:19782] Missing gluon.settings on GAE

2009-04-14 Thread Gary
I updated to 1.62 this morning and made two changes in the views. When I uploaded to GAE, the application failed with a "600 server error" and the log shows: : No module named settings Traceback (most recent call last): File "/base/data/home/apps/utilityplant/1.332789504321242905/ gaehandler.py

[web2py:19783] Re: Missing gluon.settings on GAE

2009-04-14 Thread mdipierro
Yes, there should be a gluon/settings.py that was not there before. Did you use bzr, svn or the source from the web page? Massimo On Apr 14, 3:42 pm, Gary wrote: > I updated to 1.62 this morning and made two changes in the views. > When I uploaded to GAE, the application failed with a "600 ser

[web2py:19784] Re: Missing gluon.settings on GAE

2009-04-14 Thread Gary
Source from the web page. On Apr 14, 5:08 pm, mdipierro wrote: > Yes, there should be agluon/settings.py that was not there before. > > Did you use bzr, svn or the source from the web page? > > Massimo > > On Apr 14, 3:42 pm, Gary wrote: > > > I updated to 1.62 this morning and made two chang

[web2py:19785] Re: pyForum B3 released

2009-04-14 Thread mikech
This is very impressive. How long did it take you to do the web2py portion and the UI portion? I'm just learning Python, and this is one of the nicest web2py sites that I've seen. Mike On Apr 14, 1:43 pm, Speedbird wrote: > Yeah, that was a failed attempt of creating "something" in gimp in >

[web2py:19786] Re: Missing gluon.settings on GAE

2009-04-14 Thread mdipierro
I just downloaded it again and the settings.py is there and works fine for me. Please download it again. Massimo On Apr 14, 4:10 pm, Gary wrote: > Source from the web page. > > On Apr 14, 5:08 pm, mdipierro wrote: > > > Yes, there should be agluon/settings.py that was not there before. > > > D

[web2py:19789] Re: Can't seem to control number of apache procs

2009-04-14 Thread mdipierro
Could you post your apache and wsgi config files? On Apr 14, 12:04 pm, Fran wrote: > On Apr 12, 10:39 pm, Skip Montanaro wrote: > > > > > I'm trying to get web2py installed and running w/ WSGI on an Ubuntu > > Intrepid virtual server. Apache by itself was working just fine. After > > installi

[web2py:19787] Re: pyForum B3 released

2009-04-14 Thread mdipierro
I added it to the list: http://www.appliedstacks.com/NewestFirst/web2py Massimo On Apr 14, 4:44 pm, mikech wrote: > This is very impressive. How long did it take you to do the web2py > portion and the UI portion? I'm just learning Python, and this is one > of the nicest web2py sites that I'v

[web2py:19788] Re: Missing gluon.settings on GAE

2009-04-14 Thread Álvaro Justen [Turicas]
On Tue, Apr 14, 2009 at 6:50 PM, mdipierro wrote: > I just downloaded it again and the settings.py is there and works fine > for me. Please download it again. How web2py_src.zip is created in server? Some time ago I had a problem downloading this file (error 404). Is there a chance that Gary dow

[web2py:19790] Re: Missing gluon.settings on GAE

2009-04-14 Thread Gary
Massimo, You are absolutely correct and it was in the file that I downloaded this morning. I must have done something that failed to copy into the subdirectories. I just want to say that that Web2py is a beautiful piece of work and you should be commended for it's elegance. I found it a little

[web2py:19791] Re: Missing gluon.settings on GAE

2009-04-14 Thread mdipierro
Thanks Gary and thanks for using web2py. Massimo On Apr 14, 5:06 pm, Gary wrote: > Massimo, > > You are absolutely correct and it was in the file that I downloaded > this morning. I must have done something that failed to copy into the > subdirectories. > > I just want to say that that Web2py

[web2py:19792] Re: Good article about authentication with web2py

2009-04-14 Thread Italo Maia
No good : /. Couldn't find a example referencing an user model : /. On 14 abr, 05:09, Jason Brower wrote: > Err... oops..http://mdp.cti.depaul.edu/examples/default/tools#authentication > This will help a lot more. > BR > -Jason > > On Tue, 2009-04-14 at 00:51 -0700, Italo Maia wrote: > > Hi! I'm

[web2py:19793] Re: Good article about authentication with web2py

2009-04-14 Thread mdipierro
I will amend it. You can do this auth=Auth(globals(),db) db.define_table('auth_user', SQLField('first_name',length=128), SQLField('last_name',length=128), SQLField('password','password',requires=CRYPT()), SQLField('registration_key',length=128)) auth.settings.table_user=db.auth_user

[web2py:19794] Re: pyForum B3 released

2009-04-14 Thread Yarko Tymciurak
On Tue, Apr 14, 2009 at 3:43 PM, Speedbird wrote: > > Yeah, that was a failed attempt of creating "something" in gimp in > like 20 minutes :D > > I'll see what I can come up with in the next few weeks.. I ran accross this the other night - you might find it interesting (a graphic web-based stud

[web2py:19795] Missing in database layer docs

2009-04-14 Thread Italo Maia
"unique" field attribute is not there, though i could find it in the cheatsheet. link : http://mdp.cti.depaul.edu/examples/default/dal --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To p

[web2py:19796] Problem with pack (truncated tar files)

2009-04-14 Thread John
I have been experiencing some issues with "pack all", and attempting to deploy an app on a different web2py instance. Long version: (for others that might be experiencing the same thing) My dev machine is a mac and the other test bed box is a windows vm (not that it matters). I was seeing some o

[web2py:19797] Re: Poor performance on GAE

2009-04-14 Thread Ted G
Thank you for the tips. I'll work through these and determine if I can find a specific root cause of the performance problem. I've been testing on a particular page of the application that lists a number of items along with thumbnail images for those items. The thumbnails are images placed into a

[web2py:19798] Re: pyForum B3 released

2009-04-14 Thread mdipierro
cool! On Apr 14, 5:51 pm, Yarko Tymciurak wrote: > On Tue, Apr 14, 2009 at 3:43 PM, Speedbird wrote: > > > Yeah, that was a failed attempt of creating "something" in gimp in > > like 20 minutes :D > > > I'll see what I can come up with in the next few weeks.. > > I ran accross this the other ni

[web2py:19799] Re: Problem with pack (truncated tar files)

2009-04-14 Thread mdipierro
Is this reproducible? Does the browser make a difference? Can you try delete everything under web2py/deposit and try again? Massimo On Apr 14, 7:58 pm, John wrote: > I have been experiencing some issues with "pack all", and attempting > to deploy an app on a different web2py instance. > > Long

[web2py:19800] Re: Poor performance on GAE

2009-04-14 Thread mdipierro
Whatever you discover please let us know. It will help us improve. Massimo On Apr 14, 8:26 pm, Ted G wrote: > Thank you for the tips. I'll work through these and determine if I can > find a specific root cause of the performance problem. > > I've been testing on a particular page of the applica

[web2py:19801] Re: RFC auto fields

2009-04-14 Thread mdipierro
I have been thinking about this. Even if I do not like your proposal Yarko, I think you have a better point than you think. In fact form_factory would not work with my proposal syntax but it would work with yours and that is a big plus in your favor. I am tired so I think I am going to sleep on t

[web2py:19802] Re: Missing in database layer docs

2009-04-14 Thread mdipierro
fixing now! Thanks On Apr 14, 5:59 pm, Italo Maia wrote: > "unique" field attribute is not there, though i could find it in the > cheatsheet. > link :http://mdp.cti.depaul.edu/examples/default/dal --~--~-~--~~~---~--~~ You received this message because you are sub

[web2py:19803] Re: Problem with pack (truncated tar files)

2009-04-14 Thread John
It is reproducible (at least on my machine). Same problem with Firefox 3 and Safari 4beta. The tar file placed in web2py/deposit exhibits the same problem as the file that is downloaded. Both files are identical as verified by md5 checksums, so it is not happing during the transfer, but with I

[web2py:19804] Re: Problem with pack (truncated tar files)

2009-04-14 Thread mdipierro
There is a python 2.5 requirement mostly because that is what I tested. This looks like a bug in the tar module that ships with 2.6.1. Massimo On Apr 14, 10:04 pm, John wrote: > It is reproducible (at least on my machine). > > Same problem with Firefox 3 and Safari 4beta.  The tar file placed

[web2py:19805] Re: Setting default language

2009-04-14 Thread CK Ng
Thanks, that solved the first problem On Apr 14, 9:48 pm, mdipierro wrote: > T.force('en-zh') > Additional Q: - Could we use T() inside the template? Or we can only pass it in as dict? --~--~-~--~~~---~--~~ You received this message because you are subscribed to