[web2py] Re: Web2py-Heroku: Relation "my_table" already exists

2015-08-31 Thread Anthony
The *.table files include metadata about the tables for use with the migrations functionality. If the *.table file is missing and migrations are turned on, web2py will assume the associated table needs to be created (resulting in an error if it already exists). Probably you simply want to turn

[web2py] Re: Why I can send mail use python but can't send by web2py mail object

2015-08-31 Thread Anthony
Please answer the questions you were asked here: http://stackoverflow.com/questions/32023493/why-i-can-sen-mail-use-python-but-cant-send-by-web2py-mail-object#comment52023284_32023493 On Monday, August 31, 2015 at 9:00:45 PM UTC-4, killzane wrote: > > As title. > I can send mail via this example.

[web2py] What is the best way to update dropdown list based on previous selection?

2015-08-31 Thread Jordan Myers
Hello everyone, I'm developing a rather complex form where the selection options need to depend on what the user selects in a previous field. As a simplistic example, let's say there are two models, Owner and Thing, where an Owner can have multiple Things. I would like to have a form where you

[web2py] Re: Pylint with web2py in sublime error

2015-08-31 Thread Massimo Di Pierro
Perhaps web2py is not in path? On Monday, 31 August 2015 10:39:11 UTC-5, Carla Raquel wrote: > > I'm using Pylint in sublime but it gives me some errors on web2py specific > variables(request,response,etc.). I've read somewhere that to solve this > you had to do something like: > > if 0: >

[web2py] web2py deployment: best security practices?

2015-08-31 Thread pfeil
I'm trying to find the best security practices when deploying web2py to a Linux production environment (either with Apache/mod_wsgi or nginx/uwsgi). The One step production deployment scripts (http://web2py.com/books/default/chapter/29/13#One-step-production-deployment) seem to be out of date c

[web2py] Re: AppAdmin: CSV import bug

2015-08-31 Thread Gary Fung
worked for me doing the same windows comma separated (.csv) option. On Tuesday, May 20, 2014 at 11:49:44 AM UTC-7, Michael Beller wrote: > > I'm also using Excel on a Mac and had the same problem. However, if I > select "Windows Comma Separated (.csv)" option rather than the default > "Comma Se

[web2py] Web2py-Heroku: Relation "my_table" already exists

2015-08-31 Thread James McGlynn
class 'psycopg2.ProgrammingError' relation "my_table" already exists I have configured my app so that I can set a flag to use either a local sqlite db, or a remote Heroku db when running locally, but when running remotely on Heroku, the Heroku db is always used. The databases do not contain th

[web2py] Re: Facebook OAuth - newbie question

2015-08-31 Thread killzane
Hi, I follow the book and create a facebook.py in model folder. but when I called in my controller form = auth() return dict(view=view, form=form) I will receive this error from facebook { "error": { "message": "Invalid redirect_uri: \u61c9\u7528\u7a0b\u5f0f\u7684\u8a2d\u5b9a\u4e0d\u63a

[web2py] Why I can send mail use python but can't send by web2py mail object

2015-08-31 Thread killzane
As title. I can send mail via this example. 18.1.11. email: Examples But when I use web2py framework and follow this guide Email and SMS

[web2py] Re: TABLE--TR--TD in web2py book

2015-08-31 Thread Mamisoa Andriantafika
Thank you for your highlight. You helped me to better understand the iteration. My main misunderstanding was actually the "*" before the "[(TR" ? Le lundi 31 août 2015 01:07:47 UTC+2, Anthony a écrit : > > [TR(*rows) for rows in table] is a list comprehension -- it iterates over > the items in

Re: [web2py] Re: IronPython support

2015-08-31 Thread Derek
When I tried it, I didn't have those issues. If you don't have an 'os' module, you can't even run pypy from the command line. You should re-install pypy and try again. On Monday, August 31, 2015 at 8:28:49 AM UTC-7, Richard wrote: > > Do you have a step by step migration to PyPy tutorial... I tr

[web2py] Re: All forms clear and do not submit

2015-08-31 Thread Brian Nguyen
So I found the root cause of the issue. It turns out there was a bug in Python on how it handles cookies with square brackets ([, ]) in the values. http://bugs.python.org/issue22931 https://code.djangoproject.com/ticket/24492 The s_vi cookie that was affecting our environment had those square

[web2py] Pylint with web2py in sublime error

2015-08-31 Thread Carla Raquel
I'm using Pylint in sublime but it gives me some errors on web2py specific variables(request,response,etc.). I've read somewhere that to solve this you had to do something like: if 0: from gluon import * The problem is, I'm getting the error 'Unable to import gluon'. Do you know of any fi

Re: [web2py] Re: IronPython support

2015-08-31 Thread Richard Vézina
Do you have a step by step migration to PyPy tutorial... I try PyPy, but it failed over import of module like os. Thanks Richard On Mon, Aug 31, 2015 at 11:27 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > Thanks for explain that, does web2py rows processing (dict init, etc.) get >

Re: [web2py] Re: IronPython support

2015-08-31 Thread Richard Vézina
Thanks for explain that, does web2py rows processing (dict init, etc.) get speed up when you render a lot of records? Richard On Thu, Aug 27, 2015 at 6:09 PM, Derek wrote: > It gains on complex templated pages, mainly. If you are just accessing > databases, you won't get speed increases. If you

[web2py] Re: Embed cas login form

2015-08-31 Thread Jose
El domingo, 30 de agosto de 2015, 23:54:30 (UTC-3), Massimo Di Pierro escribió: > > If they are on the same domain you can do this: > > In App_A add a controller function > > def user_embedded(): return auth() > > In App_B ass a controller > > def login(): > return > dict(form=LOAD('App_A

[web2py] Re: How accept latin letters on args

2015-08-31 Thread xmarx
you can set title of the post at vars. for example: /application/cms/post/12345?title=çışöğüã+ğüã+ğüã or you can set non-unicode letters to similar unicode letters. that readable by reader. for example: /application/cms/post/12345/cisogua_gua_gua 30 Ağustos 2015 Pazar 02:03:38 UTC+3 tari