[google-appengine] Re: Release 1.8.2 issue - RuntimeError: internal error in regular expression engine

2013-07-10 Thread Mitul Golakiya
Google had automatically migrated My Apps GAE SDK version to 1.8.2 from 
1.8.1...
And now getting the same issue after migrating from 1.8.1 to 1.8.2...

Is there any option, by which I can specify my app's GAE SDK version ???

On Wednesday, July 10, 2013 1:03:39 AM UTC+5:30, Kinesh Patel wrote:


 Getting exceptions on the instances that have the new SDK (1.8.2) in 
 Python 2.7

 nightloop/mailbot/parser.py, line 23, in _strip_suffix
 result = re.findall(regex, body, re.S|re.I)
   File /base/data/home/runtimes/python27/python27_dist/lib/python2.7/re.py, 
 line 177, in findall
 return _compile(pattern, flags).findall(string)
 RuntimeError: internal error in regular expression engine

 App is currently broken because of it.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] Simple Registration Application

2013-07-10 Thread Tim Niblett
I made up a demo at https://gaeshiro.appspot.com which includes a simple 
login/registration system, in order to learn the tools involved.  The demo 
has a link to the code on GitHub.

It uses the Shiro authentication/authorization framework and Guice on top 
of the servlet API, as well as login via Google and Facebook, so may a bit 
over-complicated for you.  It should be straightforward to extract just the 
registration-with-email functionality though and drop Guice, Shiro and 
OAuth.

Tim

On Tuesday, 9 July 2013 12:09:02 UTC+1, aswath wrote:

 Currently, I dont want to introduce another framework into the application.
 I am looking at simple servlet/jsp code with out additional dependencies 
 on the frameworks.

 -Aswath

 On Tue, Jul 9, 2013 at 4:07 PM, Barry Hunter barryb...@gmail.comjavascript:
  wrote:




 On Tue, Jul 9, 2013 at 8:28 AM, Aswath Satrasala 
 aswath.s...@gmail.comjavascript:
  wrote:

 I am looking for java code.
 Currently, using playframework is not an option for me.  


 It my help to specify WHY the play framework isnt an option. 

 Otherwise, there is a fair chance any other suggestion will not be an 
 option either. (because it breaks what ever rule you havent told us)  

  -- 
 You received this message because you are subscribed to the Google Groups 
 Google App Engine group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to google-appengi...@googlegroups.com javascript:.
 To post to this group, send email to 
 google-a...@googlegroups.comjavascript:
 .
 Visit this group at http://groups.google.com/group/google-appengine.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] Running App Engine Instance 1.8.2

2013-07-10 Thread Moises Belchin
@Mike We noticed something similar last week. ImportError: cannot import
name expression_parser
when you use from google.appengine.api import search


Saludos.
Moisés Belchín.


2013/7/10 Vinny P vinny...@gmail.com

 On Tue, Jul 9, 2013 at 1:57 AM, Nikhil Jain nikhil.jaint...@gmail.comwrote:

 Hi GAE fellow,
 Few of my appengine application instance running on 1.8.1 and others are
 on 1.8.2.
 Is 1.8.2 been released or its pre-released version?


 +1. Also noticing this beginning today morning.

 -
 -Vinny P
 Technology  Media Advisor
 Chicago, IL

 App Engine Code Samples: http://www.learntogoogleit.com

  --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-appengine+unsubscr...@googlegroups.com.
 To post to this group, send email to google-appengine@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-appengine.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: Error if I set required=False for a StringListProperty

2013-07-10 Thread timh
And here is some example code for getting and putting raw entities - ie no 
model involved

from google.appengine.api import datastorefrom google.appengine.api import 
datastore_errorsdef get_entities(keys):rpc = datastore.GetRpcFromKwargs({}) 
   keys, multiple = datastore.NormalizeAndTypeCheckKeys(keys)entities = 
Nonetry:entities = datastore.Get(keys, rpc=rpc)except 
datastore_errors.EntityNotFoundError:assert not multiple
return entitiesdef put_entities(entities):rpc = 
datastore.GetRpcFromKwargs({})keys = datastore.Put(entities, rpc=rpc)
return keys


On Wednesday, July 10, 2013 3:09:56 PM UTC+8, timh wrote:

 Alternately make the property not required  (required=False), load the 
 entities set the value of the list to a [] and then rewrite, once you have 
 migrated all the entities you can then
 set the property to be required.

 You do need to think about model migration when changing classes 
 adding/removing or changing the types of properties.

 T

 On Wednesday, July 10, 2013 3:07:25 PM UTC+8, timh wrote:

 Have you tried setting the default value to [] as per that error ?

 If your model is blowing up you can always fetch the underlying data 
 without a model, fix the data up and write it back.

 T

 On Wednesday, July 10, 2013 9:56:50 AM UTC+8, Luca de Alfaro wrote:

 This is pretty bad!

 As pointed out in 
 https://code.google.com/p/googleappengine/issues/detail?id=8962 , if 
 you add a StringListProperty to a model with existing entities in the 
 datastore, then you cannot read those entities any more! 
 Furthermore, in Java it is apparently possible to write entities with 
 null StringListProperty fields.  Those entities cannot then be read from 
 Python! 
 These are pretty big problems -- is there any solution? 

 Luca

 On Tuesday, March 23, 2010 5:57:17 AM UTC-7, Geoffrey Spear wrote:

 On Mar 22, 11:09 pm, dhruvbird dhruvb...@gmail.com wrote:
  Hello,
I have a model with a single attribute that is a StringListProperty.
  I get an error if I define it as such:
 
  class Test(db.Expando):
  people = db.StringListProperty(required=False, indexed=True)
 
  However, on changing it to:
  class Test(db.Expando):
  people = db.StringListProperty(required=True, indexed=True,
  default=[])
 
  It starts working. Any ideas why this is happening??

 ListPropertys are always required; you can't set their value to None.
 If a particular entity has no values for the ListProperty, you need to
 set it to the empty list.  (Note that you can still set a default
 value of 'None', which magically uses an empty list, not None, as the
 default value.)



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Some questions about get_serving_url.

2013-07-10 Thread dd

   
   - Does it cost anything at all to create a *get_serving_url* image?
   - Is the cost to store an image created through *get_serving_url* to the 
   Image API storage just the same as Blobstore ($0.13/GB/month)?
   - Is the cost to serve an image created through *get_serving_url* the 
   same as GAE's Outgoing Bandwidth ($0.12/GB)?
   - Is there any expiration time for URL created through *get_serving_url*?
   I'm wondering whether I can delete original image data stored on 
   Blobstore or not.

I'd greatly appreciate if you could point me to related documents, if there 
are any.

Thanks !

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] Some questions about get_serving_url.

2013-07-10 Thread Barry Hunter
On Wed, Jul 10, 2013 at 11:00 AM, dd noug...@gmail.com wrote:


- Does it cost anything at all to create a *get_serving_url* image?

 No AFAIK




- Is the cost to store an image created through *get_serving_url* to
the Image API storage just the same as Blobstore ($0.13/GB/month)?

 No. There is no 'storage' as such. You are just creating a URL to make
accessing the file stored in the blobstore possible. (or GCS!)




- Is the cost to serve an image created through *get_serving_url* the
same as GAE's Outgoing Bandwidth ($0.12/GB)?

 Yes



- Is there any expiration time for URL created through *get_serving_url
* ?

  The image should get a future expires date, so the browser will cache the
image.


- I'm wondering whether I can delete original image data stored on
Blobstore or not.

 not really no. The url is just link to the data, not a 'copy'.



 I'd greatly appreciate if you could point me to related documents, if
 there are any.


Most of the above, is inferred from
https://developers.google.com/appengine/docs/python/images/





 Thanks !

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-appengine+unsubscr...@googlegroups.com.
 To post to this group, send email to google-appengine@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-appengine.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] 403 accessing AppEngine from OVH network.

2013-07-10 Thread ajgomezlopez


What went wrong?
Accessing every gae app (ex. http://www.securempresa.com) via OVH's IPv6 
network block reports a HTTP 403 error, with the specific message We're sorry, 
but this service is not available in your country.

It has been working well during months.

If it's of any help, the IP I'm trying to access stuff with is located in 
2001:41d0:1:a037::1 


Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] Google Apps Free One User

2013-07-10 Thread Barry Hunter
No.

See
https://groups.google.com/d/topic/google-appengine/jC_K-YlmXhM/discussion
how it works now.


On Wed, Jul 10, 2013 at 5:13 AM, James Gilliam jimgill...@gmail.com wrote:

 Question --

 Can GAE people still create a Google Apps Free Account for one user?

 Many clients don't want google apps, but we need google apps to use it to
 launch their custom domain.

 We look forward to being able to launch a GAE site without google apps at
 all.

 Somebody please tell me the 1 user free account is still available.

 Thanks

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-appengine+unsubscr...@googlegroups.com.
 To post to this group, send email to google-appengine@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-appengine.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: Release 1.8.2 issue - RuntimeError: internal error in regular expression engine

2013-07-10 Thread Michael Sander
This appears to be a Python bug that was introduced in Python version 
2.7.5. I am guessing that when google upgraded to 1.8.1, it also upgraded 
Python which broke this behavior. This is causing failures in my production 
code. Google -- please revert to 1.8.1 ASAP!

On Wednesday, July 10, 2013 1:32:43 AM UTC-4, Mitul Golakiya wrote:

 Google had automatically migrated My Apps GAE SDK version to 1.8.2 from 
 1.8.1...
 And now getting the same issue after migrating from 1.8.1 to 1.8.2...

 Is there any option, by which I can specify my app's GAE SDK version ???

 On Wednesday, July 10, 2013 1:03:39 AM UTC+5:30, Kinesh Patel wrote:


 Getting exceptions on the instances that have the new SDK (1.8.2) in 
 Python 2.7

 nightloop/mailbot/parser.py, line 23, in _strip_suffix
 result = re.findall(regex, body, re.S|re.I)
   File 
 /base/data/home/runtimes/python27/python27_dist/lib/python2.7/re.py, 
 line 177, in findall
 return _compile(pattern, flags).findall(string)
 RuntimeError: internal error in regular expression engine

 App is currently broken because of it.



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: Google Apps Free One User

2013-07-10 Thread James Gilliam
Thank you for the response Barry.  

I read the forums all the time but I missed this June 15th announcement. 

How about putting something like this in the GAE blog or even sending an 
email to GAE admins?

Again, thanks for the response.

On Tuesday, July 9, 2013 9:13:12 PM UTC-7, James Gilliam wrote:

 Question --

 Can GAE people still create a Google Apps Free Account for one user?

 Many clients don't want google apps, but we need google apps to use it to 
 launch their custom domain.

 We look forward to being able to launch a GAE site without google apps at 
 all.

 Somebody please tell me the 1 user free account is still available.

 Thanks


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: Google Apps Free One User

2013-07-10 Thread James Gilliam
Another issue ...

This link says that a google developer can only request three credits ... I 
launch lots of sites with my GAE account

https://docs.google.com/forms/d/1lSDA5Jol0Bosaop3RKZ9YqlSyzVLsCtAv8gYupBheR4/viewform

Horrible jumping over these artificial Google hoops ... I don't even want 
the fracking google apps accounts and now I have to pay for then too


On Tuesday, July 9, 2013 9:13:12 PM UTC-7, James Gilliam wrote:

 Question --

 Can GAE people still create a Google Apps Free Account for one user?

 Many clients don't want google apps, but we need google apps to use it to 
 launch their custom domain.

 We look forward to being able to launch a GAE site without google apps at 
 all.

 Somebody please tell me the 1 user free account is still available.

 Thanks


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] Google App Engine datastore supports only 200 indexes..

2013-07-10 Thread aadhaar mehrotra
Will that mean, an application can not have complex queries more than 200?

I have a situation where I am searching on 7 different parameters (search 
filter of 8 different parameters) and then need to sort the results in 80 
different columns in the table (by one at a time).

That shall mean 7 + 1 indexes for a sort per field (Ascending, and 8 more 
for descending) X 80. which is a huge number.

Is there a way out or I need to sort the list programatically?

Thanks
Aadhaar

On Saturday, February 26, 2011 6:19:56 PM UTC+5:30, Ian Lewis wrote:

 Hi,

 The number if indexes isn't affected by the number of properties on an 
 entity. It only has to do with the number of indexes for complex queries 
 that are needed in your application (i.e. Those in index.yaml). So the 
 number of indexes created automatically (by properties on indexes) are 
 probably only limited by your available storage and doesn't limit the 
 number of entities or properties on entities.

 See: 
 http://code.google.com/appengine/docs/python/config/indexconfig.html
 http://code.google.com/appengine/docs/python/datastore/propertyclass.html

 On Sat, Feb 26, 2011 at 7:19 PM, piplayan nayak 
 pipl...@gmail.comjavascript:
  wrote:

 I am a newbie to app engine datastore. I am currently evaluating migrate 
 my existing webapp to app engine. 
 I found that the hard limit for indexes is 200 for an application. 
 So, i am really confused whether this constraint forces many limitations 
 on the app engine datastore design.[ for eg. no of entity kinds, no of 
 properties in an entity] etc.

 Please advice me on this 

  -- 
 You received this message because you are subscribed to the Google Groups 
 Google App Engine group.
 To post to this group, send email to 
 google-a...@googlegroups.comjavascript:
 .
 To unsubscribe from this group, send email to 
 google-appengi...@googlegroups.com javascript:.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine?hl=en.




 -- 
 Ian

 http://www.ianlewis.org/
  

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Moving application to European datacenter?

2013-07-10 Thread Peter D
In the app engine documentation, I saw this point:

*For developers that do not have a Premier account, you will need to enable 
billinghttps://developers.google.com/appengine/docs/billing#Enabling_Paid_Appsfor
 applications that should reside in the European Union.
*
(taken from 
https://developers.google.com/appengine/docs/java/gettingstarted/uploading)

That is my exact position; I do not have a premier account and I have 
enabled billing. How would I go about residing my applications in the EU?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: how to *not* use _ah/queue/deferred?

2013-07-10 Thread Jitender Bhatia
Did you ever find any way to stop the tasks ?

On Thursday, November 11, 2010 6:21:07 PM UTC+5:30, Ivan Uemlianin wrote:

 Dear All 

 app id: bigmarch2010 

 We are running a very simple app on the appengine.  We're using django- 
 nonrel, but the app is not very complicated. 

 In particular, there seems to be no need to use the task queue, so I 
 have commented out the relevant line in our app.yaml: 

 # - url: /_ah/queue/deferred 
 #   script: djangoappengine/deferred/handler.py 
 #   login: admin 

 However, the logs show that the task queue is still active --- or 
 rather, it exists, but in a broken state: tasks pile up in the queue, 
 and 404s pile up in the logs, e.g.: 

 11-11 04:42AM 26.081 /_ah/queue/deferred 404 313ms 0cpu_ms 0kb 
 AppEngine-Google; (+http://code.google.com/appengine) 

 Please could somebody help with the following questions: 
 - I am not sending any task queue requests, so where can they be 
 coming from? 
 - The deferred system doesn't seem to be doing anything useful (or at 
 all): how can I switch it off properly? 

 With thanks and best wishes 

 Ivan 



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] Re: Error if I set required=False for a StringListProperty

2013-07-10 Thread Luca de Alfaro
I tried to use both default=[] (which did not stop the error from 
occurring), and required=False (which generated a new error, as the only 
value allowed for required is True). 
So it appears that the old solutions for this bug are not viable.  
A mapreduce would cost a lot of money given the large amount of data 
involved. 

This is quite a serious bug in my opinion, as it prevents interoperability 
between Python and Java, as well as updating the structure of entities.  I 
wonder if there is any hope that the AppEngine team take it up and fix it? 

Luca

On Wednesday, July 10, 2013 12:13:55 AM UTC-7, Moises Belchin wrote:

 Consider using required=False and default=None or default=[] to avoid 
 these problems.
 Other way is to use GenericProperty, use MapReduce to convert data from 
 one type to another then change the property type, required, defaults, etc.

 Good luck !


 Saludos.
 Moisés Belchín.


 2013/7/10 timh zute...@gmail.com javascript:

 Alternately make the property not required  (required=False), load the 
 entities set the value of the list to a [] and then rewrite, once you have 
 migrated all the entities you can then
 set the property to be required.

 You do need to think about model migration when changing classes 
 adding/removing or changing the types of properties.

 T


 On Wednesday, July 10, 2013 3:07:25 PM UTC+8, timh wrote:

 Have you tried setting the default value to [] as per that error ?

 If your model is blowing up you can always fetch the underlying data 
 without a model, fix the data up and write it back.

 T

 On Wednesday, July 10, 2013 9:56:50 AM UTC+8, Luca de Alfaro wrote:

 This is pretty bad!

 As pointed out in https://code.google.com/p/**
 googleappengine/issues/detail?**id=8962https://code.google.com/p/googleappengine/issues/detail?id=8962,
  if you add a StringListProperty to a model with existing entities in the 
 datastore, then you cannot read those entities any more! 
 Furthermore, in Java it is apparently possible to write entities with 
 null StringListProperty fields.  Those entities cannot then be read from 
 Python! 
 These are pretty big problems -- is there any solution? 

 Luca

 On Tuesday, March 23, 2010 5:57:17 AM UTC-7, Geoffrey Spear wrote:

 On Mar 22, 11:09 pm, dhruvbird dhruvb...@gmail.com wrote:
  Hello,
I have a model with a single attribute that is a 
 StringListProperty.
  I get an error if I define it as such:
 
  class Test(db.Expando):
  people = db.StringListProperty(**required=False, indexed=True)
 
  However, on changing it to:
  class Test(db.Expando):
  people = db.StringListProperty(**required=True, indexed=True,
  default=[])
 
  It starts working. Any ideas why this is happening??

 ListPropertys are always required; you can't set their value to None.
 If a particular entity has no values for the ListProperty, you need to
 set it to the empty list.  (Note that you can still set a default
 value of 'None', which magically uses an empty list, not None, as the
 default value.)

  -- 
 You received this message because you are subscribed to the Google Groups 
 Google App Engine group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to google-appengi...@googlegroups.com javascript:.
 To post to this group, send email to 
 google-a...@googlegroups.comjavascript:
 .
 Visit this group at http://groups.google.com/group/google-appengine.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: Error if I set required=False for a StringListProperty

2013-07-10 Thread Luca de Alfaro
Yes, and it did not work. 
I cannot fix all the data, as the cost would be quite large. 
This leaves giving up doing what I wanted to do in Python, or  fetching the 
underlying data without a model. 
Luca

On Wednesday, July 10, 2013 12:07:25 AM UTC-7, timh wrote:

 Have you tried setting the default value to [] as per that error ?

 If your model is blowing up you can always fetch the underlying data 
 without a model, fix the data up and write it back.

 T

 On Wednesday, July 10, 2013 9:56:50 AM UTC+8, Luca de Alfaro wrote:

 This is pretty bad!

 As pointed out in 
 https://code.google.com/p/googleappengine/issues/detail?id=8962 , if you 
 add a StringListProperty to a model with existing entities in the 
 datastore, then you cannot read those entities any more! 
 Furthermore, in Java it is apparently possible to write entities with 
 null StringListProperty fields.  Those entities cannot then be read from 
 Python! 
 These are pretty big problems -- is there any solution? 

 Luca

 On Tuesday, March 23, 2010 5:57:17 AM UTC-7, Geoffrey Spear wrote:

 On Mar 22, 11:09 pm, dhruvbird dhruvb...@gmail.com wrote:
  Hello,
I have a model with a single attribute that is a StringListProperty.
  I get an error if I define it as such:
 
  class Test(db.Expando):
  people = db.StringListProperty(required=False, indexed=True)
 
  However, on changing it to:
  class Test(db.Expando):
  people = db.StringListProperty(required=True, indexed=True,
  default=[])
 
  It starts working. Any ideas why this is happening??

 ListPropertys are always required; you can't set their value to None.
 If a particular entity has no values for the ListProperty, you need to
 set it to the empty list.  (Note that you can still set a default
 value of 'None', which magically uses an empty list, not None, as the
 default value.)



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: Error if I set required=False for a StringListProperty

2013-07-10 Thread Luca de Alfaro
required=False generates a new error, stating that the only value for 
required is True. 

Luca

On Wednesday, July 10, 2013 12:09:56 AM UTC-7, timh wrote:

 Alternately make the property not required  (required=False), load the 
 entities set the value of the list to a [] and then rewrite, once you have 
 migrated all the entities you can then
 set the property to be required.

 You do need to think about model migration when changing classes 
 adding/removing or changing the types of properties.

 T

 On Wednesday, July 10, 2013 3:07:25 PM UTC+8, timh wrote:

 Have you tried setting the default value to [] as per that error ?

 If your model is blowing up you can always fetch the underlying data 
 without a model, fix the data up and write it back.

 T

 On Wednesday, July 10, 2013 9:56:50 AM UTC+8, Luca de Alfaro wrote:

 This is pretty bad!

 As pointed out in 
 https://code.google.com/p/googleappengine/issues/detail?id=8962 , if 
 you add a StringListProperty to a model with existing entities in the 
 datastore, then you cannot read those entities any more! 
 Furthermore, in Java it is apparently possible to write entities with 
 null StringListProperty fields.  Those entities cannot then be read from 
 Python! 
 These are pretty big problems -- is there any solution? 

 Luca

 On Tuesday, March 23, 2010 5:57:17 AM UTC-7, Geoffrey Spear wrote:

 On Mar 22, 11:09 pm, dhruvbird dhruvb...@gmail.com wrote:
  Hello,
I have a model with a single attribute that is a StringListProperty.
  I get an error if I define it as such:
 
  class Test(db.Expando):
  people = db.StringListProperty(required=False, indexed=True)
 
  However, on changing it to:
  class Test(db.Expando):
  people = db.StringListProperty(required=True, indexed=True,
  default=[])
 
  It starts working. Any ideas why this is happening??

 ListPropertys are always required; you can't set their value to None.
 If a particular entity has no values for the ListProperty, you need to
 set it to the empty list.  (Note that you can still set a default
 value of 'None', which magically uses an empty list, not None, as the
 default value.)



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: Error if I set required=False for a StringListProperty

2013-07-10 Thread Luca de Alfaro
Thanks!  This is a great suggestion; it might be the only one that works 
(short of giving up doing what I wanted to do in Python). 
The interesting thing is that the Java side has no trouble at all reading 
those entities. 

Luca

On Wednesday, July 10, 2013 12:11:51 AM UTC-7, timh wrote:

 And here is some example code for getting and putting raw entities - ie no 
 model involved

 from google.appengine.api import datastorefrom google.appengine.api import 
 datastore_errorsdef get_entities(keys):rpc = 
 datastore.GetRpcFromKwargs({})keys, multiple = 
 datastore.NormalizeAndTypeCheckKeys(keys)entities = Nonetry:
 entities = datastore.Get(keys, rpc=rpc)except 
 datastore_errors.EntityNotFoundError:assert not multiple
 return entitiesdef put_entities(entities):rpc = 
 datastore.GetRpcFromKwargs({})keys = datastore.Put(entities, rpc=rpc)
 return keys


 On Wednesday, July 10, 2013 3:09:56 PM UTC+8, timh wrote:

 Alternately make the property not required  (required=False), load the 
 entities set the value of the list to a [] and then rewrite, once you have 
 migrated all the entities you can then
 set the property to be required.

 You do need to think about model migration when changing classes 
 adding/removing or changing the types of properties.

 T

 On Wednesday, July 10, 2013 3:07:25 PM UTC+8, timh wrote:

 Have you tried setting the default value to [] as per that error ?

 If your model is blowing up you can always fetch the underlying data 
 without a model, fix the data up and write it back.

 T

 On Wednesday, July 10, 2013 9:56:50 AM UTC+8, Luca de Alfaro wrote:

 This is pretty bad!

 As pointed out in 
 https://code.google.com/p/googleappengine/issues/detail?id=8962 , if 
 you add a StringListProperty to a model with existing entities in the 
 datastore, then you cannot read those entities any more! 
 Furthermore, in Java it is apparently possible to write entities with 
 null StringListProperty fields.  Those entities cannot then be read from 
 Python! 
 These are pretty big problems -- is there any solution? 

 Luca

 On Tuesday, March 23, 2010 5:57:17 AM UTC-7, Geoffrey Spear wrote:

 On Mar 22, 11:09 pm, dhruvbird dhruvb...@gmail.com wrote:
  Hello,
I have a model with a single attribute that is a 
 StringListProperty.
  I get an error if I define it as such:
 
  class Test(db.Expando):
  people = db.StringListProperty(required=False, indexed=True)
 
  However, on changing it to:
  class Test(db.Expando):
  people = db.StringListProperty(required=True, indexed=True,
  default=[])
 
  It starts working. Any ideas why this is happening??

 ListPropertys are always required; you can't set their value to None.
 If a particular entity has no values for the ListProperty, you need to
 set it to the empty list.  (Note that you can still set a default
 value of 'None', which magically uses an empty list, not None, as the
 default value.)



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Widespread transaction failures under 1.8.2

2013-07-10 Thread Jason Collins
We are seeing a significant uptick in datastore transaction failures under 
1.8.2.

Is anyone else seeing the same in their logs?

j

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Group housekeeping: most of those pinned posts are really out of date

2013-07-10 Thread Jason Collins
Whoever manages this group,

There are 6 or 7 pinned posts at the top of this board that are really 
out of date: broken links, old team members, etc.

Can they just be unpinned?

Thanks,
j

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: Google Apps Free One User

2013-07-10 Thread Jason Collins
Three credits? Well that's not going to work well for our business model

Everyone should star this so that we can get rid of this silly Google Apps 
dependency: https://code.google.com/p/googleappengine/issues/detail?id=8528

j

On Wednesday, 10 July 2013 08:46:31 UTC-6, James Gilliam wrote:

 Another issue ...

 This link says that a google developer can only request three credits ... 
 I launch lots of sites with my GAE account


 https://docs.google.com/forms/d/1lSDA5Jol0Bosaop3RKZ9YqlSyzVLsCtAv8gYupBheR4/viewform

 Horrible jumping over these artificial Google hoops ... I don't even want 
 the fracking google apps accounts and now I have to pay for then too


 On Tuesday, July 9, 2013 9:13:12 PM UTC-7, James Gilliam wrote:

 Question --

 Can GAE people still create a Google Apps Free Account for one user?

 Many clients don't want google apps, but we need google apps to use it to 
 launch their custom domain.

 We look forward to being able to launch a GAE site without google apps at 
 all.

 Somebody please tell me the 1 user free account is still available.

 Thanks



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: Release 1.8.2 issue - RuntimeError: internal error in regular expression engine

2013-07-10 Thread Kinesh Patel
Or perhaps use a version of python that doesn't have a release critical 
bug. I believe this has been patched already by the python community.

On Wednesday, July 10, 2013 9:57:32 AM UTC-4, Michael Sander wrote:

 This appears to be a Python bug that was introduced in Python version 
 2.7.5. I am guessing that when google upgraded to 1.8.1, it also upgraded 
 Python which broke this behavior. This is causing failures in my production 
 code. Google -- please revert to 1.8.1 ASAP!

 On Wednesday, July 10, 2013 1:32:43 AM UTC-4, Mitul Golakiya wrote:

 Google had automatically migrated My Apps GAE SDK version to 1.8.2 from 
 1.8.1...
 And now getting the same issue after migrating from 1.8.1 to 1.8.2...

 Is there any option, by which I can specify my app's GAE SDK version ???

 On Wednesday, July 10, 2013 1:03:39 AM UTC+5:30, Kinesh Patel wrote:


 Getting exceptions on the instances that have the new SDK (1.8.2) in 
 Python 2.7

 nightloop/mailbot/parser.py, line 23, in _strip_suffix
 result = re.findall(regex, body, re.S|re.I)
   File 
 /base/data/home/runtimes/python27/python27_dist/lib/python2.7/re.py, 
 line 177, in findall
 return _compile(pattern, flags).findall(string)
 RuntimeError: internal error in regular expression engine

 App is currently broken because of it.



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: Release 1.8.2 issue - RuntimeError: internal error in regular expression engine

2013-07-10 Thread Kinesh Patel
It appears this problem is fixed on 64 bit builds, but broken on 32 bit 
builds.

http://bugs.python.org/issue17998

On Wednesday, July 10, 2013 12:17:42 PM UTC-4, Kinesh Patel wrote:

 Or perhaps use a version of python that doesn't have a release critical 
 bug. I believe this has been patched already by the python community.

 On Wednesday, July 10, 2013 9:57:32 AM UTC-4, Michael Sander wrote:

 This appears to be a Python bug that was introduced in Python version 
 2.7.5. I am guessing that when google upgraded to 1.8.1, it also upgraded 
 Python which broke this behavior. This is causing failures in my production 
 code. Google -- please revert to 1.8.1 ASAP!

 On Wednesday, July 10, 2013 1:32:43 AM UTC-4, Mitul Golakiya wrote:

 Google had automatically migrated My Apps GAE SDK version to 1.8.2 from 
 1.8.1...
 And now getting the same issue after migrating from 1.8.1 to 1.8.2...

 Is there any option, by which I can specify my app's GAE SDK version ???

 On Wednesday, July 10, 2013 1:03:39 AM UTC+5:30, Kinesh Patel wrote:


 Getting exceptions on the instances that have the new SDK (1.8.2) in 
 Python 2.7

 nightloop/mailbot/parser.py, line 23, in _strip_suffix
 result = re.findall(regex, body, re.S|re.I)
   File 
 /base/data/home/runtimes/python27/python27_dist/lib/python2.7/re.py, 
 line 177, in findall
 return _compile(pattern, flags).findall(string)
 RuntimeError: internal error in regular expression engine

 App is currently broken because of it.



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] Some questions about get_serving_url.

2013-07-10 Thread Alex Burgel
On Wednesday, July 10, 2013 6:17:54 AM UTC-4, barryhunter wrote:

  The image should get a future expires date, so the browser will cache the 
 image. 


FYI, the expiration time is 24 hours, and there doesn't seem to be a way to 
change this.

https://groups.google.com/d/topic/google-appengine/2fPDYoJbjR4/discussion


- I'm wondering whether I can delete original image data stored on 
Blobstore or not.

 not really no. The url is just link to the data, not a 'copy'. 


If you delete the original image from blobstore, then the url will return 
404 within 24 hours.

--Alex

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: Release 1.8.2 issue - RuntimeError: internal error in regular expression engine

2013-07-10 Thread Kinesh Patel
FYI to others - a workaround for this issue is to not use r.DOTALL or r.S. 
You have to change your regexes wherever you have a . match to be 
(.|\n|\r). This is not a 100% foolproof workaround, as there are other 
newline-esque characters that are rarely used, but it should hold you over 
until there is an upgraded python runtime on google's servers. 

On Wednesday, July 10, 2013 12:21:03 PM UTC-4, Kinesh Patel wrote:

 It appears this problem is fixed on 64 bit builds, but broken on 32 bit 
 builds.

 http://bugs.python.org/issue17998

 On Wednesday, July 10, 2013 12:17:42 PM UTC-4, Kinesh Patel wrote:

 Or perhaps use a version of python that doesn't have a release critical 
 bug. I believe this has been patched already by the python community.

 On Wednesday, July 10, 2013 9:57:32 AM UTC-4, Michael Sander wrote:

 This appears to be a Python bug that was introduced in Python version 
 2.7.5. I am guessing that when google upgraded to 1.8.1, it also upgraded 
 Python which broke this behavior. This is causing failures in my production 
 code. Google -- please revert to 1.8.1 ASAP!

 On Wednesday, July 10, 2013 1:32:43 AM UTC-4, Mitul Golakiya wrote:

 Google had automatically migrated My Apps GAE SDK version to 1.8.2 from 
 1.8.1...
 And now getting the same issue after migrating from 1.8.1 to 1.8.2...

 Is there any option, by which I can specify my app's GAE SDK version ???

 On Wednesday, July 10, 2013 1:03:39 AM UTC+5:30, Kinesh Patel wrote:


 Getting exceptions on the instances that have the new SDK (1.8.2) in 
 Python 2.7

 nightloop/mailbot/parser.py, line 23, in _strip_suffix
 result = re.findall(regex, body, re.S|re.I)
   File 
 /base/data/home/runtimes/python27/python27_dist/lib/python2.7/re.py, 
 line 177, in findall
 return _compile(pattern, flags).findall(string)
 RuntimeError: internal error in regular expression engine

 App is currently broken because of it.



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] Re: Google Apps No Longer Free

2013-07-10 Thread GAEfan
This page still states that a new app should get one Google Apps Standard 
Edition for free:

https://developers.google.com/appengine/articles/domains

Just created a new app.  But, the links take you to the paid (not free) 
Google Apps for Business page.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] Moving application to European datacenter?

2013-07-10 Thread Vinny P
Hello Peter,

On Wed, Jul 10, 2013 at 9:10 AM, Peter D deaks...@gmail.com wrote:

 In the app engine documentation, I saw this point:
 *For developers that do not have a Premier account, you will need to enable
 billinghttps://developers.google.com/appengine/docs/billing#Enabling_Paid_Appsfor
  applications that should reside in the European Union.
 *
 (taken from https://developers.google.com/appengine/docs/
 java/gettingstarted/uploading)
 That is my exact position; I do not have a premier account and I have
 enabled billing. How would I go about residing my applications in the EU?



 You need to contact the Google App Engine staff to have your application
moved to European datacenters. See
https://groups.google.com/forum/#!msg/google-appengine/Oon8Ds3dlO4/gStzRiwCrhcJ


You can also open a ticket at
https://code.google.com/p/googleappengine/issues/list

-
-Vinny P
Technology  Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Locked out of my app for not having owner

2013-07-10 Thread David Cifuentes Cortes
Hello,

The account that used to be owner and creator of the application was 
deleted from Google Apps and now the only account with permissions is mine 
with only developer privilegies. I wonder how to get the owner role back to 
my app.

App ID: www-endpoints

Thanks,

David Cifuentes

-- 


*Eforcers S.A.*
www.eforcers.com
Cra. 12 No 90-20
Of. 301, 303, 306 
Bogotá, Colombia 
PBX [+571] 622 8320
FAX [+571] 622 8275
i...@eforcers.com

https://lh6.googleusercontent.com/-TagOBY1o2z4/UJLn6n91fxI/BiI/gBO6aLNbt_A/s1600/ISO-9001-2008-GoogleAppsDeployment.jpg

La información aquí contenida es para uso exclusivo de la persona o 
entidad de destino. Está estrictamente prohibida su utilización, copia, 
descarga, distribución, modificación y/o reproducción total o parcial, sin 
el permiso expreso de Eforcers S.A., pues su contenido puede ser de 
carácter confidencial y/o contener material privilegiado. Si usted recibió 
esta información por error, por favor contacte en forma inmediata a quien 
la envió y borre este material de su computador. Eforcers S.A. no es 
responsable por la información contenida en esta comunicación, el directo 
responsable es quien la firma o el autor de la misma.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: need help on refreshToken null issue

2013-07-10 Thread Vik
anyone on this plz?

Thankx and Regards

Vik
Founder
http://www.sakshum.org
http://blog.sakshum.org


On Mon, Jul 8, 2013 at 9:47 PM, Vik vik@gmail.com wrote:

 Hi

 Please advise  on
 http://stackoverflow.com/questions/17333726/refreshtoken-is-null


 Thankx and Regards

 Vik
 Founder
 http://www.sakshum.org
 http://blog.sakshum.org


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] Re: how to *not* use _ah/queue/deferred?

2013-07-10 Thread Vinny P
On Wed, Jul 10, 2013 at 3:04 AM, Jitender Bhatia 
jitender.bha...@metacube.com wrote:

 Did you ever find any way to stop the tasks ?

 On Thursday, November 11, 2010 6:21:07 PM UTC+5:30, Ivan Uemlianin wrote:

 We are running a very simple app on the appengine.  We're using django-
 nonrel, but the app is not very complicated.

 In particular, there seems to be no need to use the task queue, so I
 have commented out the relevant line in our app.yaml

 However, the logs show that the task queue is still active --- or
 rather, it exists, but in a broken state: tasks pile up in the queue,
 and 404s pile up in the logs



Hello Jitender,

Do you need to stop the task queue in general, or stop the task generation
by django-nonrel?

If you need to stop the task queue, you can use the Pause Queue button in
the Task Queue screen: http://imgur.com/7pHUWeO

If you need to stop task generation by django-nonrel, you should know that
django and miscellaneous plugins need to create tasks for their background
work. If you need to figure out what parts of django are generating tasks,
you can inspect the task's information by going to the queue information
screen and clicking on an individual task. For example, here's a picture of
one of my tasks: http://imgur.com/dFvpB1Y

-
-Vinny P
Technology  Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] Re: Error if I set required=False for a StringListProperty

2013-07-10 Thread timh
What about just dropping the required parameter from the property have you 
tried that.



On Thursday, July 11, 2013 12:00:17 AM UTC+8, Luca de Alfaro wrote:

 I tried to use both default=[] (which did not stop the error from 
 occurring), and required=False (which generated a new error, as the only 
 value allowed for required is True). 
 So it appears that the old solutions for this bug are not viable.  
 A mapreduce would cost a lot of money given the large amount of data 
 involved. 

 This is quite a serious bug in my opinion, as it prevents interoperability 
 between Python and Java, as well as updating the structure of entities.  I 
 wonder if there is any hope that the AppEngine team take it up and fix it? 

 Luca

 On Wednesday, July 10, 2013 12:13:55 AM UTC-7, Moises Belchin wrote:

 Consider using required=False and default=None or default=[] to avoid 
 these problems.
 Other way is to use GenericProperty, use MapReduce to convert data from 
 one type to another then change the property type, required, defaults, etc.

 Good luck !


 Saludos.
 Moisés Belchín.


 2013/7/10 timh zute...@gmail.com

 Alternately make the property not required  (required=False), load the 
 entities set the value of the list to a [] and then rewrite, once you have 
 migrated all the entities you can then
 set the property to be required.

 You do need to think about model migration when changing classes 
 adding/removing or changing the types of properties.

 T


 On Wednesday, July 10, 2013 3:07:25 PM UTC+8, timh wrote:

 Have you tried setting the default value to [] as per that error ?

 If your model is blowing up you can always fetch the underlying data 
 without a model, fix the data up and write it back.

 T

 On Wednesday, July 10, 2013 9:56:50 AM UTC+8, Luca de Alfaro wrote:

 This is pretty bad!

 As pointed out in https://code.google.com/p/**
 googleappengine/issues/detail?**id=8962https://code.google.com/p/googleappengine/issues/detail?id=8962,
  if you add a StringListProperty to a model with existing entities in the 
 datastore, then you cannot read those entities any more! 
 Furthermore, in Java it is apparently possible to write entities with 
 null StringListProperty fields.  Those entities cannot then be read from 
 Python! 
 These are pretty big problems -- is there any solution? 

 Luca

 On Tuesday, March 23, 2010 5:57:17 AM UTC-7, Geoffrey Spear wrote:

 On Mar 22, 11:09 pm, dhruvbird dhruvb...@gmail.com wrote:
  Hello,
I have a model with a single attribute that is a 
 StringListProperty.
  I get an error if I define it as such:
 
  class Test(db.Expando):
  people = db.StringListProperty(**required=False, indexed=True)
 
  However, on changing it to:
  class Test(db.Expando):
  people = db.StringListProperty(**required=True, indexed=True,
  default=[])
 
  It starts working. Any ideas why this is happening??

 ListPropertys are always required; you can't set their value to None.
 If a particular entity has no values for the ListProperty, you need to
 set it to the empty list.  (Note that you can still set a default
 value of 'None', which magically uses an empty list, not None, as the
 default value.)

  -- 
 You received this message because you are subscribed to the Google 
 Groups Google App Engine group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to google-appengi...@googlegroups.com.
 To post to this group, send email to google-a...@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-appengine.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.