Re: [google-appengine] Re: new devappserver2 and get_by_id

2013-03-27 Thread Gianni

 Are you encoding your ids as floating point numbers before calling
 get_by_id()?


No, I encoding as integer.
Javascript send to python app something like this
http://localhost:8080/api/misura/5332261958806667000/
instead of
http://localhost:8080/api/misura/5332261958806667264/

No problem in production, only in local devappserver2

Please see this post:

 https://groups.google.com/forum/?fromgroups=#!msg/google-appengine/r7L2mH3VzLw/BfFsSTGjlbwJ

 Hope that helps!


Ya, seams the same issue.



 On Tuesday, March 26, 2013 9:50:04 AM UTC-7, Giovanni Di Noia wrote:

 Hi, with new devappserver2 the get_by_id() method return an integer
 ending with 000 instead of real id. the rest of number is the same but only
 last 3 is ever replace with 000. What'a appens? does not seem a bug.
 -- Gianni

  --
 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?hl=en.
 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: new devappserver2 and get_by_id

2013-03-26 Thread Jesse Rohwer
Hi Gianni,

Are you encoding your ids as floating point numbers before calling 
get_by_id()?

Please see this post:
https://groups.google.com/forum/?fromgroups=#!msg/google-appengine/r7L2mH3VzLw/BfFsSTGjlbwJ

Hope that helps!

On Tuesday, March 26, 2013 9:50:04 AM UTC-7, Giovanni Di Noia wrote:

 Hi, with new devappserver2 the get_by_id() method return an integer ending 
 with 000 instead of real id. the rest of number is the same but only last 3 
 is ever replace with 000. What'a appens? does not seem a bug.
 -- Gianni
  

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.