[google-appengine] Re: java.security.AccessControlException: access denied during upload file

2009-06-11 Thread kuharski

That won't help out.  You will still get the access error when you
actually try and write the file. You can persist into a datastore. If
I'm outside the framework i.e. JSF, then I have no problems persisting
it as a file.

On Apr 28, 12:03 pm, Jason (Google) apija...@google.com wrote:
 You may need to use ServletFileUpload instead:

 http://shogi-software.blogspot.com/2009/04/google-app-engine-and-file...

 - Jason

 On Sat, Apr 25, 2009 at 5:13 PM, Jun junshen2...@gmail.com wrote:

  Hi,

  I am trying to upload a file with the following code.

  DiskFileUpload fu = new DiskFileUpload();
  fu.setSizeMax(-1);
  List fileItems = fu.parseRequest(request);
  Iterator i = fileItems.iterator();

  But I got the following error.

   java.security.AccessControlException: access denied
  (java.io.FilePermission C:\Users\Jun\AppData\Local\Temp
  \upload_.tmp delete)
      at java.security.AccessControlContext.checkPermission
  (AccessControlContext.java:264)
      at java.security.AccessController.checkPermission
  (AccessController.java:427)
      at java.lang.SecurityManager.checkPermission(SecurityManager.java:
  532)
      at com.google.appengine.tools.development.DevAppServerFactory
  $CustomSecurityManager.checkPermission(DevAppServerFactory.java:76)
      at java.lang.SecurityManager.checkDelete(SecurityManager.java:
  990)
      at java.io.File.deleteOnExit(File.java:901)
      at org.apache.commons.fileupload.DefaultFileItem.getTempFile
  (DefaultFileItem.java:620)
      at org.apache.commons.fileupload.DefaultFileItem.getOutputStream
  (DefaultFileItem.java:557)
      at org.apache.commons.fileupload.FileUploadBase.parseRequest
  (FileUploadBase.java:391)
      at com.strongtech.iii.web.AddItemController.handleRequest
  (AddItemController.java:69)
      at
  org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle
  (SimpleControllerHandlerAdapter.java:44)
      at org.springframework.web.servlet.DispatcherServlet.doDispatch
  (DispatcherServlet.java:684)
      at org.springframework.web.servlet.DispatcherServlet.doService
  (DispatcherServlet.java:625)
      at org.springframework.web.servlet.FrameworkServlet.processRequest
  (FrameworkServlet.java:392)
      at org.springframework.web.servlet.FrameworkServlet.doPost
  (FrameworkServlet.java:357)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
      at org.mortbay.jetty.servlet.ServletHolder.handle
  (ServletHolder.java:487)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
  (ServletHandler.java:1093)
      at
  com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
  (TransactionCleanupFilter.java:43)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
  (ServletHandler.java:1084)
      at org.mortbay.jetty.servlet.ServletHandler.handle
  (ServletHandler.java:360)
      at org.mortbay.jetty.security.SecurityHandler.handle
  (SecurityHandler.java:216)
      at org.mortbay.jetty.servlet.SessionHandler.handle
  (SessionHandler.java:181

  Can anybody give me some idea how to solve the problem?

  Thanks,

  Jun



--~--~-~--~~~---~--~~
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@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] windows error 5 - access denied when put of datastore is called

2009-06-11 Thread dhaval

Everything is working fine for another application from command prompt
but when i use the same from eclipse i get following dump

The below comes in console window of eclipse

ERROR2009-06-11 10:19:41,312 dev_appserver.py:2906] Exception
encountered handling request
Traceback (most recent call last):
  File F:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py, line 2876, in _HandleRequest
base_env_dict=env_dict)
  File F:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py, line 387, in Dispatch
base_env_dict=base_env_dict)
  File F:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py, line 2163, in Dispatch
self._module_dict)
  File F:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py, line 2081, in ExecuteCGI
reset_modules = exec_script(handler_path, cgi_path, hook)
  File F:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py, line 1979, in ExecuteOrImportScript
script_module.main()
  File F:\eclipse\workspace\checkthis\src\carpoolkaro.py, line 749,
in main
run_wsgi_app(application)
  File F:\Program Files\Google\google_appengine\google\appengine\ext
\webapp\util.py, line 76, in run_wsgi_app
result = application(env, _start_response)
  File F:\Program Files\Google\google_appengine\google\appengine\ext
\webapp\__init__.py, line 517, in __call__
handler.handle_exception(e, self.__debug)
  File F:\Program Files\Google\google_appengine\google\appengine\ext
\webapp\__init__.py, line 384, in handle_exception
self.error(500)
TypeError: 'str' object is not callable
INFO 2009-06-11 10:19:41,312 dev_appserver.py:2935] POST /suggest
HTTP/1.1 500 -

This is screen dump of application in browser window

 F:\Program Files\Google\google_appengine\google\appengine\ext\webapp
\__init__.py in handle_exception(self=__main__.SuggestHandler object
at 0x019C0510, exception=WindowsError(5, 'Access is denied'),
debug_mode=True)

--~--~-~--~~~---~--~~
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@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: windows error 5 - access denied when put of datastore is called

2009-06-11 Thread dhaval

Is it something to do with aptana installation?

On Jun 11, 10:39 am, dhaval dhavalsha...@gmail.com wrote:
 Everything is working fine for another application from command prompt
 but when i use the same from eclipse i get following dump

 The below comes in console window of eclipse

 ERROR    2009-06-11 10:19:41,312 dev_appserver.py:2906] Exception
 encountered handling request
 Traceback (most recent call last):
   File F:\Program Files\Google\google_appengine\google\appengine\tools
 \dev_appserver.py, line 2876, in _HandleRequest
     base_env_dict=env_dict)
   File F:\Program Files\Google\google_appengine\google\appengine\tools
 \dev_appserver.py, line 387, in Dispatch
     base_env_dict=base_env_dict)
   File F:\Program Files\Google\google_appengine\google\appengine\tools
 \dev_appserver.py, line 2163, in Dispatch
     self._module_dict)
   File F:\Program Files\Google\google_appengine\google\appengine\tools
 \dev_appserver.py, line 2081, in ExecuteCGI
     reset_modules = exec_script(handler_path, cgi_path, hook)
   File F:\Program Files\Google\google_appengine\google\appengine\tools
 \dev_appserver.py, line 1979, in ExecuteOrImportScript
     script_module.main()
   File F:\eclipse\workspace\checkthis\src\carpoolkaro.py, line 749,
 in main
     run_wsgi_app(application)
   File F:\Program Files\Google\google_appengine\google\appengine\ext
 \webapp\util.py, line 76, in run_wsgi_app
     result = application(env, _start_response)
   File F:\Program Files\Google\google_appengine\google\appengine\ext
 \webapp\__init__.py, line 517, in __call__
     handler.handle_exception(e, self.__debug)
   File F:\Program Files\Google\google_appengine\google\appengine\ext
 \webapp\__init__.py, line 384, in handle_exception
     self.error(500)
 TypeError: 'str' object is not callable
 INFO     2009-06-11 10:19:41,312 dev_appserver.py:2935] POST /suggest
 HTTP/1.1 500 -

 This is screen dump of application in browser window

  F:\Program Files\Google\google_appengine\google\appengine\ext\webapp
 \__init__.py in handle_exception(self=__main__.SuggestHandler object
 at 0x019C0510, exception=WindowsError(5, 'Access is denied'),
 debug_mode=True)
--~--~-~--~~~---~--~~
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@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] Cron Jobs not running

2009-06-11 Thread Brian

Hi.

I have noticed that several cron jobs associated with my app have not
run for several hours (they are on schedules ranging from 1 to 10
minutes. I have not changed the scripts or the cron.yaml file

Is there an issue with the cron service? (it should be included in the
system status display). We use cron to index RSS feeds, so if it stops
working the index gets stale pretty quickly.

Thanks.

-B
--~--~-~--~~~---~--~~
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@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: image protection

2009-06-11 Thread Barry Hunter

not if you have defined the images as static in your app.yaml (or
similar in java)

but if your images are served dynamically (using python/java) then you
can.

static content is served from a different system to code and so you
get little control. but serving them off the code system you get
pretty much full control.

you could write a small script (easiest in python) to act as a static
handler, that just reads the file from disk (any resource not declared
as static is readable on the code server) and does a few access checks
and returns approriate headers.

On Jun 11, 4:03 am, chimpsbeware chimpsbew...@hotmail.com wrote:
  Im using google app engine to store/serve my images for my site. For
 example I usehttp://static.mydomain.com/images/myimage.jpgto show my
 images that i've uploaded here.

 I would like to know if hotlink protection is possible on these
 images? is this at all possible? I would like for my pictures to be
 shown on my domain only.

 I hope that someone can help me with this.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@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: GAE KML support

2009-06-11 Thread Barry Hunter

yes,

see how the geodatastore does it

http://code.google.com/p/geodatastore/

On Jun 11, 3:27 am, buck reach...@gmail.com wrote:
 Is GAE able to return KML/KMZ MIME types?
--~--~-~--~~~---~--~~
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@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] bcrypt on google app engine

2009-06-11 Thread Karl

Are there any implementations of bcrypt that work on google app
engine?

The py-bcrypt package (http://www.mindrot.org/projects/py-bcrypt/)
uses a C backend, so it can't be deployed on GAE.

Are there any pure Python implementations of bcrypt?

Thanks,
Karl
--~--~-~--~~~---~--~~
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@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: bcrypt on google app engine

2009-06-11 Thread Nick Johnson (Google)
Hi Karl,

I'm not aware of any pure-Python implementations of bcrypt. However,
pycrypto is supported on App Engine, which supports many of the same
operations and algorithms.

-Nick Johnson

On Thu, Jun 11, 2009 at 10:09 AM, Karl kp8...@gmail.com wrote:


 Are there any implementations of bcrypt that work on google app
 engine?

 The py-bcrypt package (http://www.mindrot.org/projects/py-bcrypt/)
 uses a C backend, so it can't be deployed on GAE.

 Are there any pure Python implementations of bcrypt?

 Thanks,
 Karl
 


--~--~-~--~~~---~--~~
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@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: A question about google app engine - thread id for performance profiling

2009-06-11 Thread Nick Johnson (Google)
Hi Liang Han,

(Replies inline)

On Thu, Jun 11, 2009 at 2:15 AM, Liang Han liang@gmail.com wrote:


 A simple application, which is running at the google app engine,
 visits the datastore, and uses the urlfetch service as well.I want
 to add the 6 hooks into the code to get the timestamp when code is
 running at that checkpoint, thus the transactions performance
 profiling can be done by calculating with the timestamps.

 Here's the flow in pseudo code:

 class MainPage(webapp.RequestHandler):
  def get(self):
-- 1. hook at program starting
do something ...
-- 2. hook before fetching url
result = urlfetch.fetch(url=http://...;)
-- 3. hook after fetching url
do something ...
-- 4. hook before visiting datastore
visit datastore
-- 5. hook after visiting datastore
do something
-- 6. finish hook

 Although it's straightforward to just add the hook code in the
 original code, however, in order to minimize the modification to
 existing code, I use the following approaches:

 1. Use apiproxy_stub_map.apiproxy.GetPreCallHooks().Append to add
 hooks to get data at checkpoint 2, 3, 4, 5.   I referenced the article
 http://code.google.com/appengine/articles/hooks.html

 2. Monkeypatch google.appengine.ext.webapp.WSGIApplication (assuming
 the original code is written with webapp framework) by overwritting
 def __call__(self, environ, start_response).  I just add my code
 before and after calling the real method.   Therefore, I can get data
 at checkpoint 1 and 6. The orignial code just need to modified to
 use the subclass of  WSGIApplication.


Cool stuff you're working on! Are you planning on releasing it for others to
use?




 Here's the problem I run into.
 Since multiple users might be visiting the same application at the
 sametime, in order not to mess up data from different users, we must
 be able to get a same id, such as thread id for the 6 checkpoints of
 each user.  However, I cannot achieve this.


App Engine apps run in a single-threaded environment. That is, a given
interpreter instance will only ever be processing one request at any given
time. Thus, you don't need to worry about concurrent invocations.

-Nick Johnson




 I have tried to use thread.get_ident(), but it always returns -1.  (I
 know google app engine doesn't allow create new thread, but it doesn't
 make any sense to return -1 for threads created by google engine
 itself ...)

 I tried to store some data at the thread local objects pool (just as I
 do with Java), but seems the thread.local is not the same with the one
 in Java.I'm not familiar with python anyway, maybe I miss
 something or misunderstand something.

 Do you guys have any idea about this?Thanks very much 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-appengine@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: DB design best practices

2009-06-11 Thread Nick Johnson (Google)
Hi n8gray,

Excellent question!

Given the amount of information you're likely to store against Players2Games
(GamePlayers, perhaps?), and the number of games any one player may have,
and the likely access patterns, I would suggest sticking with a separate
model for it.

The main lesson for using the datastore instead of a relational database is
simply to denormalize and precalculate. In this case, that likely means
storing running totals (number of turns, score, etc) against the
Players2Games entity, instead of calculating them when needed as you might
in a relational database.

Tony's point about entity groups is an excellent one. Based on the sort of
updates you're likely to want to do, and the access patterns in an app like
this, I would suggest making the Players2Games entities child entities of
the related Games entity, and making the Turns entities likewise child
entities of their Games entity. This way, each game has its own entity
group, so you can make atomic (transactional) updates across the whole game
with ease.

-Nick Johnson

On Tue, Jun 9, 2009 at 6:47 PM, n8gray n8g...@gmail.com wrote:


 Hi everybody,

 I'm about to start working on an AppEngine backend for an iPhone game
 I'm developing.  It's a simple board game, with 2-4 players who each
 take turns making plays.  Originally I had planned to set up a LAMP
 server for my project, but AE has changed my plans (for the better!).
 I've never written database code before but I've read up on the basics
 of database design, and I came to the conclusion that I would need a
 DB schema with tables something like this:

 Players:  username, email, userid, ...
 Games: gameid, time_started, current_player, is_finished, ...
 Players2Games:  userid, gameid, score, ...
 Turns: userid, gameid, timestamp, turn_number, play, turn_score, ...

 It seems clear, however, that Datastore is not a traditional database
 and perhaps my schema needs to be revisited.  Is it still necessary or
 advisable to use a table like Players2Games in order to represent many-
 to-many relationships?  What should my roots and parent/child
 relationships be?

 Typical queries will be (unsurprising) things like:
 get all games for player x
 get all players for game x
 get the scores of all players in game x
 get any turns in game x that have occurred since time t

 Any advice, or pointers to articles/posts/documentation are
 appreciated!

 Thanks,
 -n8

 


--~--~-~--~~~---~--~~
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@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: Verify Your Account by SMS from Uruguay

2009-06-11 Thread Nick Johnson (Google)
Hi,

Both of your accounts should now be activated.

-Nick Johnson

2009/6/10 Samus_ mail2sa...@gmail.com


 same here, I've used the format shown at this page:
 http://www.howtocallabroad.com/uruguay/ both 598 9? ??? ??? and
 +598 9? ??? ??? none worked so please activate me manually, thank
 you.

 On Jun 10, 7:33 am, Nick Johnson (Google) nick.john...@google.com
 wrote:
  Hi,
 
  Your account should now be activated.
 
  -Nick Johnson
 
  2009/6/9 ankha...@gmail.com ankha...@gmail.com
 
 
 
   Does anyone know how to verify one's account if you are living in
   Mongolia?
 
   I entered my number in the format required by the verificator but it
   always gives Mobile Number or Username error.
 
   Mongolian phone numbers begin with +976
 
   On Apr 10, 7:30 pm, 风笑雪 kea...@gmail.com wrote:
Maybe you forget your country number.
Ex: in China, the phone number should be this style: +8613012345678
   (begin
with +86)
 
2009/4/10 Jeff S j...@google.com
 
 Hello Héctor,
 
 If you are unable to verify using SMS, you can request access by
   filling
 out the form linked in this FAQ:
 
http://code.google.com/appengine/kb/sms.html#error
 
 Thank you,
 
 Jeff
 
 On Wed, Apr 8, 2009 at 3:35 PM, Héctor Quartino cpho...@gmail.com
 
   wrote:
 
 Hi,
 
 Does anyone know how to verify one's account if you are living in
 Uruguay?
 
 I entered my number in the format required by the verificator but
 it
 always gives Mobile Number or Username error.
 
 Regards,
 Héctor

 


--~--~-~--~~~---~--~~
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@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: SMS Verfication Troubles

2009-06-11 Thread Nick Johnson (Google)
Hi Knight,

Your account should now be activated.

-Nick Johnson

On Wed, Jun 10, 2009 at 2:33 PM, Knight Samar knightsa...@gmail.com wrote:


 Hi,

 I am facing the same problem too. I have posted the SMS Issue form
 some 3 times, but still there hasn't been any reply or action. I have
 tried using my number(BSNL from India) and also my friends number
 (Bharti Airtel from India) and though both have been listed as
 supported carriers, it didn't work at all. Please help me Google :)

 I am dying to try Google Wave on Google Apps.

 Thanks.

 Samar

 On May 20, 4:51 am, Jeff S (Google) j...@google.com wrote:
  Hi Ted,
 
  You should be all set. I'm assuming the account you were using was the
  one you are using to post here.
 
  Happy coding,
 
  Jeff
 
  On May 18, 4:49 pm, ted stockwell emorn...@gmail.com wrote:
 
   Hi,
 
   I am inSMSVerification hell.
   Right now I'm in a state where if I try to verify my account I get the
   Too manySMSmessages... error.
   I filled out the 'Having Trouble ReceivingSMSMessages?' form here,
 http://appengine.google.com/waitlist/sms_issues, and I have waited two
   working days for a response.
 
   I really need someone to release me from mySMSVerification
   purgatory.
 
   Thanks in advance,
   -ted stockwell
 
   PS: I think I somehow got into this state because, for reasons I don't
   understand, it seems to have taken several hours for theSMS
   verification message to show up.  By that time, if I try to go back to
   the browser and type in the verification code the browser ends up
   taking me back to the page to original verification page (because my
   web session has timed out).  So, I have ended up requesting
   verification several times.

 


--~--~-~--~~~---~--~~
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@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: subversion setup

2009-06-11 Thread Nick Johnson (Google)
Hi Brian,

This question would probably be better directed at an SVN support forum of
some sort, as it's not related to App Engine.

-Nick Johnson

On Wed, Jun 10, 2009 at 9:23 PM, thebrianschott schott.br...@gmail.comwrote:


 I have not received any response on this issue.
 Does anyone have a clue, please?


 On Jun 7, 8:55 am, thebrianschott schott.br...@gmail.com wrote:
  When I try to get my files from the svn system,
  it looks like everything is fine until I try to look at
  the files: there are no files in the directory. There is
  no .svn/ subdirectory in the directory used for
  all this: [~/googleapps/howsmy] and that must be
  the problem. So how do I setup that directory again
  to include the .svn/ directory?
 
  In case more background is needed, below are my
  recent sessions.
 
  Thanks,
 
  Brian in Atlanta
 
[lots of details from the original message elided]
 


--~--~-~--~~~---~--~~
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@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: Python Vs Java in GAE

2009-06-11 Thread David

I've been struggling with this issue lately, and here is my summary of
the issues I dealt with in my decision:

Advantages with Python: Because it has been supported longer, there is
more out-of-the-box sample code which is pretty clean.  Django+GAE is
a nice pairing.  Because Python is loosely typed and has more core
language features, you can often do more with much less code.  If you
haven't used a Java framework yet, you'll have a hard time deciding
among the many out there to use with GAE, and you'll have a harder
time finding sample code w/ GAE.  If your a strong advocate of DRY
(Don't Repeat Yourself), you'll like Django+GAE.

Advantages with Java:  Tight integration with Eclipse --- a great
development environment.   Because it's compiled and strongly typed,
you'll spend less time debugging and more time coding.  If you decide
to adopt GWT (for tight integration with client-side processing),
you'll want to have chosen Java.  If you need to hire someone to help,
you'll find it easier to find people who already know Java.

Overall: For a small to medium sized application, Python is quicker to
get up and going.  For larger applications, it's easier to maintain
code stability in Java.


--~--~-~--~~~---~--~~
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@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: subversion setup

2009-06-11 Thread thebrianschott

Nick,

Thanx. Really. But isn't the svn set up automatically by the
App Engine when I deploy the application? I assumed so
because the instructions are given at the following link which
I presume is automatic.

http://code.google.com/p/tellmestraight/source/checkout

When I tried to get connected to an svn group, I went to a link
suggested by the book at http://svnbook.red-bean.com/en/1.5/index.html
but there was no listserve at http://subversion.tigris.org/, so I
had registered fruitlessly.

Do you know of such a support forum or can you suggest how
I might find one, please?

On Jun 11, 8:16 am, Nick Johnson (Google) nick.john...@google.com
wrote:
 Hi Brian,

 This question would probably be better directed at an SVN support forum of
 some sort, as it's not related to App Engine.

 -Nick Johnson


--~--~-~--~~~---~--~~
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@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: subversion setup

2009-06-11 Thread Nick Johnson (Google)
Hi Brian,

On Thu, Jun 11, 2009 at 1:48 PM, thebrianschott schott.br...@gmail.comwrote:


 Nick,

 Thanx. Really. But isn't the svn set up automatically by the
 App Engine when I deploy the application? I assumed so
 because the instructions are given at the following link which
 I presume is automatic.

 http://code.google.com/p/tellmestraight/source/checkout


This is nothing to do with App Engine or App Engine apps - that's Google
Code project hosting.

If your problem is SVN-specific, try the lists at
http://subversion.tigris.org/mailing-lists.html . If it's Google Code, try
http://groups.google.com/group/google-code-hosting .

http://code.google.com/p/tellmestraight/source/checkout

 When I tried to get connected to an svn group, I went to a link
 suggested by the book at http://svnbook.red-bean.com/en/1.5/index.html
 but there was no listserve at http://subversion.tigris.org/, so I
 had registered fruitlessly.

 Do you know of such a support forum or can you suggest how
 I might find one, please?

 On Jun 11, 8:16 am, Nick Johnson (Google) nick.john...@google.com
 wrote:
  Hi Brian,
 
  This question would probably be better directed at an SVN support forum
 of
  some sort, as it's not related to App Engine.
 
  -Nick Johnson
 

 

--~--~-~--~~~---~--~~
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@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: subversion setup

2009-06-11 Thread thebrianschott

Nevermind.

I think I fixed the problem.

The empty directory contains  the key hidden file/directory .svn/
and that told me that I had executed the svn command from the wrong
place in my file system. When I redid it, the svn status command shows
some files, so I think I am in business.

Thank you, again, Nick.


--~--~-~--~~~---~--~~
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@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: Python Vs Java in GAE

2009-06-11 Thread Lawrence Fitzpatrick


I believe that the GAE team has said they are committed to both, so
you can probably take them at their word and expect to just timing
differences as to when feature x appears on each platform.

Therefore what remains is your learning curve and the type of language
you prefer. Do you know Python or Java better? Why not start there? Do
you prefer the more static type checking of Java or the more runtime
type checking of Python?  I've found that most people naturally
prefer, and hence are more productive, in one than the other.

And lastly, which community do you prefer :)

-fitz


--~--~-~--~~~---~--~~
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@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] Cron jobs not running

2009-06-11 Thread vivpuri

I added new cron jobs couple of hours back, and now neither the new
nor the existing jobs are running. All the jobs either have the
schedule of every 5 minutes (UTC) or every 1 minutes (UTC) . Any
idea what might be the issue here?
--~--~-~--~~~---~--~~
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@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: Cron jobs not running

2009-06-11 Thread vivpuri

Okay someone else also has the same issue -
http://groups.google.com/group/google-appengine/browse_thread/thread/ce7bafc0f6e7a1d5#

On Jun 11, 9:40 am, vivpuri vivpu...@gmail.com wrote:
 I added new cron jobs couple of hours back, and now neither the new
 nor the existing jobs are running. All the jobs either have the
 schedule of every 5 minutes (UTC) or every 1 minutes (UTC) . Any
 idea what might be the issue here?
--~--~-~--~~~---~--~~
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@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: Monitoring Server on GAE?

2009-06-11 Thread Barry Hunter

If what you want to monitor can be monitored by a URLfetch (a HTTP URL
you want to verify), then GAE will probably work quite well.

You can have a process spawed by the scheduler (aka Cron), which trys
to connect to a perdertmined set of URLs. If any fail or dont return
the expected result, send of an email.

If you want SMS or similar, just find a email to SMS gateway.

On 10/06/2009, shlomo shlomo.swid...@gmail.com wrote:

  It seems to me that GAE is perfectly suited to hosting an IT-
  infrastructure monitoring server, for example to monitor my in-the-
  cloud services and alert me when something goes wrong.

  I know Hyperic has a tool to monitor GAE Apps - but I am interested in
  the reverse: a GAE-based service that monitors my servers (which are
  hosted elsewhere).

  Googling for this doesn't show anything relevant.

  Anyone heard of such a thing?

  Thanks.

  



-- 
Barry

- www.nearby.org.uk - www.geograph.org.uk -

--~--~-~--~~~---~--~~
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@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: Python Vs Java in GAE

2009-06-11 Thread neil

David, perfect summary, great post. Exactly my thoughts on this.

There is also an Eclipse version for Python, not used yet.

BTW: Is runtime performance comparable?

Thanks

On 11 Jun., 15:18, Lawrence Fitzpatrick fitzp...@gmail.com wrote:
 I believe that the GAE team has said they are committed to both, so
 you can probably take them at their word and expect to just timing
 differences as to when feature x appears on each platform.

 Therefore what remains is your learning curve and the type of language
 you prefer. Do you know Python or Java better? Why not start there? Do
 you prefer the more static type checking of Java or the more runtime
 type checking of Python?  I've found that most people naturally
 prefer, and hence are more productive, in one than the other.

 And lastly, which community do you prefer :)

 -fitz
--~--~-~--~~~---~--~~
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@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] Detachable Entities in 1-to-N relationship

2009-06-11 Thread Tim Wickstrom

Hello,

I'm writing an app in Java with the following class definitions
(pseudo-code):

@PersistenceCapable(identityType = IdentityType.APPLICATION,
detachable=true)
class Owner {

  @PrimaryKey
  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
  private Long ownerId;

  // other persistent fields

  @Persistent(defaultFetchGroup=true)
  private LinkedListPets pets;

  public void addPet(Pet pet) {
this.pets.add(pet);
  }
}


@PersistenceCapable(identityType = IdentityType.APPLICATION,
detachable=true)
public class Pets {

  @PrimaryKey
  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
  private Key key;

  //  other persistent fields

}

Both classes are detachable so that I can work with copies of the
entities after the PersistenceManager is closed. The problem I'm
running in to is when I query an Owner entity, it doesn't have any of
its pets. The LinkedList is empty after running owner.addPet(pet). How
do I get access to an Owner entity's pets?

Thanks,
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-appengine@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: Cron jobs not running

2009-06-11 Thread vivpuri

Can someone from Google shed some light on this issue. None of my jobs
have run in the past 4 hours. As you can guess, this is going to cause
major data issues cause of timeouts when the jobs start again and
suddenly need to process large amount of data.

Thanks

On Jun 11, 9:47 am, vivpuri vivpu...@gmail.com wrote:
 Okay someone else also has the same issue 
 -http://groups.google.com/group/google-appengine/browse_thread/thread/...

 On Jun 11, 9:40 am, vivpuri vivpu...@gmail.com wrote:



  I added new cron jobs couple of hours back, and now neither the new
  nor the existing jobs are running. All the jobs either have the
  schedule of every 5 minutes (UTC) or every 1 minutes (UTC) . Any
  idea what might be the issue here?
--~--~-~--~~~---~--~~
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@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: Cache-Control and Expires for static

2009-06-11 Thread Peter Ondruska

Thanks Jeff, I will definitely do this for my Python engines. Is there
any similar directive I can use in Java engine?

On Jun 9, 12:31 am, Jeff S (Google) j...@google.com wrote:
 Hi Peter,

 Have you tried the default_expiration configuration option and the
 expiration option in app.yaml? Each static file handler could have a
 different expiration.

 http://code.google.com/appengine/docs/python/config/appconfig.html#St...

 Cheers,

 Jeff

 On Sun, Jun 7, 2009 at 1:53 AM, Peter Ondruska 
 peter.ondru...@gmail.comwrote:





  I have created filter to change Cache-Control and Expires headers for
  static resources but this is not enforced for static resources. I
  would like to set different (higher) expiration for css, GWT cache
  files, etc. Default is 10 minutes which is far too small.

  Please, if you are interested star issue
 http://code.google.com/p/googleappengine/issues/detail?id=1662
--~--~-~--~~~---~--~~
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@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] Persisting Objects

2009-06-11 Thread Luca

Hi,

I am trying to get to grips with persisting objects to the google
datastore, I  have been following the Google tutorial.

So the following code uses the PersistnaceManager to save an Employee
instance:

Employee employee = new Employee(Alfred, Smith, new Date());

PersistenceManager pm = PMF.get().getPersistenceManager();

try {
pm.makePersistent(employee);
} finally {
pm.close();
}
}

The Employee instance has an Id property:

@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long id;

So when the pm.makePersistent(employee); is called the id is
autogenerated.

This I understand. But my question is how do I fetch it back from the
datastore if I do not know what the id is? In the tutorials it shows
how you fetch objects using known information:

 Key k = KeyFactory.createKey(Employee.class.getSimpleName(),
alfred.sm...@example.com);
Employee e = pm.getObjectById(Employee.class, k);

But of course when you want to fetch a list of saved objects you will
not know any of the key information???

Or am I misunderstanding how this works?

In basic terms I want to save a list of Employee objects and then I
want to get them back without having to know the information they
contain...

Thanks

Luca
--~--~-~--~~~---~--~~
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@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: Python Vs Java in GAE

2009-06-11 Thread Nash-t

David,
  Good summary but I'd add one more thing. As long as Google remains
committed to GWT , without releasing a comparable widget set for all
languages, I think the writing is on the wall. Already the Google Wave
framework favors java. That is probably a glimpse of the future for
Google, which is a shame because I prefer python to java for most
projects.

-Tim

On Jun 11, 8:08 am, neil foreverneilyo...@googlemail.com wrote:
 David, perfect summary, great post. Exactly my thoughts on this.

 There is also an Eclipse version for Python, not used yet.

 BTW: Is runtime performance comparable?

 Thanks

 On 11 Jun., 15:18, Lawrence Fitzpatrick fitzp...@gmail.com wrote:

  I believe that the GAE team has said they are committed to both, so
  you can probably take them at their word and expect to just timing
  differences as to when feature x appears on each platform.

  Therefore what remains is your learning curve and the type of language
  you prefer. Do you know Python or Java better? Why not start there? Do
  you prefer the more static type checking of Java or the more runtime
  type checking of Python?  I've found that most people naturally
  prefer, and hence are more productive, in one than the other.

  And lastly, which community do you prefer :)

  -fitz
--~--~-~--~~~---~--~~
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@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: image protection

2009-06-11 Thread pranny

 a few access checks

I would like to know what access checks ?

--
Pranav Prakash

This life is more than ordinary

On Jun 11, 1:32 pm, Barry Hunter barrybhun...@googlemail.com wrote:
 not if you have defined the images as static in your app.yaml (or
 similar in java)

 but if your images are served dynamically (using python/java) then you
 can.

 static content is served from a different system to code and so you
 get little control. but serving them off the code system you get
 pretty much full control.

 you could write a small script (easiest in python) to act as a static
 handler, that just reads the file from disk (any resource not declared
 as static is readable on the code server) and does a few access checks
 and returns approriate headers.

 On Jun 11, 4:03 am, chimpsbeware chimpsbew...@hotmail.com wrote:

   Im using google app engine to store/serve my images for my site. For
  example I usehttp://static.mydomain.com/images/myimage.jpgtoshow my
  images that i've uploaded here.

  I would like to know if hotlink protection is possible on these
  images? is this at all possible? I would like for my pictures to be
  shown on my domain only.

  I hope that someone can help me with this.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@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: ??? Over Quota ???

2009-06-11 Thread Sebastian Aviña
Jeff,
I just want to know, if you received my email with the source code, and if
you can tell if you think we can solve this issue by this week, or if I
should start adapting my code for a full django server instead of
appengine...

Thanks,


--
Ing. Josué Sebastian Aviña Gonzalez.

Rectificaciones Aviña, S.A. de C.V.
Administración general.

Trabajo.
 +52 (618) 817 0949
 +52 (618) 817 0709
Fax.
 +52 (618) 817 1894
Casa.
 +52 (618) 818 7327
Celular.
 +52 (618) 119 7771

http://www.edurango.com.mx
sebastianav...@edurango.com.mx

*** Quien se rinde ante lo que parece imposible, ya esta destinado al
fracaso.


On Wed, Jun 10, 2009 at 4:16 PM, Jeff S (Google) j...@google.com wrote:


 Hi Sebastian,

 After looking into this issue, it seems it is likely related to the
 same issue as this thread:


 http://groups.google.com/group/google-appengine/browse_thread/thread/a3c230d2c658d2d3

 As we asked with Jim's app, would you be willing to let us look at the
 full source code for your application? Please email it to me privately
 if that is acceptable. If not, please let me know, this isn't a
 requirement but it should help us get to the root cause more quickly.

 Thank you,

 Jeff

 On Jun 9, 6:29 pm, Jeff S (Google) j...@google.com wrote:
  I see it now too and I'm investigating.
 
  -Jeff
 
  On Tue, Jun 9, 2009 at 6:16 PM, Thomas Wiradikusuma
  wiradikus...@gmail.comwrote:
 
 
 
   just checked it from here (Indonesia) at 8:15am (local time), yup it's
   an honest 403.
 
   On Jun 10, 2:13 am, Sebastian Aviña sebastianav...@gmail.com wrote:
hi Jeff,
the webpage works fine for periods of 30 minutes, and then all the
 web
   page
triggers the 403 over quota error for about two hours...
 
 
 


--~--~-~--~~~---~--~~
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@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] key name (String) vs key id (long) performance

2009-06-11 Thread cryb

Hello..
Is there an official position / benchmark about what type of keys
issue the best performance as for queries?
Are key ids (long) being looked up faster than key names (string) -
assuming that both have comparable sizes in bytes?

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-appengine@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] why there is no way to build a key id?

2009-06-11 Thread cryb

Does anyone know why it is possible to build a key name but NOT a key
id? I know key IDs are used as autoincrements, but why can't I just
override this mechanism and build my own key id?
Suppose I want to overwrite an existent entry in my table that has a
key id I know, and also I want to keep that key id after update...
because I can't just build a key id, I am forced to fetch that entity,
modify it and write it back, instead of just write the updated entity
with the key id I already know - so an additional read to the
datastore.
Is there an obscure reason for that? (both key names and key ids are
prefixed with appid/kind as far as I know so there is no chance of
collision with other apps/kinds)
--~--~-~--~~~---~--~~
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@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: ??? Over Quota ???

2009-06-11 Thread Sebastian Aviña
yeah, it works fine for short spans of time, and then the error appear out
of nowhere
--
Ing. Josué Sebastian Aviña Gonzalez.

Rectificaciones Aviña, S.A. de C.V.
Administración general.

Trabajo.
 +52 (618) 817 0949
 +52 (618) 817 0709
Fax.
 +52 (618) 817 1894
Casa.
 +52 (618) 818 7327
Celular.
 +52 (618) 119 7771

http://www.edurango.com.mx
sebastianav...@edurango.com.mx

*** Quien se rinde ante lo que parece imposible, ya esta destinado al
fracaso.


On Thu, Jun 11, 2009 at 12:28 PM, nikhil bharadwaj 
shrinikhilbharad...@gmail.com wrote:

 I've attached the result screenshot. I feel this site is working fine in
 India.

 On Wed, Jun 10, 2009 at 6:59 AM, Jeff S (Google) j...@google.com wrote:

 I see it now too and I'm investigating.

 -Jeff


 On Tue, Jun 9, 2009 at 6:16 PM, Thomas Wiradikusuma 
 wiradikus...@gmail.com wrote:


 just checked it from here (Indonesia) at 8:15am (local time), yup it's
 an honest 403.

 On Jun 10, 2:13 am, Sebastian Aviña sebastianav...@gmail.com wrote:
  hi Jeff,
  the webpage works fine for periods of 30 minutes, and then all the web
 page
  triggers the 403 over quota error for about two hours...








 --
 Thanks and Regards,

 Nikhil B. Bharadwaj
 Ambassador (http://fedoraproject.org/wiki/NikhilBharadwaj)
 Fedora Project (http://fedoraproject.org)

 Student
 MLR Institute of Technology (www.mlrinstitutions.ac.in)
 (Jawaharlal Nehru Technological University)
 www.jntu.ac.in
 http://nikhilbharadwaj.blogspot.com/
 http://nikhilbharadwaj.wordpress.com/

 I have felt it and lived it and now it leaves me here, love is the
 ultimate pain and joy, without it you die with it you perish. 


 


--~--~-~--~~~---~--~~
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@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: key name (String) vs key id (long) performance

2009-06-11 Thread Rodrigo Moraes

On Thu, Jun 11, 2009 at 2:19 PM, cryb wrote:
 Is there an official position / benchmark about what type of keys
 issue the best performance as for queries?
 Are key ids (long) being looked up faster than key names (string) -
 assuming that both have comparable sizes in bytes?

There's no difference. Both key_name's and id's are used internally to
build a Key from path, which is then used to get the entity. So, when
you do Model.get_by_id(1) or Model.get_by_key_name('a'), you're
actually doing Model.get(Key.from_path('Model', 1)) or
Model.get(Key.from_path('Model', 'a')) - essentially the same thing.

-- rodrigo

--~--~-~--~~~---~--~~
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@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: ??? Over Quota ???

2009-06-11 Thread Jeff S (Google)
Hi Sebastian,

I did receive the source code and we should be able to alleviate the
situation soon for your app and for the other app which was experiencing a
similar issue (I linked to that thread in an earlier email). This is an
extremely rare case in which parts of your code trigger an issue on the App
Engine system. Apologies for the inconvenience, I'll keep you updated.

Thank you,

Jeff

On Thu, Jun 11, 2009 at 10:08 AM, Sebastian Aviña
sebastianav...@gmail.comwrote:

 Jeff,
 I just want to know, if you received my email with the source code, and if
 you can tell if you think we can solve this issue by this week, or if I
 should start adapting my code for a full django server instead of
 appengine...

 Thanks,


 --
 Ing. Josué Sebastian Aviña Gonzalez.

 Rectificaciones Aviña, S.A. de C.V.
 Administración general.

 Trabajo.
  +52 (618) 817 0949
  +52 (618) 817 0709
 Fax.
  +52 (618) 817 1894
 Casa.
  +52 (618) 818 7327
 Celular.
  +52 (618) 119 7771

 http://www.edurango.com.mx
 sebastianav...@edurango.com.mx

 *** Quien se rinde ante lo que parece imposible, ya esta destinado al
 fracaso.


 On Wed, Jun 10, 2009 at 4:16 PM, Jeff S (Google) j...@google.com wrote:


 Hi Sebastian,

 After looking into this issue, it seems it is likely related to the
 same issue as this thread:


 http://groups.google.com/group/google-appengine/browse_thread/thread/a3c230d2c658d2d3

 As we asked with Jim's app, would you be willing to let us look at the
 full source code for your application? Please email it to me privately
 if that is acceptable. If not, please let me know, this isn't a
 requirement but it should help us get to the root cause more quickly.

 Thank you,

 Jeff

 On Jun 9, 6:29 pm, Jeff S (Google) j...@google.com wrote:
  I see it now too and I'm investigating.
 
  -Jeff
 
  On Tue, Jun 9, 2009 at 6:16 PM, Thomas Wiradikusuma
  wiradikus...@gmail.comwrote:
 
 
 
   just checked it from here (Indonesia) at 8:15am (local time), yup it's
   an honest 403.
 
   On Jun 10, 2:13 am, Sebastian Aviña sebastianav...@gmail.com wrote:
hi Jeff,
the webpage works fine for periods of 30 minutes, and then all the
 web
   page
triggers the 403 over quota error for about two hours...
 
 



 


--~--~-~--~~~---~--~~
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@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: alternative to self.redirect(users.create_login_url(self.request.uri))

2009-06-11 Thread Andy Freeman

 The URL you supply needs to be absolute 
 ('http://mysite.com/choose_user.html'), not relative ('choose_user.html' or
 '/choose_user.html').

Is the documentation wrong?

From http://code.google.com/appengine/docs/python/users/functions.html
dest_url can be full URL or a path relative to your application's
domain.

The examples in 
http://code.google.com/appengine/docs/python/users/loginurls.html
use /.



On Jun 10, 10:16 am, Nick Johnson (Google) nick.john...@google.com
wrote:
 Hi Brian,

 The URL you supply needs to be absolute 
 ('http://mysite.com/choose_user.html'), not relative ('choose_user.html' or
 '/choose_user.html'). You may find the self.request.host and
 self.request.host_uri members helpful in constructing an absolute url from a
 relative one without hardcoding your site's domain.

 -Nick Johnson

 On Wed, Jun 10, 2009 at 6:10 PM, thebrianschott schott.br...@gmail.comwrote:





  Nick,

  Thanks.

  Would the new code be something like this if I sent the user to a
  signin?
  alternative to self.redirect(users.create_login_url(choose_user.html))

  Brian in Atlanta- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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@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: Cron jobs not running

2009-06-11 Thread NewOrbit

This is affecting our application as well.  Cron died sometime shortly
after 2009/06/11 05:45:57 UTC.


On Jun 11, 9:47 am, vivpuri vivpu...@gmail.com wrote:
 Okay someone else also has the same issue 
 -http://groups.google.com/group/google-appengine/browse_thread/thread/...

 On Jun 11, 9:40 am, vivpuri vivpu...@gmail.com wrote:

  I added new cron jobs couple of hours back, and now neither the new
  nor the existing jobs are running. All the jobs either have the
  schedule of every 5 minutes (UTC) or every 1 minutes (UTC) . Any
  idea what might be the issue here?

--~--~-~--~~~---~--~~
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@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] I changed my gmail account, and now I can't verify account by sms

2009-06-11 Thread Luis

Hi everybody,

I have the following problem: I changed my old gmail account
moranl...@gmail.com to lemo...@gmail.com (this one). I created an
application moranluis with moral...@gmail.com and I can't delete it.

So the problem is that I can't create a new application under
lemo...@gmail.com account, because my phone number has already been
used in my old account.

I'd like to delete old application moranluis (which was never
developed), or delete App Engine account for moranl...@gmail.com, to
begin using App Engine with lemo...@gmail.com, using my phone number
(which hasn't changed).

How can I do this? Can someone help me?

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-appengine@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] JSF not rendering on appengine

2009-06-11 Thread Trixtan

Hello!!!

I am trying to get JSF + Facelets working in appengine.
Well in local it goes super, but when I try to call the same page on
the uploaded application, JSF doesn't render.
Maybe anyone has had the same issue???
Thanks

Enrico

--~--~-~--~~~---~--~~
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@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: Cron Jobs not running

2009-06-11 Thread chewbocka

same here, the last one I've seen fire off was 10:00 UTC this morning.

On Jun 11, 2:24 am, Brian bsmcconn...@gmail.com wrote:
 Hi.

 I have noticed that several cron jobs associated with my app have not
 run for several hours (they are on schedules ranging from 1 to 10
 minutes. I have not changed the scripts or the cron.yaml file

 Is there an issue with the cron service? (it should be included in the
 system status display). We use cron to index RSS feeds, so if it stops
 working the index gets stale pretty quickly.

 Thanks.

 -B

--~--~-~--~~~---~--~~
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@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: Cron Jobs not running

2009-06-11 Thread chewbocka

same here, everything seems to be down but the times they stopped
running differ.

On Jun 11, 2:24 am, Brian bsmcconn...@gmail.com wrote:
 Hi.

 I have noticed that several cron jobs associated with my app have not
 run for several hours (they are on schedules ranging from 1 to 10
 minutes. I have not changed the scripts or the cron.yaml file

 Is there an issue with the cron service? (it should be included in the
 system status display). We use cron to index RSS feeds, so if it stops
 working the index gets stale pretty quickly.

 Thanks.

 -B

--~--~-~--~~~---~--~~
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@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: Cron jobs not running

2009-06-11 Thread Philippe

only 2 persons reported that issue.
then, I will be the 3rd one ..
Last time a cron job worked for me was : 06-11 12:16AM
I hope someone at google can solve it, starts to be long :/

On Jun 11, 5:39 pm, vivpuri vivpu...@gmail.com wrote:
 Can someone from Google shed some light on this issue. None of my jobs
 have run in the past 4 hours. As you can guess, this is going to cause
 major data issues cause of timeouts when the jobs start again and
 suddenly need to process large amount of data.

 Thanks

 On Jun 11, 9:47 am, vivpuri vivpu...@gmail.com wrote:

  Okay someone else also has the same issue 
  -http://groups.google.com/group/google-appengine/browse_thread/thread/...

  On Jun 11, 9:40 am, vivpuri vivpu...@gmail.com wrote:

   I added new cron jobs couple of hours back, and now neither the new
   nor the existing jobs are running. All the jobs either have the
   schedule of every 5 minutes (UTC) or every 1 minutes (UTC) . Any
   idea what might be the issue here?

--~--~-~--~~~---~--~~
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@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: image protection

2009-06-11 Thread Wooble

The traditional method is to check if the referer header is from
another domain and if it is, don't serve the image.

On Jun 11, 12:57 pm, pranny pra...@gmail.com wrote:
  a few access checks

 I would like to know what access checks ?

 --
 Pranav Prakash

 This life is more than ordinary

 On Jun 11, 1:32 pm, Barry Hunter barrybhun...@googlemail.com wrote:

  not if you have defined the images as static in your app.yaml (or
  similar in java)

  but if your images are served dynamically (using python/java) then you
  can.

  static content is served from a different system to code and so you
  get little control. but serving them off the code system you get
  pretty much full control.

  you could write a small script (easiest in python) to act as a static
  handler, that just reads the file from disk (any resource not declared
  as static is readable on the code server) and does a few access checks
  and returns approriate headers.

  On Jun 11, 4:03 am, chimpsbeware chimpsbew...@hotmail.com wrote:

    Im using google app engine to store/serve my images for my site. For
   example I usehttp://static.mydomain.com/images/myimage.jpgtoshowmy
   images that i've uploaded here.

   I would like to know if hotlink protection is possible on these
   images? is this at all possible? I would like for my pictures to be
   shown on my domain only.

   I hope that someone can help me with this.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@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: Monitoring Server on GAE?

2009-06-11 Thread shlomo

Thanks for the pointers, Barry.

I was thinking of something more comprehensive, something along the
lines of Munin or Cacti, which collects the data and also displays
dashboards, implemented in Python or Java (obviously) for GAE.

It seems like an ideal use case for GAE:
- low bandwidth
- minimal CPU requirements
- web-based
- push (URLFetch) and pull (Requests) to collect data point samples

If this doesn't exist yet, it really should

On Jun 11, 6:00 pm, Barry Hunter barrybhun...@googlemail.com wrote:
 If what you want to monitor can be monitored by a URLfetch (a HTTP URL
 you want to verify), then GAE will probably work quite well.

 You can have a process spawed by the scheduler (aka Cron), which trys
 to connect to a perdertmined set of URLs. If any fail or dont return
 the expected result, send of an email.

 If you want SMS or similar, just find a email to SMS gateway.

 On 10/06/2009, shlomo shlomo.swid...@gmail.com wrote:





   It seems to me that GAE is perfectly suited to hosting an IT-
   infrastructure monitoring server, for example to monitor my in-the-
   cloud services and alert me when something goes wrong.

   I know Hyperic has a tool to monitor GAE Apps - but I am interested in
   the reverse: a GAE-based service that monitors my servers (which are
   hosted elsewhere).

   Googling for this doesn't show anything relevant.

   Anyone heard of such a thing?

   Thanks.

 --
 Barry

 -www.nearby.org.uk-www.geograph.org.uk-
--~--~-~--~~~---~--~~
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@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] View this page Google App Engine Open Source Projects

2009-06-11 Thread Jason (Google)

Added two open source projects

Click on 
http://groups.google.com/group/google-appengine/web/google-app-engine-open-source-projects
- or copy  paste it into your browser's address bar if that doesn't
work.
--~--~-~--~~~---~--~~
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@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: A question about google app engine - thread id for performance profiling

2009-06-11 Thread Andy Freeman

 While one instance has only one thread, there could be many instances
serving the same number of clients simultaneously.

Yes, and those separate instances are not threads, they're processes.
More important,
they may be running on different machines, so neither thread ids nor
process ids are guaranteed to be unique.  That's why using thread or
process ids as identifiers is guaranteed to be wrong in any system
that uses multiple machines, such as app engine.

Depending on how you're aggregating, one of the uuid variants might be
appropriate.

I tried to store some data at the thread local objects pool (just as I
   do with Java)

You're assuming persistence in an environment where persistence is
unlikely.

However, to the extent that there is persistence, you can simply store
stuff in memory because a given process may be used to run a number of
instances, one after another.  (Not simultaneously - simultaneous
instances run in different processes, possibly on different
machines.)  While an instance is running, it can see what other
instances that ran in the same process left in memory after they
finished.

However, said stuff in memory for a given process is only accessible
to the currently running instance.

On Jun 11, 6:58 am, Liang Han liang@gmail.com wrote:
 Nick,

 While one instance has only one thread, there could be many instances
 serving the same number of clients simultaneously.
 Thus, the metric from the multiple instances will be messed up,
 because the metric logs are recorded in the global area, such as
 memcache, or as the debug log.  (is there some area to store data per
 instance? or is there a way to get the instance id?)

 There shouldn't be any barrier for me to release the source code, but
 firstly, it has to work.

  App Engine apps run in a single-threaded environment. That is, a given
  interpreter instance will only ever be processing one request at any given
  time. Thus, you don't need to worry about concurrent invocations.

 On Jun 11, 6:15 pm, Nick Johnson (Google) nick.john...@google.com
 wrote:



  Hi Liang Han,

  (Replies inline)

  On Thu, Jun 11, 2009 at 2:15 AM, Liang Han liang@gmail.com wrote:

   A simple application, which is running at the google app engine,
   visits the datastore, and uses the urlfetch service as well.    I want
   to add the 6 hooks into the code to get the timestamp when code is
   running at that checkpoint, thus the transactions performance
   profiling can be done by calculating with the timestamps.

   Here's the flow in pseudo code:

   class MainPage(webapp.RequestHandler):
    def get(self):
      -- 1. hook at program starting
      do something ...
      -- 2. hook before fetching url
      result = urlfetch.fetch(url=http://...;)
      -- 3. hook after fetching url
      do something ...
      -- 4. hook before visiting datastore
      visit datastore
      -- 5. hook after visiting datastore
      do something
      -- 6. finish hook

   Although it's straightforward to just add the hook code in the
   original code, however, in order to minimize the modification to
   existing code, I use the following approaches:

   1. Use apiproxy_stub_map.apiproxy.GetPreCallHooks().Append to add
   hooks to get data at checkpoint 2, 3, 4, 5.   I referenced the article
  http://code.google.com/appengine/articles/hooks.html

   2. Monkeypatch google.appengine.ext.webapp.WSGIApplication (assuming
   the original code is written with webapp framework) by overwritting
   def __call__(self, environ, start_response).  I just add my code
   before and after calling the real method.   Therefore, I can get data
   at checkpoint 1 and 6.     The orignial code just need to modified to
   use the subclass of  WSGIApplication.

  Cool stuff you're working on! Are you planning on releasing it for others to
  use?

   Here's the problem I run into.
   Since multiple users might be visiting the same application at the
   sametime, in order not to mess up data from different users, we must
   be able to get a same id, such as thread id for the 6 checkpoints of
   each user.  However, I cannot achieve this.

  App Engine apps run in a single-threaded environment. That is, a given
  interpreter instance will only ever be processing one request at any given
  time. Thus, you don't need to worry about concurrent invocations.

  -Nick Johnson

   I have tried to use thread.get_ident(), but it always returns -1.  (I
   know google app engine doesn't allow create new thread, but it doesn't
   make any sense to return -1 for threads created by google engine
   itself ...)

   I tried to store some data at the thread local objects pool (just as I
   do with Java), but seems the thread.local is not the same with the one
   in Java.    I'm not familiar with python anyway, maybe I miss
   something or misunderstand something.

   Do you guys have any idea about this?    Thanks very much in advance!- 
   Hide quoted text -

 - Show quoted text -

[google-appengine] 503 errors from urlfetch.fetch(query)

2009-06-11 Thread michael

this seemed to coincide with the recent maintenance event

http://googleappengine.blogspot.com/2009/06/changing-quotas-to-keep-most-apps.html

any 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-appengine@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: key name (String) vs key id (long) performance

2009-06-11 Thread cryb

Hi Rodrigo.. Indeed, what you said is correct... however, bigtable
internals can use different optimizations/lookup algorithms/key
structure representation for different key types like key ids and key
names (even if their logical structure appears to be identical)...
Please note that I don't say it does, but I just want to make sure
that both kind of keys behave the same in therms of lookup
performance.

On Jun 11, 8:57 pm, Rodrigo Moraes rodrigo.mor...@gmail.com wrote:
 On Thu, Jun 11, 2009 at 2:19 PM, cryb wrote:
  Is there an official position / benchmark about what type of keys
  issue the best performance as for queries?
  Are key ids (long) being looked up faster than key names (string) -
  assuming that both have comparable sizes in bytes?

 There's no difference. Both key_name's and id's are used internally to
 build a Key from path, which is then used to get the entity. So, when
 you do Model.get_by_id(1) or Model.get_by_key_name('a'), you're
 actually doing Model.get(Key.from_path('Model', 1)) or
 Model.get(Key.from_path('Model', 'a')) - essentially the same thing.

 -- rodrigo
--~--~-~--~~~---~--~~
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@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: key name (String) vs key id (long) performance

2009-06-11 Thread Rodrigo Moraes

On Thu, Jun 11, 2009 at 4:52 PM, cryb wrote:
 Hi Rodrigo.. Indeed, what you said is correct... however, bigtable
 internals can use different optimizations/lookup algorithms/key
 structure representation for different key types like key ids and key
 names (even if their logical structure appears to be identical)...
 Please note that I don't say it does, but I just want to make sure
 that both kind of keys behave the same in therms of lookup
 performance.

Hi cryb,

Someone asked this a while ago on irc. There's no difference.

All get(key) have in theory the same lookup cost. Meaning that
get_by_key_name() and get_by_id() have the same performance.

-- rodrigo

--~--~-~--~~~---~--~~
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@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] Cron always shows Hasn't run yet

2009-06-11 Thread Kyle Jensen


I just updated my project with a new cron job and now none of my cron
jobs will work.  They are correctly parsed and show up in the
dashboard, but always have Hasn't run yet

I even set them to every 1 minute, just to force them, without luck!
Any suggestions?

(Previous to this, we've successfully used cron for weeks!)

Thanks! Kyle
(app id: psgazettes)
--~--~-~--~~~---~--~~
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@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: DB design best practices

2009-06-11 Thread n8gray

On Jun 10, 5:21 pm, Tony fatd...@gmail.com wrote:
 The biggest question I wished I'd asked myself before designing my app
 is: what sorts of models will I want to update together in
 transactions?  Because in Datastore you can only run transactions on
 entities in the same entity group (meaning each entity is an ancestor/
 child of the others).  So if you need certain operations to maintain
 consistency, for instance add new Turn entity, update Game's
 current_player you will need to plan that ahead of time (perhaps
 assigning each Turn as a child of the Game it takes place in).

Right, I came to the same conclusion.  The game's state is the only
super-entity that needs to be updated atomically, so I decided to
group it together.

 Other than that, just remember that writing to Datastore is very
 expensive (as is fetching large numbers of entities from a query) -
 you will want to figure out ways to retrieve entities by key as much
 as possible.

I'll keep that in mind.  It would be nice to have some rule of thumb
advice on when and how to use memcache.

Thanks,
-n8
--~--~-~--~~~---~--~~
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@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: Cron jobs not running

2009-06-11 Thread Piotr Sikora

Same here:
every 1 minutes (UTC)
2009/06/11 07:09:57 on time Success

It's quite strange that they stopped working on differnet times.

On 11 Cze, 20:39, Philippe philippe.cr...@gmail.com wrote:
 only 2 persons reported that issue.
 then, I will be the 3rd one ..
 Last time a cron job worked for me was : 06-11 12:16AM
 I hope someone at google can solve it, starts to be long :/

 On Jun 11, 5:39 pm, vivpuri vivpu...@gmail.com wrote:



  Can someone from Google shed some light on this issue. None of my jobs
  have run in the past 4 hours. As you can guess, this is going to cause
  major data issues cause of timeouts when the jobs start again and
  suddenly need to process large amount of data.

  Thanks

  On Jun 11, 9:47 am, vivpuri vivpu...@gmail.com wrote:

   Okay someone else also has the same issue 
   -http://groups.google.com/group/google-appengine/browse_thread/thread/...

   On Jun 11, 9:40 am, vivpuri vivpu...@gmail.com wrote:

I added new cron jobs couple of hours back, and now neither the new
nor the existing jobs are running. All the jobs either have the
schedule of every 5 minutes (UTC) or every 1 minutes (UTC) . Any
idea what might be the issue here?- Ukryj cytowany tekst -

 - Pokaż cytowany tekst -

--~--~-~--~~~---~--~~
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@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] Request on diffrent tcp port

2009-06-11 Thread ratchet

Hi everyone

Is it possible to make HTTP requests on other ports than 80 and 443,
preferably with pyhton.
I really need to make requests on port 8080.

Pls help!

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-appengine@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: Cron Trouble

2009-06-11 Thread Kyle Jensen

Ditto -- cron is not running for me

On Jun 11, 3:27 pm, Brian bsmcconn...@gmail.com wrote:
 My cron jobs have stopped running for no apparent reason. I have not
 changed the apps, and when I go to view cron status in the console it
 shows that it has not tried to run them. This has been the case for
 over a day now.

 Appid is wwlapi

 On May 15, 10:52 am, Jason (Google) apija...@google.com wrote:

  Hi Alex. Can you share your app ID so I can take a closer look?

  Thanks,
  - Jason

  On Tue, May 12, 2009 at 3:12 PM, d43m0n d43...@gmail.com wrote:

   The short story:
    It doesn't work!

   The long story:

   From dashboard :
   /cron/report - daily mail report - every day 16:30 (UTC) - Hasn't run
   yet

   The cron job was created and uploaded 3 days ago. Last update (though
   I didn't really change anything about the cron job, just shows up on
   admin logs) was 1 day ago.

   app.yaml
   ...
   - url: /cron/report
    script: cron_report.py
    login: admin
   ...

   cron.yaml
   cron:
   - description: daily mail report
    url: /cron/report
    schedule: every day 16:30

   The webapp's authentication is configured to only work with users from
   a certain Google Apps domain. The cron script (cron_report.py) works
   perfectly, and has been tested on live version by simply accessing the
   url, but as the dashboard says, it hasn't run yet.

   Can anyone help ?

   Thanks
   Alex


--~--~-~--~~~---~--~~
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@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: DB design best practices

2009-06-11 Thread n8gray

Hi Nick,

On Jun 11, 4:19 am, Nick Johnson (Google) nick.john...@google.com
wrote:
 Hi n8gray,

 Excellent question!

 Given the amount of information you're likely to store against Players2Games
 (GamePlayers, perhaps?), and the number of games any one player may have,
 and the likely access patterns, I would suggest sticking with a separate
 model for it.

Interesting -- I came to the opposite conclusion but maybe my
reasoning isn't sound.  Here's what I've got right now (untested, so
it may contain syntax errors and such):

class GameState(VersionedModel):
# Parent should be a GameMeta
scores = db.ListProperty(int)
other gritty details of the current game state

class GameTurn(VersionedModel):
# Parent should be a GameMeta
creationDate = db.DateTimeProperty(auto_now_add=True)
player = db.ReferenceProperty(User)
turn_score = db.IntegerProperty()
more gritty details about this turn

This is the stuff you only care about if you're currently playing the
game.  The scores may be better placed in GameMeta -- I haven't
decided yet.

class GameMeta(VersionedModel):
name = db.StringProperty(required=True)
password = db.StringProperty(indexed=False)
creationDate = db.DateTimeProperty(auto_now_add=True)
isActive = db.BooleanProperty(default=True)
# In case of tie, there can be more than one winner
winners = db.ListProperty(db.Key, default=None)
playerCount = db.IntegerProperty(required=True)
currentPlayer = db.ReferenceProperty(User, required=True)
currentPlayerNumber = db.IntegerProperty(default=0)
gameState = db.ReferenceProperty(GameState)
players = db.ListProperty(db.Key)

GameMeta holds all the metadata of the game.  I moved the players list
in here (despite watching Brett Slatkin's I/O talk on list properties)
because I reasoned that a) the serialization/deserialization overhead
for 4 elements wouldn't be too bad, and b) You're going to want the
player list every time you retrieve the game anyway.  If you think
this is unwise, however, I'm interested to hear why.


 The main lesson for using the datastore instead of a relational database is
 simply to denormalize and precalculate. In this case, that likely means
 storing running totals (number of turns, score, etc) against the
 Players2Games entity, instead of calculating them when needed as you might
 in a relational database.

Yeah, I was planning to do a fair bit of denormalization.

 Tony's point about entity groups is an excellent one. Based on the sort of
 updates you're likely to want to do, and the access patterns in an app like
 this, I would suggest making the Players2Games entities child entities of
 the related Games entity, and making the Turns entities likewise child
 entities of their Games entity. This way, each game has its own entity
 group, so you can make atomic (transactional) updates across the whole game
 with ease.

At least I got that part right!

Thanks,
-n8

--~--~-~--~~~---~--~~
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@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] Using __key__ and SearchableModel

2009-06-11 Thread acuth

Hi everyone,

just caught up with one of those Google IO videos about developing
apps on GAE. I was already using separated out index-blocks so that I
could restrict what was indexed for SearchableModel. Now I just want
to return the keys rather than the object themselves.

Does anybody know if it is possible to return just the keys - as per
SELECT __KEY__ or Query(keys_only=True) - on queries/searches using
the SearchableModel class, for example:

from google.appengine.ext import search

class ItemIB(search.SearchableModel):
name = db.StringProperty()


# search for items with name that matches q, but returns entire
ItemIB
query = ItemIB.all().search(q)

# try replacing Model.all() with db.Query(Model) doesn't work
query = db.Query(ItemIB,keys_only=True).search(q)



Any help very gratefully received, Adrian

--~--~-~--~~~---~--~~
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@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: server error 500 update_indexes

2009-06-11 Thread Jeff S (Google)
Hi chemuto,

At this point we're considering requests for more than 100 indices on a
case-by-case basis, would you mind sending me your index config file (email
would be fine)?

Thank you,

Jeff

On Wed, Jun 10, 2009 at 6:38 AM, chemuto chem...@gmail.com wrote:


 Hi Jeff,

 It seems to be working fine now, thanks.

 My app has between 80 and 90 indexes now. I might need to exceed
 100... is that possible?

 Thanks,
 chemuto

 On 3 jun, 04:41, Jeff S (Google) j...@google.com wrote:
  Hi chemuto,
 
  I've reset the indicies quota for your app. How many indicies does your
  application have? Please let me know if the issue is not resolved.
 
  Thank you,
 
  Jeff
 
 
 
  On Sun, May 31, 2009 at 4:26 AM, chemuto chem...@gmail.com wrote:
 
   Hi,
 
   I'm getting an error when updating index definitions. I´ve been having
   the same error for a couple of days. I can upload the application, but
   not the indexes.
 
   My ap-id is: masquerecetas
 
   D:\appcfg.py update_indexes svn
   Uploading index definitions.
   Error 500: --- begin server output ---
 
   Server Error (500)
   A server error has occurred.
   --- end server output ---
 
   Can anyone help me please?
 
   Thanks,
   chemuto
 


--~--~-~--~~~---~--~~
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@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: Cron Jobs not running

2009-06-11 Thread Kyle Jensen

ditto, cron is down 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-appengine@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] Naked domains and Network Solutions

2009-06-11 Thread Bemmu

I am trying to use Google App Engine to host my pre-existing site, and
got it to work on fi.bemmu.com, but not bemmu.com. I discovered
App Engine does not support naked domains like bemmu.com, and in the
instructions I was told to forward bemmu.com to fi.bemmu.com (I use
fi instead of www).

My domain is hosted at Network Solutions (AFAIK at the time it was the
only option). I tried to do the forwarding, but the settings page
tells me that Web Forwarding cannot point to its parent domain. Is
there a way to accomplish this so that my visitors going to bemmu.com
would not hit Network Solutions' under construction page?
--~--~-~--~~~---~--~~
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@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-orgranize user data: w or w/o view?

2009-06-11 Thread mclovin

I wrote up a prototype for an application in python and was porting it
over to django/app_engine. One of the main routines of my program
though is that it goes in and modifies user data. I know I probably
shouldn't write a view for this because nothing is being viewed (it is
entirely backend) so I am wondering how do i call a function to modify
data in the datastore w/o a view or w/o going to a URL. Or is it fine
just to use a view?

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-appengine@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: urlFetch does not retrieve accentuated characters ?

2009-06-11 Thread Alain de Raynal
Here is a simple fix to the jsp page from the previous post:

BufferedReader in = new BufferedReader(new
InputStreamReader(content,ISO-8859-1));


Thanks Yohann!

On Mon, Jun 8, 2009 at 10:04 PM, Alain de Raynal aderay...@gmail.comwrote:

 Below is a short jsp page that illustrates the problem I'm facing
 the result on my local dev environment is Adrián Beltré
 the result on the gae servers is Adri��n Beltr��

 can somebody explain the difference ?
 is there a way to decode these string to get the accents back ?

 %@ page contentType=text/html;charset=UTF-8 language=java %
 %@ page import=java.io.BufferedReader %
 %@ page import=java.io.InputStream %
 %@ page import=java.io.InputStreamReader %
 %@ page import=java.net.URL %
 html
 body
 %
 String urlString = http://en.wikipedia.org/wiki/Adri%C3%A1n_Beltr%C3%A9;;
 InputStream content = new URL(urlString).openStream();
 BufferedReader in = new BufferedReader(new InputStreamReader(content));
 String line;
 while ((line = in.readLine()) != null) {
  if (line.contains(h1 id=\firstHeading\)){
 out.println(line);
  }
 }
 %
 /body
 /html

 On Fri, Jun 5, 2009 at 9:41 PM, Alain de Raynal aderay...@gmail.comwrote:

 Hello again,
 one week later, the problem is slightly different:
 When I tried the same operation from the gae servers, urlFetch returns

 Adri�n B�ltre

 instead of the expected Adrián Béltre
 The accentuated characters are no longer recognized...

 Does anybody know what has changed in the past week ?

 Thanks in advance,
 Alain




 On Sun, May 31, 2009 at 2:41 PM, Alain de R aderay...@gmail.com wrote:

 Hi everyone,

 I've noticed that when I try to retrieve the content of a web page
 (for instance: http://sports.yahoo.com/mlb/players/6039)
 the same code returns
 Adrián Béltre from my dev/eclipse environment
 and
 Adrian Beltre from GAE servers

 It's important for me to retrieve the content of a web page with the
 accentuated characters.
 is there a way around this ?

 Thanks in advance,
 Alain





--~--~-~--~~~---~--~~
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@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] entity at the front of index, should not be there, WILL NOT MOVE.

2009-06-11 Thread Ben Nevile

Okay, I'm just going to leave my app in a broken state so that someone
from Google can look at this.  I've been dealing with these broken
indices for a long time.  Shouldn't we be able to trust the indices?

Here's a link in the datastore explorer to the GQL query that's messed
up.  Hopefully a Googler will have the admin access to see this view.

http://appengine.google.com/datastore/explorer?app_id=friendmonthviewby=gqlkind=FacebookUserquery=SELECT+*+FROM+FacebookUser+where+expired_fotm%3DTrue+order+by+last_nudged_at

Note that the entity with ID/Name 128120 is the first entity in the
index even though there are thousands of other entities that should be
in front of it.  I have tried re-saving this entity many times, with
the same and then different values, but it is stuck at this position
in the index.  In the past the only way I've been able to fix the
index was by deleting the entity -- not cool.

Please would someone from Google tell us what's up here, and if you're
really kind, copy the message to my via email as well?

Thanks in advance.  I 3 GAE and want to 3 it even more.
Ben
--~--~-~--~~~---~--~~
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@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: image protection

2009-06-11 Thread pranny

Aah yea, great. Thanks :-)

On Jun 11, 11:34 pm, Wooble geoffsp...@gmail.com wrote:
 The traditional method is to check if the referer header is from
 another domain and if it is, don't serve the image.

 On Jun 11, 12:57 pm, pranny pra...@gmail.com wrote:



   a few access checks

  I would like to know what access checks ?

  --
  Pranav Prakash

  This life is more than ordinary

  On Jun 11, 1:32 pm, Barry Hunter barrybhun...@googlemail.com wrote:

   not if you have defined the images as static in your app.yaml (or
   similar in java)

   but if your images are served dynamically (using python/java) then you
   can.

   static content is served from a different system to code and so you
   get little control. but serving them off the code system you get
   pretty much full control.

   you could write a small script (easiest in python) to act as a static
   handler, that just reads the file from disk (any resource not declared
   as static is readable on the code server) and does a few access checks
   and returns approriate headers.

   On Jun 11, 4:03 am, chimpsbeware chimpsbew...@hotmail.com wrote:

 Im using google app engine to store/serve my images for my site. For
example I usehttp://static.mydomain.com/images/myimage.jpgtoshowmy
images that i've uploaded here.

I would like to know if hotlink protection is possible on these
images? is this at all possible? I would like for my pictures to be
shown on my domain only.

I hope that someone can help me with this.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@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: Cron Trouble

2009-06-11 Thread frog

It seems I have same problem. app ID: wea-srv

I set up to run scripts every 5 and 6 minutes, but it doesn't work
(Hasn't run yet) already at least for 6-8 hours.

On May 15, 9:52 pm, Jason (Google) apija...@google.com wrote:
 Hi Alex. Can you share your app ID so I can take a closer look?

 Thanks,
 - Jason

 On Tue, May 12, 2009 at 3:12 PM, d43m0n d43...@gmail.com wrote:

  The short story:
   It doesn't work!

  The long story:

  From dashboard :
  /cron/report - daily mail report - every day 16:30 (UTC) - Hasn't run
  yet

  The cron job was created and uploaded 3 days ago. Last update (though
  I didn't really change anything about the cron job, just shows up on
  admin logs) was 1 day ago.

  app.yaml
  ...
  - url: /cron/report
   script: cron_report.py
   login: admin
  ...

  cron.yaml
  cron:
  - description: daily mail report
   url: /cron/report
   schedule: every day 16:30

  The webapp's authentication is configured to only work with users from
  a certain Google Apps domain. The cron script (cron_report.py) works
  perfectly, and has been tested on live version by simply accessing the
  url, but as the dashboard says, it hasn't run yet.

  Can anyone help ?

  Thanks
  Alex



--~--~-~--~~~---~--~~
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@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: Naked domains and Network Solutions

2009-06-11 Thread Bagicha L

how do i get it my app say 'blah' hosted at blah.appspot.com to say
something like blah.mydomain.com? looks like you have it working?
thanks!

On Jun 11, 5:01 pm, Bemmu bemmu@gmail.com wrote:
 I am trying to use Google App Engine to host my pre-existing site, and
 got it to work on fi.bemmu.com, but not bemmu.com. I discovered
 App Engine does not support naked domains like bemmu.com, and in the
 instructions I was told to forward bemmu.com to fi.bemmu.com (I use
 fi instead of www).

 My domain is hosted at Network Solutions (AFAIK at the time it was the
 only option). I tried to do the forwarding, but the settings page
 tells me that Web Forwarding cannot point to its parent domain. Is
 there a way to accomplish this so that my visitors going to bemmu.com
 would not hit Network Solutions' under construction page?

--~--~-~--~~~---~--~~
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@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: Naked domains and Network Solutions

2009-06-11 Thread Antoniov

On 6月12日, 上午8时01分, Bemmu bemmu@gmail.com wrote:

 tells me that Web Forwarding cannot point to its parent domain

I didn't see how this could happen, what you did was fowarding a
parent domain to a child domain, NOT backwards.
 Did you try to foward fi.bemmu.com to bemmu.com? If not, you should
consult Network Solutions for answers.

--~--~-~--~~~---~--~~
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@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: Re-orgranize user data: w or w/o view?

2009-06-11 Thread Antoniov

Just password protect it, or use a cron job.
App Engine Console could be helpful too.
http://con.appspot.com

On 6月12日, 上午9时03分, mclovin hanoo...@gmail.com wrote:
 I wrote up a prototype for an application in python and was porting it
 over to django/app_engine. One of the main routines of my program
 though is that it goes in and modifies user data. I know I probably
 shouldn't write a view for this because nothing is being viewed (it is
 entirely backend) so I am wondering how do i call a function to modify
 data in the datastore w/o a view or w/o going to a URL. Or is it fine
 just to use a view?

 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-appengine@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 there is no way to build a key id?

2009-06-11 Thread Antoniov

Use the code:
s = Story(key_name=xzy123)
Then you create an entity with the key name xzy123.

Check this: 
http://code.google.com/intl/en-US/appengine/docs/python/datastore/keysandentitygroups.html

On 6月12日, 上午1时28分, cryb cbuti...@gmail.com wrote:
 Does anyone know why it is possible to build a key name but NOT a key
 id? I know key IDs are used as autoincrements, but why can't I just
 override this mechanism and build my own key id?
 Suppose I want to overwrite an existent entry in my table that has a
 key id I know, and also I want to keep that key id after update...
 because I can't just build a key id, I am forced to fetch that entity,
 modify it and write it back, instead of just write the updated entity
 with the key id I already know - so an additional read to the
 datastore.
 Is there an obscure reason for that? (both key names and key ids are
 prefixed with appid/kind as far as I know so there is no chance of
 collision with other apps/kinds)

--~--~-~--~~~---~--~~
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@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: Naked domains and Network Solutions

2009-06-11 Thread nearmars

@Bemmu
If I understand your question correctly you want to redirect incoming
traffic to your naked domain (bemmu.com) to your gae domain
(fi.bemmu.com). I would use a .htaccess file mod_rewrite.

Like:
RewriteEngine on
RewriteRule (.*) http://fi.bemmu.com [R=301,L]

Here's a cheat sheet for creating 301 redirects w/ many different
technologies.



On Jun 11, 8:01 pm, Bemmu bemmu@gmail.com wrote:
 I am trying to use Google App Engine to host my pre-existing site, and
 got it to work on fi.bemmu.com, but not bemmu.com. I discovered
 App Engine does not support naked domains like bemmu.com, and in the
 instructions I was told to forward bemmu.com to fi.bemmu.com (I use
 fi instead of www).

 My domain is hosted at Network Solutions (AFAIK at the time it was the
 only option). I tried to do the forwarding, but the settings page
 tells me that Web Forwarding cannot point to its parent domain. Is
 there a way to accomplish this so that my visitors going to bemmu.com
 would not hit Network Solutions' under construction page?

--~--~-~--~~~---~--~~
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@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: Using __key__ and SearchableModel

2009-06-11 Thread Antoniov

SELECT [* | __key__ ] FROM entity
[WHERE condition [AND condition ...]]
[ORDER BY property [ASC | DESC] [, property [ASC | DESC] ...]]
[LIMIT [offset,]count]
[OFFSET offset]
[HINT (ORDER_FIRST | HINT FILTER_FIRST | HINT ANCESTOR_FIRST)]

Is this what you're looking for?


On 6月12日, 上午7时09分, acuth adrian.cuthb...@gmail.com wrote:
 Hi everyone,

 just caught up with one of those Google IO videos about developing
 apps on GAE. I was already using separated out index-blocks so that I
 could restrict what was indexed for SearchableModel. Now I just want
 to return the keys rather than the object themselves.

 Does anybody know if it is possible to return just the keys - as per
 SELECT __KEY__ or Query(keys_only=True) - on queries/searches using
 the SearchableModel class, for example:

 from google.appengine.ext import search

 class ItemIB(search.SearchableModel):
 name = db.StringProperty()

 
 # search for items with name that matches q, but returns entire
 ItemIB
 query = ItemIB.all().search(q)

 # try replacing Model.all() with db.Query(Model) doesn't work
 query = db.Query(ItemIB,keys_only=True).search(q)
 

 Any help very gratefully received, Adrian

--~--~-~--~~~---~--~~
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@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] How to access object passed by HTML in python

2009-06-11 Thread Gaurav

Hi,

I want to pass the values to insert query in python. I am passing a
xml file as input so that python will read the input from XML and
insert the values in tables on google app engine. I am facing a
blocker where I am not getting the object of that file uploader in
python. Has anybody worked on this? Kindly help as soon as possible.

This is how I am creating HTML
self.response.out.write(
  form action=/sign method=post enctype=multipart/form-
data
divinput type=file name=datafile size=40/div
divinput type=submit value=Sign Guestbook/div
  /form
/body
  /html)

Regards,
Gaurav Joshi

--~--~-~--~~~---~--~~
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@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] How to access form input where type=File

2009-06-11 Thread Gaurav

Hi,

I am using google app engine and i intend to read an XML file provided
by HTML. I saw the  standard example on google app engine doc. I am
also using the HTML form and input type is File. So now I want to read
the attributes of XML which is browsed and submitted by HTML. Pls
help.


self.response.out.write(
  form action=http://www.cs.tut.fi/cgi-bin/run/~jkorpela/
echo.cgi enctype=multipart/form-data method=post
divinput type=file name=datafile size=40/div

So the file which will be submitted as datafile will an XML and I want
to read it.

Regards,
Gaurav Joshi

--~--~-~--~~~---~--~~
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@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] アプリケー ションのアップ

2009-06-11 Thread Matu01

”appcfg.py”でアプリケーションをアップしたいのですが上手くできません。
当方の環境(企業)はプロキシーなので、プロキシーはセットしました。
どうもアップしようとしているサイトが違うような気がしますが、”appcfg.py”ではサイトを指定できません。エンタープライズ版で独自のドメイ
ンになっています。

--~--~-~--~~~---~--~~
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@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
-~--~~~~--~~--~--~---