[web2py] Re: Table migration problem on GAE Cloud SQL (locally)

2015-10-22 Thread Sébastien
Might this be a bug on GAE? Could someone confirm that on GAE migration is fine? On Saturday, 17 October 2015 13:13:21 UTC+2, Sébastien wrote: > > Hello, > > I am working locally on GAE (with Cloud SQL) and I can't seem to be able > to add a new field to a table. I kee

[web2py] Re: Google Cloud SQL: Unable to connect

2015-10-22 Thread Sébastien
Is it happening locally? Did you install MySQLdb? I app.yaml you have to add under "libraries" - name: MySQLdb version: "latest" Finally you have to add your MySQL credential to dev_appserver.py like: dev_appserver.py [root folder of web2py] --mysql_user=[mysql user] --mysql_password=[mysql

[web2py] Table migration problem on GAE Cloud SQL (locally)

2015-10-17 Thread Sébastien
Hello, I am working locally on GAE (with Cloud SQL) and I can't seem to be able to add a new field to a table. I keep having 'xxx.table appears corrupted' messages. This is what I do before getting the error. 1. To begin with I have: DAL('google:sql:xxx:xxx/xxx’, migrate_enabled = False, mi

[web2py] Re: Version control: web2py and my application in separate repos?

2015-10-16 Thread Sébastien
Could someone explain to me then how I can tell people to clone a given web2py tag and at the same time leave intact my "app.yaml", "routes.py", ".gitmodules" (submodules needed apart from pydal) at the base of the repo? Thank you On Friday, 9 October 2015 19:10:55 UTC+2, Tom Campbell wrote: >

Re: [web2py] Re: Web2py and AngularJs route collision

2015-07-09 Thread Sébastien
What exactly are you trying to achieve? I am using AngularJS + Restangular with API calls to Web2py Controller and it works great. My web2py controller has the @@request.restful() decorator After which action in Angular do you get redirected? @Ramos: have a look at Angular 2 and use it, it is a

[web2py] Re: Google Application Engine return Hello world

2015-06-30 Thread Sébastien
Did you copy "gaehandler.py" in the root folder? I would first debug the app in the local Google SDK before deploying it. On Tuesday, 30 June 2015 14:29:56 UTC+2, kawate wrote: > > To reproduce this problem, download the source version of web2py on Mac, > update application id on the app.example

[web2py] Re: Multilingual static on GAE problem

2015-06-29 Thread Sébastien
Could we say that it is a bug on GAE and that for now it is not possible to have translated static assets when deployed on Google? Should I report it somewhere or maybe explain better the issue for a future fix? Thanks! On Friday, 26 June 2015 22:36:56 UTC+2, Sébastien Loix wrote: > >

Re: [web2py] Re: Layout problem

2015-06-28 Thread Sébastien Loix
Yeah it's definitely a CSS not found. Did you double check the console and network tab (under Chrome) to see if all CSS files loaded correctly? On Friday, 26 June 2015 13:58:45 UTC+2, Chaitu P wrote: > > Thank you for reply. > Iam using windows operating system. > I have created a new application

[web2py] Multilingual static on GAE problem

2015-06-26 Thread Sébastien Loix
Hello to all, When I set the src of my static image with the helper {{=URL('static', 'img/logo.png', scheme=True, host=True)}} I get this path in my view: http://192.168.1.12:8080/corporate/en/static/img/logo.png The language "en" is not routed like it should (and said in the manual) to http:/

[web2py] Re: Debugging Web2py applications.

2015-06-07 Thread Sébastien Loix
In case you want some nice formatted prints, I am using json dumps to check on large dicts otherwise very complex to read in the console: import json print json.dumps(my_dict, sort_keys=True, indent=4) On Saturday, 6 June 2015 05:26:39 UTC+2, am...@gettalent.com wrote: > > One debugging method

[web2py] Re: Web2py: Using images in HTML data

2015-04-20 Thread Sébastien Loix
That's what I thought too And if it's all coming from static, why don't you just keep in db the path from inside the static folder ( in your case "images/image.gif") and then in your view you build the path On Sunday, 19 April 2015 04:57:00 UTC+2, Niphlod wrote: > > can't you just use som

Re: [web2py] Application Arquitecture advices

2015-04-17 Thread Sébastien Loix
7; to the api.py controller is the same as a full page reload, from the web2py perspective. Am I correct? Thanks for all the insights Sébastien. On Thursday, 16 April 2015 02:46:08 UTC+2, Richard wrote: > > Ok, you are right... I only said that as long as that page not reload and > h

[web2py] Re: How to write dynamic part of a select?

2015-04-17 Thread Sébastien Loix
One last thing, any idea if it is also possible to dynamically add "left=[.], orderby=" For now I can't as it (logically) tells me that 'append() takes no keyword arguments' thank you! On Wednesday, 15 April 2015 00:52:53 UTC+2, Limedrop wrote: > > You can do this by building a list o

[web2py] Re: How to write dynamic part of a select?

2015-04-15 Thread Sébastien Loix
Great thank you! Quiet new to Python so this one will help me a lot... On Wednesday, 15 April 2015 00:52:53 UTC+2, Limedrop wrote: > > You can do this by building a list of fields and then using the python > unpack operator. For example: > > field_list = [db.auth_user.first_name] > if ask_for_la

Re: [web2py] Application Arquitecture advices

2015-04-15 Thread Sébastien Loix
s I would have to rethink exactly what models depend on others to be able to put them in folders... I might get crazy before time :) Once again thank you for the help! Best, Sébastien. @Steve: I will have a look in the mailing about defining tables inside modules. It sounds interesting. Than

[web2py] How to write dynamic part of a select?

2015-04-14 Thread Sébastien Loix
Hi to all I am wondering how to ask dynamically the fields inside the select() I know we can do dynamic *query* but how do we do dynamic *select*? I want to avoid to do this if else (just an example): if ask_for_lastname: user = db(db.auth_user.id == user_id).select(db.auth_user.first_name,

Re: [web2py] Application Arquitecture advices

2015-04-14 Thread Sébastien Loix
erything in the same project but > you "modulized" them as plugins... > > Richard > > On Fri, Apr 10, 2015 at 8:19 AM, Sébastien Loix > wrote: > >> Hi to all, >> >> I would like to ask for some advices on my web2py application >> arquitecture

[web2py] Application Arquitecture advices

2015-04-10 Thread Sébastien Loix
Hi to all, I would like to ask for some advices on my web2py application arquitecture as I am seeing it grow rapidly and it might be a good time to start thinking it through before it is too late :) The website I am working on consist of several big parts (for now it has 2 web2py applications)

[web2py] Re: Table Migration on GAE

2015-03-31 Thread Sébastien Loix
n (as an app version) and manually created the extra field for auth_user table but just so you know it. Thanks for the update! On Saturday, 28 March 2015 17:29:24 UTC+1, Massimo Di Pierro wrote: > > http://web2py.com/examples/default/download > > On Saturday, 28 March 2015 11:1

[web2py] Re: Table Migration on GAE

2015-03-28 Thread Sébastien Loix
SQL and not GAE. It does > not hurt but it is not necessary. I do not swear by lazy_table because they > have some caveats. Let's try without that. > > Can you help us check if this work? If, not what behaviour do you see? Do > you get a traceback? > > > On Tuesday, 24 Marc

[web2py] Re: Table Migration on GAE

2015-03-24 Thread Sébastien Loix
a fixed version this week > > On Monday, 23 March 2015 21:53:04 UTC-5, Sébastien Loix wrote: >> >> Hi, >> >> I am having difficulties with table migration on GAE. >> >> I deployed perfectly in the Google App Engine and everything is working >> fine. &

[web2py] Table Migration on GAE

2015-03-23 Thread Sébastien Loix
Hi, I am having difficulties with table migration on GAE. I deployed perfectly in the Google App Engine and everything is working fine. I then needed to make some change in the auth_user adding some extra field but when I deploy again the new version, the migration doesn't occur and the new c

[web2py] Re: auth define_tables username=False not working on GAE

2015-03-22 Thread Sébastien Loix
again! El sábado, 21 de marzo de 2015, 21:21:17 (UTC+1), Sébastien Loix escribió: > > Hello, > > I can't get the username=False inside the auth.define_tables to work while > developing on GAE locally. > > I need to add a custom field "username&

[web2py] auth define_tables username=False not working on GAE

2015-03-21 Thread Sébastien Loix
Hello, I can't get the username=False inside the auth.define_tables to work while developing on GAE locally. I need to add a custom field "username" in the auth table that I do like this: auth.settings.extra_fields['auth_user'] = [Field('username', length=128, default="", unique=True)] then

Re: [web2py] Re: Multi-language website with GAE + parameter-based system

2015-03-18 Thread Sébastien Loix
I know this thread is old but I have the exact same problem with the router and GAE with multi language application. I did add - url: /(?P.+?)/static/\w\{2}?/(?P.+) static_files: applications/\1/static/\2 upload: applications/(.+?)/static/(.+) secure: optional expiration: "365d" to my ap

[web2py] Re: Google Appengine Geo Headers

2015-02-18 Thread Sébastien Loix
Hi Niphlod, I haven't been able to try in another application, this is my first app on Google Engine. I just printed the request.env to see if the X-AppEngine-CityLatLong' header was in it and didn't see it. So you're saying that it is something I should check on GAE side then? thanks for your

[web2py] Google Appengine Geo Headers

2015-02-17 Thread Sébastien Loix
Hello, I am trying to read inside a controller the Geo Headers ( https://cloud.google.com/appengine/docs/python/requests?hl=iw#Python_Request_headers) that Appengine adds. I did find the 'X-AppEngine-Country' inside web2py request.env[''http_x_appengine_country''], but I can not find the ' X-A

[web2py] Re: interget or string to date

2014-12-22 Thread Sébastien Loix
An old post to solve a 2014 problem. Thanks for sharing! :) El miércoles, 2 de noviembre de 2011 16:27:23 UTC+1, Vineet escribió: > > Recently, I wrote this function for my purpose. > See if this helps you. > Assuming that argument 'dte' input format is -->> "03-11-2011" > > [CODE] > import

[web2py] Stripe with Metadata

2014-12-07 Thread Sébastien Loix
Hello, I am trying to integrate Stripe but I can't manage to add a 'metadata" field to a charge. I read that in the Stripe Docs (https://stripe.com/docs/api/python#metadata) that we can pass a metadata parameter inside a charge, but when I look at "gluon/contrib/stripe.py" I don't see anything

[web2py] GAE Deployment with no JOIN on queries...

2014-06-19 Thread Sébastien
stuck with GAE and maybe in the future we will have our own Virtual Server. In that case I wouldn't want to have to write back all my queries and update all my views. Thanks for any help in this subject. I am still trying to find out what is the best deployment platform for my project. Bes

[web2py] Re: Making minor changes to auth.navbar()

2014-05-13 Thread Sébastien Loix
Hello Lewis, I am having the same issue. Could you tell us where did you put the code for the navbar? Thanks! Sebastian El viernes, 20 de julio de 2012 10:35:25 UTC+2, Matt Newton escribió: > > Is there a simple way to make changes to the auth.navbar() helper object? > > For example, the default

[web2py] Having a hard time with auth.login events handlers...

2014-03-09 Thread Sébastien Loix
Hello, I am quiet new to Web2py and I am having a hard time with the Auth events handlers. I am trying to check if a user tried to login before hitting the page but I can't get to know it. This is my index Controller: def index(): return dict(form=auth.login()) In the view I have a carrou

[web2py] Css cache problem

2014-01-18 Thread Sébastien Loix
Hi, I'm new to web2py and just learning the framework. I have an issue with my CSS static file which is not reloaded by the browser in local. I have read thread about versioning of static files but it doesn't seem to solve the problem. Probably I don't it correctly. Here is the line set in my d

[web2py] Re: RESTful API : at ...> is not JSON serializable

2012-03-18 Thread Sébastien Stormacq
Dear All, I found a workaround to the problem, I would like to double-check with you what is the impact in term of performance, maintainability etc ... Problem described in my previous email is caused by two lambda functions (update_record and delete_record) returned by return dict(mess