[web2py] Re: current trunk using memdb results in crash

2014-04-14 Thread Sebastian Cambeo
Sorry again the error is still there: I opened an issue: https://code.google.com/p/web2py/issues/detail?id=1922&thanks=1922&ts=1397493893 -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py

[web2py] Re: current trunk using memdb results in crash

2014-04-14 Thread Sebastian Cambeo
Sorry, never mind: I was on 2.9.4 and tried to reproduce it in latest trunk (Apparently it has been fixed since last month) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (R

[web2py] Re: current trunk using memdb results in crash

2014-04-14 Thread Sebastian Cambeo
e in chrome to > get a new session. > > On Friday, April 11, 2014 10:04:49 AM UTC-4, David Manns wrote: >> >> Tried this - didn't help >> >> On Thursday, April 10, 2014 5:17:38 PM UTC-4, Sebastian Cambeo wrote: >>> >>> Try deleting memcache

[web2py] Re: current trunk using memdb results in crash

2014-04-10 Thread Sebastian Cambeo
e 883, in connect >>> row = table(record_id, unique_key=unique_key) >>> TypeError: __call__() got an unexpected keyword argument 'unique_key' >>> >>> >>> >>> >>> >>> Em terça-feira, 4 de março de 2014

[web2py] Re: current trunk using memdb results in crash

2014-03-04 Thread Sebastian Cambeo
I can only provide assistance for the "unique key error": line 883: https://github.com/web2py/web2py/blame/master/gluon/globals.py: dee4e6a9 »

[web2py] Re: current trunk using memdb results in crash

2014-03-03 Thread Sebastian Cambeo
This error persists in the current stable version 2.9.3: If you want to reproduce it just uncomment the three memcache session lines: from gluon.contrib.memdb import MEMDB from google.appengine.api.memcache import Client session.connect(request, response, db = MEMDB(Client())) and the whole app

[web2py] Re: web2py custom reset password urls

2013-04-04 Thread Sebastian Cambeo
thank you, that helped. I now send a custom link which directs to my url. Also I defined the _next variable of the request_reset_password page manually to point to my login page. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubsc

[web2py] web2py custom reset password urls

2013-04-03 Thread Sebastian Cambeo
Apparently it is not possible at the moment to customize the request_reset_password URL and the reset_password URL. There is no such option in auth.settings. Furthermore I didn't find a way to change the reset_password Mail message such that it links to a custom URL. However I need this functi

[web2py] Re: Image store with open does not work on GAE

2013-02-08 Thread Sebastian Cambeo
So is there any hope that this can be fixed? Maybe you can rely on my workaround as posted above: file = open('test.jpg', 'rb') > tmpId = db.table1.insert(image = file) > if request.env.web2py_runtime_gae: > db(db.table1.id==tmpId).update(image_blob = file.read()) > > -- --- You received

[web2py] Re: Image store with open does not work on GAE

2013-02-07 Thread Sebastian Cambeo
unfortunately not: TRACEBACK 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. Traceback (most recent call last): File "*\restricted.py", line 212, in restricted exec ccode in environment File "*/applications/welcome/models/db.py" , lin

[web2py] Re: Image store with open does not work on GAE

2013-02-04 Thread Sebastian Cambeo
yes it does work ok GAE ;) I am using currently the following workaround, but this should obviously be handled by web2py and not by me, so please fix this: file = open('test.jpg', 'rb') tmpId = db.table1.insert(image = file) if request.env.web2py_runtime_gae: db(db.table1.id==tmpId).update

[web2py] Re: Image store with open does not work on GAE

2013-02-03 Thread Sebastian Cambeo
OK, I created a minimal scenario for reproducing the error: append these lines to the welcome db.py, create test.jpg in root folder and deploy directly to GAE: db.define_table('table1', Field('image', 'upload'), ) db.table1.insert(image = open('test.jpg', 'rb')) Then call welcome/appadmin and

[web2py] Image store with open does not work on GAE

2013-02-02 Thread Sebastian Cambeo
The following line of code works perfectly well locally (no GAE): db.table1.insert(image = open('test.jpg', 'rb') However it does not work on GAE: As the filesystem has no permission to write, this line of code should automatically upload the blob data into "image_blob". However "image_blob" r

[web2py] Re: admin interface + GAE

2012-11-21 Thread Sebastian Cambeo
I don't know if we understand us correctly. I don't use get_or_create_key anywhere and I am not referring to dlypka posts (I think our problems are not related). However my problem remains existing: If you deploy web2py trunk/stable with no other changes than altering the app.yaml in order to u

[web2py] Re: admin interface + GAE

2012-11-20 Thread Sebastian Cambeo
http://code.google.com/p/web2py/issues/detail?id=1177 --

[web2py] Re: admin interface + GAE

2012-11-19 Thread Sebastian Cambeo
might it be, that "users.create_login_url(request.env.path_info)" in "check_credentials" needs some kind of file access? Anyhow this request appears to trigger the error --

[web2py] Re: admin interface + GAE

2012-11-19 Thread Sebastian Cambeo
What comes as a surprise to me is that the admin interface is working in the GAE SDK emulation... The error log: In FILE: /base/data/home/apps/s~cambeoserver/1.363277968286640588/applications/admin/models/access.py Traceback (most recent call last): File "/base/data/home/apps/s~cambeoserver

[web2py] Re: GAE + Cloud Sql just does not work

2012-11-19 Thread Sebastian Cambeo
Thank you! I checked out trunk and now it is working unless I call the truncate method on any table: Traceback (most recent call last): File "/base/data/home/apps/s~cambeoserver/1.363276531332237989/gluon/restricted.py", line 212, in restricted exec ccode in environment File "/base/dat

[web2py] admin interface + GAE

2012-11-18 Thread Sebastian Cambeo
Is it possible to use the admin interface on GAE? I get internal errors although I changed the app.yaml accordingly Thank You! Sebastian --

[web2py] GAE + Cloud Sql just does not work

2012-11-18 Thread Sebastian Cambeo
Hello, I can't seem to get web2py + GAE + Cloud SQL working at all: If I change nothing else but setting db=DAL('google:sql://cambeo.com:cloud1:instance1/cambeoDB',migrate_enabled=True) in the scaffolding app, it crashes. Do I have to adjust anything else? Enter passwords or anything similar?