[web2py] Re: Error message during upgrade

2011-01-01 Thread mdipierro
Yes. Please check trunk. On Jan 1, 11:23 pm, Bruno Rocha wrote: > 2011/1/2 mdipierro > > > its is a known problem that the automatic upgrade button does not work > > on windows > > Is there a way to detect that is running on Windows to disable the upgrade > buttom? > > -- > > Bruno Rochahttp://a

Re: [web2py] Re: Error message during upgrade

2011-01-01 Thread Jonathan Lundell
On Jan 1, 2011, at 9:23 PM, Bruno Rocha wrote: > 2011/1/2 mdipierro > its is a known problem that the automatic upgrade button does not work > on windows > > Is there a way to detect that is running on Windows to disable the upgrade > buttom? > platform.system() http://docs.python.org/library

Re: [web2py] Re: Error message during upgrade

2011-01-01 Thread Bruno Rocha
2011/1/2 mdipierro > its is a known problem that the automatic upgrade button does not work > on windows Is there a way to detect that is running on Windows to disable the upgrade buttom? -- Bruno Rocha http://about.me/rochacbruno/bio

[web2py] Re: Error message during upgrade

2011-01-01 Thread mdipierro
its is a known problem that the automatic upgrade button does not work on windows On Jan 1, 10:06 pm, weheh wrote: > I tried the automatic upgrade button & got this error message: > > unable to upgrade because "[Errno 13] Permission denied: 'C:\\web2py/ > _ctypes.pyd'"

[web2py] Error message during upgrade

2011-01-01 Thread weheh
I tried the automatic upgrade button & got this error message: unable to upgrade because "[Errno 13] Permission denied: 'C:\\web2py/ _ctypes.pyd'"

Re: [web2py] Re: Powertable remarks

2011-01-01 Thread Bruno Rocha
BTW Here is an updated version of the plugin: https://bitbucket.org/rochacbruno/powertable/downloads I fixed some bugs, included a test version of server side JSON parsing, search works globally and by column, and there is a new jQueriUI theme called Aristo. If I did not sleep this night I'll upd

Re: [web2py] Re: Powertable remarks

2011-01-01 Thread Bruno Rocha
> > Hello, > > In-line editing is listed as a feature of powertable. Would it be > possible for you to include a working example of this in your demo? > Yes, I am working to finish some features and the most important (server side processing) In my plan is a tutorial, documentations and a video.

Re: [web2py] Re: RFC: new URL routing facility

2011-01-01 Thread Jonathan Lundell
On Jan 1, 2011, at 5:46 PM, villas wrote: > > The 'default_controller' variable in routes.py doesn't seem to be > available in the rest of the app. > From where may I access that information? > Or, do I have to set that variable again in as an app setting > somewhere (not very DRY!). I'm not sure

[web2py] Re: Powertable remarks

2011-01-01 Thread tomt
Hello, In-line editing is listed as a feature of powertable. Would it be possible for you to include a working example of this in your demo? Thanks, - Tom On Dec 29 2010, 9:49 pm, Bruno Rocha wrote: > Here is a complete list of working powerTable > options:https://bitbucket.org/rochacbruno/po

[web2py] Re: RFC: new URL routing facility

2011-01-01 Thread villas
Hi Jonathan The 'default_controller' variable in routes.py doesn't seem to be available in the rest of the app. >From where may I access that information? Or, do I have to set that variable again in as an app setting somewhere (not very DRY!). -David

[web2py] Re: Web2py Application Exhibition 2.0 Winning Entries

2011-01-01 Thread selecta
thank you :D great start for a new year > Congratulations to the winners!

[web2py] Re: Web2py Application Exhibition 2.0 Winning Entries

2011-01-01 Thread DenesL
+1 On Jan 1, 11:52 am, mdipierro wrote: > Congratulations to the winners!

[web2py] Re: bug with multi-form input component [Open]

2011-01-01 Thread weheh
Massimo, the more I think about this the more I get concerned. Security is a great strength of web2py. The form validation and various security features of file upload are among web2py's strengths. >From the looks of it, anybody using components and file upload will have to do all the file uploadin

[web2py] bug with writing w2p file

2011-01-01 Thread weheh
I'm trying to pack all my app but the resulting w2p file is empty: 0 length. Version 1.89.5

[web2py] Re: bug with multi-form input component [Open]

2011-01-01 Thread weheh
@Arun: thanks for the lnk. I'll study it. @Massimo: this is a disappointment. Everything else seems to run so smoothly with components, it's a bit user-hostile that multipart forms shouldn't work out of the box. On Jan 1, 11:44 am, mdipierro wrote: > This is not a web2py bug. It is simply that Aj

Re: [web2py] routes_apps_raw=['myapp'] and associated problems

2011-01-01 Thread Jonathan Lundell
On Jan 1, 2011, at 11:33 AM, Arun K.Rajeevan wrote: > I'm doing following code now, and is working. > as you can see, no checking on arguments. > > Please show me how to do (or what to check) any checks on arguments. > > #--

Re: [web2py] routes_apps_raw=['myapp'] and associated problems

2011-01-01 Thread Arun K.Rajeevan
I'm doing following code now, and is working. as you can see, no checking on arguments. Please show me how to do (or what to check) any checks on arguments. #-- def user(): import gluon request.args = gluon.s

Re: [web2py] Re: Web2py Application Exhibition 2.0 Winning Entries

2011-01-01 Thread Bruno Rocha
2011/1/1 mdipierro > Congratulations to the winners! Thanks! and I thank everyone who voted and helped test the plugin. -- Bruno Rocha http://about.me/rochacbruno/bio

Re: [web2py] routes_apps_raw=['myapp'] and associated problems

2011-01-01 Thread Arun K.Rajeevan
On Saturday, January 1, 2011 1:36:06 PM UTC-5, Jonathan Lundell wrote: > > On Jan 1, 2011, at 10:12 AM, Arun K.Rajeevan wrote: > > See my earlier message on this subject. > > It works just fine. Thank you. I ain't that good on regex, so I'd like to know what '([\w@ -][=.]?)+$' this implies. I u

Re: [web2py] Re: routes_apps_raw=['myapp'] and associated problems

2011-01-01 Thread Arun K.Rajeevan
Sorry, I can't find that post. can you give a link to that post, please?

Re: [web2py] Re: routes_apps_raw=['myapp'] and associated problems

2011-01-01 Thread Jonathan Lundell
On Jan 1, 2011, at 10:33 AM, Arun K.Rajeevan wrote: > apart from setting, > routes_apps_raw=['init'] > > I've these changes to routs.py > > routes_in = ( (r'.*:/favicon.ico', r'/init/static/favicon.ico'), >(r'.*:/robots.txt', r'/init/static/robots.txt'), > (r'

Re: [web2py] routes_apps_raw=['myapp'] and associated problems

2011-01-01 Thread Jonathan Lundell
On Jan 1, 2011, at 10:12 AM, Arun K.Rajeevan wrote: > I set, routes_apps_raw=['init'] > > and modified controllers to use request.raw_args > Now my controllers are working fine. > > But it caused two new problems :related to download and login > > 1) def download(): >return response.down

[web2py] Re: routes_apps_raw=['myapp'] and associated problems

2011-01-01 Thread Arun K.Rajeevan
apart from setting, routes_apps_raw=['init'] I've these changes to routs.py routes_in = ( (r'.*:/favicon.ico', r'/init/static/favicon.ico'), (r'.*:/robots.txt', r'/init/static/robots.txt'), (r'.*(php|PHP|asp|ASP|jsp|JSP)', r'/jammer/default/index'), ) rout

Re: [web2py] URL encoding

2011-01-01 Thread Jonathan Lundell
On Jan 1, 2011, at 10:05 AM, Arun K.Rajeevan wrote: > I did just this and seems working > > args = request.raw_args > args = args.split('/') > > But now problem is with download function. > It works by taking filename from request.args > now, it should take value from request.raw_args > > My do

Re: [web2py] URL encoding

2011-01-01 Thread Arun K.Rajeevan
Thank you for your notes and to the point quotes. :)

[web2py] routes_apps_raw=['myapp'] and associated problems

2011-01-01 Thread Arun K.Rajeevan
I set, routes_apps_raw=['init'] and modified controllers to use request.raw_args Now my controllers are working fine. But it caused two new problems :related to download and login *1)* def download(): return response.download(request,db) since above will not work when routes_apps_

[web2py] Re: URL encoding

2011-01-01 Thread mdipierro
This is unsafe and may open the door to directory traversal attacks. download decurity relies on url regex validation and you are by- passing it. On Jan 1, 12:05 pm, "Arun K.Rajeevan" wrote: > I did just this and seems working > > args = request.raw_args > args = args.split('/') > > But now probl

Re: [web2py] URL encoding

2011-01-01 Thread Jonathan Lundell
On Jan 1, 2011, at 9:23 AM, Arun K.Rajeevan wrote: > Ok, I'm gonna experiment with raw_args. > I was wondering what's this #routes_apps_raw=['myapp'] thing before (I was > customizing routes) Don't forget to remove the #. > > When I use this functionality, am I correct in assuming that, I've t

Re: [web2py] URL encoding

2011-01-01 Thread Arun K.Rajeevan
I did just this and seems working args = request.raw_args args = args.split('/') But now problem is with download function. It works by taking filename from request.args now, it should take value from request.raw_args My download function is following: def download(): return response.downl

Re: [web2py] How web2py handles URLs

2011-01-01 Thread Arun K.Rajeevan
I'am opening another post because I've found a whole lot of new problems

Re: [web2py] Re: RFC: new URL routing facility

2011-01-01 Thread Jonathan Lundell
On Jan 1, 2011, at 9:25 AM, Arun K.Rajeevan wrote: > When will it be available for us to experiment. > > regex is always a bit difficult to maintain. I hope to get a beta patch to Massimo in a few days. By "beta" I mean that it's not fully tested, and the API might not be final. But all the fu

Re: [web2py] How web2py handles URLs

2011-01-01 Thread Arun K.Rajeevan
I did just this and seems working args = request.raw_args args = args.split('/') But now problem is with download function. It works by taking filename from request.args now, it should take value from request.raw_args My download function is following: def download():4 return response.down

[web2py] launching background processesig

2011-01-01 Thread apple
he manual suggests running a background process using: "python web2py.py -S app -M -N -R applications/app/private/ myscript.py -A a b c". How does one initiate this from within a web2py controller? And is it possible to initiate a process within the same web2py instance - otherwise wouldn't it

[web2py] Re: RFC: new URL routing facility

2011-01-01 Thread Arun K.Rajeevan
When will it be available for us to experiment. regex is always a bit difficult to maintain.

Re: [web2py] URL encoding

2011-01-01 Thread Arun K.Rajeevan
Ok, I'm gonna experiment with raw_args. I was wondering what's this *#routes_apps_raw=['myapp'] *thing before (I was customizing routes) When I use this functionality, am I correct in assuming that, I've to do encoding and decoding both? I can decode request.raw_args. But where did I encode? I

Re: [web2py] How web2py handles URLs

2011-01-01 Thread Arun K.Rajeevan
Ok. In that case, what's the work around that you suggest? Well, I suggest framework to provide a mechanism to override parts of it (of course, at user's on risk) Here web2py does encoding and decoding, but for a situation like I'm in, it's nice to provide a mechanism to turn of encoding/decodi

[web2py] Re: How web2py handles URLs

2011-01-01 Thread Arun K.Rajeevan
yes of course.

[web2py] Re: auth.settings.controller doesn't run

2011-01-01 Thread mdipierro
The content of the email is set in models/db.py auth.messages.verify_email = 'Click on the link http://'+request.env.http_host+URL(r=request,c='default',f='user',args=['verify_email'])+'/%(key)s to verify your email' If you relocate the 'user' action you have to change the content of the email.

[web2py] Re: auth.settings.controller doesn't run

2011-01-01 Thread villas
Hi Leone I was just trying to do the same thing! I failed. Like you, I went from one problem to the next and the urls never seemed to work 100% correctly for all cases. In the end I gave up in frustration and relocated 'user' function back into 'default' :( -D On Dec 31 2010, 7:48 am, leone

Re: [web2py] How web2py handles URLs

2011-01-01 Thread Jonathan Lundell
On Jan 1, 2011, at 7:05 AM, Arun K.Rajeevan wrote: > I don't see the resultant url encoding apostrophe. > Also, space is getting replaced by underscore! > > How can I determine whether that's actually an underscore? > > I see this tutorial and I'm not wrong in saying that apostrophes must be >

[web2py] Re: Web2py Application Exhibition 2.0 Winning Entries

2011-01-01 Thread mdipierro
Congratulations to the winners! On Jan 1, 8:50 am, NetAdmin wrote: > The votes are in for the Web2py Application Exhibition Version 2.0 > and the winners are... > >  1st Place $100 -- PowerTable Plugin by Bruno Rocha >  2nd Place  $50 -- pyMantis Data-management System by Falko Krause > >  For mo

[web2py] Re: Proposal for login /gluon/tools.py)

2011-01-01 Thread mdipierro
#2 in trunk, please check On Jan 1, 7:47 am, Anthony wrote: > +1 for alternative #2. > > On Saturday, January 1, 2011 4:41:41 AM UTC-5, mweissen wrote: > > Hi, > > > the label "Remember me (for 30 days)" and the checkbox look not very nice, > > because both are in the same column and there is no

[web2py] Re: bug with multi-form input component [Open]

2011-01-01 Thread mdipierro
This is not a web2py bug. It is simply that Ajax post does not support multipart forms, i.e. file uploads. There are workarounds using JS libraries. On Jan 1, 5:21 am, "Arun K.Rajeevan" wrote: > Last day I found a slice talking about this problem. > > http://www.web2pyslices.com/main/slices/take

Re: [web2py] URL encoding

2011-01-01 Thread Jonathan Lundell
On Jan 1, 2011, at 12:38 AM, Arun K.Rajeevan wrote: > My application has a search form: it self submit to whatever page it is in > and redirects to search function. > I took vars from search form (like, term = request.args(0)) and redirect as > redirect (c='..', f='..', args=[v]) > > Now, in res

Re: [web2py] Translation problem

2011-01-01 Thread Jonathan Lundell
On Jan 1, 2011, at 2:30 AM, Martin Weissenboeck wrote: > > > 2010/12/31 Jonathan Lundell > On Dec 31, 2010, at 11:20 AM, Martin Weissenboeck wrote: >> No, I did not not want to translate these sentences manually. >> The error_message=T(..) does not work, because there are some if-statements >>

[web2py] Help update the web2py powered-by list

2011-01-01 Thread Anthony
Hi All, If you have created, maintain, or are aware of a website powered by web2py that is not already on the powered-by list at http://www.web2py.com/poweredby, please either (a) add the site to the list, or (b) email me privately or post a link here, and I will add it. Note, if you add the

[web2py] URL encoding

2011-01-01 Thread pbreit
There's a short discussion here http://web2py.com/book/default/chapter/04#Dispatching Which seems to suggest what you are seeing. Perhaps there's an ENV variable that can provide the un-manipulated args?

[web2py] Re: Legacy table

2011-01-01 Thread Marcello
Thanks Danes and Bruno... That's what I needed On Dec 31 2010, 5:28 pm, Bruno Rocha wrote: > If I understood well you need to do: > > person = db.define_table('another_name',Field(...),Field(...),migrate=False) > > so you have 'person' object. > > person.insert(name='blablabla') > > rows

[web2py] Re: RFC: new URL routing facility

2011-01-01 Thread villas
I especially like the language support which will enable consistent bookmarking of urls. This all seems very good - thanks! -D On Dec 31 2010, 10:36 pm, Jonathan Lundell wrote: > I've been working on a new URL routing facility that provides fairly powerful > rewriting with very simple configurat

[web2py] How web2py handles URLs

2011-01-01 Thread pbreit
Are you sung the URL() helper function? It should take care of all of the encoding. What does your code look like?

[web2py] How web2py handles URLs

2011-01-01 Thread Arun K.Rajeevan
I don't see the resultant url encoding apostrophe. Also, space is getting replaced by underscore! How can I determine whether that's actually an underscore? I see this tutorial and I'm not wrong in saying that apostrophes must be encoded, right? http://www.permadi.com/tutorial/urlEncoding/ Or

[web2py] Web2py Application Exhibition 2.0 Winning Entries

2011-01-01 Thread NetAdmin
The votes are in for the Web2py Application Exhibition Version 2.0 and the winners are... 1st Place $100 -- PowerTable Plugin by Bruno Rocha 2nd Place $50 -- pyMantis Data-management System by Falko Krause For more information and to see other entries, go to http://w2pexhibition.appspot.com

[web2py] Sharing fields across form

2011-01-01 Thread Kenneth Lundström
Hello, is it possible to share fields and create a form with multiple submit buttons. Example: Description: (same for both forms) Product: (specific for form one) Hours: (specific for form two) Submit product Submit hours Depening on which button you press different tables should be used.

[web2py] Re: Proposal for login /gluon/tools.py)

2011-01-01 Thread Anthony
+1 for alternative #2. On Saturday, January 1, 2011 4:41:41 AM UTC-5, mweissen wrote: > Hi, > > the label "Remember me (for 30 days)" and the checkbox look not very nice, > because both are in the same column and there is no space betwenn the > checkbox and the label: > > Login > > Usernam

Re: [web2py] recaptcha customizations

2011-01-01 Thread Plumo
nice - this should be added to trunk.

Re: [web2py] Translation problem

2011-01-01 Thread Martin Weissenboeck
2010/12/31 Jonathan Lundell > On Dec 31, 2010, at 11:20 AM, Martin Weissenboeck wrote: > > No, I did not not want to translate these sentences *manually*. > The error_message=T(..) does not work, because there are some if-statements > inside the class IS_INT_IN_RANGE (and in some other classes).

[web2py] Re: bug with multi-form input component [Open]

2011-01-01 Thread weheh
I have done some more testing and confirmed that this looks like a legit problem. When I direct the browser to load myapp/mycontroller/ index.load and pick a file to upload from the upload file form, it gets uploaded and submitted properly to myapp. However, when the submission occurs when running

Re: [web2py] Proposal for login /gluon/tools.py)

2011-01-01 Thread Kenneth Lundström
Happy New Year to everybody. I vote for alternative two. Kenneth Hi, the label "Remember me (for 30 days)" and the checkbox look not very nice, because both are in the same column and there is no space betwenn the checkbox and the label: Login Username: Password:

Re: [web2py] 3rd party library import error

2011-01-01 Thread Richard Baron Penman
thanks, I used the site-packages approach. On Sat, Jan 1, 2011 at 6:04 PM, Jonathan Lundell wrote: > On Dec 31, 2010, at 9:24 PM, Plumo wrote: > > My app uses Google's gdata client library: > http://code.google.com/p/gdata-python-client/ > > modules/ > gdata/ > atom/ > test.py > > test.py

[web2py] URL encoding

2011-01-01 Thread Arun K.Rajeevan
My application has a search form: it self submit to whatever page it is in and redirects to search function. I took vars from search form (like, term = request.args(0)) and redirect as redirect (c='..', f='..', args=[v]) Now, in result of search form I get underscores(_) if search term include a

[web2py] Re: Happy New Year in 2011

2011-01-01 Thread Arun K.Rajeevan
Happy new year