[appengine-java] Re: datanucleus-appengine

2010-12-05 Thread George Moschovitis

On Dec 4, 6:56 am, John Howe jhowe...@gmail.com wrote:
 Is that another wave I see on the horizon ...

the news on the cloud-portability front are disappointing too:

https://jira.springsource.org/browse/ROO-1797

Remove support for DataNucleus 1.x and Google App Engine

Since none of Roo's sample apps can deploy to the app engine and given
there are a lot of hacks in the Roo code to allow even the simplest of
apps to run in the app engine, this task is to remove all the code
that supports the app engine until full SQL support is available. This
also has the added benefit of being able to drop support for JPA 1.0
with the removal of DataNuclueus 1.x

maybe another reason to update datanuclues-appengine to datanucleus
2.x ?

-g.

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



[appengine-java] Re: datanucleus-appengine

2010-12-05 Thread Ian Marshall
I am encouraged by the contributions from Ikai and Max.

I forgot to mention in my earlier post one reason I elected to use JDO
as my interface to the datastore: to maintain the capability to port
my application to another hosting service without too much work.

That being said, I have no intention currently of porting away from
GAE/J. Despite various problems, I think that this is an excellent
offering which improves continuously. A big thank you to everyone who
is responsible!


On Dec 5, 8:41 am, George  Moschovitis george.moschovi...@gmail.com
wrote:
 On Dec 4, 6:56 am, John Howe jhowe...@gmail.com wrote:

  Is that another wave I see on the horizon ...

 the news on the cloud-portability front are disappointing too:

 https://jira.springsource.org/browse/ROO-1797

 Remove support for DataNucleus 1.x and Google App Engine

 Since none of Roo's sample apps can deploy to the app engine and given
 there are a lot of hacks in the Roo code to allow even the simplest of
 apps to run in the app engine, this task is to remove all the code
 that supports the app engine until full SQL support is available. This
 also has the added benefit of being able to drop support for JPA 1.0
 with the removal of DataNuclueus 1.x

 maybe another reason to update datanuclues-appengine to datanucleus
 2.x ?

 -g.

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



Re: [appengine-java] Re: Local datastore empty after updating to SDK 1.4.0

2010-12-05 Thread Fabrizio Accatino
Ian,

I had read your previous post (2010-04-15). As you wrote, I'd also like to
find a more authoritatively response. But  I haven't found it. :(

  fabrizio

On Sun, Dec 5, 2010 at 11:47 AM, Ian Marshall ianmarshall...@gmail.comwrote:

 Does this post help?


 http://www.google.com/url?url=http://groups.google.com/g/f907f736/t/27097b9831aff32a/d/c16b898dcaad10ef%3Fq%3D%23c16b898dcaad10efei=aG37TNXvFoHA_Abn1qTaAgsa=tct=rescd=10source=groupsusg=AFQjCNGa_5Wk3KqMn7czeKwR0zocC07gOw

 On Dec 4, 2:40 pm, Fabrizio fht...@gmail.com wrote:
  I have a project with a local datastore. There was many entities in
  it.
 
  I have update the sdk from 1.3.7 to 1.4.0. Now the local datastore is
  empty. My app does not show data and local management tell datastore
  is empty (http://localhost:/_ah/admin/datastore).
 
  I've also tried to revert the local_db.bin file to my previous
  version from my local subversion. But it does not work.   :(
 
  Any idea?
 
  Fabrizio

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.



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



[appengine-java] Re: Checking admin priviledges using UserService in a cron/task-queue task execution

2010-12-05 Thread andrew
Thanks Didier.

I will look into it while waiting to see if Google can respond on what
the UserService returns in this case and if it can be used.

My first thought was that it would be pretty easy for someone to
construct a request with those headers present and valid values
(especially for the default queue), especially to pass the generic
security filter I'd like to write.

regards

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



Re: [appengine-java] Re: 1.4 eclipse plugin

2010-12-05 Thread Rajeev Dayal
Hi,

If you navigate to Project Properties - Google - Web Application, do you
have the option Launch and deploy from this directory checked? If so, when
you switched SDKs on your project, the Google Plugin for Eclipse should have
copied over the new libraries from the SDK over to your war/WEB-INF/lib
directory.

Have you manually copied/modified/removed any of the App Engine-related
libraries in the war/WEB-INF/lib folder? If so, then the Google Plugin for
Eclipse will not overwrite those changes on an SDK switch. What will happen
is that when switching SDKs, a warning will appear in the problems view,
indicating that there is a mismatch between the SDK jars and those in your
war/WEB-INF/lib folder. By selecting the warning and hitting CTRL-1, you'll
be given the option to synchronize the jars in the new SDK with the jars in
war/WEB-INF/lib.


Rajeev

On Fri, Dec 3, 2010 at 9:30 PM, GoSharp Lite gosharpl...@gmail.com wrote:

 I have just upgraded Eclipse Galileo with AppEngine version 1.4.0.
 There seems to be a mismatch of Tomcat versions between pre-
 compilation and execution.

 Does anyone have a solution with jsp compilation issue?

 Local server shows below logs with SDK 1.4.0 -
 HTTP ERROR 500

 Problem accessing /. Reason:
 Unable to compile class for JSP:

 An error occurred at line: -1 in the generated java file
[javac] D:\Profiles\LOCALS~1\Temp\Jetty_0_0_0_0__warmasbuh
 \jsp\org\apache\jsp\GoChildWeb_jsp.java:8:
 org.apache.jsp.GoChildWeb_jsp is not abstract and does not override
 abstract method getDependants() in
 org.apache.jasper.runtime.JspSourceDependent
[javac] public final class GoChildWeb_jsp extends
 org.apache.jasper.runtime.HttpJspBase
[javac]  ^


 An error occurred at line: -1 in the generated java file
[javac] D:\Profiles\LOCALS~1\Temp\Jetty_0_0_0_0__warmasbuh
 \jsp\org\apache\jsp\GoChildWeb_jsp.java:18: getDependants() in
 org.apache.jsp.GoChildWeb_jsp cannot implement getDependants() in
 org.apache.jasper.runtime.JspSourceDependent; attempting to use
 incompatible return type
[javac] found   : java.lang.Object
[javac] required: java.util.List
[javac]   public Object getDependants() {
[javac] ^


 An error occurred at line: -1 in the generated java file
[javac] D:\Profiles\LOCALS~1\Temp\Jetty_0_0_0_0__warmasbuh
 \jsp\org\apache\jsp\GoChildWeb_jsp.java:23: cannot find symbol
[javac] symbol  : method
 getJspApplicationContext(javax.servlet.ServletContext)
[javac] location: class javax.servlet.jsp.JspFactory
[javac] _el_expressionfactory =

 _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
[javac] ^
[javac] 3 errors



 On Dec 4, 6:30 am, Alex Humesky ahume...@google.com wrote:
  GPE's AppEngine SDK bundle version 1.4.0 is now up. Sorry for the
  delay.
 
  On Dec 3, 11:02 am, Don Schwarz schwa...@google.com wrote:
 
   My apologies.  We plan to have it up before the end of the day today.
 
   On Fri, Dec 3, 2010 at 9:26 AM, Royce Fullerton roy...@gmail.com
 wrote:
When will the Eclipse plugin update site be updated?
 
The plugin is now version 1.4, but the SDK is still version 1.3.8.
 
On Dec 3, 2:59 am, Ikai Lan (Google) 
ikai.l+gro...@google.comikai.l%2bgro...@google.com
 
wrote:
Dance dance robot is a bit older and the API may have changed
 slightly (not
sure, I have not done a visual check), but it's a good example of
 how to use
JSNI with the Channel API:
 
   http://code.google.com/p/dance-dance-robot/
 
--
Ikai Lan
Developer Programs Engineer, Google App Engine
Blogger:http://googleappengine.blogspot.com
Reddit:http://www.reddit.com/r/appengine
Twitter:http://twitter.com/app_engine
 
On Thu, Dec 2, 2010 at 3:50 PM, emerix rafa...@gmail.com wrote:
 Great release! Are there some libraries/docs for GWT and the
 Channel
 API ?
 
 On Dec 2, 10:17 pm, Ikai Lan (Google) 
 ikai.l+gro...@google.comikai.l%2bgro...@google.com
 ikai.l%2bgro...@google.com ikai.l%252bgro...@google.com
 
 wrote:
  They're still rolling out:
 
 http://code.google.com/appengine/docs/java/channel/
 
  If you see an error, wait a bit and refresh.
 
  --
  Ikai Lan
  Developer Programs Engineer, Google App Engine
  Blogger:http://googleappengine.blogspot.com
  Reddit:http://www.reddit.com/r/appengine
  Twitter:http://twitter.com/app_engine
 
  On Thu, Dec 2, 2010 at 1:10 PM, Ikai Lan (Google)
  ikai.l+gro...@google.com ikai.l%2bgro...@google.com 
 ikai.l%2bgro...@google.com ikai.l%252bgro...@google.com
 ikai.l%2bgro...@google.com ikai.l%252bgro...@google.com 
 ikai.l%252bgro...@google.com ikai.l%25252bgro...@google.com
 
   wrote:
   The docs aren't live yet. They'll be live later in the day.
 
   --
   Ikai Lan
   Developer Programs Engineer, Google App Engine
   

[appengine-java] Is warm up requests enabled or disabled by default? (Documentation disagrees)

2010-12-05 Thread Maxim Veksler
Hello Guys,

This page
http://code.google.com/appengine/docs/java/config/appconfig.html#Warming_Requests
says
*Warming requests are also enabled by default if you configured your Java
application with app.yaml. For details, please refer to Java Application
Configuration Using
app.yamlhttp://code.google.com/appengine/docs/java/configyaml/appconfig_yaml.html#Warming_Requests
.*

This page
http://code.google.com/appengine/docs/java/configyaml/appconfig_yaml.html#Warming_Requests
says
*In Java applications configured with app.yaml, warming requests are
disabled by default. To enable them, add the warmup argument to the
inbound_servicesdirective:*

So which of the two is it?

I'm configuration my application with app.yaml and warm ups are one of our
definitely wanted features. Logic says it's enabled by default, but lets be
sure. Please don't do the mistake of allowsing different default behaviour
based on configuration method for the same functionality. This will confuse
the hell out of people jumping between appengine-web.xml  app.yaml.

Thanks,
Maxim.

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



[appengine-java] Re: 1.4 eclipse plugin

2010-12-05 Thread Jaroslav Záruba
Same error, syncing the JARs has not helped. :(
It appears to me there's still hiding one incompatible (Jasper?)
library somewhere.

I guess I just have bad luck. Every time I upgrade GAE/GWT Eclipse
plugin or SDK I end up doing clean install of Eclipse. :(

On Dec 5, 7:36 pm, Rajeev Dayal rda...@google.com wrote:
 Hi,

 If you navigate to Project Properties - Google - Web Application, do you
 have the option Launch and deploy from this directory checked? If so, when
 you switched SDKs on your project, the Google Plugin for Eclipse should have
 copied over the new libraries from the SDK over to your war/WEB-INF/lib
 directory.

 Have you manually copied/modified/removed any of the App Engine-related
 libraries in the war/WEB-INF/lib folder? If so, then the Google Plugin for
 Eclipse will not overwrite those changes on an SDK switch. What will happen
 is that when switching SDKs, a warning will appear in the problems view,
 indicating that there is a mismatch between the SDK jars and those in your
 war/WEB-INF/lib folder. By selecting the warning and hitting CTRL-1, you'll
 be given the option to synchronize the jars in the new SDK with the jars in
 war/WEB-INF/lib.

 Rajeev







 On Fri, Dec 3, 2010 at 9:30 PM, GoSharp Lite gosharpl...@gmail.com wrote:
  I have just upgraded Eclipse Galileo with AppEngine version 1.4.0.
  There seems to be a mismatch of Tomcat versions between pre-
  compilation and execution.

  Does anyone have a solution with jsp compilation issue?

  Local server shows below logs with SDK 1.4.0 -
  HTTP ERROR 500

  Problem accessing /. Reason:
  Unable to compile class for JSP:

  An error occurred at line: -1 in the generated java file
     [javac] D:\Profiles\LOCALS~1\Temp\Jetty_0_0_0_0__warmasbuh
  \jsp\org\apache\jsp\GoChildWeb_jsp.java:8:
  org.apache.jsp.GoChildWeb_jsp is not abstract and does not override
  abstract method getDependants() in
  org.apache.jasper.runtime.JspSourceDependent
     [javac] public final class GoChildWeb_jsp extends
  org.apache.jasper.runtime.HttpJspBase
     [javac]              ^

  An error occurred at line: -1 in the generated java file
     [javac] D:\Profiles\LOCALS~1\Temp\Jetty_0_0_0_0__warmasbuh
  \jsp\org\apache\jsp\GoChildWeb_jsp.java:18: getDependants() in
  org.apache.jsp.GoChildWeb_jsp cannot implement getDependants() in
  org.apache.jasper.runtime.JspSourceDependent; attempting to use
  incompatible return type
     [javac] found   : java.lang.Object
     [javac] required: java.util.List
     [javac]   public Object getDependants() {
     [javac]                 ^

  An error occurred at line: -1 in the generated java file
     [javac] D:\Profiles\LOCALS~1\Temp\Jetty_0_0_0_0__warmasbuh
  \jsp\org\apache\jsp\GoChildWeb_jsp.java:23: cannot find symbol
     [javac] symbol  : method
  getJspApplicationContext(javax.servlet.ServletContext)
     [javac] location: class javax.servlet.jsp.JspFactory
     [javac]     _el_expressionfactory =

  _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext( 
  )).getExpressionFactory();
     [javac]                                         ^
     [javac] 3 errors

  On Dec 4, 6:30 am, Alex Humesky ahume...@google.com wrote:
   GPE's AppEngine SDK bundle version 1.4.0 is now up. Sorry for the
   delay.

   On Dec 3, 11:02 am, Don Schwarz schwa...@google.com wrote:

My apologies.  We plan to have it up before the end of the day today.

On Fri, Dec 3, 2010 at 9:26 AM, Royce Fullerton roy...@gmail.com
  wrote:
 When will the Eclipse plugin update site be updated?

 The plugin is now version 1.4, but the SDK is still version 1.3.8.

 On Dec 3, 2:59 am, Ikai Lan (Google) 
 ikai.l+gro...@google.comikai.l%2bgro...@google.com

 wrote:
 Dance dance robot is a bit older and the API may have changed
  slightly (not
 sure, I have not done a visual check), but it's a good example of
  how to use
 JSNI with the Channel API:

http://code.google.com/p/dance-dance-robot/

 --
 Ikai Lan
 Developer Programs Engineer, Google App Engine
 Blogger:http://googleappengine.blogspot.com
 Reddit:http://www.reddit.com/r/appengine
 Twitter:http://twitter.com/app_engine

 On Thu, Dec 2, 2010 at 3:50 PM, emerix rafa...@gmail.com wrote:
  Great release! Are there some libraries/docs for GWT and the
  Channel
  API ?

  On Dec 2, 10:17 pm, Ikai Lan (Google) 
  ikai.l+gro...@google.comikai.l%2bgro...@google.com
  ikai.l%2bgro...@google.com ikai.l%252bgro...@google.com

  wrote:
   They're still rolling out:

  http://code.google.com/appengine/docs/java/channel/

   If you see an error, wait a bit and refresh.

   --
   Ikai Lan
   Developer Programs Engineer, Google App Engine
   Blogger:http://googleappengine.blogspot.com
   Reddit:http://www.reddit.com/r/appengine
   Twitter:http://twitter.com/app_engine

   On Thu, Dec 2, 2010 at 1:10 PM, Ikai Lan (Google)
   

[appengine-java] Re: 1.4 eclipse plugin

2010-12-05 Thread Nick
Same error...JSPs are not working with 1.4.0

On Dec 5, 6:58 pm, Jaroslav Záruba jaroslav.zar...@gmail.com wrote:
 Same error, syncing the JARs has not helped. :(
 It appears to me there's still hiding one incompatible (Jasper?)
 library somewhere.

 I guess I just have bad luck. Every time I upgrade GAE/GWT Eclipse
 plugin or SDK I end up doing clean install of Eclipse. :(

 On Dec 5, 7:36 pm, Rajeev Dayal rda...@google.com wrote:







  Hi,

  If you navigate to Project Properties - Google - Web Application, do you
  have the option Launch and deploy from this directory checked? If so, when
  you switched SDKs on your project, the Google Plugin for Eclipse should have
  copied over the new libraries from the SDK over to your war/WEB-INF/lib
  directory.

  Have you manually copied/modified/removed any of the App Engine-related
  libraries in the war/WEB-INF/lib folder? If so, then the Google Plugin for
  Eclipse will not overwrite those changes on an SDK switch. What will happen
  is that when switching SDKs, a warning will appear in the problems view,
  indicating that there is a mismatch between the SDK jars and those in your
  war/WEB-INF/lib folder. By selecting the warning and hitting CTRL-1, you'll
  be given the option to synchronize the jars in the new SDK with the jars in
  war/WEB-INF/lib.

  Rajeev

  On Fri, Dec 3, 2010 at 9:30 PM, GoSharp Lite gosharpl...@gmail.com wrote:
   I have just upgraded Eclipse Galileo with AppEngine version 1.4.0.
   There seems to be a mismatch of Tomcat versions between pre-
   compilation and execution.

   Does anyone have a solution with jsp compilation issue?

   Local server shows below logs with SDK 1.4.0 -
   HTTP ERROR 500

   Problem accessing /. Reason:
   Unable to compile class for JSP:

   An error occurred at line: -1 in the generated java file
      [javac] D:\Profiles\LOCALS~1\Temp\Jetty_0_0_0_0__warmasbuh
   \jsp\org\apache\jsp\GoChildWeb_jsp.java:8:
   org.apache.jsp.GoChildWeb_jsp is not abstract and does not override
   abstract method getDependants() in
   org.apache.jasper.runtime.JspSourceDependent
      [javac] public final class GoChildWeb_jsp extends
   org.apache.jasper.runtime.HttpJspBase
      [javac]              ^

   An error occurred at line: -1 in the generated java file
      [javac] D:\Profiles\LOCALS~1\Temp\Jetty_0_0_0_0__warmasbuh
   \jsp\org\apache\jsp\GoChildWeb_jsp.java:18: getDependants() in
   org.apache.jsp.GoChildWeb_jsp cannot implement getDependants() in
   org.apache.jasper.runtime.JspSourceDependent; attempting to use
   incompatible return type
      [javac] found   : java.lang.Object
      [javac] required: java.util.List
      [javac]   public Object getDependants() {
      [javac]                 ^

   An error occurred at line: -1 in the generated java file
      [javac] D:\Profiles\LOCALS~1\Temp\Jetty_0_0_0_0__warmasbuh
   \jsp\org\apache\jsp\GoChildWeb_jsp.java:23: cannot find symbol
      [javac] symbol  : method
   getJspApplicationContext(javax.servlet.ServletContext)
      [javac] location: class javax.servlet.jsp.JspFactory
      [javac]     _el_expressionfactory =

   _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext(
)).getExpressionFactory();
      [javac]                                         ^
      [javac] 3 errors

   On Dec 4, 6:30 am, Alex Humesky ahume...@google.com wrote:
GPE's AppEngine SDK bundle version 1.4.0 is now up. Sorry for the
delay.

On Dec 3, 11:02 am, Don Schwarz schwa...@google.com wrote:

 My apologies.  We plan to have it up before the end of the day today.

 On Fri, Dec 3, 2010 at 9:26 AM, Royce Fullerton roy...@gmail.com
   wrote:
  When will the Eclipse plugin update site be updated?

  The plugin is now version 1.4, but the SDK is still version 1.3.8.

  On Dec 3, 2:59 am, Ikai Lan (Google) 
  ikai.l+gro...@google.comikai.l%2bgro...@google.com

  wrote:
  Dance dance robot is a bit older and the API may have changed
   slightly (not
  sure, I have not done a visual check), but it's a good example of
   how to use
  JSNI with the Channel API:

 http://code.google.com/p/dance-dance-robot/

  --
  Ikai Lan
  Developer Programs Engineer, Google App Engine
  Blogger:http://googleappengine.blogspot.com
  Reddit:http://www.reddit.com/r/appengine
  Twitter:http://twitter.com/app_engine

  On Thu, Dec 2, 2010 at 3:50 PM, emerix rafa...@gmail.com wrote:
   Great release! Are there some libraries/docs for GWT and the
   Channel
   API ?

   On Dec 2, 10:17 pm, Ikai Lan (Google) 
   ikai.l+gro...@google.comikai.l%2bgro...@google.com
   ikai.l%2bgro...@google.com ikai.l%252bgro...@google.com

   wrote:
They're still rolling out:

   http://code.google.com/appengine/docs/java/channel/

If you see an error, wait a bit and refresh.

--
Ikai Lan
Developer Programs Engineer, Google App 

[appengine-java] big table parent-child

2010-12-05 Thread asianCoolz
if have i have pojo like  categoryA - subcategoryA-- book
relationship.
subcategoryA is child of parent categoryA. book is child of
subcategoryA
in this case, everything is inside same entitygroup

if i need to move 'book' to another subcategory-B. i need to delete
subcategoryA and categoryA, and recreate categoryA - subcategoryA--
without  book ?   and recreate  categoryb - subcategoryb--
book  ,other-book, other-book3  ?

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



Re: [appengine-java] Re: Local datastore empty after updating to SDK 1.4.0

2010-12-05 Thread Fabrizio Accatino
Sorry Ian,

I don't understand.  Do you delete the local datastore and create it again?
If yes, how?

Fabrizio


On Sun, Dec 5, 2010 at 5:16 PM, Ian Marshall ianmarshall...@gmail.comwrote:

 I have a test local datastore. I also have a procedure now to delete
 this whenever I install a new GAE/J SDK. This solved my problem of
 disappearing test data.



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



[appengine-java] InvalidValueException: Non-incrementable value for key ...

2010-12-05 Thread Lior Harsat
Hi,


I've been getting an InvalidValueException: Non-incrementable value
for key... In my logs from time to time.
This exception is thrown by a call to MemcacheService.increment(Object
key, long delta, Long initialValue).
The value I am incrementing is an integer.
The documentation states that this exceptiob is Thrown when a cache
entry has content, but it cannot be read. For example:
- An attempt to MemcacheService.increment(java.lang.Object, long) a
non-integral value
- Version skew between your application and the data in the cache,
causing a serialization error.
I dont think my scenario fits the above examples.
Can anyone shed some light on this exception and its causes/meaning?


Thanx, Lior

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



[appengine-java] War fails to deploy locally due to FactoryConfigurationError

2010-12-05 Thread ankur
Hello,

I am trying to deploy the sample app on local machine but getting the
error below.
The server starts but the application fails to deploy .
This is confusing to me as only the appengine and  standard java
libraries are on the build path.

Environment:
  Google App Engine Java SDK 1.4.0
  Google Plugin for Eclipse 3.5
JDK1.6

Error Log:
WARNING: failed jettycontainerservice$apiproxyhand...@73a34b:
javax.xml.parsers.FactoryConfigurationError: Provider
org.apache.xerces.jaxp.SAXParserFactoryImpl could not be instantiated:
java.lang.NullPointerException
Dec 5, 2010 10:59:28 PM com.google.apphosting.utils.jetty.JettyLogger
warn
WARNING: Error starting handlers
javax.xml.parsers.FactoryConfigurationError: Provider
org.apache.xerces.jaxp.SAXParserFactoryImpl could not be instantiated:
java.lang.NullPointerException
at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
at org.mortbay.xml.XmlParser.init(XmlParser.java:69)
at
org.mortbay.jetty.webapp.WebXmlConfiguration.webXmlParser(WebXmlConfiguration.java:
83)
at
org.mortbay.jetty.webapp.WebXmlConfiguration.init(WebXmlConfiguration.java:
78)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at
org.mortbay.jetty.webapp.WebAppContext.loadConfigurations(WebAppContext.java:
858)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
430)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
50)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:
130)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
50)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:
130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
50)
at
com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:
185)
at
com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:
149)
at
com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:
219)
at com.google.appengine.tools.development.DevAppServerMain
$StartAction.apply(DevAppServerMain.java:164)
at com.google.appengine.tools.util.Parser
$ParseResult.applyArgs(Parser.java:48)
at
com.google.appengine.tools.development.DevAppServerMain.init(DevAppServerMain.java:
113)
at
com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:
89)
Dec 5, 2010 10:59:28 PM com.google.apphosting.utils.jetty.JettyLogger
warn
WARNING: Nested in javax.xml.parsers.FactoryConfigurationError:
Provider org.apache.xerces.jaxp.SAXParserFactoryImpl could not be
instantiated: java.lang.NullPointerException:
java.lang.NullPointerException
at javax.xml.parsers.FactoryFinder.newInstance(Unknown Source)
at javax.xml.parsers.FactoryFinder.findJarServiceProvider(Unknown
Source)
at javax.xml.parsers.FactoryFinder.find(Unknown Source)
at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
at org.mortbay.xml.XmlParser.init(XmlParser.java:69)
at
org.mortbay.jetty.webapp.WebXmlConfiguration.webXmlParser(WebXmlConfiguration.java:
83)
at
org.mortbay.jetty.webapp.WebXmlConfiguration.init(WebXmlConfiguration.java:
78)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at
org.mortbay.jetty.webapp.WebAppContext.loadConfigurations(WebAppContext.java:
858)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
430)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
50)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:
130)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
50)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:
130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
50)
at

[appengine-java] Re: 1.4 eclipse plugin

2010-12-05 Thread Mike
I fixed this problem by making sure that App Engine SDK 1.4.0 is first
in my Java Build Path in the Order and Export and changing my GWT SDK
to 2.1.0

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



[appengine-java] Re: Tic Tac Toe not there

2010-12-05 Thread abcdroid
Thanks.

live demo here: http://goo.gl/Y1mbz

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



[appengine-java] Re: Local datastore empty after updating to SDK 1.4.0

2010-12-05 Thread Nello
I've seen this in the past.  As far as I can see it's par for the
course.  The GAE developers have very little respect for our test
data.  I'm still worried about taking any of this to production
because it is so obviously in permanent beta.


On Dec 5, 1:40 am, Fabrizio fht...@gmail.com wrote:
 I have a project with a local datastore. There was many entities in
 it.

 I have update the sdk from 1.3.7 to 1.4.0. Now the local datastore is
 empty. My app does not show data and local management tell datastore
 is empty (http://localhost:/_ah/admin/datastore).

 I've also tried to revert the local_db.bin file to my previous
 version from my local subversion. But it does not work.   :(

 Any idea?

 Fabrizio

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



[appengine-java] Spring Security login problem with IE8 for app within frame (on GAE)

2010-12-05 Thread Nello
Hi, I've built a Spring 3.0.2 app on GAE using Spring Security for
authentication that works just fine for all browsers tested, EXCEPT...

I'm using Google App Engine and so ended up with one of those horrible
xxx.appspot.com addresses for the project. So, I'm using domain
forwarding from GoDaddy, which essentially means my original app is
housed inside a frame. It's a bit ugly, but it works for Firefox,
Chrome and Safari, just not IE. I don't need to support any IE except
IE8.

I'm using a login.page with a LoginController, and can see that the
authentication request is going through the controller but even if I
just mark the user as authenticated at that point (which I do for a
'casual browser' role) they are still locked out of the app and re-
presented with the login page.

Facts that may be relevant: I'm using 'remember-me' and the 'disable-
url-rewriting' attributes, and have made sure that my error and 404
pages are available to unsecured users.

I'm kind of at a loss here. Right now my only option appears to be to
add some frame-breaking javascript for IE, but that pretty much
stinks.

Thoughts? Please!

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



[appengine-java] Tic Tac Toe live demo

2010-12-05 Thread abcdroid
http://channel-remote.appspot.com/

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



[appengine-java] Re: 1.3.8 Console Logging Issue

2010-12-05 Thread MarkH
I'm still having Eclipse console logging issues with 1.4.0. (OSX10.6.5/
Helios).

I tried the following:
1. Used the Eclipse plugin to generate a new GWT/AppEngine app.
2. Added a java.util.logging.Logger to the GreetingServiceImpl
3. Added logger.fine(test); to the greetServer call
4. set logging.properites level to .level = FINE

As per 1.3.8 there are still no logger.fine log message in the Eclipse
console.

As per 1.3.8 logger.info adds messages to the console in the same
format as the Jetty startup phase - message text only (no date, or
logger info).

As per 1.3.8 setting the Run Configuration - Arguments - Program
Arguments to, -logLevel DEBUG does causes logger.fine messages
(message text only) to appear on the console, along with the
associated GWT noise.

Is it possible to restore 1.3.7 like 'SimpleFormatter' style logging:
date, logger, message in the Eclipse console?

On Nov 22, 4:23 pm, timzon jerome.bre...@gmail.com wrote:
 Thank you. Looking forward to get 1.4.0.

 On Nov 4, 9:33 am, Rajeev Dayal rda...@google.com wrote:







  We're going to fix this for the App Engine 1.4.0 release. What we'll do is
  have messages at Log.INFO level be outputted when you've got your Launch
  Configuration's log level set to INFO.

  In the Google Plugin for Eclipse, we'll make a change such that any new
  launch configurations created have a default log level of WARN.

  On Thu, Nov 4, 2010 at 4:23 AM, Stefano Ciccarelli 

  stef...@indacosoftware.it wrote:
   I changed the GWT log level to TRACE solving partially the problem, infact
   now I have very verbose logs.

   On Wed, Nov 3, 2010 at 15:33, Rajeev Dayal rda...@google.com wrote:

   No, I did not mean dropping it there - I meant changing it in the Web App
   Launch Configuration UI - edit your launch configuration (in Eclipse), 
   and
   set the log level to TRACE. Does that help?

   On Tue, Nov 2, 2010 at 10:38 PM, timzon jerome.bre...@gmail.com wrote:

   Dropping default log level (.level) to TRACE, INFO or FINEST doesn't
   fix the problem.

   log.info (with default INFO level) used to work before 1.3.8 upgrade
   and doesn't work after the upgrade.

   On Oct 29, 2:49 pm, Rajeev Dayal rda...@google.com wrote:
Drop you launch configuration's log level down to TRACE. Do you see 
the
messages now?

On Fri, Oct 29, 2010 at 1:23 PM, John Bito j...@bobberinteractive.com
   wrote:

 Starred the issue:
http://code.google.com/p/googleappengine/issues/detail?id=3969

  --
 You received this message because you are subscribed to the Google
   Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2B
  unsubscr...@googlegroups.comgoogle-appengine-java%2B
   unsubscr...@googlegroups.com
 .
 For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.

   --
   You received this message because you are subscribed to the Google 
   Groups
   Google App Engine for Java group.
   To post to this group, send email to
   google-appengine-j...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2B
unsubscr...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/google-appengine-java?hl=en.

    --
   You received this message because you are subscribed to the Google Groups
   Google App Engine for Java group.
   To post to this group, send email to
   google-appengine-j...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2B
unsubscr...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/google-appengine-java?hl=en.

    --
   You received this message because you are subscribed to the Google Groups
   Google App Engine for Java group.
   To post to this group, send email to
   google-appengine-j...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2B
unsubscr...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/google-appengine-java?hl=en.

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



[google-appengine] Re: Using OpenID with Google App Engine and its UserService

2010-12-05 Thread AmaltasCoder
Ok, a bit more explanation:

The problem with creating Login URL's like mentioned above is that
even yahoo.com etc. starts to work when I only want Google Account and
Google Apps to work. Is there any good reference implementation that
leaves the OpenID heavy lifting to UserService? and works for both
Google Account and Google Apps only.

On Dec 1, 10:59 pm, AmaltasCoder agarwalmegh...@gmail.com wrote:
 My application on GAE should work for both Google Accounts and Google
 Apps accounts. I understand that UserService on app engine makes the
 task of using OpenID easy. I generate the Login/Logout url's as
 follows, can someone please check if these are correct calls:

 Login URL for Google Account:

 UserService userService = UserServiceFactory.getUserService();
 userService.createLoginURL(destinationURL, null, gmail.com, new
 HashSetString())

 Login URL for Google Apps Account:

 UserService userService = UserServiceFactory.getUserService();
 userService.createLoginURL(destinationURL, null,
 googleappsdomaintouse.com, new HashSetString())

 Logout URL for Google Account and Google Apps account:

 UserService userService = UserServiceFactory.getUserService();
 User user = userService.getCurrentUser();
 userService.createLogoutURL(destinationURL, user.getAuthDomain())

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Experiencing 500 errors on appengine.google.com

2010-12-05 Thread Nick Renny
Very slow performance on appengine.google.com - resulting in several
500 errors.

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Appengine datastore performance

2010-12-05 Thread Wim den Ouden
Hi Nick,
Was playing (and learning) with mapreduce but i'm starting to try to do a
kind of mapreduce myself, flexible, better integrated (
http://code.google.com/p/relat/wiki/gaetips#Mapreduce), more possible maybe
a bit slower.
gr
wim

On Sat, Dec 4, 2010 at 3:25 PM, nick nhpub...@googlemail.com wrote:

 no :-)
 i mean: http://www.youtube.com/watch?v=AgaL6NGpkB8feature=player_embedded 
 minute
 17:20

 does that work for me?

 --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.




-- 
gr
Wim den Ouden
Gae based E-business https://e-comm.appspot.com/ (web) apps
Free open source http://code.google.com/p/relat/
Gae developer tips http://code.google.com/p/relat/wiki/gaetips

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Reliability of Channel API messages?

2010-12-05 Thread Jason Collins
Thanks Moishe.

 Channel set-up time (the time between when you call
 goog.appengine.Channel.open and when your socket.onopen callback gets
 called) can be longer, sometimes up to 10 seconds or so.

This very likely explains the behaviour I was seeing.

j

On Dec 5, 12:57 am, Moishe mois...@google.com wrote:
 Latency should be generally significantly less than 500ms (that's not
 a guarantee, but it's what I've been seeing in my end-to-end tests).

 Channel set-up time (the time between when you call
 goog.appengine.Channel.open and when your socket.onopen callback gets
 called) can be longer, sometimes up to 10 seconds or so.

 There are no reliability guarantees -- messages can be dropped or
 delivered out of order, but that should be the exceptional case rather
 than a normal case. If you have an application which _requires_ all
 messages to be delivered (eg. you're sending deltas to some complex
 data structure) you will need to add sequence numbers and checks
 yourself (though please feel free to file a feature request about this
 if you'd like).

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] having trouble with uploading app

2010-12-05 Thread Kuber
I cannot upload my apps with appcfg.py anymore. I'm on windows vista
and installed appengine python 1.4.0. I used to manage my apps with
appcfg.py. But recently I cannot upload apps anymore. I have been
seeing these messages no matter I upload or rollback my apps :

Usage: appcfg.py [options] action

Action must be one of:
  create_bulkloader_config: Create a bulkloader.yaml from a running
application.

  cron_info: Display information about cron jobs.
  download_app: Download a previously-uploaded app.
  download_data: Download entities from datastore.
  help: Print help for a specific action.
  request_logs: Write request logs in Apache common log format.
  rollback: Rollback an in-progress update.
  set_default_version: Set the default (serving) version.
  update: Create or update an app version.
  update_cron: Update application cron definitions.
  update_dos: Update application dos definitions.
  update_indexes: Update application indexes.
  update_queues: Update application task queue definitions.
  upload_data: Upload data records to datastore.
  vacuum_indexes: Delete unused indexes from application.
Use 'help action' for a detailed description.

Options:


-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Do I have to implement /_ah/warmup

2010-12-05 Thread Jason Collins
In Python, they are disabled by default (http://code.google.com/
appengine/docs/python/config/appconfig.html#Inbound_Services), so if
you're seeing them, and your app.yaml is not configured for warmup,
it's likely a bug.

In Java, they're on by default (http://code.google.com/appengine/docs/
java/config/appconfig.html#Warming_Requests), so if you want to
disable them,  you can specify in your web.xml:

  warming-requests-enabledfalse/warming-requests-enabled

There looks to be a documentation error if your use app.yaml to
configure your Java application:

http://code.google.com/appengine/docs/java/config/appconfig.html#Warming_Requests
says Warming requests are also enabled by default if you configured
your Java application with app.yaml.
http://code.google.com/appengine/docs/java/configyaml/appconfig_yaml.html#Warming_Requests
says In Java applications configured with app.yaml, warming requests
are disabled by default.

I'm not sure which one is true.

j

On Dec 5, 12:02 am, Will vocalster@gmail.com wrote:
 Hmm, thanks.

 I can live with the log, as long as doing nothing serves the purpose. I
 prefer less code unless it's absolutely necessary.

 Best,

 Will



 On Sun, Dec 5, 2010 at 10:25 AM, 风笑雪 kea...@gmail.com wrote:
  You'd better implement it if you don't want to see it logged as an
  error in your dashboard.

  However, the implementation can be empty:

  class WarmupHandler(RequestHandler):
         def get(self):
                 pass # or log it by: logging.info('Warmup Request')

  --
  keakon

  --
  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-appeng...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2Bunsubscrib 
  e...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Authentication error on appcfg

2010-12-05 Thread Michael P. Reilly
Thank you, Robert.

That got me by the authentication error once, but once it started updating,
appcfg aborted with:
Server: appengine.google.com.
Scanning files on local disk.
Initiating update.
2010-12-05 08:17:07,141 ERROR appcfg.py:1818 An unexpected error occurred.
Aborting.
Traceback (most recent call last):
  File
/opt/google_appengine/1.4.0/google_appengine/google/appengine/tools/appcfg.py,
line 1784, in DoUpload
missing_files = self.Begin()
  File
/opt/google_appengine/1.4.0/google_appengine/google/appengine/tools/appcfg.py,
line 1528, in Begin
version=self.version, payload=self.config.ToYAML())
  File
/opt/google_appengine/1.4.0/google_appengine/google/appengine/tools/appengine_rpc.py,
line 341, in Send
f = self.opener.open(req)
  File /usr/lib/python2.6/urllib2.py, line 391, in open
response = self._open(req, data)
  File /usr/lib/python2.6/urllib2.py, line 409, in _open
'_open', req)
  File /usr/lib/python2.6/urllib2.py, line 369, in _call_chain
result = func(*args)
  File /usr/lib/python2.6/urllib2.py, line 1169, in https_open
return self.do_open(httplib.HTTPSConnection, req)
  File
/opt/google_appengine/1.4.0/google_appengine/lib/fancy_urllib/fancy_urllib/__init__.py,
line 355, in do_open
raise url_error
URLError: urlopen error [Errno 110] Connection timed out
Traceback (most recent call last):
  File /opt/google_appengine/current/appcfg.py, line 69, in module
run_file(__file__, globals())
  File /opt/google_appengine/current/appcfg.py, line 65, in run_file
execfile(script_path, globals_)
  File
/opt/google_appengine/1.4.0/google_appengine/google/appengine/tools/appcfg.py,
line 3100, in module
main(sys.argv)
  File
/opt/google_appengine/1.4.0/google_appengine/google/appengine/tools/appcfg.py,
line 3091, in main
result = AppCfgApp(argv).Run()
  File
/opt/google_appengine/1.4.0/google_appengine/google/appengine/tools/appcfg.py,
line 2013, in Run
self.action(self)
  File
/opt/google_appengine/1.4.0/google_appengine/google/appengine/tools/appcfg.py,
line 2943, in __call__
return method()
  File
/opt/google_appengine/1.4.0/google_appengine/google/appengine/tools/appcfg.py,
line 2368, in Update
lambda path: open(os.path.join(basepath, path), 'rb'))
  File
/opt/google_appengine/1.4.0/google_appengine/google/appengine/tools/appcfg.py,
line 1784, in DoUpload
missing_files = self.Begin()
  File
/opt/google_appengine/1.4.0/google_appengine/google/appengine/tools/appcfg.py,
line 1528, in Begin
version=self.version, payload=self.config.ToYAML())
  File
/opt/google_appengine/1.4.0/google_appengine/google/appengine/tools/appengine_rpc.py,
line 341, in Send
f = self.opener.open(req)
  File /usr/lib/python2.6/urllib2.py, line 391, in open
response = self._open(req, data)
  File /usr/lib/python2.6/urllib2.py, line 409, in _open
'_open', req)
  File /usr/lib/python2.6/urllib2.py, line 369, in _call_chain
result = func(*args)
  File /usr/lib/python2.6/urllib2.py, line 1169, in https_open
return self.do_open(httplib.HTTPSConnection, req)
  File
/opt/google_appengine/1.4.0/google_appengine/lib/fancy_urllib/fancy_urllib/__init__.py,
line 355, in do_open
raise url_error
urllib2.URLError: urlopen error [Errno 110] Connection timed out

After that, even if I remove ~/.appcfg_*, I still get authentication
errors.  I've build and installed Python 2.5 and that has the same
problems.  I'll keep plugging away. Thank you very much for the hint,
Robert.

  -Arcege

On Sun, Dec 5, 2010 at 12:40 AM, Robert Kluin robert.kl...@gmail.comwrote:

 Hey Arcege,
   You might try:
  rm ~/.appcfg_cookies
  rm ~/.appcfg_nag


 Robert







 On Sat, Dec 4, 2010 at 23:51, Michael P. Reilly arc...@gmail.com wrote:
  Hi all,
 
  Last Friday (Nov 26), I attempted to upload a new version of my app.
 Since
  then, I've been getting Error 401: Must authenticate first.  I have
  regenerated my password with no affect. I've tried both GAE SDK for
 Python
  1.3.8 and 1.4.0.  I'm running Ubuntu 10.04.  Python is 2.6, but in
 previous
  deploy was the same release of Python, so I don't see an issue there.
 
  I have no problems with version control or the admin console.  My account
  and password are taken with no problems there.
 
  Any thoughts on how to clear the authentication issue?
 
  Thank you,
-Arcege
  --
  There's so many different worlds,
  So many different suns.
  And we have just one world,
  But we live in different ones.
 
  --
  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-appeng...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
  For more options, visit this group at
  http://groups.google.com/group/google-appengine?hl=en.
 

 --
 You received this message because you are subscribed to the Google Groups
 Google 

[google-appengine] Re: having trouble with uploading app

2010-12-05 Thread Tim Hoffman
What is the command line arguments that you using ?

T

On Dec 5, 10:19 pm, Kuber polo...@gmail.com wrote:
 I cannot upload my apps with appcfg.py anymore. I'm on windows vista
 and installed appengine python 1.4.0. I used to manage my apps with
 appcfg.py. But recently I cannot upload apps anymore. I have been
 seeing these messages no matter I upload or rollback my apps :

 Usage: appcfg.py [options] action

 Action must be one of:
   create_bulkloader_config: Create a bulkloader.yaml from a running
 application.

   cron_info: Display information about cron jobs.
   download_app: Download a previously-uploaded app.
   download_data: Download entities from datastore.
   help: Print help for a specific action.
   request_logs: Write request logs in Apache common log format.
   rollback: Rollback an in-progress update.
   set_default_version: Set the default (serving) version.
   update: Create or update an app version.
   update_cron: Update application cron definitions.
   update_dos: Update application dos definitions.
   update_indexes: Update application indexes.
   update_queues: Update application task queue definitions.
   upload_data: Upload data records to datastore.
   vacuum_indexes: Delete unused indexes from application.
 Use 'help action' for a detailed description.

 Options:
 

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Quotas - Deployment limit

2010-12-05 Thread Tim Meadowcroft
Just reviewing the Quotas documentation and saw this


http://code.google.com/appengine/docs/quotas.html#Deployments



Deployments
The number of times the app has been uploaded by a developer. The
current limit is 1,000.



This might sound like a dumb question, but is that a daily limit ??


It reads like an absolute limit but I expect someone would have hit it
by now if that were the case...


Cheers


--
Tim

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Is there anyone here who uses Images Python API?

2010-12-05 Thread Zeynel
On Dec 4, 8:34 pm, Chris Copeland ch...@cope360.com wrote:
 You must use urlfetch to http post to the blobstore upload handler.

Hi,

The below code seems to work. But now I want to pick up the data part
of an attachment and write that to the datastore.
http://stackoverflow.com/questions/4357022/writing-and-image-attachment-to-datastore-as-an-avatar-is-it-possible

Do you know how to do that?

Here's the code that I am using now with the form to write img
uploaded by the user:

class AvatarSave(webapp.RequestHandler):
def post(self):
userEmail = self.request.get(newUserEmail)
q = User.all()
q.filter(userEmail =, userEmail)
qTable = q.fetch(10)
if qTable:
logging.info(qTable true)
self.response.out.write(htmlbody
  form action=/avatar-save enctype=multipart/form-
data method=post
divlabelCreate your Avatar:/label/div
divinput type=file name=img//div
input type=submit/
  /form
/body
  /html)
for row in qTable:
avatar = images.resize(self.request.get(img), 50,
50)
row.avatar = db.Blob(avatar)
db.put(qTable)
self.redirect('/')
else:
logging.info(else user not found)
self.redirect('/user-not-found')

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Quotas - Deployment limit

2010-12-05 Thread Stephen Johnson
That's a daily limit.

On Sun, Dec 5, 2010 at 9:12 AM, Tim Meadowcroft meer...@gmail.com wrote:


 Just reviewing the Quotas documentation and saw this

   http://code.google.com/appengine/docs/quotas.html#Deployments

   Deployments
   The number of times the app has been uploaded by a developer. The current
 limit is 1,000.

 This might sound like a dumb question, but is that a daily limit ??

 It reads like an absolute limit but I expect someone would have hit it by
 now if that were the case...

 Cheers

 --
 Tim

  --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.


-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: DeadlineExceededError: This request caused a new process to be started for your application

2010-12-05 Thread NealWalters

lazytest.py

import framework
class TestHome(framework.RequestHandler):

  def get(self):
 self.response.out.write('h1Hello Lazy World/h1')

testHomeHandler = TestHome()


part of main.py:

import framework
application = framework.WSGIRouter()
application.connect('/',
framework.WSGILazyLoader('lazytest.testHomeHandler'))

def main():
 run_wsgi_app(application)

if __name__ == '__main__':
  main()


Getting this error:
=
Traceback (most recent call last):
  File C:\Program Files (x86)\Google\google_appengine\google\appengine
\tools\dev_appserver.py, line 3206, in _HandleRequest
self._Dispatch(dispatcher, self.rfile, outfile, env_dict)
  File C:\Program Files (x86)\Google\google_appengine\google\appengine
\tools\dev_appserver.py, line 3149, in _Dispatch
base_env_dict=env_dict)
  File C:\Program Files (x86)\Google\google_appengine\google\appengine
\tools\dev_appserver.py, line 525, in Dispatch
base_env_dict=base_env_dict)
  File C:\Program Files (x86)\Google\google_appengine\google\appengine
\tools\dev_appserver.py, line 2402, in Dispatch
self._module_dict)
  File C:\Program Files (x86)\Google\google_appengine\google\appengine
\tools\dev_appserver.py, line 2312, in ExecuteCGI
reset_modules = exec_script(handler_path, cgi_path, hook)
  File C:\Program Files (x86)\Google\google_appengine\google\appengine
\tools\dev_appserver.py, line 2208, in ExecuteOrImportScript
exec module_code in script_module.__dict__
  File c:\GoogleAppEngine\olexe3\main.py, line 426, in module
application = framework.WSGIRouter()
AttributeError: 'module' object has no attribute 'WSGIRouter'


When I read Nick's sample, I'm confused if framework was the name of
his module, or if he was referring to a real framwork such as WebApp.

Neal

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Channel API quota

2010-12-05 Thread Austin
But as I understand, client ids don't have to be a one-to-one mapping
to users. If you need to be able to handle multiple tabs/windows, you
would need a different client id for each tab, regardless of whether or
not you intend to reuse tokens. I'm envisioning something like this:


Client A connects: Generate token on client id 'client_a_1', record in
datastore.
Client A connects again: Generate token on client id 'client_a_2',
record in datastore.
First window disconnects or times out: Mark token associated
with 'client_a_1' as unused.
Client A connects: Send token associated with 'client_a_1'


Then you have different channels for different tabs (so everything
should work as expected), but you don't have to use a channel creation
if a user has a token that is not in use.


Is there a flaw in this plan that I'm missing, or would this work as I
expect?

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: DeadlineExceededError: This request caused a new process to be started for your application

2010-12-05 Thread NealWalters
Maybe I'm getting way off track here, but I'd like to get my site back
working today.

Should framework.py look like this?  (This is based on Nick's prior
blog: http://blog.notdot.net/2010/01/Webapps-on-App-Engine-part-1-Routing)

I'm all for learning, but I need to get my website fixed ASAP without
the DeadlineExceeded errors.  Ideally, I wouldn't have to inventor or
write my own framework to do that???

framework.py??? - attempt#2
=
import re

class WSGILazyLoader(object):
  def __init__(self, fullname):
self.modulename, sep, self.objname = fullname.rpartition('.')
self.obj = None

  def __call__(self, environ, start_response):
if not self.obj:
  __import__(self.modulename, globals(), locals())
  module = sys.modules[self.modulename]
  self.obj = module.__dict__[self.objname]
return self.obj(environ, start_response)

class WSGIRouter(object):
  def __init__(self):
self.routes = []

  def connect(self, template, handler, **kwargs):
Connects URLs matching a template to a handler application.

Args:
  template: A template string, consisting of literal text and
template
expressions of the form {label[: regex]}, where label is the
mandatory
name of the expression, and regex is an optional regular
expression.
  handler: A WSGI application to execute when the template is
matched.
  **kwargs: Additional keyword arguments to pass along with those
parsed
from the template.

route_re = re.compile(template_to_regex(template))
self.routes.append((route_re, handler, kwargs))

import re
var_regex = re.compile(r'''
 \{  # The exact character {
 (\w+)   # The variable name (restricted to a-z, 0-9, _)
 (?::([^}]+))? # The optional :regex part
 \}  # The exact character }
 ''', re.VERBOSE)
def template_to_regex(template):
 regex = ''
 last_pos = 0
 for match in var_regex.finditer(template):
 regex += re.escape(template[last_pos:match.start()])
 var_name = match.group(1)
 expr = match.group(2) or '[^/]+'
 expr = '(?P%s%s)' % (var_name, expr)
 regex += expr
 last_pos = match.end()
 regex += re.escape(template[last_pos:])
 regex = '^%s$' % regex
 return regex


Errors:
Traceback (most recent call last):
  File C:\Program Files (x86)\Google\google_appengine\google\appengine
\tools\dev_appserver.py, line 3206, in _HandleRequest
self._Dispatch(dispatcher, self.rfile, outfile, env_dict)
  File C:\Program Files (x86)\Google\google_appengine\google\appengine
\tools\dev_appserver.py, line 3149, in _Dispatch
base_env_dict=env_dict)
  File C:\Program Files (x86)\Google\google_appengine\google\appengine
\tools\dev_appserver.py, line 525, in Dispatch
base_env_dict=base_env_dict)
  File C:\Program Files (x86)\Google\google_appengine\google\appengine
\tools\dev_appserver.py, line 2402, in Dispatch
self._module_dict)
  File C:\Program Files (x86)\Google\google_appengine\google\appengine
\tools\dev_appserver.py, line 2312, in ExecuteCGI
reset_modules = exec_script(handler_path, cgi_path, hook)
  File C:\Program Files (x86)\Google\google_appengine\google\appengine
\tools\dev_appserver.py, line 2208, in ExecuteOrImportScript
exec module_code in script_module.__dict__
  File c:\GoogleAppEngine\olexe3\main.py, line 443, in module
main()
  File c:\GoogleAppEngine\olexe3\main.py, line 440, in main
run_wsgi_app(application)
  File C:\Program Files (x86)\Google\google_appengine\google\appengine
\ext\webapp\util.py, line 97, in run_wsgi_app
run_bare_wsgi_app(add_wsgi_middleware(application))
  File C:\Program Files (x86)\Google\google_appengine\google\appengine
\ext\webapp\util.py, line 115, in run_bare_wsgi_app
result = application(env, _start_response)
TypeError: 'WSGIRouter' object is not callable

Thanks,
Neal

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Always-On Cost/Billing 1.4.0?

2010-12-05 Thread NealWalters
Where can I go to find the cost of the always on feature in 1.4.0?

Thanks,
Neal Walters

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Always-On Cost/Billing 1.4.0?

2010-12-05 Thread Joshua Smith
Billing settings.  It's $0.30 / day

On Dec 5, 2010, at 1:40 PM, NealWalters wrote:

 Where can I go to find the cost of the always on feature in 1.4.0?
 
 Thanks,
 Neal Walters
 
 -- 
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine?hl=en.
 

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Always-On Cost/Billing 1.4.0?

2010-12-05 Thread NealWalters
Thanks.  Was that posted somewhere, or you have inside info?
Neal

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: Always-On Cost/Billing 1.4.0?

2010-12-05 Thread Barry Hunter
Its mentioned in the blog post:
http://googleappengine.blogspot.com/2010/12/happy-holidays-from-app-engine-team-140.html

Or on the 'billing settings' page of the appengine console as Joshua
Smith mentioned.


On 5 December 2010 18:53, NealWalters nealwalt...@nealwalters.com wrote:
 Thanks.  Was that posted somewhere, or you have inside info?
 Neal

 --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine?hl=en.



-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Win32 level of error messages in GAE

2010-12-05 Thread laboo
Yes, you are correct, Tim. I was misreading the error. The error was
an implicit query:

for x in self.things:

where self.things, behind the scenes is, of course, a query. My
overall point though is the nature of the messages.

Imagine this from a compiler:

line 13: Uninititalized variables not permitted.

vs.

line 13: Uninitialized variable: x

Error messages shouldn't be general rules of the platform, they should
point to specific parts of the code that break those rules.

On Dec 4, 3:45 pm, Tim Hoffman zutes...@gmail.com wrote:
 HI

 On Dec 5, 7:24 am, laboo mlibu...@gmail.com wrote:

  Why doesn't this error message...

  Only ancestor queries are allowed inside a transaction.

  ...look something like this...

  Only ancestor queries are allowed inside a transaction. Entity X is
  not an ancestor of Entity Y

 I think you are misreading the error.  Its not EntityX is not an
 ancestor
 it says you are doing a query, that doesn't have
 ancestor(some_ancestor) in it.

 A closer look at your code will reveal the problem.

 More docs are nice, but on the whole I don't agree with your laziness
 sentiments.

 T

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Authentication error on appcfg

2010-12-05 Thread Robert Kluin
Hi Arcege,
  I just scanned the output quickly, but looks like timeouts trying to
connect.  Also, are you behind a proxy?




Robert








On Sun, Dec 5, 2010 at 09:54, Michael P. Reilly arc...@gmail.com wrote:
 Thank you, Robert.

 That got me by the authentication error once, but once it started updating,
 appcfg aborted with:
 Server: appengine.google.com.
 Scanning files on local disk.
 Initiating update.
 2010-12-05 08:17:07,141 ERROR appcfg.py:1818 An unexpected error occurred.
 Aborting.
 Traceback (most recent call last):
   File
 /opt/google_appengine/1.4.0/google_appengine/google/appengine/tools/appcfg.py,
 line 1784, in DoUpload
     missing_files = self.Begin()
   File
 /opt/google_appengine/1.4.0/google_appengine/google/appengine/tools/appcfg.py,
 line 1528, in Begin
     version=self.version, payload=self.config.ToYAML())
   File
 /opt/google_appengine/1.4.0/google_appengine/google/appengine/tools/appengine_rpc.py,
 line 341, in Send
     f = self.opener.open(req)
   File /usr/lib/python2.6/urllib2.py, line 391, in open
     response = self._open(req, data)
   File /usr/lib/python2.6/urllib2.py, line 409, in _open
     '_open', req)
   File /usr/lib/python2.6/urllib2.py, line 369, in _call_chain
     result = func(*args)
   File /usr/lib/python2.6/urllib2.py, line 1169, in https_open
     return self.do_open(httplib.HTTPSConnection, req)
   File
 /opt/google_appengine/1.4.0/google_appengine/lib/fancy_urllib/fancy_urllib/__init__.py,
 line 355, in do_open
     raise url_error
 URLError: urlopen error [Errno 110] Connection timed out
 Traceback (most recent call last):
   File /opt/google_appengine/current/appcfg.py, line 69, in module
     run_file(__file__, globals())
   File /opt/google_appengine/current/appcfg.py, line 65, in run_file
     execfile(script_path, globals_)
   File
 /opt/google_appengine/1.4.0/google_appengine/google/appengine/tools/appcfg.py,
 line 3100, in module
     main(sys.argv)
   File
 /opt/google_appengine/1.4.0/google_appengine/google/appengine/tools/appcfg.py,
 line 3091, in main
     result = AppCfgApp(argv).Run()
   File
 /opt/google_appengine/1.4.0/google_appengine/google/appengine/tools/appcfg.py,
 line 2013, in Run
     self.action(self)
   File
 /opt/google_appengine/1.4.0/google_appengine/google/appengine/tools/appcfg.py,
 line 2943, in __call__
     return method()
   File
 /opt/google_appengine/1.4.0/google_appengine/google/appengine/tools/appcfg.py,
 line 2368, in Update
     lambda path: open(os.path.join(basepath, path), 'rb'))
   File
 /opt/google_appengine/1.4.0/google_appengine/google/appengine/tools/appcfg.py,
 line 1784, in DoUpload
     missing_files = self.Begin()
   File
 /opt/google_appengine/1.4.0/google_appengine/google/appengine/tools/appcfg.py,
 line 1528, in Begin
     version=self.version, payload=self.config.ToYAML())
   File
 /opt/google_appengine/1.4.0/google_appengine/google/appengine/tools/appengine_rpc.py,
 line 341, in Send
     f = self.opener.open(req)
   File /usr/lib/python2.6/urllib2.py, line 391, in open
     response = self._open(req, data)
   File /usr/lib/python2.6/urllib2.py, line 409, in _open
     '_open', req)
   File /usr/lib/python2.6/urllib2.py, line 369, in _call_chain
     result = func(*args)
   File /usr/lib/python2.6/urllib2.py, line 1169, in https_open
     return self.do_open(httplib.HTTPSConnection, req)
   File
 /opt/google_appengine/1.4.0/google_appengine/lib/fancy_urllib/fancy_urllib/__init__.py,
 line 355, in do_open
     raise url_error
 urllib2.URLError: urlopen error [Errno 110] Connection timed out

 After that, even if I remove ~/.appcfg_*, I still get authentication
 errors.  I've build and installed Python 2.5 and that has the same
 problems.  I'll keep plugging away. Thank you very much for the hint,
 Robert.

   -Arcege

 On Sun, Dec 5, 2010 at 12:40 AM, Robert Kluin robert.kl...@gmail.com
 wrote:

 Hey Arcege,
   You might try:
      rm ~/.appcfg_cookies
      rm ~/.appcfg_nag


 Robert







 On Sat, Dec 4, 2010 at 23:51, Michael P. Reilly arc...@gmail.com wrote:
  Hi all,
 
  Last Friday (Nov 26), I attempted to upload a new version of my app.
  Since
  then, I've been getting Error 401: Must authenticate first.  I have
  regenerated my password with no affect. I've tried both GAE SDK for
  Python
  1.3.8 and 1.4.0.  I'm running Ubuntu 10.04.  Python is 2.6, but in
  previous
  deploy was the same release of Python, so I don't see an issue there.
 
  I have no problems with version control or the admin console.  My
  account
  and password are taken with no problems there.
 
  Any thoughts on how to clear the authentication issue?
 
  Thank you,
    -Arcege
  --
  There's so many different worlds,
  So many different suns.
  And we have just one world,
  But we live in different ones.
 
  --
  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-appeng...@googlegroups.com.
  To unsubscribe from 

Re: [google-appengine] Re: DeadlineExceededError: This request caused a new process to be started for your application

2010-12-05 Thread Robert Kluin
Hi Neal,
  It is probably confusing because you're looking at sections of a
series of articles on writing your own framework.
  
http://blog.notdot.net/2010/01/Writing-your-own-webapp-framework-for-App-Engine

  You may want to look at using the routing from webapp-improved, or
the router code from it.
 http://code.google.com/p/webapp-improved/
 http://code.google.com/p/url-router/

  Might get you going easier.


Robert






On Sun, Dec 5, 2010 at 13:29, NealWalters nealwalt...@nealwalters.com wrote:
 Maybe I'm getting way off track here, but I'd like to get my site back
 working today.

 Should framework.py look like this?  (This is based on Nick's prior
 blog: http://blog.notdot.net/2010/01/Webapps-on-App-Engine-part-1-Routing)

 I'm all for learning, but I need to get my website fixed ASAP without
 the DeadlineExceeded errors.  Ideally, I wouldn't have to inventor or
 write my own framework to do that???

 framework.py??? - attempt#2
 =
 import re

 class WSGILazyLoader(object):
  def __init__(self, fullname):
    self.modulename, sep, self.objname = fullname.rpartition('.')
    self.obj = None

  def __call__(self, environ, start_response):
    if not self.obj:
      __import__(self.modulename, globals(), locals())
      module = sys.modules[self.modulename]
      self.obj = module.__dict__[self.objname]
    return self.obj(environ, start_response)

 class WSGIRouter(object):
  def __init__(self):
    self.routes = []

  def connect(self, template, handler, **kwargs):
    Connects URLs matching a template to a handler application.

    Args:
      template: A template string, consisting of literal text and
 template
        expressions of the form {label[: regex]}, where label is the
 mandatory
        name of the expression, and regex is an optional regular
 expression.
      handler: A WSGI application to execute when the template is
 matched.
      **kwargs: Additional keyword arguments to pass along with those
 parsed
        from the template.
    
    route_re = re.compile(template_to_regex(template))
    self.routes.append((route_re, handler, kwargs))

 import re
 var_regex = re.compile(r'''
     \{          # The exact character {
     (\w+)       # The variable name (restricted to a-z, 0-9, _)
     (?::([^}]+))? # The optional :regex part
     \}          # The exact character }
     ''', re.VERBOSE)
 def template_to_regex(template):
     regex = ''
     last_pos = 0
     for match in var_regex.finditer(template):
         regex += re.escape(template[last_pos:match.start()])
         var_name = match.group(1)
         expr = match.group(2) or '[^/]+'
         expr = '(?P%s%s)' % (var_name, expr)
         regex += expr
         last_pos = match.end()
     regex += re.escape(template[last_pos:])
     regex = '^%s$' % regex
     return regex


 Errors:
 Traceback (most recent call last):
  File C:\Program Files (x86)\Google\google_appengine\google\appengine
 \tools\dev_appserver.py, line 3206, in _HandleRequest
    self._Dispatch(dispatcher, self.rfile, outfile, env_dict)
  File C:\Program Files (x86)\Google\google_appengine\google\appengine
 \tools\dev_appserver.py, line 3149, in _Dispatch
    base_env_dict=env_dict)
  File C:\Program Files (x86)\Google\google_appengine\google\appengine
 \tools\dev_appserver.py, line 525, in Dispatch
    base_env_dict=base_env_dict)
  File C:\Program Files (x86)\Google\google_appengine\google\appengine
 \tools\dev_appserver.py, line 2402, in Dispatch
    self._module_dict)
  File C:\Program Files (x86)\Google\google_appengine\google\appengine
 \tools\dev_appserver.py, line 2312, in ExecuteCGI
    reset_modules = exec_script(handler_path, cgi_path, hook)
  File C:\Program Files (x86)\Google\google_appengine\google\appengine
 \tools\dev_appserver.py, line 2208, in ExecuteOrImportScript
    exec module_code in script_module.__dict__
  File c:\GoogleAppEngine\olexe3\main.py, line 443, in module
    main()
  File c:\GoogleAppEngine\olexe3\main.py, line 440, in main
    run_wsgi_app(application)
  File C:\Program Files (x86)\Google\google_appengine\google\appengine
 \ext\webapp\util.py, line 97, in run_wsgi_app
    run_bare_wsgi_app(add_wsgi_middleware(application))
  File C:\Program Files (x86)\Google\google_appengine\google\appengine
 \ext\webapp\util.py, line 115, in run_bare_wsgi_app
    result = application(env, _start_response)
 TypeError: 'WSGIRouter' object is not callable

 Thanks,
 Neal

 --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine?hl=en.



-- 
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-appengine] Re: Win32 level of error messages in GAE

2010-12-05 Thread laboo
Yes, I agree, Robert, more documentation isn't always better
documentation. And the point about too much doco leading to much of it
getting outdated is a very good one.

I still think that GAE, especially the datastore, is very tough for
the average developer to get his/her head around. I think that
Google's strategy is to basically outsource the details of their
documentation to this forum, which is fine, but how effective is it?
I'd love to see numbers on how many developers walk away from GAE
after struggling with it right out of the box.

Google can certainly afford to hire people to create -- and keep
updated -- top notch documentation.

On Dec 4, 3:51 pm, Robert Kluin robert.kl...@gmail.com wrote:
 Just my personal 2¢:

 Overall, I find the App Engine docs pretty decent.  There are some
 areas that could use explanation, more details, or clarification, but
 they are not bad.  I like the concise to the point nature of them.

 I personally hate projects that have massive amounts of obvious /
 useless information in their docs;  that almost always leads to very
 outdated / incorrect docs which can be worse than no docs.

 RobertOn Sat, Dec 4, 2010 at 18:45, Tim Hoffman zutes...@gmail.com wrote:
  HI

  On Dec 5, 7:24 am, laboo mlibu...@gmail.com wrote:
  Why doesn't this error message...

  Only ancestor queries are allowed inside a transaction.

  ...look something like this...

  Only ancestor queries are allowed inside a transaction. Entity X is
  not an ancestor of Entity Y

  I think you are misreading the error.  Its not EntityX is not an
  ancestor
  it says you are doing a query, that doesn't have
  ancestor(some_ancestor) in it.

  A closer look at your code will reveal the problem.

  More docs are nice, but on the whole I don't agree with your laziness
  sentiments.

  T

  --
  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-appeng...@googlegroups.com.
  To unsubscribe from this group, send email to 
  google-appengine+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/google-appengine?hl=en.

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: Win32 level of error messages in GAE

2010-12-05 Thread Robert Kluin
You are totally correct, the datastore is extremely tricky to get your
head around.  I think it is very easy to underestimate the differences
between the approaches needed to work with the datastore and more
common relational databases.







On Sun, Dec 5, 2010 at 14:42, laboo mlibu...@gmail.com wrote:
 Yes, I agree, Robert, more documentation isn't always better
 documentation. And the point about too much doco leading to much of it
 getting outdated is a very good one.

 I still think that GAE, especially the datastore, is very tough for
 the average developer to get his/her head around. I think that
 Google's strategy is to basically outsource the details of their
 documentation to this forum, which is fine, but how effective is it?
 I'd love to see numbers on how many developers walk away from GAE
 after struggling with it right out of the box.

 Google can certainly afford to hire people to create -- and keep
 updated -- top notch documentation.

 On Dec 4, 3:51 pm, Robert Kluin robert.kl...@gmail.com wrote:
 Just my personal 2¢:

 Overall, I find the App Engine docs pretty decent.  There are some
 areas that could use explanation, more details, or clarification, but
 they are not bad.  I like the concise to the point nature of them.

 I personally hate projects that have massive amounts of obvious /
 useless information in their docs;  that almost always leads to very
 outdated / incorrect docs which can be worse than no docs.

 RobertOn Sat, Dec 4, 2010 at 18:45, Tim Hoffman zutes...@gmail.com wrote:
  HI

  On Dec 5, 7:24 am, laboo mlibu...@gmail.com wrote:
  Why doesn't this error message...

  Only ancestor queries are allowed inside a transaction.

  ...look something like this...

  Only ancestor queries are allowed inside a transaction. Entity X is
  not an ancestor of Entity Y

  I think you are misreading the error.  Its not EntityX is not an
  ancestor
  it says you are doing a query, that doesn't have
  ancestor(some_ancestor) in it.

  A closer look at your code will reveal the problem.

  More docs are nice, but on the whole I don't agree with your laziness
  sentiments.

  T

  --
  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-appeng...@googlegroups.com.
  To unsubscribe from this group, send email to 
  google-appengine+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/google-appengine?hl=en.

 --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine?hl=en.



-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: DeadlineExceededError: This request caused a new process to be started for your application

2010-12-05 Thread NealWalters
Perfect, much easier.  Looks like Nick's blogs were good for when I
want to understand more about the plumbing, but webapp-improved was
more the out-of-the-box experience that I was looking for.

Thanks,
Neal

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Authentication error on appcfg

2010-12-05 Thread Michael P. Reilly
Thanks Robert,

No, just a standard Ubuntu  home router/firewall  ISP  internet setup.  I
try not to do this through work to introduce issues with their networks
(firewall authentication is a pain there).

Traceroute output is:
traceroute to appengine.google.com (173.194.33.100), 30 hops max, 60 byte
packets
 1  dslrouter.westell.com (192.168.1.1)  2.348 ms  2.896 ms  3.863 ms
 2  10.9.18.1 (10.9.18.1)  29.986 ms  31.930 ms  32.301 ms
 3  at-1-3-0-1723.BOS-CORE-RTR2.verizon-gni.net (130.81.11.201)  33.781 ms
34.663 ms  35.574 ms
 4  so-0-2-0-0.BOS-BB-RTR2.verizon-gni.net (130.81.20.86)  37.570 ms  38.457
ms  41.355 ms
 5  0.so-0-2-0.XL4.BOS4.ALTER.NET (152.63.16.141)  44.448 ms  46.491 ms
48.640 ms
 6  0.xe-4-1-0.XL4.NYC4.ALTER.NET (152.63.3.102)  57.312 ms  49.819 ms
50.113 ms
 7  TenGigE0-7-2-0.GW8.NYC4.ALTER.NET (152.63.21.129)  50.670 ms
TenGigE0-5-4-0.GW8.NYC4.ALTER.NET (152.63.18.206)  37.377 ms
TenGigE0-7-2-0.GW8.NYC4.ALTER.NET (152.63.21.129)  204.371 ms
 8  google-gw.customer.alter.net (152.179.72.62)  210.469 ms  210.872 ms
211.196 ms
 9  216.239.43.114 (216.239.43.114)  204.428 ms  204.748 ms  205.009 ms
10  216.239.48.24 (216.239.48.24)  205.426 ms  205.859 ms  206.154 ms
11  lga15s14-in-f100.1e100.net (173.194.33.100)  206.766 ms  207.112 ms
207.651 ms

Stats from ping:
--- www3.l.google.com ping statistics ---
100 packets transmitted, 85 received, 15% packet loss, time 99182ms
rtt min/avg/max/mdev = 35.475/96.876/359.105/81.559 ms
--- www3.l.google.com ping statistics ---
100 packets transmitted, 85 received, 15% packet loss, time 99167ms
rtt min/avg/max/mdev = 36.336/105.269/388.932/76.432 ms

Similar timings going to www.google.com but with 0 packet loss.

Is anyone seeing similar behavior?
  -Arcege

On Sun, Dec 5, 2010 at 2:31 PM, Robert Kluin robert.kl...@gmail.com wrote:

 Hi Arcege,
  I just scanned the output quickly, but looks like timeouts trying to
 connect.  Also, are you behind a proxy?




 Robert








 On Sun, Dec 5, 2010 at 09:54, Michael P. Reilly arc...@gmail.com wrote:
  Thank you, Robert.
 
  That got me by the authentication error once, but once it started
 updating,
  appcfg aborted with:
  Server: appengine.google.com.
  Scanning files on local disk.
  Initiating update.
  2010-12-05 08:17:07,141 ERROR appcfg.py:1818 An unexpected error
 occurred.
  Aborting.
  Traceback (most recent call last):
File
 
 /opt/google_appengine/1.4.0/google_appengine/google/appengine/tools/appcfg.py,
  line 1784, in DoUpload
  missing_files = self.Begin()
File
 
 /opt/google_appengine/1.4.0/google_appengine/google/appengine/tools/appcfg.py,
  line 1528, in Begin
  version=self.version, payload=self.config.ToYAML())
File
 
 /opt/google_appengine/1.4.0/google_appengine/google/appengine/tools/appengine_rpc.py,
  line 341, in Send
  f = self.opener.open(req)
File /usr/lib/python2.6/urllib2.py, line 391, in open
  response = self._open(req, data)
File /usr/lib/python2.6/urllib2.py, line 409, in _open
  '_open', req)
File /usr/lib/python2.6/urllib2.py, line 369, in _call_chain
  result = func(*args)
File /usr/lib/python2.6/urllib2.py, line 1169, in https_open
  return self.do_open(httplib.HTTPSConnection, req)
File
 
 /opt/google_appengine/1.4.0/google_appengine/lib/fancy_urllib/fancy_urllib/__init__.py,
  line 355, in do_open
  raise url_error
  URLError: urlopen error [Errno 110] Connection timed out
  Traceback (most recent call last):
File /opt/google_appengine/current/appcfg.py, line 69, in module
  run_file(__file__, globals())
File /opt/google_appengine/current/appcfg.py, line 65, in run_file
  execfile(script_path, globals_)
File
 
 /opt/google_appengine/1.4.0/google_appengine/google/appengine/tools/appcfg.py,
  line 3100, in module
  main(sys.argv)
File
 
 /opt/google_appengine/1.4.0/google_appengine/google/appengine/tools/appcfg.py,
  line 3091, in main
  result = AppCfgApp(argv).Run()
File
 
 /opt/google_appengine/1.4.0/google_appengine/google/appengine/tools/appcfg.py,
  line 2013, in Run
  self.action(self)
File
 
 /opt/google_appengine/1.4.0/google_appengine/google/appengine/tools/appcfg.py,
  line 2943, in __call__
  return method()
File
 
 /opt/google_appengine/1.4.0/google_appengine/google/appengine/tools/appcfg.py,
  line 2368, in Update
  lambda path: open(os.path.join(basepath, path), 'rb'))
File
 
 /opt/google_appengine/1.4.0/google_appengine/google/appengine/tools/appcfg.py,
  line 1784, in DoUpload
  missing_files = self.Begin()
File
 
 /opt/google_appengine/1.4.0/google_appengine/google/appengine/tools/appcfg.py,
  line 1528, in Begin
  version=self.version, payload=self.config.ToYAML())
File
 
 /opt/google_appengine/1.4.0/google_appengine/google/appengine/tools/appengine_rpc.py,
  line 341, in Send
  f = self.opener.open(req)
File /usr/lib/python2.6/urllib2.py, line 391, in open
  response = self._open(req, data)

[google-appengine] Problem with ReferenceProperty

2010-12-05 Thread Serega.Sheypak
Hi, please help me to find sillt mistake, I'm trying to create many-to-
one relation using this guide:
http://code.google.com/intl/en/appengine/articles/modeling.html

Please, see my code:

#BlogPost.py
from google.appengine.ext import db
#Keeps Posts
class BlogPost(db.Model):
author = db.UserProperty(required=True)

title = db.StringProperty(required=True)
short_title = db.StringProperty(required=True)
short_description = db.StringProperty(required=True)
content = db.TextProperty(required=True)

tags = db.StringListProperty()

created = db.DateTimeProperty()
updated = db.DateTimeProperty()
finished = db.BooleanProperty(default=True)

#Comment.py
from google.appengine.ext import db
from blog.model import BlogPost

#Keeps comments
class Comment(db.Model):
author = db.UserProperty(required=True)
author_name = db.StringProperty
content = db.TextProperty(required=True)

created = db.DateTimeProperty(auto_now_add=True)
updated = db.DateTimeProperty(auto_now=True)
visible = db.BooleanProperty(default=True)
post = db.ReferenceProperty(BlogPost, collection_name=comments)
#***ERROR HERE***

And I get:
File D:\google_appengine\google\appengine\ext\db\__init__.py, line
3118, in __init__
raise KindError('reference_class must be Model or
_SELF_REFERENCE')
KindError: reference_class must be Model or _SELF_REFERENCE
on the line marked: ***ERROR HERE***

What does it mean? BlogPost is a db.Model. What's wrong, I don't get
it.

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Problem with ReferenceProperty

2010-12-05 Thread Serega.Sheypak
 from blog.model.BlogPost import BlogPost

The first BlogPost is for .py file name, the second is for class name.
I thought, that python would understand that in need to import class
because it has the file and the class name are the same.

I'm bad in python. :(

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Is it possible to change the time in the Dashboard/logs...

2010-12-05 Thread Zeynel
... to my local time?

Thanks

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: DeadlineExceededError: This request caused a new process to be started for your application

2010-12-05 Thread NealWalters
Here's one more reminder note for anybody else that goes with any lazy-
loading technique.  You exchange compile time errors for run-time
errors.  So after I changed my 200+ pages to lazy-loading, I then had
to manually test all of them (and still afraid I might have missed
some).

WebApp-Improved let's you specify a string containing the
module.classname, as shown below.

 application = webapp.WSGIApplication([ ('/',
'web.HomeCMS.Home'),
(/reportUsers,
'web.adminReports.ReportUsers'),  ... etc...

The are several possible mistakes:
1) Leaving out the period
2) Mistyping the module name (or the class name)
3) Specifying the wrong module name that won't have the class in it
(for example, what if ReportUsers was in web.userreports instead of
web.adminReports

Neal

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Is it possible to change the time in the Dashboard/logs...

2010-12-05 Thread Chris Copeland
You can star this issue:
http://code.google.com/p/googleappengine/issues/detail?id=734

There are also some comments there with browser scripts to do the conversion
locally.

-Chris

On Sun, Dec 5, 2010 at 3:57 PM, Zeynel azeyn...@gmail.com wrote:

 ... to my local time?

 Thanks

 --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.



-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Authentication error on appcfg

2010-12-05 Thread NealWalters
I had problems uploading (from Win7) for about 30 minutes.  It was
complaining about SSL and told me to install some SSL python library.
I had trouble getting it to install.  Anyway, after 30 minutes or so,
things started working as normal (the error just went away).

Neal

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: having trouble with uploading app

2010-12-05 Thread Kuber
I use the followings:
appcfg.py update myappid/
appcfg.py rollback myappid/

it's weired that the google appengine launcher runs the deployment
well while I have this problem with command line. I have to rollback
one app but the launcher on Windows doesn't have this function.

On Dec 5, 11:18 pm, Tim Hoffman zutes...@gmail.com wrote:
 What is the command line arguments that you using ?

 T

 On Dec 5, 10:19 pm, Kuber polo...@gmail.com wrote:







  I cannot upload my apps with appcfg.py anymore. I'm on windows vista
  and installed appengine python 1.4.0. I used to manage my apps with
  appcfg.py. But recently I cannot upload apps anymore. I have been
  seeing these messages no matter I upload or rollback my apps :

  Usage: appcfg.py [options] action

  Action must be one of:
    create_bulkloader_config: Create a bulkloader.yaml from a running
  application.

    cron_info: Display information about cron jobs.
    download_app: Download a previously-uploaded app.
    download_data: Download entities from datastore.
    help: Print help for a specific action.
    request_logs: Write request logs in Apache common log format.
    rollback: Rollback an in-progress update.
    set_default_version: Set the default (serving) version.
    update: Create or update an app version.
    update_cron: Update application cron definitions.
    update_dos: Update application dos definitions.
    update_indexes: Update application indexes.
    update_queues: Update application task queue definitions.
    upload_data: Upload data records to datastore.
    vacuum_indexes: Delete unused indexes from application.
  Use 'help action' for a detailed description.

  Options:
  

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Is it possible to change the time in the Dashboard/logs...

2010-12-05 Thread Zeynel
On Dec 5, 5:53 pm, Chris Copeland ch...@cope360.com wrote:
 You can star this 
 issue:http://code.google.com/p/googleappengine/issues/detail?id=734


Thanks, Chris. I didn't realize there was an elapsed time at the top
and bottom:

‹ Prev 20 1-20 Next 20 › (Top: 0:01:46 ago)

so at least this is some help.

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Why the app is sending the email even though the handler is not called?

2010-12-05 Thread Zeynel
See also this question: 
http://stackoverflow.com/questions/4362350/google-app-engine-keeps-creating-new-user-why

Google App Engine keeps calling register.py and creating a new user.
Do you know why?

But this happens only if I create the user first; otherwise
register.py is not called.

On Dec 5, 5:26 pm, Zeynel azeyn...@gmail.com wrote:
 I just put together the following script that saves an attachment as
 an avatar. I tested it once and then went on doing other things; when
 I came back I noticed in the logs that the app kept sending the email
 again and again every few minutes. Why is this happenning? Any
 suggestions?

 import cgi
 import os
 import logging

 from model import User
 from model import Comment
 from model import Venue

 from email.utils import parseaddr
 from google.appengine.api import users
 from google.appengine.ext import webapp
 from google.appengine.ext.webapp.util import run_wsgi_app
 from google.appengine.ext import db
 from google.appengine.api import mail
 from google.appengine.ext.webapp.mail_handlers import
 InboundMailHandler
 from google.appengine.api import images
 #--
 #--decode function written by jesmith--
 #--http://stackoverflow.com/questions/4357022/writing-and-image-
 attachment-to-datastore-as-an-avatar-is-it-possible/4359487#4359487
 def goodDecode(encodedPayload):
   if not hasattr(encodedPayload, 'encoding'):
     return encodedPayload
   encoding = encodedPayload.encoding
   payload = encodedPayload.payload
   if encoding and encoding.lower() != '7bit':
     payload = payload.decode(encoding)
   return payload
 #-
 class Register(InboundMailHandler):
     def receive(self, message):
         senderEmail = message.sender
         emailTuple = parseaddr(senderEmail)
         emailUserName = emailTuple[0]
         emailAddress = emailTuple[1]

         newUser = User(userEmail=emailAddress,
                        userName=emailUserName)

         db.put(newUser)
 #--save the attachment as
 avatar--
         q = User.all()
         q.filter(userEmail =, emailAddress)
         qTable = q.fetch(10)
         if qTable:
             logging.info(qTable true)
             for row in qTable:
                 avatar =
 images.resize(goodDecode(message.attachments[0][1]), 50, 50)
                 row.avatar = db.Blob(avatar)
             db.put(qTable)
             self.redirect(/)
         else:
             logging.info(else user not found)
             self.redirect(/user-not-found)
 #---
         mail.send_mail(sender=a...@example.com,
                to=message.sender,
                subject=Thank you for registering...,
                body=Enjoy!
                  )

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] GData Connector for Bulkloader

2010-12-05 Thread AppEngine Calvin
I just uploaded a ConnectorInterface for the App Engine bulkloader
that uses the gdata API to upload/download data to/from a Google Docs
spreadsheet.

http://code.google.com/p/bulkloader-gdata-connector/

It works on my machine, and I wrote a wiki page with instructions,
so hopefully others will be able to get some use out of it.

It's kinda slow at the moment.  I couldn't figure out how to submit
updates/inserts in batches; getting that working could potentially
speed it up a lot.

Calvin

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: Using OpenID with Google App Engine and its UserService

2010-12-05 Thread Robert Kluin
I know it is not ideal, but perhaps after a user log in your could
check the user_id property?
   If the email address is not associated with a Google account,
user_id returns None.
   
http://code.google.com/appengine/docs/python/users/userclass.html#User_user_id


Robert







On Sun, Dec 5, 2010 at 04:54, AmaltasCoder agarwalmegh...@gmail.com wrote:
 Ok, a bit more explanation:

 The problem with creating Login URL's like mentioned above is that
 even yahoo.com etc. starts to work when I only want Google Account and
 Google Apps to work. Is there any good reference implementation that
 leaves the OpenID heavy lifting to UserService? and works for both
 Google Account and Google Apps only.

 On Dec 1, 10:59 pm, AmaltasCoder agarwalmegh...@gmail.com wrote:
 My application on GAE should work for both Google Accounts and Google
 Apps accounts. I understand that UserService on app engine makes the
 task of using OpenID easy. I generate the Login/Logout url's as
 follows, can someone please check if these are correct calls:

 Login URL for Google Account:

 UserService userService = UserServiceFactory.getUserService();
 userService.createLoginURL(destinationURL, null, gmail.com, new
 HashSetString())

 Login URL for Google Apps Account:

 UserService userService = UserServiceFactory.getUserService();
 userService.createLoginURL(destinationURL, null,
 googleappsdomaintouse.com, new HashSetString())

 Logout URL for Google Account and Google Apps account:

 UserService userService = UserServiceFactory.getUserService();
 User user = userService.getCurrentUser();
 userService.createLogoutURL(destinationURL, user.getAuthDomain())

 --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine?hl=en.



-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: Always-On Cost/Billing 1.4.0?

2010-12-05 Thread James Broberg
Change budget gives you the option to switch it on.

On 6 December 2010 06:07, Barry Hunter barrybhun...@gmail.com wrote:
 Its mentioned in the blog post:
 http://googleappengine.blogspot.com/2010/12/happy-holidays-from-app-engine-team-140.html

 Or on the 'billing settings' page of the appengine console as Joshua
 Smith mentioned.


 On 5 December 2010 18:53, NealWalters nealwalt...@nealwalters.com wrote:
 Thanks.  Was that posted somewhere, or you have inside info?
 Neal

 --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine?hl=en.



 --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine?hl=en.



-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: Using OpenID with Google App Engine and its UserService

2010-12-05 Thread James Broberg
I don't really get why you want to use OpenID if you are limiting your
users to Google  Google Apps accounts?

cheers

James

On 5 December 2010 20:54, AmaltasCoder agarwalmegh...@gmail.com wrote:
 Ok, a bit more explanation:

 The problem with creating Login URL's like mentioned above is that
 even yahoo.com etc. starts to work when I only want Google Account and
 Google Apps to work. Is there any good reference implementation that
 leaves the OpenID heavy lifting to UserService? and works for both
 Google Account and Google Apps only.

 On Dec 1, 10:59 pm, AmaltasCoder agarwalmegh...@gmail.com wrote:
 My application on GAE should work for both Google Accounts and Google
 Apps accounts. I understand that UserService on app engine makes the
 task of using OpenID easy. I generate the Login/Logout url's as
 follows, can someone please check if these are correct calls:

 Login URL for Google Account:

 UserService userService = UserServiceFactory.getUserService();
 userService.createLoginURL(destinationURL, null, gmail.com, new
 HashSetString())

 Login URL for Google Apps Account:

 UserService userService = UserServiceFactory.getUserService();
 userService.createLoginURL(destinationURL, null,
 googleappsdomaintouse.com, new HashSetString())

 Logout URL for Google Account and Google Apps account:

 UserService userService = UserServiceFactory.getUserService();
 User user = userService.getCurrentUser();
 userService.createLogoutURL(destinationURL, user.getAuthDomain())

 --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine?hl=en.



-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Why the app is sending the email even though the handler is not called?

2010-12-05 Thread Zeynel
I seem to have found the error; see the SO thread.

On Dec 5, 9:10 pm, Zeynel azeyn...@gmail.com wrote:
 See also this 
 question:http://stackoverflow.com/questions/4362350/google-app-engine-keeps-cr...

 Google App Engine keeps calling register.py and creating a new user.
 Do you know why?

 But this happens only if I create the user first; otherwise
 register.py is not called.

 On Dec 5, 5:26 pm, Zeynel azeyn...@gmail.com wrote:







  I just put together the following script that saves an attachment as
  an avatar. I tested it once and then went on doing other things; when
  I came back I noticed in the logs that the app kept sending the email
  again and again every few minutes. Why is this happenning? Any
  suggestions?

  import cgi
  import os
  import logging

  from model import User
  from model import Comment
  from model import Venue

  from email.utils import parseaddr
  from google.appengine.api import users
  from google.appengine.ext import webapp
  from google.appengine.ext.webapp.util import run_wsgi_app
  from google.appengine.ext import db
  from google.appengine.api import mail
  from google.appengine.ext.webapp.mail_handlers import
  InboundMailHandler
  from google.appengine.api import images
  #--
  #--decode function written by jesmith--
  #--http://stackoverflow.com/questions/4357022/writing-and-image-
  attachment-to-datastore-as-an-avatar-is-it-possible/4359487#4359487
  def goodDecode(encodedPayload):
    if not hasattr(encodedPayload, 'encoding'):
      return encodedPayload
    encoding = encodedPayload.encoding
    payload = encodedPayload.payload
    if encoding and encoding.lower() != '7bit':
      payload = payload.decode(encoding)
    return payload
  #-
  class Register(InboundMailHandler):
      def receive(self, message):
          senderEmail = message.sender
          emailTuple = parseaddr(senderEmail)
          emailUserName = emailTuple[0]
          emailAddress = emailTuple[1]

          newUser = User(userEmail=emailAddress,
                         userName=emailUserName)

          db.put(newUser)
  #--save the attachment as
  avatar--
          q = User.all()
          q.filter(userEmail =, emailAddress)
          qTable = q.fetch(10)
          if qTable:
              logging.info(qTable true)
              for row in qTable:
                  avatar =
  images.resize(goodDecode(message.attachments[0][1]), 50, 50)
                  row.avatar = db.Blob(avatar)
              db.put(qTable)
              self.redirect(/)
          else:
              logging.info(else user not found)
              self.redirect(/user-not-found)
  #---
          mail.send_mail(sender=a...@example.com,
                 to=message.sender,
                 subject=Thank you for registering...,
                 body=Enjoy!
                   )

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: Using OpenID with Google App Engine and its UserService

2010-12-05 Thread Robert Kluin
You either have to use OpenID (federated login) or use your own
authentication, which will probably also be OpenID, to use both Google
and Google Apps accounts from the same application.  Otherwise you are
restricted to either 1) only Google accounts or 2) exactly one Google
Apps domain.



Robert








On Sun, Dec 5, 2010 at 22:37, James Broberg jbrob...@gmail.com wrote:
 I don't really get why you want to use OpenID if you are limiting your
 users to Google  Google Apps accounts?

 cheers

 James

 On 5 December 2010 20:54, AmaltasCoder agarwalmegh...@gmail.com wrote:
 Ok, a bit more explanation:

 The problem with creating Login URL's like mentioned above is that
 even yahoo.com etc. starts to work when I only want Google Account and
 Google Apps to work. Is there any good reference implementation that
 leaves the OpenID heavy lifting to UserService? and works for both
 Google Account and Google Apps only.

 On Dec 1, 10:59 pm, AmaltasCoder agarwalmegh...@gmail.com wrote:
 My application on GAE should work for both Google Accounts and Google
 Apps accounts. I understand that UserService on app engine makes the
 task of using OpenID easy. I generate the Login/Logout url's as
 follows, can someone please check if these are correct calls:

 Login URL for Google Account:

 UserService userService = UserServiceFactory.getUserService();
 userService.createLoginURL(destinationURL, null, gmail.com, new
 HashSetString())

 Login URL for Google Apps Account:

 UserService userService = UserServiceFactory.getUserService();
 userService.createLoginURL(destinationURL, null,
 googleappsdomaintouse.com, new HashSetString())

 Logout URL for Google Account and Google Apps account:

 UserService userService = UserServiceFactory.getUserService();
 User user = userService.getCurrentUser();
 userService.createLogoutURL(destinationURL, user.getAuthDomain())

 --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine?hl=en.



 --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine?hl=en.



-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: Using OpenID with Google App Engine and its UserService

2010-12-05 Thread James Broberg
Ah that makes sense. I was under the impression that the Users API
worked with Google Accounts *and* accounts on your own Google Apps
domains, but it's an either/or proposition as you say.

If you are using Java, a filter is a good approach to handle this. I
use this approach to restrict my users to OpenID holders that have
registered with my system previously, instead of letting all comers
login.

public class LoginFilterImpl implements Filter {

}

James

On 6 December 2010 16:57, Robert Kluin robert.kl...@gmail.com wrote:
 You either have to use OpenID (federated login) or use your own
 authentication, which will probably also be OpenID, to use both Google
 and Google Apps accounts from the same application.  Otherwise you are
 restricted to either 1) only Google accounts or 2) exactly one Google
 Apps domain.



 Robert








 On Sun, Dec 5, 2010 at 22:37, James Broberg jbrob...@gmail.com wrote:
 I don't really get why you want to use OpenID if you are limiting your
 users to Google  Google Apps accounts?

 cheers

 James

 On 5 December 2010 20:54, AmaltasCoder agarwalmegh...@gmail.com wrote:
 Ok, a bit more explanation:

 The problem with creating Login URL's like mentioned above is that
 even yahoo.com etc. starts to work when I only want Google Account and
 Google Apps to work. Is there any good reference implementation that
 leaves the OpenID heavy lifting to UserService? and works for both
 Google Account and Google Apps only.

 On Dec 1, 10:59 pm, AmaltasCoder agarwalmegh...@gmail.com wrote:
 My application on GAE should work for both Google Accounts and Google
 Apps accounts. I understand that UserService on app engine makes the
 task of using OpenID easy. I generate the Login/Logout url's as
 follows, can someone please check if these are correct calls:

 Login URL for Google Account:

 UserService userService = UserServiceFactory.getUserService();
 userService.createLoginURL(destinationURL, null, gmail.com, new
 HashSetString())

 Login URL for Google Apps Account:

 UserService userService = UserServiceFactory.getUserService();
 userService.createLoginURL(destinationURL, null,
 googleappsdomaintouse.com, new HashSetString())

 Logout URL for Google Account and Google Apps account:

 UserService userService = UserServiceFactory.getUserService();
 User user = userService.getCurrentUser();
 userService.createLogoutURL(destinationURL, user.getAuthDomain())

 --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine?hl=en.



 --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine?hl=en.



 --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine?hl=en.



-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Do I have to implement /_ah/warmup

2010-12-05 Thread Nick Johnson (Google)
The purpose of warmup requests is to give your app the opportunity to load
all the libraries it needs and do any other initialization work required,
before it serves user-facing requests. If you have a catchall handler, then
serving a 404 is probably doing that, but having a do-nothing handler is
probably a better idea, and ensures the request hits the whole app pipeline.

-Nick Johnson

On Sun, Dec 5, 2010 at 5:02 PM, Will vocalster@gmail.com wrote:

 Hmm, thanks.

 I can live with the log, as long as doing nothing serves the purpose. I
 prefer less code unless it's absolutely necessary.

 Best,

 Will


 On Sun, Dec 5, 2010 at 10:25 AM, 风笑雪 kea...@gmail.com wrote:

 You'd better implement it if you don't want to see it logged as an
 error in your dashboard.

 However, the implementation can be empty:

 class WarmupHandler(RequestHandler):
def get(self):
pass # or log it by: logging.info('Warmup Request')

 --
 keakon

 --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.


  --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.




-- 
Nick Johnson, Developer Programs Engineer, App Engine
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Channel API as broadcast messenger

2010-12-05 Thread Nick Johnson (Google)
Hi Rafael,

Why not simply embed the remaining time on the counter in the initial page,
and have the javascript code handle things from there on? You can't trust
users' clocks to be set correctly, but you can trust them to tick at the
right rate.

-Nick Johnson

On Fri, Dec 3, 2010 at 11:27 PM, Rafael Sierra rafaeljs...@gmail.comwrote:

 All the users share the same timer (like in the movies when everyone
 stare at the television with the countdown in it)

 I need to send that timer so the users know how much time is left. In
 my current test I'm going into another aproach, when the timer starts,
 I send a message to every user telling how much time is left and when
 the timer was started (so I know how much time has passed since the
 begin) and when the user access some page it sends the current time at
 server (I can't trust in the user's clock), and the real times is done
 at the client (with setInterval for example). I know that there are
 problems like the user changing variables with firebug, but that will
 corrupt data only for him, and this is not a big deal.

 On Fri, Dec 3, 2010 at 4:59 AM, Robert Kluin robert.kl...@gmail.com
 wrote:
  Hi Rafael,
   Do all users care about the same timer, or does each user have their
  own, or is there one timer for a group, or something else?  Do you
  need to push the remaining time at particular time for some reason?
 
 
 
  Robert
 
 
 
 
 
 
  On Thu, Dec 2, 2010 at 20:35, Rafael Sierra rafaeljs...@gmail.com
 wrote:
  I know that I cannot share Client IDs between multiple users, but I
  still need something like a broadcast message system.
 
  Today, users make requests in regular intervals to get the update of
  the information, let's say a timer counting down like a bomb, each
  client asks the server how much time left to the bomb explodes and the
  server answer the time, and it is made every second until the bomb
  explods (oh god, this thread will be tracked by USA).
 
  When I first saw Channel API I thought that in the future I could just
  do a simple send_message(120) (which means 2 minutes) and every
  client would get the information, but now with the release 1.4 I know
  that I can't do it. Instead I was wondering how I could use Channel
  API to reduce my request count.
 
  The first solution that came to me is to made an eternal loop (that
  would eventualy die in 10 minutes) in which I would loop across all
  the users (yet to know who is online) and send them the time.
  Actually, this is the only solution I got in mind, does someone have a
  better idea?
 
  --
  Rafael Sierra
  http://blog.rafaelsdm.com
 
  --
  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-appeng...@googlegroups.com.
  To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.
 
 
 
  --
  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-appeng...@googlegroups.com.
  To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.
 
 



 --
 Rafael Sierra
 http://blog.rafaelsdm.com

 --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.




-- 
Nick Johnson, Developer Programs Engineer, App Engine
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] After closing Channel, opening a fresh one fails

2010-12-05 Thread Christoph Dietze
Hi there,

I have some trouble with the Channel Service:
When a client signs out of my application, I call socket.close() to
close his/her channel. Now, that client is still on the same page and
wants to reconnect: the server is using a fresh client ID and
generates a fresh channel ID and passes it to the client. The client
opens the channel for that ID. When open() is called, it fails
silently, i.e., I can see that some AJAX calls are being made, but
none of the callbacks onopen or onerror are being called.

Is that supposed to happen? Do I have to reuse the same clientID as
long as I am on the same page?

any help is appreciated,
Christoph

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] having trouble with uploading app

2010-12-05 Thread Philo Yang
are u sure write the right directory like   appcfg.py update abc/?

2010/12/5 Kuber polo...@gmail.com

 I cannot upload my apps with appcfg.py anymore. I'm on windows vista
 and installed appengine python 1.4.0. I used to manage my apps with
 appcfg.py. But recently I cannot upload apps anymore. I have been
 seeing these messages no matter I upload or rollback my apps :

 Usage: appcfg.py [options] action

 Action must be one of:
  create_bulkloader_config: Create a bulkloader.yaml from a running
 application.

  cron_info: Display information about cron jobs.
  download_app: Download a previously-uploaded app.
  download_data: Download entities from datastore.
  help: Print help for a specific action.
  request_logs: Write request logs in Apache common log format.
  rollback: Rollback an in-progress update.
  set_default_version: Set the default (serving) version.
  update: Create or update an app version.
  update_cron: Update application cron definitions.
  update_dos: Update application dos definitions.
  update_indexes: Update application indexes.
  update_queues: Update application task queue definitions.
  upload_data: Upload data records to datastore.
  vacuum_indexes: Delete unused indexes from application.
 Use 'help action' for a detailed description.

 Options:
 

 --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.




-- 
Philo Yang
欢迎光临我的博客-click me to visit my blog http://yangzhe1991.appspot.com

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: ??? Configuration webapp_add_wsgi_middleware not recognized ???

2010-12-05 Thread willo
I also see
Configuration webapp_add_wsgi_middleware not recognized
i) in dev, a single error message upon starting dev_appserver.py,
using SDK 1.4.0, but not 1.3.8
ii) in production, many error messages
This occurs using the demo code for either appstats or gae-sessions,
both of which call
def webapp_add_wsgi_middleware(app) in appengine_config.py

Both appstats and gae-sessions seem to still function

On Dec 3, 1:38 pm, MdeA micdear...@gmail.com wrote:
 I followed the instructions from 
 herehttp://googleappengine.blogspot.com/2010/03/easy-performance-profilin...
 So, I created the file appengine_config.py to contain this:

 def webapp_add_wsgi_middleware(app):
    from google.appengine.ext.appstats import recording
    app = recording.appstats_wsgi_middleware(app)
    return app

 and I added this to the app.yaml:

 - url: /stats.*
   script: $PYTHON_LIB/google/appengine/ext/appstats/ui.py

 and this at the botom:

 admin_console:
  pages:
  - name: Appstats
    url: /stats

 On Dec 3, 11:15 am, Robert Kluin robert.kl...@gmail.com wrote:



  I am guessing it might be something to do with your Appstats
  configuration.  Care to share any details about how you've got
  appstats setup?

  Also, just for reference:
   http://code.google.com/appengine/docs/python/tools/appstats.html

  Robert

  On Fri, Dec 3, 2010 at 12:53, MdeA micdear...@gmail.com wrote:
   I shouldn't say for most, but for many of my user requests.
   Does anybody know?

   On Dec 3, 10:48 am, MdeA micdear...@gmail.com wrote:
   Does anybody knows what the message 'Configuration
   webapp_add_wsgi_middleware not recognized' means.
   Started showing a couples of days ago in the logs for most of my user
   requests.
   Should I worry about that?
   Thx.

   --
   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-appeng...@googlegroups.com.
   To unsubscribe from this group, send email to 
   google-appengine+unsubscr...@googlegroups.com.
   For more options, visit this group 
   athttp://groups.google.com/group/google-appengine?hl=en.

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Experiencing 500 errors on appengine.google.com

2010-12-05 Thread Zhe Yang
it's more often to see 500 error these days,just press F5

2010/12/5 Nick Renny nickre...@gmail.com

 Very slow performance on appengine.google.com - resulting in several
 500 errors.

 --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.



-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Getting my GAE site indexed on Google

2010-12-05 Thread Matt H
http://code.google.com/web/ajaxcrawling/index.html

On Nov 26, 2:40 am, CedarLeaf cedarleaf.sys...@gmail.com wrote:
 Does any one have any pointers on getting my site indexed on Google?
 My site (http://www.cedarleafmusic.com) is a GAE/GWT site for tracking
 music artists and albums.

 Since my site is a dynamic GAE web application, it only has one html
 page, but I have added meta tags, submitted it to Google and submitted
 a sitemap to Google Web Master tools.

 On the anonymous page prior to login, the static paragraphs are an
 HTML widget added to a vertical panel.  Does anyone know if text in
 widgets can be read by Google's bot or if I would be better off adding
 text directly to the site's HTML page?  Any help would be appreciated.

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Getting my GAE site indexed on Google

2010-12-05 Thread Matt H
http://code.google.com/web/ajaxcrawling/index.html

On Nov 26, 2:40 am, CedarLeaf cedarleaf.sys...@gmail.com wrote:
 Does any one have any pointers on getting my site indexed on Google?
 My site (http://www.cedarleafmusic.com) is a GAE/GWT site for tracking
 music artists and albums.

 Since my site is a dynamic GAE web application, it only has one html
 page, but I have added meta tags, submitted it to Google and submitted
 a sitemap to Google Web Master tools.

 On the anonymous page prior to login, the static paragraphs are an
 HTML widget added to a vertical panel.  Does anyone know if text in
 widgets can be read by Google's bot or if I would be better off adding
 text directly to the site's HTML page?  Any help would be appreciated.

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] datastore upload / import data from external systems

2010-12-05 Thread mey
Is there a tool already available to upload master data for entities
from external systems such as Microsoft Access / Excel or xml file to
the google app engine data store?

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Enhancer error

2010-12-05 Thread akahige84
I got the same problem and it just solved.

I don't know if this would work for you but I'll tell you what i did.

copy the appengine-tools-api.jar file under ..\eclipse\plugins
\com.google.appengine...\appengine-java-sdk..\lib
and paste it under ..\workspace\..project name..\war\WEB-INF\lib

good luck


On 12月1日, 午前2:34, chacmool inakim...@gmail.com wrote:
 I create a google app engine project with the eclipse plugin.

 When I save any java class in my project I get the following error:

 java.lang.NoClassDefFoundError: com/google/appengine/tools/enhancer/Enhance
 Caused by: java.lang.ClassNotFoundException:
 com.google.appengine.tools.enhancer.Enhance
         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
 Exception in thread main

 The developer server runs anyway but I can't store anything in the
 'DataBase'.

 ¿Any solutions?

 Thanks in advance.

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Do I have to implement /_ah/warmup

2010-12-05 Thread Tomas Alaeus
Worth noting is that the documentation is wrong. The XML-tag to use to
disable warmup requests in Java is warmup-requests-enabled and _not_
warming-requests-enabled.

Maybe you can fix it Nick? :)

On 6 Dec, 07:28, Nick Johnson (Google) nick.john...@google.com
wrote:
 The purpose of warmup requests is to give your app the opportunity to load
 all the libraries it needs and do any other initialization work required,
 before it serves user-facing requests. If you have a catchall handler, then
 serving a 404 is probably doing that, but having a do-nothing handler is
 probably a better idea, and ensures the request hits the whole app pipeline.

 -Nick Johnson





 On Sun, Dec 5, 2010 at 5:02 PM, Will vocalster@gmail.com wrote:
  Hmm, thanks.

  I can live with the log, as long as doing nothing serves the purpose. I
  prefer less code unless it's absolutely necessary.

  Best,

  Will

  On Sun, Dec 5, 2010 at 10:25 AM, 风笑雪 kea...@gmail.com wrote:

  You'd better implement it if you don't want to see it logged as an
  error in your dashboard.

  However, the implementation can be empty:

  class WarmupHandler(RequestHandler):
         def get(self):
                 pass # or log it by: logging.info('Warmup Request')

  --
  keakon

  --
  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-appeng...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscrib...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.

   --
  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-appeng...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscrib...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.

 --
 Nick Johnson, Developer Programs Engineer, App Engine
 Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
 368047

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Google Apps account login

2010-12-05 Thread AmaltasCoder
My GAE app only allows Google Account and Google Apps users. To login
Google Apps users I provide a login page with a text box field asking
them their email. In server side I simply extract the domain portion
of the email and create login url using

users.create_login_url(federated_identity='google.com/accounts/o8/site-
xrds?hd=yourappsdomain.com')

How can I find whether the extracted domain is actually a Google Apps
domain? what if someone simply provides say yahoo.com? I would like to
give the user a warning stating that the domain is not present on
google apps and he should contact system admin.

On Oct 10, 6:57 am, Robert Kluin robert.kl...@gmail.com wrote:
 Hi David,
   I am not familiar with the android marketplace, sorry.

   I currently use two techniques. First, on my generalloginpage
 users can selectGoogleAppsthen enter the domain in a text box.
 Second, likegoogleservices, users can go to a /theirdomain.com
 enpoint and I fill in the domain and send them to the rightloginpage
 -- also pretty easy.

 Robert







 On Thu, Oct 7, 2010 at 03:34, David s2kd...@gmail.com wrote:
  Wow, that federatedloginstuff is really complicated.  One thing in
  your example assumes I know what yourappsdomain.com would be.  I don't
  want to restrict thegoogleappsaccountto mygoogleappslogins, I
  just want allgoogleappslogins to work.  I basically have an Android
  app that integrates in with my app engine server.  The Android Market
  lets the user put in anyGoogleaccountorGoogleAppsaccount.  I
  just want that sameaccountto work on my app engine server.  Google
  accounts work, butGoogleAppsaccounts do not.  I am able to get the
  Auth token and authenticate the user via token with thegoogleapps
 account, it just appears that the ACSID cookie I send to the appengine
  server denies access.  Now with federatedlogin, is there a way to
  authenticate using an auth token?

  On Oct 5, 12:02 pm, Robert Kluin robert.kl...@gmail.com wrote:
  Yes, you will need to use the federatedlogin(OpenID) stuff.

  The long-and-short of it is that you pass the federated_identity
  parameter to users.create_login_url.  You'll need to setup a page for
  users to tell you what goes in federated_identity somehow, perhaps by
  clicking agooglelogo or entering anappsdomain.

  ForGoogleaccounts:
    users.create_login_url(federated_identity='google.com/accounts/o8/id')
    or
    users.create_login_url(federated_identity='gmail.com')

  For anAppsaccount:
    
  users.create_login_url(federated_identity='google.com/accounts/o8/site-xrds
   ?hd=yourappsdomain.com')

  There is a little info here:
   http://code.google.com/appengine/docs/python/users/overview.html

  And Wesley has a nice article about it here:
   http://code.google.com/appengine/articles/openid.html

  Some info onGoogleAppsdomains and OpenID:
   http://groups.google.com/group/google-federated-login-api/web/openid-...

  Robert

  On Tue, Oct 5, 2010 at 11:21, David s2kd...@gmail.com wrote:
   I'm having an issue with users not being able to authenticate with GAE
   using aGoogleAppsaccount.  RegularGoogleaccountusers can access
   it fine.  How do I make it so it supportsGoogleAppslogins in
   addition?  Do I need to use the FederatedLoginstuff in GAE?  It is
   currently not set to Federated because that makes it so neitherGoogle
  AppsnorGoogleaccounts work. Can anyone help me out?

   Thanks,
   David

   --
   You received this message because you are subscribed to theGoogleGroups 
   GoogleApp Engine group.
   To post to this group, send email togoogle-appeng...@googlegroups.com.
   To unsubscribe from this group, send email 
   togoogle-appengine+unsubscr...@googlegroups.com.
   For more options, visit this group 
   athttp://groups.google.com/group/google-appengine?hl=en.

  --
  You received this message because you are subscribed to theGoogleGroups 
  GoogleApp Engine group.
  To post to this group, send email togoogle-appeng...@googlegroups.com.
  To unsubscribe from this group, send email 
  togoogle-appengine+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/google-appengine?hl=en.

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.