[web2py] Re: reCaptcha in registration form with custom layout

2013-02-12 Thread Johan Börjesson
Yes, that is working fine. Thank you. On Monday, February 11, 2013 6:54:53 PM UTC+1, Massimo Di Pierro wrote: Using a form inside a form may not a good idea. How about just: {{=Recaptcha(request,PUBLIC_KEY, PRIVATE_KEY, options=theme:'white')}} Would that work? Any suggestion for fixing

[web2py] Re: How to use a text file instead of a db?

2013-02-12 Thread Alan Etkin
I have a file. I want to read in the contents. In what format? (how the controller will read/parse the data). Is it JSON, XML, HTML, MARKMIN, text, RTF, YAML, CSV, JPEG ...? I want to display those contents when a page is visited. What does it contain? Is it an image, text, multimedia,

[web2py] Unable to send email - password reset.

2013-02-12 Thread Andrew Buchan
The password reset function is coming up with 'unable to send email', and it seems to be since I upgraded from 1.93.2 to 2.3.2, as it was working up until a couple of weeks ago before the upgrade (not necessarily correlated but seems likely). The email addresses for password reset exist on the

Re: [web2py] Re: Converting Field of a SQLFORM.grid to local timezone of a user.....

2013-02-12 Thread Michael Beller
I've also been researching and experimenting ... I've come to the conclusion to only store utc dates (e.g., using utcnow) in the data base and then use .represent or other means to convert for display. Most notably, use the locale python library (http://docs.python.org/2/library/locale.html)

[web2py] Installing a plugin with GAE

2013-02-12 Thread José Manuel López Muñoz
Hi, I want to change the layout of my application. I know that the admin can Upload a plugin and I'm trying to do it from the admin form. The problem is that I'm getting this error when I push upload: 3.59.38.141.2013-02-12.12-45-14.5bd90085-2c09-41a0-9519-2eedc98ef24b type

[web2py] Problem with layout plugin installation with GAE.

2013-02-12 Thread José Manuel López Muñoz
Hi, I'm trying to install a layout plugin from the admin form, and I'm getting this error: 59.38.141.2013-02-12.12-45-14.5bd90085-2c09-41a0-9519-2eedc98ef24b *type 'exceptions.OSError' [Errno 1] Operation not permitted:

[web2py] How to call a web service from web2py application?

2013-02-12 Thread at
Want to call a web service from a web2py application. The service supports get/posts methos for taking input and gives response in json. Can someboday help me out? Thanks Regards, AT -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To

[web2py] Re: Installing a plugin with GAE

2013-02-12 Thread Niphlod
on GAE the filesystem is read-only and I don't think it's possible to download and install a plugin from the admin interface... you have to download the plugin locally and then deploy the app to GAE. On Tuesday, February 12, 2013 2:01:42 PM UTC+1, José Manuel López Muñoz wrote: Hi, I want

[web2py] Datasift

2013-02-12 Thread webpypy
Hi, http://datasift.com/ is nice. it will be great, if it is integrated with web2py. You have a good one. Ashraf -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an

[web2py] Re: Installing a plugin with GAE

2013-02-12 Thread José Manuel López Muñoz
The plugin is a w2p file, how can I install it locally if my web2py application is running over GAE (in my PC). If I could unpack the w2p and copy the files to my application, I'm sure it will work. On Tuesday, February 12, 2013 2:13:16 PM UTC+1, Niphlod wrote: on GAE the filesystem is

[web2py] length of a uuid-field

2013-02-12 Thread Johann Spies
In the book the examples for using uuid as a unique field in a table shows: Field('uuid', length=64, default=lambda:str(uuid.uuid4())), I have been using this for a long time without really thinking about it. The uuid-strings generated has the length of 36. So why the 'length=64'? Regards

[web2py] Re: reCaptcha in registration form with custom layout

2013-02-12 Thread Daniel Garcia
Yes, that was it! Thanks a lot! I don't know if this count as a suggestion, but honestly I was expecting to be able to access the reCaptcha widget from {{=form.custom.widget.recaptcha}} since I already had set auth.settings.register_captcha = Recaptcha(request, PUBLIC_KEY, PRIVATE_KEY ,...)

Re: [web2py] How to call a web service from web2py application?

2013-02-12 Thread tomasz bandura
Did you read http://web2py.com/books/default/chapter/29/14#Twitter-API? It is an example of Twitter RESTful+ json. T. 2013/2/12 at matifa...@gmail.com Want to call a web service from a web2py application. The service supports get/posts methos for taking input and gives response in json.

[web2py] Re: Unable to send email - password reset.

2013-02-12 Thread Andrew Buchan
Update (and fix): We found that it connects to the mail server, but then disconnects with 0 messages sent. After running web2py in such a way that it would tell me what's going on (this install normally runs as a windows service with no console): anyserver.py -s rocket -p 8000 - l At which

Re: [web2py] Simple routing question

2013-02-12 Thread Jim S
So you mean to just look at it through a regular view, not in the routes.py. Got it. Wasn't thinking straight. -Jim On Monday, February 11, 2013 11:13:23 PM UTC-6, Jonathan Lundell wrote: On 11 Feb 2013, at 7:48 PM, Jim Steil ato@gmail.com javascript: wrote: Sorry for being slow at

[web2py] Re: Unable to send email - password reset.

2013-02-12 Thread Niphlod
for future references . if you run web2py by web2py.py -a yourpassword -D 0 the logging should be set to maximum possible level. See if the error message is returned to the console. in case the debug info is not printed, you may want to adjust logging.conf to set the root, web2py and

Re: [web2py] Simple routing question

2013-02-12 Thread Jim S
Looking at request.env I'm seeing the following: http_host = myaccountname.pythonanywhere.com http_referer = http://www.myappurl.com I'm routing in my routes.py based on www.myappurl.com but it never goes there. It is always going to myaccountname.pythonanywhere.com. -Jim On Tuesday,

Re: [web2py] Simple routing question

2013-02-12 Thread Jonathan Lundell
On 12 Feb 2013, at 7:48 AM, Jim S j...@qlf.com wrote: Looking at request.env I'm seeing the following: http_host = myaccountname.pythonanywhere.com http_referer = http://www.myappurl.com I'm routing in my routes.py based on www.myappurl.com but it never goes there. It is always going to

Re: [web2py] Simple routing question

2013-02-12 Thread Jim S
Yes, might be a show-stopper for me and others trying to use pythonanywhere. I was thinking there were others on the list using pythonanywhere successfully with web2py. My problem is I know little about DNS and routing. My DNS is hosted by mydomain.com. There is also a good chance that

Re: [web2py] Re: Unable to send email - password reset.

2013-02-12 Thread Niphlod
When you run it as a service you don't want to log DEBUG statements, that are for debugging purposes If you installed web2py downloading the sourcecode, start it in a dos prompt (being in the same directory where web2py.py is) python web2py.py -a yourpassword -D 0 If you installed web2py

[web2py] Re: Installing a plugin with GAE

2013-02-12 Thread dhmorgan
You can run it 1st not as a GAE application. -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit

[web2py] Re: length of a uuid-field

2013-02-12 Thread Massimo Di Pierro
It is an example. You can change it. On Tuesday, 12 February 2013 07:53:02 UTC-6, Johann Spies wrote: In the book the examples for using uuid as a unique field in a table shows: Field('uuid', length=64, default=lambda:str(uuid.uuid4())), I have been using this for a long time without really

[web2py] Re: serving php and python in shared hosting

2013-02-12 Thread howesc
to learn about the fcgi processes you should read up on how apache handles multiple requests. there are a few different modes and settings for apache that control when and how many threads/processes apache will start. the short summary: in order to handle multiple requests at the same time

Re: [web2py] Re: Integrating iPhone device tokens into web2py auth

2013-02-12 Thread howesc
for our system we have anonymous users (users with no email address), and known users (users with an email address. Apple does not expose the MAC address, the IMEI or the apple UDID of iOS devices to developers. their policies strictly forbid the use of hardware identifiers in apps

Re: [web2py] Re: Integrating iPhone device tokens into web2py auth

2013-02-12 Thread Alec Taylor
Hmm; good point. On Wed, Feb 13, 2013 at 4:30 AM, howesc how...@umich.edu wrote: for our system we have anonymous users (users with no email address), and known users (users with an email address. Apple does not expose the MAC address, the IMEI or the apple UDID of iOS devices to developers.

Re: [web2py] Simple routing question

2013-02-12 Thread Giles Thomas
Hi there, PythonAnywhere developer here. I assume that the request environment where Jim S was seeing the incorrect http_host is the underlying WSGI environment -- is that correct? If so, that's a weird result. We definitely don't do anything strange and hacky with those headers; I just ran

Re: [web2py] Simple routing question

2013-02-12 Thread Jim Steil
Yes, I don't believe it is a pythonanywhere problem. I'm using mydomain for DNS hosting. They are now telling me that I cannot setup a cname for my root domain if I'm using their mailservers and have the mx records point to them. That sounds like a bunch of crap to me, but that is what their

Re: [web2py] Simple routing question

2013-02-12 Thread Massimo Di Pierro
I am facing a similar problem. I use vps.com for DNS server and I do not see a way to redirect the top domain. BTW. I am also using pythonanywhere (planning to move web2py there) and I noticed I had to visit: https://username.pythonanywhere.com/admin/default/reload_routes to reload the

Re: [web2py] Simple routing question

2013-02-12 Thread Giles Thomas
Your DNS providers aren't completely in the wrong. The problem as I understand it is that the DNS standard itself doesn't support CNAMEs for naked domains, like foo.com, if you have any other data associated with them -- like mail records. See

Re: [web2py] Simple routing question

2013-02-12 Thread Giles Thomas
On 12 February 2013 19:42, Massimo Di Pierro massimo.dipie...@gmail.comwrote: I am facing a similar problem. I use vps.com for DNS server and I do not see a way to redirect the top domain. BTW. I am also using pythonanywhere (planning to move web2py there) and I noticed I had to visit:

Re: [web2py] Re: Editing problem with current admin app

2013-02-12 Thread Niphlod
on the problem you can't see the notification area the problem relies on the fact that the new flash is relatively positioned and not fixed. position: fixed width: 32% left: 33% top: 50px will fix it. I noticed also that the flash message appears, then it's hidden and then again it is shown.

Re: [web2py] Simple routing question

2013-02-12 Thread Jim Steil
I 'think' I've just got my DNS setup they way you described. Waiting for it to propogate Will check back in a few hours. -Jim On Tue, Feb 12, 2013 at 1:48 PM, Giles Thomas giles.tho...@gmail.comwrote: Your DNS providers aren't completely in the wrong. The problem as I understand it is

Re: [web2py] Simple routing question

2013-02-12 Thread Jim Steil
Great news, I believe it is finally working. For my domain, I have the root domain pointing (forwarding?) to www.domainname.com I have a cname entry for www.domainname.com that points to username.pythonanywhere.com for routes.py I have this setup. BASE=dict(

Re: [web2py] Re: Converting Field of a SQLFORM.grid to local timezone of a user.....

2013-02-12 Thread Michael Beller
this stores dates in UTC but displays date in alternate timezone. You can set the represent property based on a timezone stored in the users profile or derived from locale settings ... from pytz import timezone import pytz db.define_table('t_date', Field('f_name'), Field('f_datetime',

Re: [web2py] Re: Converting Field of a SQLFORM.grid to local timezone of a user.....

2013-02-12 Thread Alec Taylor
To keep things simple on the database side; how about making all times UTC? Then use JavaScript to impose timezone on the client-side. On Wed, Feb 13, 2013 at 2:20 PM, Michael Beller mjbel...@gmail.com wrote: this stores dates in UTC but displays date in alternate timezone. You can set the

Re: [web2py] Re: Converting Field of a SQLFORM.grid to local timezone of a user.....

2013-02-12 Thread Amit
Can we use represent callback in case of hugh number of rows(lets say 2 or more rows is there in db), will it not be causing to slow down the whole process, means, while converting utc time to target timezone's time one by one for each row and then displayed to UI using SQLFORM.grid()? Please

[web2py] How do I deploy an application to a linux server ?

2013-02-12 Thread Hector Magnanao
We have web server and I would like to deploy my app to that server. what are the steps ? and can it be scripted ? -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an

[web2py] Re: Installing a plugin with GAE

2013-02-12 Thread howesc
yes, you may unpack the w2p file (which is just a zip file i believe) and copy the files to your application. if you application can run on non-gae then you can do like dhmorgan suggests. On Tuesday, February 12, 2013 5:50:24 AM UTC-8, José Manuel López Muñoz wrote: The plugin is a w2p

[web2py] Re: How do I deploy an application to a linux server ?

2013-02-12 Thread Emilius Omeen
some useful information you can find in /web2py/scripts folder or in http://web2py.com/books/default/chapter/29/13 Deployment recipeshttp://web2py.com/books/default/chapter/29/13#Deployment-recipes @debi:/home/www-data/web2py/scripts$ ll . .. autoroutes.py bench.py cleancss.py cleanhtml.py