Re: [web2py] Re: GAE Task Queue no longer passes payload to web2py function

2019-05-28 Thread Carl Hunter Roach
From: web2py@googlegroups.com on behalf of Dave S Sent: Tuesday, May 28, 2019 7:10 pm To: web2py-users Subject: [web2py] Re: GAE Task Queue no longer passes payload to web2py function On Tuesday, May 28, 2019 at 4:11:40 AM UTC-7, Carl Hunter Roach wrote: I installed R-2.15.4. You

[web2py] Re: GAE Task Queue no longer passes payload to web2py function

2019-05-28 Thread Dave S
On Tuesday, May 28, 2019 at 4:11:40 AM UTC-7, Carl Hunter Roach wrote: > > I installed R-2.15.4. > You are right that I don't get any function parameters in the functions > that handle my Google tasks. > > I am getting a weird error. > > In the function handling the Google task that

[web2py] Re: GAE Task Queue no longer passes payload to web2py function

2019-05-28 Thread Carl Hunter Roach
I installed R-2.15.4. You are right that I don't get any function parameters in the functions that handle my Google tasks. I am getting a weird error. In the function handling the Google task that historically worked) the value of `request.body` is: ', mode 'w+b' at 0x2b31c3ed9930> That is

[web2py] Re: GAE Task Queue no longer passes payload to web2py function

2019-05-24 Thread Carl Hunter Roach
Thanks for responding dps. Having found the issue arrive with the R-2.15.0b2 release I did try the latest 2.18x line. But that too was broken so I went back to R-2.14.6 But then last week the issue started to occur (I hadn’t pushed any code so this change is hard to explain, to say the least).

[web2py] Re: GAE Task Queue no longer passes payload to web2py function

2019-05-24 Thread Dave S
On Friday, May 24, 2019 at 3:43:26 AM UTC-7, Carl Hunter Roach wrote: > > This code has been working for a couple of years but, for an unknown > reason to me, has stopped working. > > This function continues to create Tasks correctly. > > def send_task(): > from

[web2py] Re: gae issue when using two independent apps with same data model under one project

2017-06-19 Thread Dave S
On Friday, June 16, 2017 at 8:11:34 AM UTC-7, 98u...@gmail.com wrote: > > Hello, > I uploaded a simple web2py app named 'mynotes', (based on markmin app > example) to gae under a project 'projectnotes' to keep my notes in. Very > simple model: > db.define_table('tblpage', >

[web2py] Re: gae issue when using two independent apps with same data model under one project

2017-06-19 Thread 98ujko9
Thank you for your input. By creating a separate project the issue goes away. However it seems to me that in this way more resources are consumed. Such discussion would be beyond my competence level. Thanks On Monday, June 19, 2017 at 8:29:14 AM UTC-4, Karoly Kantor wrote: > > You can

[web2py] Re: gae issue when using two independent apps with same data model under one project

2017-06-19 Thread Karoly Kantor
You can definitely create a new project, that is sure to work. Otherwise, I am also somewhat confused with the nomenclature, so I asked the question in the Google App Engine forum, you can follow any potential explanations here:

[web2py] Re: GAE Datastore performance / potential index issue

2017-05-04 Thread dlypka
Reread the GAE Query documentation. Your use case is not the use case that GAE is optimized for. Fetch fewer records per call. Example:'= web2pyChildTableClass = db.ChildTable # gives the web2py Table class theNativeGAEChildTableClass = web2pyChildTableClass._tableobj # magic... into native GAE

Re: [web2py] Re: GAE Datastore performance / potential index issue

2017-04-24 Thread Áureo Dias Neto
Hello, i have the same problem with sqlite/mysql.. when i fetch some 1000 row, with one column only, its takes about 15/20 seconds to load a page.. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: GAE Datastore performance / potential index issue

2017-04-24 Thread Karoly Kantor
More info again, still hoping someone can help: I tried to replace the DAL query with native app engine code. Original DAL: query=( (mydb[record].application == application_id) & (mydb[record].entity == entity_id) &

[web2py] Re: GAE Datastore performance / potential index issue

2017-04-24 Thread Karoly Kantor
Sorry for commenting on my own issue, but i have more information: The following query takes 20 seconds for only 800 items: query=( (mydb[record].application == application_id) & (mydb[record].entity == entity_id) &

[web2py] Re: GAE deployment. appcfg not in the package

2016-10-11 Thread Massimo Di Pierro
Do you mean? gluon/contrib/appconfig.py On Tuesday, 11 October 2016 20:55:32 UTC-5, yutaka kawate wrote: > > Where i can get appcfg.py? web2py souce code does not contain this file, > used to be in the package > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: GAE integration is MASSIVELY broken again (in multiple ways in multiple versions)

2016-09-14 Thread Massimo Di Pierro
LOL. I am using it at camio.com we have a lot of internal dashboards based on web2py and large number of datasets BUT we bypass web2py Auth because have a different mechanism so we did not notice this problem. I will check but I often test GAE before posting new versions. On Tuesday, 13

Re: [web2py] Re: GAE integration is MASSIVELY broken again (in multiple ways in multiple versions)

2016-09-14 Thread Mathieu Clabaut
Indeed, I did my test on a single instance with no scaling in order to characterise the cost if the service becomes largely used. You are right, with automatic scaling, the response time is totally acceptable. The cost is also acceptable as least until the site usage keeps low... Le mar. 13

Re: [web2py] Re: GAE integration is MASSIVELY broken again (in multiple ways in multiple versions)

2016-09-13 Thread webmaster
Hi Mathieu! Are you using the default instance_class in your app.yaml? I felt GAE was running a bit slow, but upgrading to the F2 instance_class really improved overall response for a very minor increase in cost. I'd be interested to see what scaling options you have set in the app.yaml. On

Re: [web2py] Re: GAE integration is MASSIVELY broken again (in multiple ways in multiple versions)

2016-09-13 Thread Mathieu Clabaut
I also do, but didn't try further than 2.14.6 + some git revisions… And it makes me realized I still have no test for password reset… I'll add some ! For now I have quite bad performances on GAE (3 requests / seconds for one instance when facing 20 simultaneous simulated users → leads to more

[web2py] Re: GAE integration is MASSIVELY broken again (in multiple ways in multiple versions)

2016-09-13 Thread webmaster
I'm using it! It's very solid except for these two current issues. It'd also be nice if there were some (any) documentation regarding how to use it with Google Cloud Storage and Google Datastore while also using Google Cloud SQL. www.trytha.com On Tuesday, September 13, 2016 at 2:47:43 AM

[web2py] Re: GAE integration is MASSIVELY broken again (in multiple ways in multiple versions)

2016-09-13 Thread Niphlod
I absolutely love when the most used by big guys backend seems to fail for the most basic reasons...is someone really using web2py on GAE or it's just for show ? On Tuesday, September 13, 2016 at 9:02:19 AM UTC+2, webm...@trytha.com wrote: > > First, sometime around the 2.13 or 2.14 change,

[web2py] Re: GAE problems

2016-03-29 Thread rif
Oh, you mean the db query... Here is the whole controller that's generating the error: def index(): page = int(request.vars['page']) if request.vars['page'] else 0 items_per_page = 10 limitby = (page*items_per_page,(page+1)*items_per_page+1) form = crud.update(Facturi, a0,

[web2py] Re: GAE problems

2016-03-29 Thread Massimo Di Pierro
I cannot tell what the query is. On Tuesday, 29 March 2016 02:06:43 UTC-5, rif wrote: > > The gae query is this: http://11.firmoasa.appspot.com/facturi > > I have this route: > routers = dict( > > # base router > BASE=dict( > default_application='firmoasa', > ), > ) > > And

[web2py] Re: GAE: "UserWarning: There are too many files in your application..." Which files to hide?

2015-12-17 Thread Massimo Di Pierro
Do not know I do not get this. Can you reproduce it you only have welcome app in applications? On Friday, 11 December 2015 19:43:15 UTC-6, Tom Campbell wrote: > > While attempting to another GAE problem > , > I'm running

[web2py] Re: GAE app running locally can't open Google Cloud SQL database: "Failure to connect, tried 5 times"

2015-12-17 Thread Massimo Di Pierro
I am not sure what the problem is for you but it tested this and I found a different error which I fixed in DAL trunk. Please try the latest trunk and see it you can reproduce it. Massimo On Friday, 11 December 2015 19:15:24 UTC-6, Tom Campbell wrote: > > Can someone tell me what I'm doing

[web2py] Re: GAE and date query, where is the limit

2015-12-13 Thread Mathieu Clabaut
As a response to myself, with a date field, db((db.auth_user.end_date == end)).select() is working. I nonetheless would appreciate to know what is the expected status of the former query with datetime field on GAE. -Mathieu. On Sun, Dec 13, 2015 at 3:58 PM Mathieu Clabaut

[web2py] Re: GAE bitbucket mirror - ImportError: Cannot import module 'applications.init.modules.pydal'

2015-10-21 Thread Leonel Câmara
You need to use --recursive when you clone web2py from a git repository so you get PyDAL too. -- 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

[web2py] Re: GAE bitbucket mirror - ImportError: Cannot import module 'applications.init.modules.pydal'

2015-10-21 Thread James Burke
Thank you for your reply Leonel. Is that a setting in Google Developers Console? I think I remember seeing it somewhere but can't recall where! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: GAE: BadRequestError: projection and keys_only cannot both be set

2015-08-22 Thread Massimo Di Pierro
Can you please open a pydal issue about this? On Friday, 21 August 2015 18:44:02 UTC-5, Jaime Sempere wrote: Hi, Im using web2py 2.9.12, Im developing on local gae, and when I tried to execute this query: pics = db(db.pics.user_id==user_id).select(db.pics.img_link, projection=True

[web2py] Re: GAE: BadRequestError: projection and keys_only cannot both be set

2015-08-22 Thread Jaime Sempere
Done! El domingo, 23 de agosto de 2015, 2:10:27 (UTC+2), Massimo Di Pierro escribió: Can you please open a pydal issue about this? On Friday, 21 August 2015 18:44:02 UTC-5, Jaime Sempere wrote: Hi, Im using web2py 2.9.12, Im developing on local gae, and when I tried to execute this

[web2py] Re: GAE unicodeDecodeError: 'ascii' codec can't decode byte... unable to fix it

2015-08-18 Thread Paolo Valleri
Hi, the latest version of web2py doesn't include the most recent pydal. I'd suggest trying your app with the last development version of web2py. Paolo On Monday, August 17, 2015 at 6:48:11 PM UTC+2, Jaime Sempere wrote: Hi, I am having problems when I try to deploy my app on local SDK GAE.

[web2py] Re: GAE unicodeDecodeError: 'ascii' codec can't decode byte... unable to fix it

2015-08-18 Thread Jaime Sempere
Hi, thanks a lot for the help Paollo, I have tried that but the error is still there with the development version. But... I have been able to 'fix it' I went to _compat.py line 27 and just print the obj: if not isinstance(obj, unicode): print obj return

[web2py] Re: GAE SDK: Getting ImportError for gluon.contrib.populate import populate

2015-05-27 Thread Massimo Di Pierro
There is this line in app.yaml: skip_files: (contrib/(populate|taskbar_widget)\.py)| by default we do not deploy populate on GAE because of its size. remove that line. On Thursday, 29 September 2011 04:52:16 UTC-5, glomde wrote: Hi, I am trying to use GAE but I get import error on

[web2py] Re: GAE SDK: Getting ImportError for gluon.contrib.populate import populate

2015-05-25 Thread Davy Jacops
I have the same issue So what did you do about this? Thx Davy Op maandag 13 augustus 2012 12:53:10 UTC+2 schreef Jaymin Oh: I just found by myself. populate method in db.py doesn't support in GAE. On Thursday, September 29, 2011 6:52:16 PM UTC+9, glomde wrote: Hi, I am trying to use

[web2py] Re: GAE NDB is there a problem with using belongs on an id field?

2014-11-04 Thread Quint
There was something else I wanted to check. But I need the stack trace first. Could you post it? On Sunday, November 2, 2014 12:18:50 AM UTC+1, Russ King wrote: I have established at least a work-around to this issue by updating google.py file in adapters and creating a new class to use

[web2py] Re: GAE NDB is there a problem with using belongs on an id field?

2014-11-04 Thread Quint
I suspect we need to add something like this in google.py. But I cannot test anything at the moment so maybe you can try this? def filter(self, query, tableobj, prop, op, value): # NDB uses _key in stead of __key__ if prop == __key__: prop = _key return self.GAE_FILTER_OPTIONS[op](query,

[web2py] Re: GAE NDB is there a problem with using belongs on an id field?

2014-11-04 Thread Russ King
Hi Quint Below is the trace - hope it hepls. Russ Traceback (most recent call last): File C:\web2pysrcdev\web2py\gluon\restricted.py, line 224, in restricted exec ccode in environment File C:\web2pysrcdev\web2py\applications\gaetest\controllers/default.py, line 128, in module

[web2py] Re: GAE NDB is there a problem with using belongs on an id field?

2014-11-01 Thread Russ King
I have established at least a work-around to this issue by updating google.py file in adapters and creating a new class to use instead of GAEF when ndb is being used: class GAEFNDB(object): #This is a work around to belongs not working on id fields when using ndb def

Re: [web2py] Re: GAE NDB is there a problem with using belongs on an id field?

2014-09-02 Thread Quint
I will try to test this later but I can tell you now how IN relates to BELONGS. GAE does not have belongs and web2py solves this by using IN. Also you must realize that GAE performs a separate subquery for every item with a IN clause. So this is very inefficient. You're also limited to 30

[web2py] Re: GAE NDB is there a problem with using belongs on an id field?

2014-09-02 Thread Quint
Looking at the code again, I see there are 5 more instances of: Key.from_path I think they should all be replaced by: self.keyfunc (Not necessarily related to the issue btw) On Monday, September 1, 2014 1:32:33 PM UTC+2, Quint wrote: Ok, I did not test this but from what can see from here

[web2py] Re: GAE NDB is there a problem with using belongs on an id field?

2014-09-01 Thread dlypka
It looks like GAE has the 'Projection Query' feature to allow selecting a subset of columns / properties: https://developers.google.com/appengine/docs/python/datastore/projectionqueries On Friday, August 29, 2014 11:18:00 PM UTC-5, Massimo Di Pierro wrote: This should work, can you please open

[web2py] Re: GAE NDB is there a problem with using belongs on an id field?

2014-09-01 Thread Quint
Ok, I did not test this but from what can see from here the line below needs to be changed. (This line does not yet consider NDB.) def BELONGS(self, first, second=None): if not isinstance(second, (list, tuple, set)): raise SyntaxError(Not supported) if not self.use_ndb: if

Re: [web2py] Re: GAE NDB is there a problem with using belongs on an id field?

2014-09-01 Thread Russ King
Many thanks for reply however this doesn't seem to be a complete fix - code is failing on the 'in' piece of this filter function and I am not clear how this relates to the belongs code up above. Regards Russ GAE_FILTER_OPTIONS = { '=': lambda q, t, p, v: q.filter(getattr(t,p) ==

Re: [web2py] Re: GAE NDB is there a problem with using belongs on an id field?

2014-09-01 Thread Quint
Could you post the stacktrace? -- 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 Groups

[web2py] Re: GAE NDB is there a problem with using belongs on an id field?

2014-08-29 Thread Massimo Di Pierro
This should work, can you please open a ticket? Mind that it is pointless to select columns/fields on GAE since it always fetches them all. On Friday, 29 August 2014 18:37:07 UTC-5, Russ King wrote: I am struggling to use belongs on GAE+NDB it appears that: quests =

[web2py] Re: GAE Python Dev Server won't serve static assets on Windows - MIME type error

2014-07-27 Thread Massimo Di Pierro
This appears to be a bug in the windows SDK: https://code.google.com/p/googleappengine/issues/detail?id=11001 Your workaround only works for the welcome static folder structure but it is not general. On Friday, 25 July 2014 17:21:14 UTC-5, Russ King wrote: It appears that this issue will

[web2py] Re: GAE Python Dev Server won't serve static assets on Windows - MIME type error

2014-07-27 Thread James Awford
if using Python 2.7.7 then it is probably the mime type regression, move to 2.7.8 or backwards. On Saturday, July 26, 2014 12:21:14 AM UTC+2, Russ King wrote: It appears that this issue will affect web2py on windows development and basically all the css files get ignored so its rather

[web2py] Re: GAE Python Dev Server won't serve static assets on Windows - MIME type error

2014-07-27 Thread Russ King
Many thanks python 2.7.8 fixed as you suggested. Russ On Sunday, 27 July 2014 18:09:14 UTC+1, James Awford wrote: if using Python 2.7.7 then it is probably the mime type regression, move to 2.7.8 or backwards. On Saturday, July 26, 2014 12:21:14 AM UTC+2, Russ King wrote: It appears

[web2py] Re: GAE: Downloading uploaded images

2014-05-01 Thread St. Pirsch
Thank You for the hind. They are stored in the datastore at the moment. I found a description for blobstore-uploads from web2py work here: http://www.web2pyslices.com/slice/showcomment/948 I think that was made by you, a couple of years ago. I'll try to make it work that way. thanks, Stephan

Re: [web2py] Re: GAE: Downloading uploaded images

2014-05-01 Thread Christian Foster Howes
sounds good. good luck! note that if i was re-implementing it right now i would take a serious look at using google cloud storage to put the images in. i'm not sure but it might be easier to access files as a site owner that are in cloud storage. cfh On 5/1/14, 1:31 , St. Pirsch wrote:

[web2py] Re: GAE: Downloading uploaded images

2014-04-30 Thread Christian Foster Howes
are you storing your images in the datastore or in blobstore, or in google cloud storage? if blobstore you can use https://developers.google.com/appengine/docs/python/images/functions#Image_get_serving_url to store a URL that serves it directly from blobstore. cfh On Monday, April 28, 2014

[web2py] Re: GAE - Shell

2014-04-03 Thread Massimo Di Pierro
Not possible. On Thursday, 3 April 2014 13:25:23 UTC-5, Marcello wrote: Hello, I started to play with web2py and GAE. I want to run a remote shell with something like: python web2py.py -M -S app_name But remotely... I looked everywhere but I did not find an answer... Thanks --

Re: [web2py] Re: GAE deployment problem with gluon.settings

2014-03-31 Thread Francisco García Claramonte
Hello all, The problem persists. But I fixed it upgrading to python 2.7. With app.yaml parameters: runtime: python27 threadsafe: true# true for WSGI concurrent requests (Python 2.7 only) default_expiration: 24h # for static files - url: .* script: gaehandler.wsgiapp# WSGI (Python

Re: [web2py] Re: GAE deployment problem with gluon.settings

2014-03-14 Thread Francisco García Claramonte
Hello Massimo, 2014-03-13 14:41 GMT+01:00 Massimo Di Pierro massimo.dipie...@gmail.com: I made a change in trunk about this. Can you please check it? Thank you for your fast answer and patch. I'll test it in next days and I'll tell to the list. Thank you for your work. ;) Regards, Francisco

[web2py] Re: GAE deployment problem with gluon.settings

2014-03-13 Thread Massimo Di Pierro
I made a change in trunk about this. Can you please check it? On Thursday, 13 March 2014 06:56:32 UTC-5, Francisco García wrote: Hello all, I am trying to upload a Web2py application to GAE, as I use to do with other web2py apps (without problems). I find the following error in GAE logs:

[web2py] Re: GAE / Memcache consistency minor change request.

2014-03-04 Thread Matt
Done https://code.google.com/p/web2py/issues/detail?id=1887 Thanks Massimo! On Saturday, March 1, 2014 2:27:17 AM UTC+13, Massimo Di Pierro wrote: Can you please open a ticket so we will get this done asap? On Wednesday, 26 February 2014 15:15:39 UTC-6, Matt wrote: Hi there, I've

[web2py] Re: GAE / Memcache consistency minor change request.

2014-02-28 Thread Massimo Di Pierro
Can you please open a ticket so we will get this done asap? On Wednesday, 26 February 2014 15:15:39 UTC-6, Matt wrote: Hi there, I've noticed a small variation between two parts of web2py. The memcache client MemcacheClient in gluon.contrib.memcache.__init__.py supports the ability to

[web2py] Re: GAE localhost mysql instance

2014-02-17 Thread Juslin Guo
Thanks, finally i understand. Need to set my local sql with the option parameter when starting GAE. On Sunday, 16 February 2014 05:06:51 UTC+8, Christian Foster Howes wrote: did you invoke dev_appserver.py with the options to enable mysql? there's a couple of options that you must pass to

[web2py] Re: GAE localhost mysql instance

2014-02-15 Thread Christian Foster Howes
did you invoke dev_appserver.py with the options to enable mysql? there's a couple of options that you must pass to dev_appserver to tell it to load and connect to mysql for local emulation of google cloud sql. i haven't done it for a while so i don't remember the exact magic incantations

[web2py] Re: GAE: insert using key_name

2014-01-12 Thread Quint
ok, understood. This is really the only thing I need: def _pre_process(self, table, **fields): Takes a w2p table and a dictionary with values and processes the field input and add defaults, computes, etc using the web2py table. fields =

[web2py] Re: GAE: insert using key_name

2014-01-12 Thread Alan Etkin
I gues my question is, can users safely rely on _something methods? The change revert is due this concern about api reliability, so adapters behave as specified in http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer?search=_insert#Raw-SQL What is w2p's policy

[web2py] Re: GAE: insert using key_name

2014-01-11 Thread Alan Etkin
Sorry for the confussion.. But it works fine. I will definitally use this. (I posted something stupid and removed the stupid post but left some traces. ;-)) Well there are good reasons not to add the feature, at least with the current name:

[web2py] Re: GAE: insert using key_name

2014-01-09 Thread Alan Etkin
How about adding support in dal.py for the following: # processes the field input and add defaults, computes, etc. (does not make actual insertion). values = db._insert(spam=alot, ...) {spam: alot, ...} I made a pr about supporting _insert for processing values without applying

[web2py] Re: GAE: insert using key_name

2014-01-09 Thread Quint
Excellent! I already included it to try it out but how do i use it? When I use your example I get: AttributeError: 'DAL' object has no attribute '_insert' (obviously because there is no _select() in DAL) When i try: db._adapter._insert(props) I get: File

[web2py] Re: GAE: insert using key_name

2014-01-09 Thread Quint
Please Ignore that. I got it. Works great! On Thursday, January 9, 2014 7:21:45 PM UTC+1, Quint wrote: Excellent! I already included it to try it out but how do i use it? When I use your example I get: AttributeError: 'DAL' object has no attribute '_insert' (obviously because there is

[web2py] Re: GAE: insert using key_name

2014-01-09 Thread Alan Etkin
Works great! On Thursday, January 9, 2014 7:21:45 PM UTC+1, Quint wrote: Excellent! I already included it to try it out but how do i use it? Your message is confusing, does it work or it does not? It worked for my environment (recent release of gae sdk and development server)

[web2py] Re: GAE: insert using key_name

2014-01-09 Thread Quint
Sorry for the confussion.. But it works fine. I will definitally use this. (I posted something stupid and removed the stupid post but left some traces. ;-)) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: GAE: insert using key_name

2014-01-09 Thread Alan Etkin
But it works fine. I will definitally use this. Ok. If you can, it would be useful if you could share your tests about supported features for records lacking id values and any issue you find with setters and getters using key names. Note that the Rows class supports defining objects using

[web2py] Re: GAE: defaults on _tableobj

2014-01-08 Thread Quint
Here is a patch. On Tuesday, January 7, 2014 9:03:48 AM UTC+1, Massimo Di Pierro wrote: Thank you. I will take care of this asap. Can you submit a patch? On Friday, 3 January 2014 04:10:11 UTC-6, Quint wrote: I created an issue for this:

[web2py] Re: GAE: insert using key_name

2014-01-08 Thread Alan Etkin
I would like to be able to do this using web2py. I could also choose to use the GAE API directly to do this but then a could not make use thing like calculated Fields etc in my web2py tables. One issue about forcing key names is that there's no guarantee that the new key will provide a

[web2py] Re: GAE: insert using key_name

2014-01-08 Thread Quint
Yes, Your post reminds me, I forgot something. I thought that when a key_name is used, it could simply return that as an id. But if you say that DAL requires that it returns an integer id, than yes, that would break it. When you use a key_name, the records do not have an numeric id. But does

[web2py] Re: GAE: defaults on _tableobj

2014-01-08 Thread Alan Etkin
(For instance when I want to supply a key_name when I put() an entity so I can have better performance to get() that entity from db. Or when I want to use put_multi()) put_multi is supported by DAL trough the bulk_insert method. How better is performance when using named keys? Do you have

[web2py] Re: GAE: insert using key_name

2014-01-08 Thread Alan Etkin
But does that mean you should not allow it to be inserted that way? Nothing restricts users from operating (using web2py api) on rows inserted with GAE api There's no restriction on the use of the datastore, since it is not a service reserved for web2py apps, although I belive storing

[web2py] Re: GAE: defaults on _tableobj

2014-01-08 Thread Quint
Well, put_multi 'm not sure about, maybe the difference in this case is insignificant (didn't research it.) But get_by_key_name() is less expensive than a fetch for a single record. On Wednesday, January 8, 2014 3:53:05 PM UTC+1, Alan Etkin wrote: (For instance when I want to supply a

[web2py] Re: GAE: defaults on _tableobj

2014-01-08 Thread Quint
Also, is the use of named keys supported by DAL? I think it is not As long as it's not we will need to use GAE api directly then.. On Wednesday, January 8, 2014 3:53:05 PM UTC+1, Alan Etkin wrote: (For instance when I want to supply a key_name when I put() an entity so I can have

[web2py] Re: GAE: insert using key_name

2014-01-08 Thread Quint
Sorry, I don't understand this line. although I belive storing records without id assignment would be restrictive for apps Do you mean web2py apps or GAE apps? What did you mean by restrictive (and I doubt it will be actually compatible at all Compatible with what? Sure, when you would

[web2py] Re: GAE: defaults on _tableobj

2014-01-08 Thread Quint
As long as it's not we will need to use GAE api directly then.. To put() the entity that is. I would still prefer to use web2py to retreive it. On Wednesday, January 8, 2014 5:14:14 PM UTC+1, Quint wrote: Also, is the use of named keys supported by DAL? I think it is not As long as it's

[web2py] Re: GAE: defaults on _tableobj

2014-01-08 Thread Quint
I would still prefer to use web2py to retreive it. by using it's _tableobj I meant.. and then use GAE api On Wednesday, January 8, 2014 5:34:05 PM UTC+1, Quint wrote: As long as it's not we will need to use GAE api directly then.. To put() the entity that is. I would still prefer to

[web2py] Re: GAE: insert using key_name

2014-01-08 Thread Alan Etkin
Compatible with what? With any web2py feature expecting entity keys (web2py records) with integer ids. But you would know that you don't need those functionalities if you would decide to use a key_name I think this is usually called a corner case. I would't add the feature for the

[web2py] Re: GAE: defaults on _tableobj

2014-01-08 Thread Alan Etkin
by using it's _tableobj I meant.. and then use GAE api About using appengine property default values, the patch sets defaults for entity creation but I think that this would bypass the DAL interface, which uses it's own logic for setting default values. This could lead to web2py apps

[web2py] Re: GAE: defaults on _tableobj

2014-01-08 Thread Alan Etkin
About using appengine property default values, the patch sets defaults for entity creation but I think that this would bypass the DAL interface, I did not take in account that the patch just copies defaults, my bad. So I don't think the feature affects any previous implementation or leads

[web2py] Re: GAE: defaults on _tableobj

2014-01-08 Thread Quint
Ok. I will manage this myself then where I need it. thanks anyway! -- 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

[web2py] Re: GAE: insert using key_name

2014-01-08 Thread Alan Etkin
How about adding support in dal.py for the following: # processes the field input and add defaults, computes, etc. (does not make actual insertion). values = db._insert(spam=alot, ...) {spam: alot, ...} So one can use the output for storing named keys (with app specific logic or maybe plugin

[web2py] Re: GAE: defaults on _tableobj

2014-01-07 Thread Massimo Di Pierro
Thank you. I will take care of this asap. Can you submit a patch? On Friday, 3 January 2014 04:10:11 UTC-6, Quint wrote: I created an issue for this: https://code.google.com/p/web2py/issues/detail?id=1842 On Thursday, January 2, 2014 6:45:59 PM UTC+1, Quint wrote: Hello everybody, Happy

[web2py] Re: GAE: defaults on _tableobj

2014-01-03 Thread Quint
I created an issue for this: https://code.google.com/p/web2py/issues/detail?id=1842 On Thursday, January 2, 2014 6:45:59 PM UTC+1, Quint wrote: Hello everybody, Happy New Year! I'm using GAE and sometimes a need to call some GAE datastore functions directly. (For instance when I want

Re: [web2py] Re: GAE - Not Working || Full Code Attached

2013-12-06 Thread PRACHI VAKHARIA
Dear Massimo and Christian, You both were *right* about the *web2py version*. Since the latest version was not running or getting deployed on GAE, I used the old version which I had previously used to upload and deploy on GAE, hoping that might work. So, I corrected the old version

[web2py] Re: GAE - Not Working || Full Code Attached

2013-12-06 Thread PRACHI VAKHARIA
*New Error Ticket on GAE* What does this error mean? What is the solution to this error? Traceback (most recent call last):\n File /base/data/home/apps/s~myapp/1.372124618390164258/gluon/main.py, line 551, in wsgibase\n session._try_store_in_db(request, response)\n File

[web2py] Re: GAE - Not Working || Full Code Attached

2013-12-06 Thread Massimo Di Pierro
This is the same error as before. It should not happen with 2.8.2 On Friday, 6 December 2013 12:34:58 UTC-6, PRACHI VAKHARIA wrote: *New Error Ticket on GAE* What does this error mean? What is the solution to this error? Traceback (most recent call last):\n File

[web2py] Re: GAE - Not Working || Full Code Attached

2013-12-05 Thread James Burke
Hi Prachi, Your code works fine for me, uploading to GAE. It may be that your app.yaml file is configured incorrectly. Do you have it setup to use python 2.5 or 2.7? # use this line for Python 2.5 # #runtime: python # use these lines for Python 2.7 # upload app with: appcfg.py update web2py

[web2py] Re: GAE - Not Working || Full Code Attached

2013-12-05 Thread PRACHI VAKHARIA
Dear James, First, thank you very much for the response, and taking the effort to try out the application on GAE. The *app.yaml* file I am using is configured just as you have stated. runtime: python27 threadsafe: true - url: .* script: gaehandler.wsgiapp# WSGI (Python 2.7

Re: [web2py] Re: GAE - Not Working || Full Code Attached

2013-12-05 Thread James Burke
Hi Prachi When I ran the code the form appeared. I didn't try the form. Will do so when I get home James Burke On 6/12/2013, at 8:28 am, PRACHI VAKHARIA prachivakha...@gmail.com wrote: Dear James, First, thank you very much for the response, and taking the effort to try out the

Re: [web2py] Re: GAE - Not Working || Full Code Attached

2013-12-05 Thread Christian Foster Howes
also Prachi, can you visit the GAE logs and paste in the error you are getting? that might make it even quicker for us to help you sort it out. On Thursday, December 5, 2013 1:07:37 PM UTC-8, James Burke wrote: Hi Prachi When I ran the code the form appeared. I didn't try the form. Will

Re: [web2py] Re: GAE - Not Working || Full Code Attached

2013-12-05 Thread Massimo Di Pierro
When posting a comment the last 5 lines are usually sufficient: 'Traceback (most recent call last):\n File /base/data/home/apps/s~pv-4- vp/1.372124618390164258/gluon/main.py, line 551, in wsgibase\n session._try_store_in_db(request, response)\n File

Re: [web2py] Re: GAE - Not Working || Full Code Attached

2013-12-05 Thread Christian Foster Howes
this strikes me as an old version of web2py. GAE upgraded IDs to be longs a few months back and i know we made sure the DAL in the latest version supports that, yet this looks like such an error. :( On 12/5/13, 21:42 , Massimo Di Pierro wrote: When posting a comment the last 5 lines are

Re: [web2py] Re: GAE - Not Working || Full Code Attached

2013-12-05 Thread Massimo Di Pierro
Looking at this in more detail. This is a bug that was fixed some time ago. I believe in 2.4.2. You are using a very old version of web2py. :-( Massimo On Thursday, 5 December 2013 23:42:10 UTC-6, Massimo Di Pierro wrote: When posting a comment the last 5 lines are usually sufficient:

[web2py] Re: GAE - Not Working || Full Code Attached

2013-12-04 Thread James Burke
Nothing looks obvious at first glance... if the ticket issued is unrecoverable then it can be that GAE hasn't created the indexes for your datastore table yet. It may be just a case of waiting a few minutes and refreshing the page. -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: GAE compatability with recent web2py versions

2013-10-31 Thread David Manns
My case too was passing a list of values from a reference field. On Wednesday, October 30, 2013 9:59:29 PM UTC-4, Massimo Di Pierro wrote: Belongs on GAE has always been supported. The cited code in version 2.7.4 is def BELONGS(self,first,second=None): if not

[web2py] Re: GAE compatability with recent web2py versions

2013-10-31 Thread Massimo Di Pierro
Please open a ticket pointing this thread. We can add support for this. On Thursday, 31 October 2013 15:11:59 UTC-5, David Manns wrote: My case too was passing a list of values from a reference field. On Wednesday, October 30, 2013 9:59:29 PM UTC-4, Massimo Di Pierro wrote: Belongs on GAE

[web2py] Re: GAE compatability with recent web2py versions

2013-10-30 Thread David Manns
Scott is probably right - I will do some experiments to check. Earlier versions of web2py supported 'belongs' on GAE so long as the set contained 30 or fewer members (by experiment, not documented). I can see how this limited support may have been dropped in a DAL rewrite! On Tuesday, October

[web2py] Re: GAE compatability with recent web2py versions

2013-10-30 Thread David Manns
'Belongs' was the problem. Older versions of web2py supported a limited implementation of belongs (up to 30 items in the set) on GAE datastore. Current version does not support 'belongs' on GAE datastore. I have worked around this and now have my application working again. Thanks Scott and

[web2py] Re: GAE compatability with recent web2py versions

2013-10-30 Thread Scott Hunter
This doesn't sound very backwards compatible to me; I couldn't find any documentation that says belongs DOESN'T work in GAE, and it clearly used to (if imperfectly). So is the bug that it USED to work, or that it doesn't work now? On Wednesday, October 30, 2013 11:53:04 AM UTC-4, David Manns

[web2py] Re: GAE compatability with recent web2py versions

2013-10-30 Thread Massimo Di Pierro
Belongs on GAE has always been supported. The cited code in version 2.7.4 is def BELONGS(self,first,second=None): if not isinstance(second,(list, tuple)): raise SyntaxError(Not supported) ... So perhaps you are passing something to belongs which is not a list or

  1   2   3   4   5   6   >