[web2py] Re: Wordpress model file

2013-12-21 Thread guruyaya
I'm ashamed to say I've failed to submit the slice. And that the committed version had a syntax error. Boy, I had a bad day yesterday :( On Saturday, December 21, 2013 9:19:51 AM UTC+2, guruyaya wrote: > > I have several projects in my work, that require handling wordpress. As I > hate doing stu

[web2py] Re: auth.is_logged_in(), @auth.requires_signature() behaving ornery in CORS situation

2013-12-21 Thread weheh
At the least, the doc should be updated to reflect that web2py_component and LOAD won't work under CORS conditions. On Sunday, December 22, 2013 12:21:22 AM UTC+8, weheh wrote: > > @LightDot: Yah, that's the conclusion I've come to and already begun > implementing. But, something nags at me a li

Re: [web2py] server slow down when face multiple requests

2013-12-21 Thread Vinicius Assef
If you're using sqlite or migrations are enabled, this can be a bottleneck. On Fri, Dec 20, 2013 at 7:28 PM, sonu kumar wrote: > Hi All, > I have built one application using web2py and running on Apache server on > unix environment. During testing of this application what I found is slowing > dow

Re: [web2py] OAuth2 + Twitter 'module' object has no attribute 'Consumer' error

2013-12-21 Thread Luciano Laporta Podazza
Hello Michele!, Well, it seems that I casually rebooted my Mac(OS X 10.9.1) and now magically works :P >>> print consumer Now i'm facing some issues with forms at Twitter/Facebook login so perhaps you'll see another new post from me. Just in case, do you have some good(newer) examples of int

Re: [web2py] Re: setting up web2py for godaddy.com

2013-12-21 Thread Michele Comitini
+1 for PythonAnywhere they really help you and are competent. 2013/12/21 Massimo Di Pierro > First of all, don't. Use PythonAnywhere.com instead. It is cheaper, and > more Python friendly. > > If you really have to, you have two options, FastCGI and Proxy. The latter > is the simplest way. You

Re: [web2py] OAuth2 + Twitter 'module' object has no attribute 'Consumer' error

2013-12-21 Thread Michele Comitini
oauth2 is an unfortunate name chosen for a module that actually implements oauth1.0a: see https://pypi.python.org/pypi/oauth2 About the error check that you have installed the above package on your system. You can do so in a python shell: $ python >>> import oauth2 >>> consumer = oauth2.Consumer

[web2py] OAuth2 + Twitter 'module' object has no attribute 'Consumer' error

2013-12-21 Thread Luciano Laporta Podazza
Hello, I've been trying to integrate Facebook/Twitter login with Web2py 2.8.2-stable and OAuth2(the built-in oauth20_account.py) using this example: https://groups.google.com/forum/#!topic/web2py/S9ukjWz6qMA Facebook login works but when I try the Twitter example I get this traceback: Traceb

Re: [web2py] Re: Proposal - use the value of an environment variable as a path_prefix

2013-12-21 Thread Rob Mayhue
I just want to update this thread. I liked Jonathan's idea about making path_prefix accept a regex but in trying to implement that idea I decided on a slightly different solution. The new solution adds `prefix_match` as a new router param. routers = dict( ... BASE=dict( ...

[web2py] Re: setting up web2py for godaddy.com

2013-12-21 Thread Massimo Di Pierro
First of all, don't. Use PythonAnywhere.com instead. It is cheaper, and more Python friendly. If you really have to, you have two options, FastCGI and Proxy. The latter is the simplest way. You run web2py from shell as you normally do, from localhost, and you configure .htaccess to redirect all

[web2py] Re: auth.is_logged_in(), @auth.requires_signature() behaving ornery in CORS situation

2013-12-21 Thread weheh
Yah, that's the conclusion I've come to and already begun implementing. But, something nags at me a little about all SSL all the time. Seems like it's overkill under certain circumstances. But maybe that's a good thing in this day and age. On Saturday, December 21, 2013 11:33:37 PM UTC+8, Light

[web2py] Re: auth.is_logged_in(), @auth.requires_signature() behaving ornery in CORS situation

2013-12-21 Thread LightDot
You could also programmatically enforce the usage of ssl across the entire site. Your ajax call would always be https -> https, making CORS redundant... Regards On Saturday, December 21, 2013 3:44:51 PM UTC+1, weheh wrote: > > I am dead in the water trying to make an https ajax call from an htt

Re: [web2py] auth.is_logged_in and @auth.requires_signature() under investigation

2013-12-21 Thread Marin Pranjić
@weheh, the quick fix would be using custom ajax function instead of using web2py_component. It's meant to be used with server-side LOAD helper. Since you can't create CORS component using LOAD, I'm not sure if web2py_component should work with CORS either. So, instead of calling web2py_component,

Re: [web2py] auth.is_logged_in and @auth.requires_signature() under investigation

2013-12-21 Thread Marin Pranjić
Hello, I tried to trace down the problem. If you sign an url on different scheme (http -> https) everything works when opened manually in browser. But when opening it async, for example using $.ajax, current.session is empty. This causes URL.Verify to return False because there is no session.auth

[web2py] auth.is_logged_in and @auth.requires_signature() under investigation

2013-12-21 Thread weheh
I am dead in the water trying to make an https ajax call from an http session. CORS is enabled on server but the web2py_component https URL with user_signature=True now triggers an erroneous non-logged-in response to auth.is_logged_in() when, in fact, the user is logged in. First, thanks to Mar

[web2py] Re: Wordpress model file

2013-12-21 Thread Leonel Câmara
This is great, thanks for sharing! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Grou

[web2py] Re: javascript in controller

2013-12-21 Thread Niphlod
it's exactly how it's supposed to be. inlined attributes must be escaped, and - correctly - they are. On Friday, December 20, 2013 11:56:34 PM UTC+1, sonu kumar wrote: > > Hi, > > When I use below code in controller to show form. It works fine but when I > see html source of html page...it shows

[web2py] Re: how do I create, multiple forms and precess them, using 'for' statement?

2013-12-21 Thread Niphlod
don't worry, it's a mistake you'll probably never do again :P On Saturday, December 21, 2013 11:27:13 AM UTC+1, Ivo wrote: > > I got it resolved... ashamed to say it but I missed the = in > the {{form.custom.end}} tag :( > > On Friday, December 20, 2013 3:16:34 PM UTC+1, Ivo wrote: >> >> I have c

[web2py] Re: Wordpress model file

2013-12-21 Thread Niphlod
I guess it's to read/write/update existing wordpress tables ^_^ I'd put it on web2pyslices to have a reference for the users in the need of it. On Saturday, December 21, 2013 11:31:12 AM UTC+1, Alan Etkin wrote: > > I have several projects in my work, that require handling wordpress. As I >

[web2py] Re: Can not run web2py_no_console.exe. Version 2.8.2 on win 7 x 64

2013-12-21 Thread Niphlod
that's even stranger :D let's go with care how about you open a dos prompt, cd into the folder where web2py.exe and web2py_noconsole.exe are and launch web2py_noconsole.exe from there ? Does it print something ? On Saturday, December 21, 2013 1:23:50 PM UTC+1, sherdim wrote: > > > On Sunday

[web2py] Re: Can not run web2py_no_console.exe. Version 2.8.2 on win 7 x 64

2013-12-21 Thread sherdim
On Sunday, December 15, 2013 4:36:47 PM UTC+4, Niphlod wrote: > > open a dos prompt, cd into the folder and try to start it from there to > see if it prints something... > > BTW: is web2py.exe working ? > Yes, but web2py_no_console.exe quits silently -- Resources: - http://web2py.com - ht

[web2py] Re: output the name of file stored in table in upload filed?

2013-12-21 Thread Leonel Câmara
This is simple enough, upload fields have a retrieve_file_properties method which returns the path and filename of the stored file. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues

Re: [web2py] setting up web2py for godaddy.com

2013-12-21 Thread António Ramos
not related. You have to setup godaddy for web2p , not the other way. Its like any other dns. 2013/12/20 AY > Hi, > > I am trying to setup web2py for godaddy.com > > Anyone with experience with Godaddy.com? > > Or any suggestions? > > Regards, > > > -- > Resources: > - http://web2py.com > -

[web2py] Re: Wordpress model file

2013-12-21 Thread Alan Etkin
> > I have several projects in my work, that require handling wordpress. As I > hate doing stuff in PHP, and DAL is my prefered tool for a lot of my work, > I've created a model file of wordpress. I hope you'll find it useful, and > I'd love to hear your feedback > It must be because I've neve

[web2py] Re: how do I create, multiple forms and precess them, using 'for' statement?

2013-12-21 Thread Ivo
I got it resolved... ashamed to say it but I missed the = in the {{form.custom.end}} tag :( On Friday, December 20, 2013 3:16:34 PM UTC+1, Ivo wrote: > > I have chosen to go the custom form way. > The only issue I have is that upon hitting submit, the button submits all > the forms on the page i

[web2py] Re: output the name of file stored in table in upload filed?

2013-12-21 Thread deepak sandhu
{{=row.files.documentx.name}} i tried this but still dont work :( -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you