[google-appengine] importData in Google Spreadsheet fails with "DownloadError: ApplicationError: 5"

2008-10-24 Thread David

I wrote a simple application using the Google Data API Python client
library on App Engine to query a Google Spreadsheet.  It pulls a few
rows out of my Google spreadsheet just fine when I visit my App Engine
application from my browser (production, not development).  When I
visit my app from my browser, it returns this:

10/21/2008,11 10/22/2008,14 10/20/2008,5

I want to import that CSV data into another Google Spreadsheet.  When
I perform the same query in the other spreadsheet via importData, it
barfs the following into the spreadsheet:

Traceback (most recent call last):
  File "/base/python_lib/versions/1/google/appengine/ext/webapp/
__init__.py", line 499, in __call__
handler.get(*groups)
  File "/base/data/home/apps/mindcal/1.17/main.py", line 48, in get
dayTotals = sample.Run()
  File "/base/data/home/apps/mindcal/1.17/spreadsheetExample.py", line
167, in Run
self.list_feed = self.gd_client.GetListFeed(self.curr_key,
self.curr_wksht_id)
  File "/base/data/home/apps/mindcal/1.17/gdata/spreadsheet/
service.py", line 238, in GetListFeed
converter=gdata.spreadsheet.SpreadsheetsListFeedFromString)
  File "/base/data/home/apps/mindcal/1.17/gdata/service.py", line 700,
in Get
headers=extra_headers)
  File "/base/data/home/apps/mindcal/1.17/atom/service.py", line 176,
in request
data=data, headers=all_headers)
  File "/base/data/home/apps/mindcal/1.17/gdata/auth.py", line 456, in
perform_request
return http_client.request(operation, url, data=data,
headers=headers)
  File "/base/data/home/apps/mindcal/1.17/gdata/alt/appengine.py",
line 144, in request
method=method, headers=all_headers, follow_redirects=False))
  File "/base/python_lib/versions/1/google/appengine/api/urlfetch.py",
line 273, in fetch
raise DownloadError(str(e))
DownloadError: ApplicationError: 5

Why does my application behave differently when invoked from an
importData call vs. straight from a browser?  I'm guessing it's not a
time-out issue, because it doesn't time-out when I visit my app from
the browser, and it's doing nothing more complicated than pulling a
few rows out of a Google Spreadsheet.

Thanks,
David

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Removing unused application

2008-10-24 Thread Rafal Jonca

> You can not delete applications, but you can disable it, see instructions
> here:http://code.google.com/appengine/kb/general.html#disable

Thanks, I'll disable it for now when removing is not possible. I have
also starred the remove feature request.

Disabling is a good temporary solution and I know that full remove
because of Big Table is not so easy to do (you must remove all logs,
all app entities etc.).

Regards,
Rafał

>
> You can also remove yourself as an app developer, as long as there is at
> least one other app developer for that application.  If you are the only app
> developer, you may not remove yourself.
>
> -Marzia
>
> On Fri, Oct 24, 2008 at 11:55 AM, Rafal Jonca <[EMAIL PROTECTED]> wrote:
>
> > > You could give the application to someone else.
>
> > Well, that is not exactly the same ;)
>
> > I don't want to bother with the application and I want to get the
> > identifier free. I removed everything from datastore so I also want to
> > remove the code :)
>
> > I think I currently cannot do it and really do not know why ;)
>
> > > Seehttp://
> > groups.google.com/group/google-appengine/browse_thread/thread/...
>
> > > On Oct 24, 7:17 am, Rafal Jonca <[EMAIL PROTECTED]> wrote:
>
> > > > Hi,
>
> > > > I have an application on my account that i created only as a demo for
> > > > PyCon PL presentation. How to remove it free the slot? I tryied to
> > > > remove default version (not possible) and remove me as a developer
> > > > (also without success). Any suggestions?
>
> > > > Regards,
> > > > Rafal
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: querying across different entity types

2008-10-24 Thread David Symonds

On Fri, Oct 24, 2008 at 11:03 AM, darren <[EMAIL PROTECTED]> wrote:

> If i want to query all Schedules where schedule.stopRef.routeRef.name
> = "Broad Street"

You want to cache the value of .stopRef.routeRef.name in the schedule
instance when you save it, and then query *that* property. It's called
data model denormalisation, and it's something you'll need to do to
get the best performance out of App Engine's datastore.

> Do I have to query first the route, then the stop, then the schedule?
> If so, I dont understand the point of using references.  Can somebody
> explain the best approach to take when performing queries of this
> sort?

You usually want to reserve references for when you are only reading
them, rather than when you want to search on them.


Dave.

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: key().id() upper bound

2008-10-24 Thread jeremy

for what it's worth - the behind the scenes str->unicode conversion
which the api performs does indeed make it impossible to use the full
8*500 bits afforded a StringProperty... i think there ought to be a
ShortBlobProperty which allows byte encoding as str, but i guess for
now i can encode everything base 128.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Where to post problems with dev_appserver?

2008-10-24 Thread sketchor

Yes, I did use python26.  After seeing your post, I installed python25
in a different dir then set the PATH to it.  Invoking python showed
that it's version 2.5.2.

But, the command "dev_appserver.py helloworld/" still failed with
exact same error messages as with python26 only without the Warning
message.

Any ideas?

On Oct 24, 6:47 pm, Alexander Kojevnikov <[EMAIL PROTECTED]>
wrote:
> It looks like you are using Python 2.6 which added the depreciation
> warnings for some obsolete libraries.
>
> You need to use Python 2.5 with the SDK, it doesn't work with 2.6 yet.
>
> --www.muspy.com
>
> On Oct 25, 9:26 am, sketchor <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hello,
>
> > I just tried to start the Google App server and got these error
> > messages.  Is there a forum or discussion group for these types of
> > problems?  Thanks in advance for any pointers!
>
> > c:\soft\google\helloworld>dev_appserver.py helloworld/
>
> > C:\Program Files\Google\google_appengine\google\appengine\tools
> > \appcfg.py:40: DeprecationWarning: the sha module is deprecated; use
> > the hashlib module instead
> >   import sha
> > Traceback (most recent call last):
> >   File "C:\Program Files\Google\google_appengine\dev_appserver.py",
> > line 55, in 
> >     execfile(script_path, globals())
> >   File "C:\Program Files\Google\google_appengine\google\appengine\tools
> > \dev_appserver_main.py", line 358, in 
> >     sys.exit(main(sys.argv))
> >   File "C:\Program Files\Google\google_appengine\google\appengine\tools
> > \dev_appserver_main.py", line 306, in main
> >     config, matcher = dev_appserver.LoadAppConfig(root_path, {})
> >   File "C:\Program Files\Google\google_appengine\google\appengine\tools
> > \dev_appserver.py", line 2638, in LoadAppConfig
> >     raise AppConfigNotFoundError
> > google.appengine.tools.dev_appserver.AppConfigNotFoundError- 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Where to post problems with dev_appserver?

2008-10-24 Thread sketchor

I thought so too.  The file app.yaml is in the same dir as the
application helloworld.py.

Is there an environment variable or a default location for the root
dir of the application?

Thanks!

On Oct 24, 5:31 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> This is the right forum for these questions. This error seems to indicate
> that it can't find your app.yaml file.  You should make sure this file is in
> the root directory of your application.
>
> -Marzia
>
>
>
> On Fri, Oct 24, 2008 at 2:26 PM, sketchor <[EMAIL PROTECTED]> wrote:
>
> > Hello,
>
> > I just tried to start the Google App server and got these error
> > messages.  Is there a forum or discussion group for these types of
> > problems?  Thanks in advance for any pointers!
>
> > c:\soft\google\helloworld>dev_appserver.py helloworld/
>
> > C:\Program Files\Google\google_appengine\google\appengine\tools
> > \appcfg.py:40: DeprecationWarning: the sha module is deprecated; use
> > the hashlib module instead
> >  import sha
> > Traceback (most recent call last):
> >  File "C:\Program Files\Google\google_appengine\dev_appserver.py",
> > line 55, in 
> >    execfile(script_path, globals())
> >  File "C:\Program Files\Google\google_appengine\google\appengine\tools
> > \dev_appserver_main.py", line 358, in 
> >    sys.exit(main(sys.argv))
> >  File "C:\Program Files\Google\google_appengine\google\appengine\tools
> > \dev_appserver_main.py", line 306, in main
> >    config, matcher = dev_appserver.LoadAppConfig(root_path, {})
> >  File "C:\Program Files\Google\google_appengine\google\appengine\tools
> > \dev_appserver.py", line 2638, in LoadAppConfig
> >    raise AppConfigNotFoundError
> > google.appengine.tools.dev_appserver.AppConfigNotFoundError- 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Filter on date property in Data Viewer

2008-10-24 Thread ryan

ah, heh. i missed the "in Data Viewer" part of peter's original
question. never mind. :P
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Google App Engine Roadmap - Now Published

2008-10-24 Thread ryan

the short answer is, at least in the short to medium term, each app
will be limited to a single language. multi-language apps, sharing
datastores across apps, and inter-app RPCs are definitely interesting
ideas, and we've had fun discussing them internally. they're not on
the roadmap, though, and we're not working on them right now.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Implement AJAX in App Engine

2008-10-24 Thread Shay Ben Dov

The method I used doesn't work on IE 6.

If someone can verify that it works on IE 7 I'm not using it

or if I can get a guidance to make it compatible with IE it will be
excellent.

The reference I used is: 
http://www.tutorialized.com/view/tutorial/Prototype-and-AJAX-Tutorial/35281

The example is working on IE 6 the problem is probably with
setInterval

On Oct 13, 9:21 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote:
> "Ajax Requests"http://docs.jquery.com/Ajax
>
> "setInterval(func, interval, [args])"
> Calls the specified "func" (or a JavaScript statement) repeatedly per
> the "interval" interval, in milliseconds (ie: 1000=every 1 second).
> "func" must be surrounded in quotations, as if it was a string. Use
> the optional "args" to pass any number of arguments to the 
> function.http://www.javascriptkit.com/jsref/window.shtml
>
> On Oct 13, 1:00 pm, "David Symonds" <[EMAIL PROTECTED]> wrote:
>
> > On Sun, Oct 12, 2008 at 7:06 PM, Shay Ben Dov <[EMAIL PROTECTED]> wrote:
>
> > > I wonder is there a way to implement AJAX in an application like the
> > > easy way it is done in Rails:
>
> > > you write 1 line in the header to include  Javascript, defaults and
> > > other
>
> > > then you issue a simple command in your HTML body like:
>
> > App Engine is really a much lower level platform than that. You could
> > probably write your own AJAX stuff like you suggest using JavaScript,
> > being helped out by a library like jQuery.
>
> > Dave.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Filter on date property in Data Viewer

2008-10-24 Thread Alexander Kojevnikov

> you can't use dates as embedded constants inside
> GQL queries, which is probably what misled
> alexander, but you can use bound query parameters

That's what I meant, we cannot use datetime constants though they
could be useful. For example in the datastore viewer we would be able
to check for the users registered in the last week, etc.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Filter on date property in Data Viewer

2008-10-24 Thread ryan

you can definitely filter on date properties. you can't use dates as
embedded constants inside GQL queries, which is probably what misled
alexander, but you can use bound query parameters:

http://code.google.com/appengine/docs/datastore/gqlqueryclass.html#Introduction

or you can use the programmatic Query interface:

http://code.google.com/appengine/docs/datastore/queryclass.html
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Where to post problems with dev_appserver?

2008-10-24 Thread Alexander Kojevnikov

To the appengine team:

You really need to modify the Python version check in
dev_appserver.py. This became a recurring issue since Python 2.6 has
been launched.

To everyone else:

There's a ticket on 2.6 support, star it if Python 2.6 is important
for your project:
http://code.google.com/p/googleappengine/issues/detail?id=757

On Oct 25, 10:47 am, Alexander Kojevnikov <[EMAIL PROTECTED]>
wrote:
> It looks like you are using Python 2.6 which added the depreciation
> warnings for some obsolete libraries.
>
> You need to use Python 2.5 with the SDK, it doesn't work with 2.6 yet.
>
> --www.muspy.com
>
> On Oct 25, 9:26 am, sketchor <[EMAIL PROTECTED]> wrote:
>
> > Hello,
>
> > I just tried to start the Google App server and got these error
> > messages.  Is there a forum or discussion group for these types of
> > problems?  Thanks in advance for any pointers!
>
> > c:\soft\google\helloworld>dev_appserver.py helloworld/
>
> > C:\Program Files\Google\google_appengine\google\appengine\tools
> > \appcfg.py:40: DeprecationWarning: the sha module is deprecated; use
> > the hashlib module instead
> >   import sha
> > Traceback (most recent call last):
> >   File "C:\Program Files\Google\google_appengine\dev_appserver.py",
> > line 55, in 
> >     execfile(script_path, globals())
> >   File "C:\Program Files\Google\google_appengine\google\appengine\tools
> > \dev_appserver_main.py", line 358, in 
> >     sys.exit(main(sys.argv))
> >   File "C:\Program Files\Google\google_appengine\google\appengine\tools
> > \dev_appserver_main.py", line 306, in main
> >     config, matcher = dev_appserver.LoadAppConfig(root_path, {})
> >   File "C:\Program Files\Google\google_appengine\google\appengine\tools
> > \dev_appserver.py", line 2638, in LoadAppConfig
> >     raise AppConfigNotFoundError
> > google.appengine.tools.dev_appserver.AppConfigNotFoundError
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Frequent "Operation timed out" in appcfg.py

2008-10-24 Thread ryan

hi all. first, apologies for the inconvenience. we've discussed this
in other threads, we're definitely aware of it, and we don't like it
any more than you do.

due to infrastructure details, this isn't easy to fix outright, or in
the short term. regardless, we're working hard on reducing this error
rate. we have some ideas for smaller short term workarounds and fixes
that will make it much less disruptive.

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Inconsistency in documented semantics of transactions.

2008-10-24 Thread ryan

thanks for the discussion and the suggestions, all!

in short, the conclusions are on the right track. transactions, gets,
and puts are SERIALIZABLE. queries, on the other hand, are more or
less READ_COMMITTED, since index updates are not transactional. that's
why we don't support queries inside transactions. (index updates are
definitely synchronous within their corresponding put() or
run_in_transaction() call, though!)

i've added a note to my todo list to review the article and consider
the updates suggested here. thanks again!
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Implement AJAX in App Engine

2008-10-24 Thread Shay Ben Dov

Thanks for the tip.

I've developed what I've intended. I used the following:

function functionName(){

   new  new Ajax.Updater('div id', '/action_name', {
 method: 'get'

   });

}

setInterval("functionName()", 3000)

When the application will be ready I'll let you know

Again thanks

Shay Ben Dov

On Oct 13, 9:21 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote:
> "Ajax Requests"http://docs.jquery.com/Ajax
>
> "setInterval(func, interval, [args])"
> Calls the specified "func" (or a JavaScript statement) repeatedly per
> the "interval" interval, in milliseconds (ie: 1000=every 1 second).
> "func" must be surrounded in quotations, as if it was a string. Use
> the optional "args" to pass any number of arguments to the 
> function.http://www.javascriptkit.com/jsref/window.shtml
>
> On Oct 13, 1:00 pm, "David Symonds" <[EMAIL PROTECTED]> wrote:
>
> > On Sun, Oct 12, 2008 at 7:06 PM, Shay Ben Dov <[EMAIL PROTECTED]> wrote:
>
> > > I wonder is there a way to implement AJAX in an application like the
> > > easy way it is done in Rails:
>
> > > you write 1 line in the header to include  Javascript, defaults and
> > > other
>
> > > then you issue a simple command in your HTML body like:
>
> > App Engine is really a much lower level platform than that. You could
> > probably write your own AJAX stuff like you suggest using JavaScript,
> > being helped out by a library like jQuery.
>
> > Dave.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: query..

2008-10-24 Thread ryan

google says yes:

http://www.google.com/search?q=cherrypy+%22app+engine%22

possibly out of the box:

http://www.cherrypy.org/wiki/WhatsNewIn31#WSGIServer

or with a little tweaking:

http://boodebr.org/main/python/cherrypy-under-google-appserver
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Datastore Entity

2008-10-24 Thread ryan

it sounds like you want to specify the *kind* of an entity
dynamically, at runtime?

this isn't easy with db, but it is with the lower-level, undocumented
google.appengine.api.datastore module. see the docstrings for the top-
level classes and functions in that module:

http://code.google.com/p/googleappengine/source/browse/trunk/google/appengine/api/datastore.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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Some doubts about "group by"

2008-10-24 Thread ryan

+1 to david and peter's replies. to paraphrase, in app engine, prefer
computing and storing information like this at write time, instead of
at read time.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: time.time() across shards

2008-10-24 Thread ryan

sorry, but we're unlikely to ever provide an upper bound on clock sync
across servers. jon's right that it will generally be in the
neighborhood of seconds, but providing a guarantee would be similar to
attempting global synchronization across a distributed system. you
should generally try to avoid depending on global counters at all, but
if you need one, you can use either datastore Key ordering or
datastore transactions, depending on your needs.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: issue with urlfetch with json and digg api

2008-10-24 Thread Marzia Niccolai
Can you send along the code used by this handler?  It will help better
troubleshoot.  It shouldn't be the case that you would need to print the
status_code out before the content (though it's probably a good idea to
check the status code in your app at any rate, and handle accordingly).

-Marzia

On Fri, Oct 24, 2008 at 4:06 PM, shantanut <[EMAIL PROTECTED]>wrote:

>
> hmm, this is very odd. when I do this:
>
> print result.status_code
> print result.content
>
> it actually works, however if I leave either of those two off it no
> longer works.  Also, when I print headers, it doesn't show anything.
> Anybody know why it does this?
>
> Thanks
> -Shan
>
> On Oct 24, 5:01 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> > Are you receiving an error message, or is the content you received
> > unexpected?
> >
> > What is included when you print out result.headers?
> >
> > -Marzia
> >
> > On Fri, Oct 24, 2008 at 11:57 AM, shantanut <
> [EMAIL PROTECTED]>wrote:
> >
> >
> >
> > > What am I doing wrong??
> >
> > > from google.appengine.api import urlfetch
> >
> > > url = "http://services.digg.com/stories/popular?
> > > count=5&type=json&appkey=http://cs3300reader.appspot.com<
> http://services.digg.com/stories/popular?count=5&type=json&appkey=htt...>
> > > "
> > > result = urlfetch.fetch(url, '', 'GET', {'Accept' : 'applicaton/
> > > json'})
> > > print result.content
> >
> > > if I change type=json to type=xml in the query string, it works fine.
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Removing unused application

2008-10-24 Thread Alexander Kojevnikov

You can also star this issue:
http://code.google.com/p/googleappengine/issues/detail?id=335

On Oct 25, 6:55 am, Rafal Jonca <[EMAIL PROTECTED]> wrote:
> > You could give the application to someone else.
>
> Well, that is not exactly the same ;)
>
> I don't want to bother with the application and I want to get the
> identifier free. I removed everything from datastore so I also want to
> remove the code :)
>
> I think I currently cannot do it and really do not know why ;)
>
> > Seehttp://groups.google.com/group/google-appengine/browse_thread/thread/...
>
> > On Oct 24, 7:17 am, Rafal Jonca <[EMAIL PROTECTED]> wrote:
>
> > > Hi,
>
> > > I have an application on my account that i created only as a demo for
> > > PyCon PL presentation. How to remove it free the slot? I tryied to
> > > remove default version (not possible) and remove me as a developer
> > > (also without success). Any suggestions?
>
> > > Regards,
> > > Rafal
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: issue with urlfetch with json and digg api

2008-10-24 Thread shantanut

hmm, this is very odd. when I do this:

print result.status_code
print result.content

it actually works, however if I leave either of those two off it no
longer works.  Also, when I print headers, it doesn't show anything.
Anybody know why it does this?

Thanks
-Shan

On Oct 24, 5:01 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> Are you receiving an error message, or is the content you received
> unexpected?
>
> What is included when you print out result.headers?
>
> -Marzia
>
> On Fri, Oct 24, 2008 at 11:57 AM, shantanut <[EMAIL PROTECTED]>wrote:
>
>
>
> > What am I doing wrong??
>
> > from google.appengine.api import urlfetch
>
> > url = "http://services.digg.com/stories/popular?
> > count=5&type=json&appkey=http://cs3300reader.appspot.com
> > "
> > result = urlfetch.fetch(url, '', 'GET', {'Accept' : 'applicaton/
> > json'})
> > print result.content
>
> > if I change type=json to type=xml in the query string, it works fine.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: bulk upload users

2008-10-24 Thread Luigi Semenzato

So is there any way of retrieving a user object from the user's
current
email address?

If there isn't a way, is this for security reasons (rather, spam-
prevention
reasons) or some other reason?

Thanks!
Luigi


On Oct 24, 10:48 am, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> If you know the user's email address for which you want to create profiles,
> you can create the user object fairly easily.
>
> new_user = users.User(email='[EMAIL PROTECTED]')
>
> Be aware (from:http://code.google.com/appengine/docs/users/userobjects.html
> ):
>
> "If the User constructor is called with an email address that does not
> correspond with a valid Google account, the object will be created but it
> will not correspond with a real Google account. This will be the case even
> if someone creates a Google account with the given email address after the
> object is stored. A User value with an email address that does not represent
> a Google account at the time it is created will never match a User value
> that represents a real user."
>
> Also, please note that last week we announced SSL support for all *.
> appspot.com domains.
>
> -Marzia
>
> On Fri, Oct 24, 2008 at 7:41 AM, [EMAIL PROTECTED] <
>
> [EMAIL PROTECTED]> wrote:
>
> > Hi, i need to be able to bulk sign-up users for my app.  This doesn't
> > seem to be possible with Google's User model.  My guess is I'll have
> > to create a custom user model, but the lack of ssl support is a bit of
> > a deterrent.  Any thoughts on how this can be done?
>
> > Thanks,
> > -Reza
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Where to post problems with dev_appserver?

2008-10-24 Thread Alexander Kojevnikov

It looks like you are using Python 2.6 which added the depreciation
warnings for some obsolete libraries.

You need to use Python 2.5 with the SDK, it doesn't work with 2.6 yet.

--
www.muspy.com

On Oct 25, 9:26 am, sketchor <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I just tried to start the Google App server and got these error
> messages.  Is there a forum or discussion group for these types of
> problems?  Thanks in advance for any pointers!
>
> c:\soft\google\helloworld>dev_appserver.py helloworld/
>
> C:\Program Files\Google\google_appengine\google\appengine\tools
> \appcfg.py:40: DeprecationWarning: the sha module is deprecated; use
> the hashlib module instead
>   import sha
> Traceback (most recent call last):
>   File "C:\Program Files\Google\google_appengine\dev_appserver.py",
> line 55, in 
>     execfile(script_path, globals())
>   File "C:\Program Files\Google\google_appengine\google\appengine\tools
> \dev_appserver_main.py", line 358, in 
>     sys.exit(main(sys.argv))
>   File "C:\Program Files\Google\google_appengine\google\appengine\tools
> \dev_appserver_main.py", line 306, in main
>     config, matcher = dev_appserver.LoadAppConfig(root_path, {})
>   File "C:\Program Files\Google\google_appengine\google\appengine\tools
> \dev_appserver.py", line 2638, in LoadAppConfig
>     raise AppConfigNotFoundError
> google.appengine.tools.dev_appserver.AppConfigNotFoundError
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: python / django templates and javascript

2008-10-24 Thread Alexander Kojevnikov

I don't see why this shouldn't work. Could you post here the
stacktrace of the error?

On Oct 25, 9:22 am, georgec <[EMAIL PROTECTED]> wrote:
> I've only been using python/django for about a week now and am
> completely stumped...
>
> I need to write dynamic javascript variables within my django template
> however the django syntax throws an error, is there any way of writing
> something like this?
>
> 
>         var foo_{{ bar }};
> 
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Tips on Optimizing Writes?

2008-10-24 Thread Jeff S

Hi Waldemar,

The average CPU per request numbers on the dashboard are composed of
CPU used in executing your code (runtime) and API calls (datastore,
urlfetch, image API, etc). When these numbers are high it can indicate
that app resource usage may be inefficient in some areas, so it pays
to track down the cause.

The CPU warnings in the logs include CPU usage from runtime and the
datastore. If you have already taken steps to mitigate causes of high
datastore CPU usage, then the remaining culprit is probably the
runtime code. Profiling can help identify expensive operations in the
app's code.

Thank you,

Jeff

On Oct 24, 3:17 pm, Waldemar Kornewald <[EMAIL PROTECTED]> wrote:
> On 24 Okt., 20:56, Jeff S <[EMAIL PROTECTED]> wrote:
>
> > It sounds like davekor's app might not need to be fixed further if
> > your app is not using very much runtime CPU (in code outside of the
> > datastore). The CPU megacycles for datastore operations do not
> > currently count against the per-request ("High CPU Request") limits.
> > We're working on ways to make this clearer in the Admin Console.
>
> What about the high-CPU warnings on the dashboard (i.e., not the
> logs)? Do they count only the runtime CPU or also the datastore CPU?
>
> Strangely, almost all views that do write operations appear with a
> high-CPU warning on the dashboard ("Avg CPU" column), but don't
> produce any warnings in the logs. What does that mean and can we
> ignore the warning?
>
> Bye,
> Waldemar Kornewald
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Implement AJAX in App Engine

2008-10-24 Thread RIAgallery

You can use Echo3 (or GWT)
http://riagallery.appspot.com


On Oct 12, 10:06 am, Shay Ben Dov <[EMAIL PROTECTED]> wrote:
> I wonder is there a way to implement AJAX in an application like the
> easy way it is done in Rails:
>
> you write 1 line in the header to include  Javascript, defaults and
> other
>
> then you issue a simple command in your HTML body like:
>
> 
>
> 
>         <%= periodically_call_remote(:update    => 'alerts',
>                                 :url       => { :controller => :alerts,
>                                 :action => :listen_for_requests },
>                                 :frequency => 10 )%>
> to issue a call to the server in the background.
>
> Enabling this kind of capabilities will make life easier and speed-up
> development
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Tips on Optimizing Writes?

2008-10-24 Thread Waldemar Kornewald

On 24 Okt., 20:56, Jeff S <[EMAIL PROTECTED]> wrote:
> It sounds like davekor's app might not need to be fixed further if
> your app is not using very much runtime CPU (in code outside of the
> datastore). The CPU megacycles for datastore operations do not
> currently count against the per-request ("High CPU Request") limits.
> We're working on ways to make this clearer in the Admin Console.

What about the high-CPU warnings on the dashboard (i.e., not the
logs)? Do they count only the runtime CPU or also the datastore CPU?

Strangely, almost all views that do write operations appear with a
high-CPU warning on the dashboard ("Avg CPU" column), but don't
produce any warnings in the logs. What does that mean and can we
ignore the warning?

Bye,
Waldemar Kornewald
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Removing unused application

2008-10-24 Thread Marzia Niccolai
You can not delete applications, but you can disable it, see instructions
here:
http://code.google.com/appengine/kb/general.html#disable

You can also remove yourself as an app developer, as long as there is at
least one other app developer for that application.  If you are the only app
developer, you may not remove yourself.

-Marzia

On Fri, Oct 24, 2008 at 11:55 AM, Rafal Jonca <[EMAIL PROTECTED]> wrote:

>
> > You could give the application to someone else.
>
> Well, that is not exactly the same ;)
>
> I don't want to bother with the application and I want to get the
> identifier free. I removed everything from datastore so I also want to
> remove the code :)
>
> I think I currently cannot do it and really do not know why ;)
>
>
> > Seehttp://
> groups.google.com/group/google-appengine/browse_thread/thread/...
> >
> > On Oct 24, 7:17 am, Rafal Jonca <[EMAIL PROTECTED]> wrote:
> >
> > > Hi,
> >
> > > I have an application on my account that i created only as a demo for
> > > PyCon PL presentation. How to remove it free the slot? I tryied to
> > > remove default version (not possible) and remove me as a developer
> > > (also without success). Any suggestions?
> >
> > > Regards,
> > > Rafal
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Datastore Entity

2008-10-24 Thread yejun

I think you mean kind.

Newkind = type("KindName", (db.model,), dict(p1=db.Property(), p2...))

On Oct 24, 5:45 pm, Koren <[EMAIL PROTECTED]> wrote:
> hi,
>
> is it possible to create a datastore entity at runtime?
> i have the situation that i need to create new Entities (and not
> records) during runtime. This corresponds to setting up a database
> table during runtime instead of just adding rows to the same table.
>
> thanks,
>
> Koren
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: counting

2008-10-24 Thread yejun

His problem is a count needed for every single user. So a single
change will cause a massive update on all count.
On a traditional database it is the position on the index.

On Oct 24, 5:33 pm, Sylvain <[EMAIL PROTECTED]> wrote:
> Sorry, I don't understand exactly the problem but if you want to have
> this SQL
>
> select count(*) from entries where points > 100
>
> You can create many "sharded counter"
> and from the code use this :
>
> increment("point_%i" % point)
>
> Then, if you want to count, just : get_count("point_%i" % point)
>
> It will create a lot of of "counter" but it will works fine.
>
> Then if you want to count for points > 100
> You will have to do many any times : get_count("point_%i" % point) for
> point from x to y
> else you can create steps : a counter from 100 to 150 , etc,...
>
> I think the only solution to do count(*) (if count(*) > 1000) is to
> use sharded counter
>
> if count(*) < 1000 then you can use the "count" keyword.
>
> Regards.
>
> On 24 oct, 21:39, Ben Nevile <[EMAIL PROTECTED]> wrote:
>
> > Hi Sylvain - thanks for the pointer, and although I now know a cool
> > sharding hack for a shared resource, I don't see how the technique can
> > be applied to my problem.  To summarize, I could have a model indexed
> > by a single entity called "points", and I want to be able to tell
> > someone how they rank in terms of points.  For someone with say 100
> > points, in SQL I would do something like
>
> > select count(*) from entries where points > 100
>
> > Ben
>
> > On Oct 24, 9:51 am, Sylvain <[EMAIL PROTECTED]> wrote:
>
> > > Check this 
> > > :http://groups.google.com/group/google-appengine/browse_frm/thread/e13...
>
> > > and code here :http://paste.blixt.org/1581
>
> > > On 24 oct, 08:52, Ben Nevile <[EMAIL PROTECTED]> wrote:
>
> > > > Hi,
>
> > > > I have recently started using GAE for components of a large sports-
> > > > related Facebook app.  One of the contests has hundreds of thousands
> > > > of participants, and I need to be able to tell a user at any given
> > > > time what place they're in.  eg, you are 34,728th out of 234,829
> > > > participants.
>
> > > > After spending some time with the docs and browsing this group, it
> > > > appears that using the datastore there's no way to accomplish this
> > > > relatively mundane task.  So do I have to keep a mysql database active
> > > > on some other host just so that I can efficiently do this type of
> > > > analysis?
>
> > > > 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Google App Engine Roadmap - Now Published

2008-10-24 Thread Marzia Niccolai
Ah, I understand the question now.  For the Python runtime, the App Engine
frontend actually sends requests for your app to one or more Python
Interpreters for your app.

The I/O talk 'Building a Production Quality Application on Google App
Engine' actually deals with this topic when talking about how to run
loadtests with your app. (Around slide 49 of the talk.)

The docs also mention it when talking about the Python runtime (
http://code.google.com/appengine/docs/python/):
'The App Engine Python runtime environment includes a specialized version of
the Python interpreter, the standard Python library, libraries and APIs for
App Engine, and a standard interface to the web server layer.'

Concerning your question, at this time I don't have an answer as to how
different runtimes may or may not be able to interact using the same app id
(rest assured it will be clarified prior to any launch).

-Marzia

On Fri, Oct 24, 2008 at 12:27 PM, Bill <[EMAIL PROTECTED]> wrote:

>
> > Lastly, concerning Bill's comment, I'm not entirely sure what you have in
> > mind when you ask if they will be running on the same 'VM', immediate
> plans
> > for new language support would most likely follow the same general theme
> as
> > python support.  Meaning, you would upload your application to App
> Engine,
> > and the system manages all of serving infrastructure.
>
> Not knowing how apps really run in the cloud, I wondered if current
> python (and possibly future languages) got compiled to some App Engine
> VM which might allow cross-language calls (like using JVM for JRuby or
> the .NET CLR).  It sounds like this is not the case but can different
> language files coexist within a single app and access the same
> datastore?
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Datastore Entity

2008-10-24 Thread Koren

hi,

is it possible to create a datastore entity at runtime?
i have the situation that i need to create new Entities (and not
records) during runtime. This corresponds to setting up a database
table during runtime instead of just adding rows to the same table.

thanks,

Koren

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: time.time() across shards

2008-10-24 Thread Cesium

Check out this thread for actual measurements:

http://groups.google.com/group/google-appengine/browse_thread/thread/802ae9f498be48d7/6dacddc47702cac3?lnk=gst&q=utc#6dacddc47702cac3

The data are encouraging, but I'd sure like to see a statement from an
authoritative source like:
"The appserver clock will deviate from UTC(NIST) by no more than X
seconds."

cesium



--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: counting

2008-10-24 Thread Sylvain

Sorry, I don't understand exactly the problem but if you want to have
this SQL

select count(*) from entries where points > 100

You can create many "sharded counter"
and from the code use this :

increment("point_%i" % point)

Then, if you want to count, just : get_count("point_%i" % point)

It will create a lot of of "counter" but it will works fine.

Then if you want to count for points > 100
You will have to do many any times : get_count("point_%i" % point) for
point from x to y
else you can create steps : a counter from 100 to 150 , etc,...

I think the only solution to do count(*) (if count(*) > 1000) is to
use sharded counter

if count(*) < 1000 then you can use the "count" keyword.

Regards.



On 24 oct, 21:39, Ben Nevile <[EMAIL PROTECTED]> wrote:
> Hi Sylvain - thanks for the pointer, and although I now know a cool
> sharding hack for a shared resource, I don't see how the technique can
> be applied to my problem.  To summarize, I could have a model indexed
> by a single entity called "points", and I want to be able to tell
> someone how they rank in terms of points.  For someone with say 100
> points, in SQL I would do something like
>
> select count(*) from entries where points > 100
>
> Ben
>
> On Oct 24, 9:51 am, Sylvain <[EMAIL PROTECTED]> wrote:
>
> > Check this 
> > :http://groups.google.com/group/google-appengine/browse_frm/thread/e13...
>
> > and code here :http://paste.blixt.org/1581
>
> > On 24 oct, 08:52, Ben Nevile <[EMAIL PROTECTED]> wrote:
>
> > > Hi,
>
> > > I have recently started using GAE for components of a large sports-
> > > related Facebook app.  One of the contests has hundreds of thousands
> > > of participants, and I need to be able to tell a user at any given
> > > time what place they're in.  eg, you are 34,728th out of 234,829
> > > participants.
>
> > > After spending some time with the docs and browsing this group, it
> > > appears that using the datastore there's no way to accomplish this
> > > relatively mundane task.  So do I have to keep a mysql database active
> > > on some other host just so that I can efficiently do this type of
> > > analysis?
>
> > > 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Where to post problems with dev_appserver?

2008-10-24 Thread Marzia Niccolai
Hi,

This is the right forum for these questions. This error seems to indicate
that it can't find your app.yaml file.  You should make sure this file is in
the root directory of your application.

-Marzia

On Fri, Oct 24, 2008 at 2:26 PM, sketchor <[EMAIL PROTECTED]> wrote:

>
> Hello,
>
> I just tried to start the Google App server and got these error
> messages.  Is there a forum or discussion group for these types of
> problems?  Thanks in advance for any pointers!
>
> c:\soft\google\helloworld>dev_appserver.py helloworld/
>
> C:\Program Files\Google\google_appengine\google\appengine\tools
> \appcfg.py:40: DeprecationWarning: the sha module is deprecated; use
> the hashlib module instead
>  import sha
> Traceback (most recent call last):
>  File "C:\Program Files\Google\google_appengine\dev_appserver.py",
> line 55, in 
>execfile(script_path, globals())
>  File "C:\Program Files\Google\google_appengine\google\appengine\tools
> \dev_appserver_main.py", line 358, in 
>sys.exit(main(sys.argv))
>  File "C:\Program Files\Google\google_appengine\google\appengine\tools
> \dev_appserver_main.py", line 306, in main
>config, matcher = dev_appserver.LoadAppConfig(root_path, {})
>  File "C:\Program Files\Google\google_appengine\google\appengine\tools
> \dev_appserver.py", line 2638, in LoadAppConfig
>raise AppConfigNotFoundError
> google.appengine.tools.dev_appserver.AppConfigNotFoundError
>
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] python / django templates and javascript

2008-10-24 Thread georgec

I've only been using python/django for about a week now and am
completely stumped...

I need to write dynamic javascript variables within my django template
however the django syntax throws an error, is there any way of writing
something like this?


var foo_{{ bar }};


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Where to post problems with dev_appserver?

2008-10-24 Thread sketchor

Hello,

I just tried to start the Google App server and got these error
messages.  Is there a forum or discussion group for these types of
problems?  Thanks in advance for any pointers!

c:\soft\google\helloworld>dev_appserver.py helloworld/

C:\Program Files\Google\google_appengine\google\appengine\tools
\appcfg.py:40: DeprecationWarning: the sha module is deprecated; use
the hashlib module instead
  import sha
Traceback (most recent call last):
  File "C:\Program Files\Google\google_appengine\dev_appserver.py",
line 55, in 
execfile(script_path, globals())
  File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver_main.py", line 358, in 
sys.exit(main(sys.argv))
  File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver_main.py", line 306, in main
config, matcher = dev_appserver.LoadAppConfig(root_path, {})
  File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 2638, in LoadAppConfig
raise AppConfigNotFoundError
google.appengine.tools.dev_appserver.AppConfigNotFoundError

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Please don't repeat GWT's mistake!

2008-10-24 Thread Amir Michail

On Oct 24, 12:46 pm, Sumit Chandel <[EMAIL PROTECTED]> wrote:
> Hello everyone,
>
> Sumit Chandel from the GWT team here.
>
> I just wanted to clarify a couple of inaccuracies I've observed in
> this thread.
>
> Firstly, I don't believe that the choice to work from Java source
> instead of JVM bytecode was a bad decision. The team chose to work
> from Java source for all the reasons that Peter described above. For
> what GWT is trying to do, which is to produce highly optimized and
> lean JavaScript, it would be nonsensical to work from already
> optimized JVM bytecode and then attempt to reverse engineer the
> bytecode to then be able to infer enough information for optimization
> and then translate to JavaScript.

Can't some of this optimization be done by the javascript JIT?

Amir

>
> Secondly, GWT is indeed an open source project that is being developed
> and maintained by a team of Google engineers. However, the team
> accepts hundreds of patches between releases that are contributed from
> the open source community. Compiler optimizations and bi-directional
> support for widgets in GWT 1.5 are examples of that. Also, we've had a
> number of successful open source developers take GWT and build their
> own open source projects from it, such as GWT-Ext, hibernate4gwt and
> so on.
>
> That said, it would be awesome to see a group of open source
> developers take on the challenge of generating highly-optimized
> JavaScript from the bytecode level, or even from source in another
> programming language. Also, if someone were to get a nice proof-of-
> concept working, the team would love to discuss it on the GWT
> Contributors forum and see where / how we could roll the idea and help
> with the effort if the community starts gaining interest.
>
> GWT Contributor 
> Forum:http://groups.google.com/group/Google-Web-Toolkit-Contributors
>
> Cheers,
> -Sumit Chandel
>
> On Oct 21, 5:51 pm, Sal <[EMAIL PROTECTED]> wrote:
>
> > I have to agree. In fact, I would say that there was no mistake at
> > all.
>
> > On Oct 21, 12:59 pm, Peter Recore <[EMAIL PROTECTED]> wrote:
>
> > > I don't think "mistake" is the right word there.  I'm not an expert on
> > > Java Compilers and JVMs, but I'll go out on a limb here and risk
> > > embarrassing myself - my gut feeling is that Java is much easier to
> > > compile into javascript than random bytecode is.  GWT makes aggressive
> > > optimizations based on information it can infer from java semantics.
> > > If GWT had to generalize to work with any possible bytecode, I doubt
> > > the resulting javascript could be as efficient.  Part of GWT's appeal
> > > is that the end product is fast and lean javascript.  While it would
> > > be nice if GWT could turn random x86 executable into blazingly fast
> > > javascript, I'm not going to criticize the GWT team because they
> > > haven't done so yet.  If I'm wrong, and making GWT work with JVM is
> > > trivial to do, that's awesome!  Submit the patch to the GWT team.  The
> > > fact that no one has yet done so yet implies to me that this is not an
> > > easy thing to do, or else no one really wants to do it.  In either
> > > case, it is not a mistake that it hasn't been done.
>
> > > If you really like working in Scala, you could look into contributing
> > > to the project to compile Scala into Java, mentioned at the bottom of
> > > this page:  http://www.scala-lang.org/faq/4
>
> > > If this post has a slightly sharp tone, it's because I don't like it
> > > when people criticize open source projects with vague complaints while
> > > at the same time asking for new features.
>
> > > -peter
>
> > > On Oct 21, 2:07 pm, Amir  Michail <[EMAIL PROTECTED]> wrote:
>
> > > > Hi,
>
> > > > Please support Java byte code so that we can use any languages that
> > > > work using the JVM such as Scala.
>
> > > > GWT made a mistake in only supporting Java.  I hope they correct it.
>
> > > > Amir
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: querying across different entity types

2008-10-24 Thread Andy Freeman

Be careful.

"Note: The IN and != operators use multiple queries behind the scenes.
For example, the IN operator executes a separate underlying datastore
query for every item in the list. The entities returned are a result
of the cross-product of all the underlying datastore queries and are
de-duplicated. A maximum of 30 datastore queries are allowed for any
single GQL query."

from http://code.google.com/appengine/docs/datastore/gqlreference.html


On Oct 24, 12:08 pm, yejun <[EMAIL PROTECTED]> wrote:
> Schedule.gql("WHERE stopRef IN :1", Stop.gql("WHERE routeRef in :1",
> Route.gql("WHERE name = 'Broad
> Street'").fetch(1000)).fetch(1000)).fetch(1000)
>
> On Oct 24, 2:03 pm, darren <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi, I saw a similar thread on this, but I'm still uncertain on the
> > best way to query entities if i want to use a reference to other
> > entities.
>
> > I have this as a part of my db structure:
>
> > class Route(db.Model):
> >         systemRef = db.ReferenceProperty(TransitSystem)
> >         name = db.StringProperty(required=True)
> >         number = db.IntegerProperty(required=True)
>
> > class Stop(db.Model):
> >         name = db.StringProperty(required=True)
> >         routeRef = db.ReferenceProperty(Route)
> >         routeLetter = db.StringProperty(required = False)
> >         ## should be true one day
> >         location = db.GeoPtProperty(required=False)
> >         direction = db.StringProperty(required=True)
>
> > class Schedule(db.Model):
> >         stopRef = db.ReferenceProperty(Stop)
> >         day = db.StringProperty(required=True)
> >         times = db.ListProperty(str)
>
> > If i want to query all Schedules where schedule.stopRef.routeRef.name
> > = "Broad Street"
> > Do I have to query first the route, then the stop, then the schedule?
> > If so, I dont understand the point of using references.  Can somebody
> > explain the best approach to take when performing queries of this
> > sort?
>
> > thanks- 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: issue with urlfetch with json and digg api

2008-10-24 Thread Marzia Niccolai
Are you receiving an error message, or is the content you received
unexpected?

What is included when you print out result.headers?

-Marzia

On Fri, Oct 24, 2008 at 11:57 AM, shantanut <[EMAIL PROTECTED]>wrote:

>
> What am I doing wrong??
>
> from google.appengine.api import urlfetch
>
> url = "http://services.digg.com/stories/popular?
> count=5&type=json&appkey=http://cs3300reader.appspot.com
> "
> result = urlfetch.fetch(url, '', 'GET', {'Accept' : 'applicaton/
> json'})
> print result.content
>
> if I change type=json to type=xml in the query string, it works fine.
>
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Tips on Optimizing Writes?

2008-10-24 Thread Josh Heitzman

Jeff, thanks for the heads up on that issue; opened
http://code.google.com/p/googleappengine/issues/detail?id=814 to
publicly track it.

Josh

On Oct 24, 11:56 am, Jeff S <[EMAIL PROTECTED]> wrote:
> It sounds like davekor's app might not need to be fixed further if
> your app is not using very much runtime CPU (in code outside of the
> datastore). The CPU megacycles for datastore operations do not
> currently count against the per-request ("High CPU Request") limits.
> We're working on ways to make this clearer in the Admin Console.
>
> Happy coding,
>
> Jeff
>
> On Oct 24, 4:06 am, Josh Heitzman <[EMAIL PROTECTED]> wrote:
>
> > If you can't reduce the number of entities, then all you have left is
> > to reduce the number of indexed fields on the entities and the number
> > of elements in any list fields on the entities.  That said you can't
> > put two entities with only a single non-indexed property each in less
> > then 1000 mcycles.  
> > Seehttp://code.google.com/p/googleappengine/issues/detail?id=786
>
> > On Oct 23, 6:57 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > > Hi,
>
> > > My application get a lot of high-CPU usage warnings on the production
> > > server. I have spent the past few weeks profiling and optimizing my
> > > production code as suggested.
>
> > > From profiler data, I know that 99% of processor time is spent in
> > > Model.put or db.put. As a result I have been aggressively eliminating
> > > unnecessary or duplicate write operations. For instance in my most
> > > processor intensive http request, I have cut down the number of
> > > entities I update from 5 to a varying number between 0 and 3 depending
> > > on what absolutely must be updated. I also batch writes by using
> > > db.put() instead of separately calling Model.put(). As a result, I
> > > have cut the number of mcycles down from 7000+ to an average of around
> > > 2000 mcycles.
>
> > > However, I still get high cpu warnings on one http request, because it
> > > absolutely needs to update 3 separate entities (two node entities in a
> > > directed graph, and a sharded counter entity). So my question is, what
> > > else can I do to further optimize this specific section of code?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: How to modify property output?

2008-10-24 Thread Nefarious

Works perfect!  Exactly what I was looking for.

Thanks for your help!

On Oct 23, 12:21 pm, luismgz <[EMAIL PROTECTED]> wrote:
> I'm not sure I understand your question, but I guess this can help
> you.
>
> Lets say that you want to Blah.get().title to return title in upper
> case.
> You create a property as follows:
>
> class Blah(db.Model):
>     """Example"""
>     _name = db.StringProperty()
>     _title = db.StringProperty()
>     _address = db.StringProperty()
>
>     def gettitle(self):
>         return self._title.upper()
>
>     def settitle(self, x):
>         self._title = x
>
>     title = property(gettitle, settitle)
>
> On Oct 23, 2:21 pm, Nefarious <[EMAIL PROTECTED]> wrote:
>
> > Newbie question here...
>
> > Say I have model like the below:
>
> > class Blah(db.Model):
> >     """Example"""
>
> >     name = db.StringProperty()
> >     title = db.StringProperty()
> >     address = db.StringProperty()
>
> > How would I modify the output from the datastore before it gets to the
> > caller?  So, I want to modify the output of a call like this:
> > Blah.get().title and do some custom code on the title property.  I
> > assume I subclass and override a get method somewhere, but I am not
> > clear where.  I assumed I would subclass StringProperty but that
> > doesn't seem to have a method I need for this operation.  Any ideas?
> > 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: counting

2008-10-24 Thread Ben Nevile

Hi Sylvain - thanks for the pointer, and although I now know a cool
sharding hack for a shared resource, I don't see how the technique can
be applied to my problem.  To summarize, I could have a model indexed
by a single entity called "points", and I want to be able to tell
someone how they rank in terms of points.  For someone with say 100
points, in SQL I would do something like

select count(*) from entries where points > 100

Ben



On Oct 24, 9:51 am, Sylvain <[EMAIL PROTECTED]> wrote:
> Check this 
> :http://groups.google.com/group/google-appengine/browse_frm/thread/e13...
>
> and code here :http://paste.blixt.org/1581
>
> On 24 oct, 08:52, Ben Nevile <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I have recently started using GAE for components of a large sports-
> > related Facebook app.  One of the contests has hundreds of thousands
> > of participants, and I need to be able to tell a user at any given
> > time what place they're in.  eg, you are 34,728th out of 234,829
> > participants.
>
> > After spending some time with the docs and browsing this group, it
> > appears that using the datastore there's no way to accomplish this
> > relatively mundane task.  So do I have to keep a mysql database active
> > on some other host just so that I can efficiently do this type of
> > analysis?
>
> > 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Google App Engine Roadmap - Now Published

2008-10-24 Thread Bill

> Lastly, concerning Bill's comment, I'm not entirely sure what you have in
> mind when you ask if they will be running on the same 'VM', immediate plans
> for new language support would most likely follow the same general theme as
> python support.  Meaning, you would upload your application to App Engine,
> and the system manages all of serving infrastructure.

Not knowing how apps really run in the cloud, I wondered if current
python (and possibly future languages) got compiled to some App Engine
VM which might allow cross-language calls (like using JVM for JRuby or
the .NET CLR).  It sounds like this is not the case but can different
language files coexist within a single app and access the same
datastore?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: querying across different entity types

2008-10-24 Thread yejun

Schedule.gql("WHERE stopRef IN :1", Stop.gql("WHERE routeRef in :1",
Route.gql("WHERE name = 'Broad
Street'").fetch(1000)).fetch(1000)).fetch(1000)

On Oct 24, 2:03 pm, darren <[EMAIL PROTECTED]> wrote:
> Hi, I saw a similar thread on this, but I'm still uncertain on the
> best way to query entities if i want to use a reference to other
> entities.
>
> I have this as a part of my db structure:
>
> class Route(db.Model):
>         systemRef = db.ReferenceProperty(TransitSystem)
>         name = db.StringProperty(required=True)
>         number = db.IntegerProperty(required=True)
>
> class Stop(db.Model):
>         name = db.StringProperty(required=True)
>         routeRef = db.ReferenceProperty(Route)
>         routeLetter = db.StringProperty(required = False)
>         ## should be true one day
>         location = db.GeoPtProperty(required=False)
>         direction = db.StringProperty(required=True)
>
> class Schedule(db.Model):
>         stopRef = db.ReferenceProperty(Stop)
>         day = db.StringProperty(required=True)
>         times = db.ListProperty(str)
>
> If i want to query all Schedules where schedule.stopRef.routeRef.name
> = "Broad Street"
> Do I have to query first the route, then the stop, then the schedule?
> If so, I dont understand the point of using references.  Can somebody
> explain the best approach to take when performing queries of this
> sort?
>
> 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] issue with urlfetch with json and digg api

2008-10-24 Thread shantanut

What am I doing wrong??

from google.appengine.api import urlfetch

url = "http://services.digg.com/stories/popular?
count=5&type=json&appkey=http://cs3300reader.appspot.com";
result = urlfetch.fetch(url, '', 'GET', {'Accept' : 'applicaton/
json'})
print result.content

if I change type=json to type=xml in the query string, it works fine.

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Global Template Context Processors

2008-10-24 Thread Daniel O'Brien (Google)

The Django template wrapper module we use in
google.appengine.ext.webapp.template only accepts a dict, rather than
Context or RequestContext instances, so doesn't support global context
processors.

We do also provide django.template, which does support context
processors. If you take this approach, though, you may wish to switch
over entirely to using Django, since otherwise I suspect you'll run
into difficulty passing a proper request object into RequestContext.
You'll also still need to wrap users.is_current_user_admin() and other
similar functions to match the context processor interface.

Let me know if you have any other questions,

Daniel

On Oct 23, 6:47 pm, Chris <[EMAIL PROTECTED]> wrote:
> Django supports global template context processors, which allow you to
> ensure certain values are added to every template context. Does App
> Engine have anything similar? I'd like to ensure every template gets
> certain things like users.is_current_user_admin() so the correct
> options are displayed in a sidebar that every template inherits.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Tips on Optimizing Writes?

2008-10-24 Thread Jeff S

It sounds like davekor's app might not need to be fixed further if
your app is not using very much runtime CPU (in code outside of the
datastore). The CPU megacycles for datastore operations do not
currently count against the per-request ("High CPU Request") limits.
We're working on ways to make this clearer in the Admin Console.

Happy coding,

Jeff

On Oct 24, 4:06 am, Josh Heitzman <[EMAIL PROTECTED]> wrote:
> If you can't reduce the number of entities, then all you have left is
> to reduce the number of indexed fields on the entities and the number
> of elements in any list fields on the entities.  That said you can't
> put two entities with only a single non-indexed property each in less
> then 1000 mcycles.  
> Seehttp://code.google.com/p/googleappengine/issues/detail?id=786
>
> On Oct 23, 6:57 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi,
>
> > My application get a lot of high-CPU usage warnings on the production
> > server. I have spent the past few weeks profiling and optimizing my
> > production code as suggested.
>
> > From profiler data, I know that 99% of processor time is spent in
> > Model.put or db.put. As a result I have been aggressively eliminating
> > unnecessary or duplicate write operations. For instance in my most
> > processor intensive http request, I have cut down the number of
> > entities I update from 5 to a varying number between 0 and 3 depending
> > on what absolutely must be updated. I also batch writes by using
> > db.put() instead of separately calling Model.put(). As a result, I
> > have cut the number of mcycles down from 7000+ to an average of around
> > 2000 mcycles.
>
> > However, I still get high cpu warnings on one http request, because it
> > absolutely needs to update 3 separate entities (two node entities in a
> > directed graph, and a sharded counter entity). So my question is, what
> > else can I do to further optimize this specific section of code?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Removing unused application

2008-10-24 Thread Rafal Jonca

> You could give the application to someone else.

Well, that is not exactly the same ;)

I don't want to bother with the application and I want to get the
identifier free. I removed everything from datastore so I also want to
remove the code :)

I think I currently cannot do it and really do not know why ;)


> Seehttp://groups.google.com/group/google-appengine/browse_thread/thread/...
>
> On Oct 24, 7:17 am, Rafal Jonca <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I have an application on my account that i created only as a demo for
> > PyCon PL presentation. How to remove it free the slot? I tryied to
> > remove default version (not possible) and remove me as a developer
> > (also without success). Any suggestions?
>
> > Regards,
> > Rafal
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: urlfetch error: CONTENT_TYPE exception

2008-10-24 Thread Marzia Niccolai
Hi,

What is the content_type header for the URL that you are trying to fetch?
My guess is that it's related to the type of content the page is serving.

-Marzia

On Thu, Oct 23, 2008 at 7:50 PM, chenbaiping <[EMAIL PROTECTED]>wrote:

>
>
> When I  fetch some resource like
> "http://news.aol.com/cp.adp?mod1=233051|cp_crosspromo&debug=0",
> urlfetch
> will throw 'CONTENT_TYPE' exception .
>
> Who knows why?
>
> My code is something like this:
>
> Try
>beginTime=time.time()
>Urlfetch.fetch(url,...)
> except Exception, e:
>logging.error("url=%s error=%s, time=%d" %(url ,
> e,(time.time()-beginTime) ) )
>
> the log is:
> url=http://news.aol.com/cp.adp?mod1=233051|cp_crosspromo&debug=0
> error='CONTENT_TYPE',
> time=0
>
>
>
> chenbaiping
> www.mao2.com
>
>
> >
>

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



[google-appengine] Re: NTLMAPS proxy stop worked since 1.1.5

2008-10-24 Thread Marzia Niccolai
If you revert to the 1.1.4 SDK does the work around in the issue continue to
function? This would indicate if there was a change in the SDK that
contributed to the issue, or a change in your proxy.

Also, running appfcg.py with the --noisy flag should give additional
information with which you can debug the issue.

-Marzia

On Fri, Oct 24, 2008 at 12:51 AM, Sharp-Developer.Net <
[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> I'm sitting behind corporate ISA proxy that require NTLM
> authenticaiton.
>
> There is an NTLMAPS proxy solution (http://code.google.com/p/
> googleappengine/issues/detail?id=126)
> that worked fine for me but
> seems broken since version 1.1.5
>
> When I enter password when updating an app  it's hanging and in
> NTLMAPS a lot of
> dots are typed in dead cycle.
>
> Anyone has the same issue or is it something changed on my proxy/
> client?
>
> I'm not sure it's about 1.1.5 version as I was on vacation and did not
> upload my app using proxy for a while.
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Google App Engine Roadmap - Now Published

2008-10-24 Thread Marzia Niccolai
Hi,

First to further what Jon was saying, the roadmap has to do with our feature
development plans, and not with issue fixes.  In addition to building new
features, the team will also continue fixing issues with the system.  These
include those issues listed in the tracker, as well as an overall dedication
to improving system performance.

To address the comments regarding the documentation, improvements to the
documentation are outside of the scope of this roadmap, but we definitely
are committed to improving that as well.

I'd also like this opportunity to solicit user contributed articles for our
articles section:
http://code.google.com/appengine/articles/
If you think you have a good idea for an article, and are willing to license
it under the Creative Commons license, please contact me and I can work with
you to get it published.

Lastly, concerning Bill's comment, I'm not entirely sure what you have in
mind when you ask if they will be running on the same 'VM', immediate plans
for new language support would most likely follow the same general theme as
python support.  Meaning, you would upload your application to App Engine,
and the system manages all of serving infrastructure.

-Marzia


On Fri, Oct 24, 2008 at 7:25 AM, Nash <[EMAIL PROTECTED]> wrote:

>
> This is great! Thanks Marzia et al! It's a great step towards giving
> us visibility to what we should expect and what we should be planning
> for.
>
> On Oct 24, 5:45 am, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > Many of you have expressed interest in learning about what's coming next
> for
> > Google App Engine, and although we've often talked about features we plan
> on
> > supporting, we've decided to publish a
> > roadmapalong with
> > our documentation. The roadmap can be found here:
> http://code.google.com/appengine/docs/roadmap.html
> >
> > It should be noted that while we're working hard on these features,
> > development schedules do slip at times, and the dates below may change.
> > We'll do our best to update this roadmap as our engineers continue
> > development.
> >
> > Without further ado, here it is:
> >
> > 10/08 - 3/09
> > * Service for storing and serving large files
> > * Datastore import and export utility for large datasets
> > * Billing: developers can pay for more resource usage
> > * Support for a new runtime language
> > * Uptime monitoring site
> >
> > And, for reference, here is the release timeline since April:
> >
> > * 10/16/08 - HTTPS support for *.appspot.com
> > * 10/14/20 - Logs for Admin Console usage, and regex filtering for
> > application logs
> > * 9/18/08 - CPU usage details added to logs and dashboard, zipimport,
> > zipserve, memcache viewer
> > * 8/22/08 - Multi-entity group batch writes and deletes
> > * 7/24/08 - Logs export capability, more apps for everyone!
> > * 5/28/08 - Memcache and Image Manipulation API, Open Signups
> > * 5/15/08 - App Engine Launcher for Mac
> > * 4/8/08 - App Engine Limited Preview Release launches!
> >
> > -Marzia
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] querying across different entity types

2008-10-24 Thread darren

Hi, I saw a similar thread on this, but I'm still uncertain on the
best way to query entities if i want to use a reference to other
entities.

I have this as a part of my db structure:

class Route(db.Model):
systemRef = db.ReferenceProperty(TransitSystem)
name = db.StringProperty(required=True)
number = db.IntegerProperty(required=True)

class Stop(db.Model):
name = db.StringProperty(required=True)
routeRef = db.ReferenceProperty(Route)
routeLetter = db.StringProperty(required = False)
## should be true one day
location = db.GeoPtProperty(required=False)
direction = db.StringProperty(required=True)

class Schedule(db.Model):
stopRef = db.ReferenceProperty(Stop)
day = db.StringProperty(required=True)
times = db.ListProperty(str)

If i want to query all Schedules where schedule.stopRef.routeRef.name
= "Broad Street"
Do I have to query first the route, then the stop, then the schedule?
If so, I dont understand the point of using references.  Can somebody
explain the best approach to take when performing queries of this
sort?

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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: could not read from datastore on WindowsXP

2008-10-24 Thread erick

With what permissions is the datastore running? hmmm... How do I
check?
The datastore_path directory is on Full Control under my WIndows login
account.

On Oct 25, 1:37 am, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> This looks to be a permissions error, with the dev_appserver not being able
> to read/write the datastore files where the dev_appserver stores the
> development datastore.
>
> With what permissions is the datastore running? And what is the permissions
> level of the directory to which it is trying to read/write?
>
> -Marzia
>
> On Fri, Oct 24, 2008 at 9:27 AM, erick <[EMAIL PROTECTED]> wrote:
>
> > Hi guys,
>
> > I can't read datastore via dev_appserver.py:
> > WARNING  2008-10-24 16:07:29,250 datastore_file_stub.py] Could not
> > read datastore data
>
> > The application I'm trying to run is the guestbook application which
> > is installed in the \demos directory after installing appengine. I did
> > not edit any of its content.
>
> > This is my dev machine:
> > WindowsXP SP2
> > Python 2.5
> > appengine release 1.1.5
>
> > I read this -http://code.google.com/appengine/docs/thedevwebserver.html
>
> > Tried most of the options like:
> >  --datastore_path \some_directory\
> > and I get something like this:
> > WARNING  2008-10-24 16:07:29,250 datastore_file_stub.py] Could not
> > read datastore data
>
> > --clear_datastore
> > and I get something like this:
> > WARNING  2008-10-24 16:14:17,687 dev_appserver.py] Removing file
> > failed: [Error 5] Access is denied:
>
> > even tried changing port (although this may not seem necessary)
> > -p 
> > and I get something like this:
> > WARNING  2008-10-24 16:25:08,937 datastore_file_stub.py] Could not
> > read datastore
>
> > I uninstalled appengine and reinstalled from a fresh download. Still
> > the same error.
> > I've ran into a few discussions here regarding the same issue and most
> > of the advice their giving is to simply set the datastore_path. Not
> > working in my case.
>
> > I am a python newbie. Any advice? 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: bulk upload users

2008-10-24 Thread Marzia Niccolai
If you know the user's email address for which you want to create profiles,
you can create the user object fairly easily.

new_user = users.User(email='[EMAIL PROTECTED]')

Be aware (from: http://code.google.com/appengine/docs/users/userobjects.html
):

"If the User constructor is called with an email address that does not
correspond with a valid Google account, the object will be created but it
will not correspond with a real Google account. This will be the case even
if someone creates a Google account with the given email address after the
object is stored. A User value with an email address that does not represent
a Google account at the time it is created will never match a User value
that represents a real user."

Also, please note that last week we announced SSL support for all *.
appspot.com domains.

-Marzia

On Fri, Oct 24, 2008 at 7:41 AM, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:

>
> Hi, i need to be able to bulk sign-up users for my app.  This doesn't
> seem to be possible with Google's User model.  My guess is I'll have
> to create a custom user model, but the lack of ssl support is a bit of
> a deterrent.  Any thoughts on how this can be done?
>
> Thanks,
> -Reza
>
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Please don't repeat GWT's mistake!

2008-10-24 Thread Sumit Chandel

Hello everyone,

Sumit Chandel from the GWT team here.

I just wanted to clarify a couple of inaccuracies I've observed in
this thread.

Firstly, I don't believe that the choice to work from Java source
instead of JVM bytecode was a bad decision. The team chose to work
from Java source for all the reasons that Peter described above. For
what GWT is trying to do, which is to produce highly optimized and
lean JavaScript, it would be nonsensical to work from already
optimized JVM bytecode and then attempt to reverse engineer the
bytecode to then be able to infer enough information for optimization
and then translate to JavaScript.

Secondly, GWT is indeed an open source project that is being developed
and maintained by a team of Google engineers. However, the team
accepts hundreds of patches between releases that are contributed from
the open source community. Compiler optimizations and bi-directional
support for widgets in GWT 1.5 are examples of that. Also, we've had a
number of successful open source developers take GWT and build their
own open source projects from it, such as GWT-Ext, hibernate4gwt and
so on.

That said, it would be awesome to see a group of open source
developers take on the challenge of generating highly-optimized
JavaScript from the bytecode level, or even from source in another
programming language. Also, if someone were to get a nice proof-of-
concept working, the team would love to discuss it on the GWT
Contributors forum and see where / how we could roll the idea and help
with the effort if the community starts gaining interest.

GWT Contributor Forum:
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Cheers,
-Sumit Chandel

On Oct 21, 5:51 pm, Sal <[EMAIL PROTECTED]> wrote:
> I have to agree. In fact, I would say that there was no mistake at
> all.
>
> On Oct 21, 12:59 pm, Peter Recore <[EMAIL PROTECTED]> wrote:
>
> > I don't think "mistake" is the right word there.  I'm not an expert on
> > Java Compilers and JVMs, but I'll go out on a limb here and risk
> > embarrassing myself - my gut feeling is that Java is much easier to
> > compile into javascript than random bytecode is.  GWT makes aggressive
> > optimizations based on information it can infer from java semantics.
> > If GWT had to generalize to work with any possible bytecode, I doubt
> > the resulting javascript could be as efficient.  Part of GWT's appeal
> > is that the end product is fast and lean javascript.  While it would
> > be nice if GWT could turn random x86 executable into blazingly fast
> > javascript, I'm not going to criticize the GWT team because they
> > haven't done so yet.  If I'm wrong, and making GWT work with JVM is
> > trivial to do, that's awesome!  Submit the patch to the GWT team.  The
> > fact that no one has yet done so yet implies to me that this is not an
> > easy thing to do, or else no one really wants to do it.  In either
> > case, it is not a mistake that it hasn't been done.
>
> > If you really like working in Scala, you could look into contributing
> > to the project to compile Scala into Java, mentioned at the bottom of
> > this page:  http://www.scala-lang.org/faq/4
>
> > If this post has a slightly sharp tone, it's because I don't like it
> > when people criticize open source projects with vague complaints while
> > at the same time asking for new features.
>
> > -peter
>
> > On Oct 21, 2:07 pm, Amir  Michail <[EMAIL PROTECTED]> wrote:
>
> > > Hi,
>
> > > Please support Java byte code so that we can use any languages that
> > > work using the JVM such as Scala.
>
> > > GWT made a mistake in only supporting Java.  I hope they correct it.
>
> > > Amir

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Complex URLs and Folders

2008-10-24 Thread Jeff S

After thinking about this a bit more, I realized that you might not
need an __init__.py file in admin/. An __init__.py would be required
if you wanted to import from that directory as a package, but when you
define a handler in app.yaml, the script doesn't need to be imported,
it is called directly.

Cheers,

Jeff

On Oct 24, 10:20 am, Jeff S <[EMAIL PROTECTED]> wrote:
> Hi Chris,
>
> Does your admin directory contain an __init__.py file? Are you using
> the webapp framework? Another possible cause that the script isn't run
> might be that the request handler isn't mapped to the URL.  If so, you
> might need something like this:
>
> from google.appengine.ext import webapp
> from google.appengine.ext.webapp.util import run_wsgi_app
>
> class YourEditUserPage(webapp.RequestHandler):
>   ...
>
> application = webapp.WSGIApplication(
>                                      [('/admin/users',
> YourEditUserPage)])
>
> def main():
>   run_wsgi_app(application)
>
> if __name__ == "__main__":
>   main()
>
> Thank you,
>
> Jeff
>
> On Oct 23, 7:20 pm, Chris <[EMAIL PROTECTED]> wrote:
>
>
>
> > How would you map the URL /admin/users to the script admin/
> > editusers.py?
>
> > I tried adding something like this to my app.yaml, but all I get is a
> > blank document
>
> > - url: /admin/users
> >   script: admin/editusers.py
> >   login: admin
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: could not read from datastore on WindowsXP

2008-10-24 Thread Marzia Niccolai
This looks to be a permissions error, with the dev_appserver not being able
to read/write the datastore files where the dev_appserver stores the
development datastore.

With what permissions is the datastore running? And what is the permissions
level of the directory to which it is trying to read/write?

-Marzia

On Fri, Oct 24, 2008 at 9:27 AM, erick <[EMAIL PROTECTED]> wrote:

>
> Hi guys,
>
> I can't read datastore via dev_appserver.py:
> WARNING  2008-10-24 16:07:29,250 datastore_file_stub.py] Could not
> read datastore data
>
> The application I'm trying to run is the guestbook application which
> is installed in the \demos directory after installing appengine. I did
> not edit any of its content.
>
> This is my dev machine:
> WindowsXP SP2
> Python 2.5
> appengine release 1.1.5
>
> I read this - http://code.google.com/appengine/docs/thedevwebserver.html
>
> Tried most of the options like:
>  --datastore_path \some_directory\
> and I get something like this:
> WARNING  2008-10-24 16:07:29,250 datastore_file_stub.py] Could not
> read datastore data
>
> --clear_datastore
> and I get something like this:
> WARNING  2008-10-24 16:14:17,687 dev_appserver.py] Removing file
> failed: [Error 5] Access is denied:
>
> even tried changing port (although this may not seem necessary)
> -p 
> and I get something like this:
> WARNING  2008-10-24 16:25:08,937 datastore_file_stub.py] Could not
> read datastore
>
> I uninstalled appengine and reinstalled from a fresh download. Still
> the same error.
> I've ran into a few discussions here regarding the same issue and most
> of the advice their giving is to simply set the datastore_path. Not
> working in my case.
>
> I am a python newbie. Any advice? 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Complex URLs and Folders

2008-10-24 Thread Jeff S

Hi Chris,

Does your admin directory contain an __init__.py file? Are you using
the webapp framework? Another possible cause that the script isn't run
might be that the request handler isn't mapped to the URL.  If so, you
might need something like this:

from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app

class YourEditUserPage(webapp.RequestHandler):
  ...

application = webapp.WSGIApplication(
 [('/admin/users',
YourEditUserPage)])

def main():
  run_wsgi_app(application)

if __name__ == "__main__":
  main()

Thank you,

Jeff

On Oct 23, 7:20 pm, Chris <[EMAIL PROTECTED]> wrote:
> How would you map the URL /admin/users to the script admin/
> editusers.py?
>
> I tried adding something like this to my app.yaml, but all I get is a
> blank document
>
> - url: /admin/users
>   script: admin/editusers.py
>   login: admin
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: YAML, mappings and handlers.

2008-10-24 Thread Sylvain

"it seems the routing is commonly done in scripts. " : yes , easier to
control.

I use it in app.yaml if i've 2 or more app for the same app_id

On 24 oct, 06:47, Sal <[EMAIL PROTECTED]> wrote:
> So the answer so far seems to be that it doesn't make much difference.
> Well I came across this page 
> (http://www.martinfowler.com/eaaCatalog/frontController.html
> ) that describes the Front Controller pattern. So even though main.py
> and app.yaml can handle routing, it seems the routing is commonly done
> in scripts.
>
> On Oct 20, 8:03 am, Sylvain <[EMAIL PROTECTED]> wrote:
>
> > From here :http://code.google.com/appengine/docs/webapp/running.html
>
> > // Tip: App Engine routes requests to Python scripts based on the URL
> > and mappings specified in the application's app.yaml file. A webapp
> > WSGIApplication further maps specific URL paths to request handlers.
> > How you use both mappings is up to you: You could have all non-static
> > URLs go to a single Python script, and have the script dispatch all
> > dynamic URLs to handlers. Or, you can group functionality into
> > multiple WSGI applications run by different scripts, and use app.yaml
> > to map the appropriate URLs to the appropriate applications. //
>
> > So the conclusion is : "how you use both mappings is up to you"
>
> > Personnaly, in my app.yaml :
> > - url: .*
> >   script: main.py
>
> > Then I dispatch in "main".
>
> > I use 2 handlers, if I've 2 (or more) different apps : for example :
> > handlers:
> > - url: /zipme
> >   script: zipme.py <--- to zip my project.
>
> > - url: .*
> >   script: main.py
>
> > On 20 oct, 11:52, JFQueralt <[EMAIL PROTECTED]> wrote:
>
> > > So far no one has posted any impression on this.
> > > I feel strange about it.
>
> > > Jean
>
> > > On Oct 15, 2:52 am, Sal <[EMAIL PROTECTED]> wrote:
>
> > > > That's a good question. I personally route to the appropriate handlers
> > > > inside a main.py module. I pretty much adopted this approach from GvRs
> > > > presentation. But I have to admit, I don't know of any significant
> > > > advantages of one approach versus the other. I would like to see what
> > > > other ppl think.
>
> > > > On Oct 14, 10:29 am, JFQueralt <[EMAIL PROTECTED]> wrote:
>
> > > > > Hi, everyone.
>
> > > > > I am not sure this question has been raised in the past but I searched
> > > > > a little bit and could not find any topic covering this doubt I am
> > > > > having. Also, I am a newbie on this technologies so maybe my question
> > > > > is kind of obvious.
>
> > > > > - YAML allows us to map URL patterns to modules in written in Python.
> > > > > - Inside a module, I can map an URL to a handler.
>
> > > > > This basically means to me that I have 2 options to handle the
> > > > > following common scenario:
>
> > > > > Root
> > > > > -Folder A
> > > > > -File 1
> > > > > -File 2
> > > > > -File 3
> > > > > -File 4
> > > > > -File 5
>
> > > > > -Folder B
> > > > > -File 1
> > > > > -File 2
> > > > > -File 3
>
> > > > > First option:
> > > > > -> YAML can map the whole folder A to a module and inside the module I
> > > > > further discriminate the right handler to each File.
>
> > > > > Second option:
> > > > > -> YAML maps directly a separate module per each File (which therefore
> > > > > contains only one handler for that particular File).
>
> > > > > My doubt concerns performance, stability and the like.
> > > > > While I don´t mind coding more modules, I am not sure what´s more
> > > > > performant.
> > > > > From a discrimination level, it does not seem to make any difference
> > > > > to me (do it at YAML level or module level... it´s basically the same)
> > > > > but then other aspects might be considered.
>
> > > > > Any ideas?
>
> > > > > Cheers.
>
> > > > > Jean
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: In AppEngine, gdata.py-1.2.1 (latest as of 10-8-08) is broken and gdata.service.http_request_handler = gdata.urlfetch won't help

2008-10-24 Thread Jeff S

I wanted to update this thread to mention that the 1.2.2 release
should fix this issue. Using gdata.service.http_request_handler =
gdata.urlfetch will still work, but it is better to use
gdata.alt.appengine.run_on_appengine(client).

Also, I've updated the App Engine article found here:
http://code.google.com/appengine/articles/gdata.html

Happy coding,

Jeff

On Oct 10, 1:23 pm, Jeff S <[EMAIL PROTECTED]> wrote:
> Instructions for using the latest version of thegdata-python-client
> can be found here:http://code.google.com/appengine/articles/gdata.html
> There are also a few threads on this discussion group which have dealt
> with recent changes in the Python library for Google Data APIs:
>
> http://groups.google.com/group/google-appengine/browse_thread/thread/...http://groups.google.com/group/google-appengine/browse_thread/thread/...http://groups.google.com/group/google-appengine/browse_thread/thread/...http://groups.google.com/group/google-appengine/browse_thread/thread/...
>
> Happy coding,
>
> Jeff
>
> On Oct 8, 9:57 pm, pragmaticobjects <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > Jeff Scudder blogged about making Contacts API work with AppEngine
> > here 
> > (http://googledataapis.blogspot.com/2008/04/release-hounds-support-for...
> > ), butgdata.py-1.2.1 is broken in AppEngine 1.1.5 (both are latest as
> > of 10-08-08).  The error is 'module' object has no attribute 'socket',
> > which already was posted on another Google Group here 
> > (http://groups.google.com/group/youtube-api-gdata/browse_thread/thread...
> > ).
>
> > You can write a simple app usinggdata.py-1.2.1 and AppEngine 1.1.5,
> > get it working  and tell me that I'm crazy, and I'll be glad to hear
> > that, but I spent the whole day and still didn't see it working.
>
> > Anyway, for now I fixed by still using the latestgdata.py.1.2.1,
> > copy /atom and /gdatato the application folder, but I replace all
> > the .py files with the same ones from one of the sample 
> > fromhttp://code.google.com/p/hello-youtube/downloads/list#.  I know that's
> > scary and crazy, but that seems to work for now.  It's better than the
> > alternatives which is either doing nothing, or using one of the older
> >gdata.py versions (don't know which one to select) or simply wait.
>
> > Hope someone from either team at Google see this post, verify the
> > problem, and fix it.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: counting

2008-10-24 Thread Sylvain

Check this :
http://groups.google.com/group/google-appengine/browse_frm/thread/e13a5142274b5f0/b209b6bd0040ba51?lnk=gst&q=count+sylvain#b209b6bd0040ba51

and code here : http://paste.blixt.org/1581

On 24 oct, 08:52, Ben Nevile <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have recently started using GAE for components of a large sports-
> related Facebook app.  One of the contests has hundreds of thousands
> of participants, and I need to be able to tell a user at any given
> time what place they're in.  eg, you are 34,728th out of 234,829
> participants.
>
> After spending some time with the docs and browsing this group, it
> appears that using the datastore there's no way to accomplish this
> relatively mundane task.  So do I have to keep a mysql database active
> on some other host just so that I can efficiently do this type of
> analysis?
>
> 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Dynamic URLs with semicolons work with SDK but not on appspot.com

2008-10-24 Thread Sylvain

";" is reserved but if it works in dev it should work in production
http://www.faqs.org/rfcs/rfc1738.html


On 24 oct, 11:19, pr3d4t0r <[EMAIL PROTECTED]> wrote:
> On Oct 23, 11:17 pm, Casey Dwyer <[EMAIL PROTECTED]> wrote:
>
>
>
> > Consider the following code:
>
> > from google.appengine.ext import webapp
> > from google.appengine.ext.webapp.util import run_wsgi_app
>
> > class MainPage(webapp.RequestHandler):
> >   def get(self, filename):
> > self.response.out.write(filename)
>
> > def main():
> >   application = webapp.WSGIApplication([(r'/bug/(.*)', MainPage)],
> > debug=True)
> >   run_wsgi_app(application)
>
> > if __name__ == '__main__':
> >   main()
>
> > EOF
>
> > I've uploaded this tohttp://kc.appspot.com/bug/.
>
> >http://kc.appspot.com/bug/Helloproducesthe text "Hello" as expected.
>
> >http://kc.appspot.com/bug/semi;colonproducesthe text "semi" but on
> > localhost it produces "semi%3Bcolon" as expected.
>
> > Could somebody please explain this bug to me so I can file an issue
> > report? Also, could somebody provide a workaround?
>
> Hi Casey,
>
> Punctuation in URLs or URIs is almost always a bad, bad, bad idea.
> Always approach situations like this by explicitly URL-encoding the
> data so that semicolons, non-ASCII characters, and other symbols are
> URL-encoded and can be safely transmitted when a client consumes the
> URL or URI.
>
> Learn more about URL encoding here:http://www.w3schools.com/
>
> Here are some infos about how to do this in 
> Python:http://www.python.org/doc/2.5.2/lib/module-urllib.html
>
> Cheers,
>
> pr3d4t0rhttp://www.istheserverup.comhttp://www.teslatestament.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] could not read from datastore on WindowsXP

2008-10-24 Thread erick

Hi guys,

I can't read datastore via dev_appserver.py:
WARNING  2008-10-24 16:07:29,250 datastore_file_stub.py] Could not
read datastore data

The application I'm trying to run is the guestbook application which
is installed in the \demos directory after installing appengine. I did
not edit any of its content.

This is my dev machine:
WindowsXP SP2
Python 2.5
appengine release 1.1.5

I read this - http://code.google.com/appengine/docs/thedevwebserver.html

Tried most of the options like:
 --datastore_path \some_directory\
and I get something like this:
WARNING  2008-10-24 16:07:29,250 datastore_file_stub.py] Could not
read datastore data

--clear_datastore
and I get something like this:
WARNING  2008-10-24 16:14:17,687 dev_appserver.py] Removing file
failed: [Error 5] Access is denied:

even tried changing port (although this may not seem necessary)
-p 
and I get something like this:
WARNING  2008-10-24 16:25:08,937 datastore_file_stub.py] Could not
read datastore

I uninstalled appengine and reinstalled from a fresh download. Still
the same error.
I've ran into a few discussions here regarding the same issue and most
of the advice their giving is to simply set the datastore_path. Not
working in my case.

I am a python newbie. Any advice? 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] bulk upload users

2008-10-24 Thread [EMAIL PROTECTED]

Hi, i need to be able to bulk sign-up users for my app.  This doesn't
seem to be possible with Google's User model.  My guess is I'll have
to create a custom user model, but the lack of ssl support is a bit of
a deterrent.  Any thoughts on how this can be done?

Thanks,
-Reza

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Some doubts about "group by"

2008-10-24 Thread Peter Recore

On Oct 24, 11:34 am, Paulo Fabiano Langer <[EMAIL PROTECTED]>
wrote:
> Thanks for your reply, David. But, why should I save this in
> information if I can get it without it ?

The reason to save that information instead of dynamically generating
it every time a user requests it is scalability and performance.  It
is much faster to retrieve a single int from your language record
(which you're already accessing to get the language name)  than it is
to find all the word records and count them up.


> Ok, it is a solution but is it possible to solve that like using the
> sql GROUP BY ?

>
> On 24 out, 01:34, "David Symonds" <[EMAIL PROTECTED]> wrote:
>
> > On Thu, Oct 23, 2008 at 6:15 PM, Paulo Fabiano Langer
>
> > <[EMAIL PROTECTED]> wrote:
> > > I've created a class called ListLanguages and I use Languages.all()
> > > My doubt is, how could get the languages list and the number of words
> > > of each language?
>
> > > Normaly with SQL we could use group by id_language but I really don't
> > > know how to do that in app engine.
>
> > You put a counter property in the Languages model, and increment it
> > each time you insert a new word.
>
> > Dave.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Some doubts about "group by"

2008-10-24 Thread David Symonds

On Fri, Oct 24, 2008 at 8:34 AM, Paulo Fabiano Langer
<[EMAIL PROTECTED]> wrote:

> Thanks for your reply, David. But, why should I save this in
> information if I can get it without it ?

For scalability. Performing a GROUP BY is very inefficient. A
traditional RDBMS hides this inefficiency.

> Ok, it is a solution but is it possible to solve that like using the
> sql GROUP BY ?

App Engine is not SQL.


Dave.

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Implement AJAX in App Engine

2008-10-24 Thread Bill

There are at least two things you'd want to do in your case:

1) Figure out the necessary javascript to periodically issue AJAX
calls.  This will be dependent on the javascript framework (if any)
you chose.

2) Setup a Django template helper to insert that javascript when the
App Engine server parses your template file.  See this cookbook
recipe:
http://appengine-cookbook.appspot.com/recipe/using-custom-django-template-helpers/?id=ahJhcHBlbmdpbmUtY29va2Jvb2tyjgELEgtSZWNpcGVJbmRleCI4YWhKaGNIQmxibWRwYm1VdFkyOXZhMkp2YjJ0eUZBc1NDRU5oZEdWbmIzSjVJZ1pFYW1GdVoyOE0MCxIGUmVjaXBlIjlhaEpoY0hCbGJtZHBibVV0WTI5dmEySnZiMnR5RkFzU0NFTmhkR1ZuYjNKNUlnWkVhbUZ1WjI4TTAM

A lengthy intro to template helpers is here:
http://docs.djangoproject.com/en/dev/howto/custom-template-tags/

And I recently discovered these rails helpers but haven't used them
yet:
http://code.google.com/p/django-helpers/

-Bill

On Oct 12, 1:06 am, Shay Ben Dov <[EMAIL PROTECTED]> wrote:
> I wonder is there a way to implement AJAX in an application like the
> easy way it is done in Rails:
>
> you write 1 line in the header to include  Javascript, defaults and
> other
>
> then you issue a simple command in your HTML body like:
>
> 
>
> 
>         <%= periodically_call_remote(:update    => 'alerts',
>                                 :url       => { :controller => :alerts,
>                                 :action => :listen_for_requests },
>                                 :frequency => 10 )%>
> to issue a call to the server in the background.
>
> Enabling this kind of capabilities will make life easier and speed-up
> development
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: db.ReferenceProperty django Form

2008-10-24 Thread Francois

if this : http://oebfare.com/blog/2008/feb/23/overriding-modelchoicefield-labels
is the answer… I guess I'm not ready for google app engine.

Francois

On 24 oct, 16:00, Francois <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I just can't find how to populate a drop djangoforms down menu using
> the data from another table.
>
> class Formation(db.Model):
>         date = db.DateProperty()
>         type = db.StringProperty(choices=set(["PSC 1","PSE 1","PSE 2"]))
>         moniteur = db.UserProperty()
>         lieu = db.StringProperty()
>         statut =
> db.StringProperty(choices=set(["Ouvertes","Pause","Fermees"]))
>         entry_time = db.DateTimeProperty(auto_now_add=True)
>         added_by = db.UserProperty()
>
> class Student(db.Model):
>         id_formation = db.ReferenceProperty(Formation)
>         prenom = db.StringProperty(required=True)
>         nom = db.StringProperty(required=True)
>         date_naissance = db.DateProperty()
>         ville_naissance = db.StringProperty()
>         dept_naissance = db.StringProperty()
>         adresse = db.PostalAddressProperty()
>         telephone = db.PhoneNumberProperty()
>         comments = db.StringProperty()
>         paiement = db.StringProperty(choices=set(["PAYE","EN
> ATTENTE","REFUSE"]))
>         entry_time = db.DateTimeProperty(auto_now_add=True)
>         added_by = db.UserProperty()
>
> class StudentForm(djangoforms.ModelForm):
> #       id_formation = djangoforms.ModelChoiceField(Formation,
> query=db.Query(Formation).order('date'))
>         class Meta:
>                 model = Student
>                 exclude = ['added_by']
>
> Does anyone have any idea ?
>
> Thank you
>
> Francois
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Some doubts about "group by"

2008-10-24 Thread Paulo Fabiano Langer

Thanks for your reply, David. But, why should I save this in
information if I can get it without it ?
Ok, it is a solution but is it possible to solve that like using the
sql GROUP BY ?





On 24 out, 01:34, "David Symonds" <[EMAIL PROTECTED]> wrote:
> On Thu, Oct 23, 2008 at 6:15 PM, Paulo Fabiano Langer
>
> <[EMAIL PROTECTED]> wrote:
> > I've created a class called ListLanguages and I use Languages.all()
> > My doubt is, how could get the languages list and the number of words
> > of each language?
>
> > Normaly with SQL we could use group by id_language but I really don't
> > know how to do that in app engine.
>
> You put a counter property in the Languages model, and increment it
> each time you insert a new word.
>
> Dave.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Removing unused application

2008-10-24 Thread Andy Freeman

You could give the application to someone else.

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

On Oct 24, 7:17 am, Rafal Jonca <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have an application on my account that i created only as a demo for
> PyCon PL presentation. How to remove it free the slot? I tryied to
> remove default version (not possible) and remove me as a developer
> (also without success). Any suggestions?
>
> Regards,
> Rafal
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Google App Engine Roadmap - Now Published

2008-10-24 Thread Nash

This is great! Thanks Marzia et al! It's a great step towards giving
us visibility to what we should expect and what we should be planning
for.

On Oct 24, 5:45 am, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Many of you have expressed interest in learning about what's coming next for
> Google App Engine, and although we've often talked about features we plan on
> supporting, we've decided to publish a
> roadmapalong with
> our documentation. The roadmap can be found 
> here:http://code.google.com/appengine/docs/roadmap.html
>
> It should be noted that while we're working hard on these features,
> development schedules do slip at times, and the dates below may change.
> We'll do our best to update this roadmap as our engineers continue
> development.
>
> Without further ado, here it is:
>
> 10/08 - 3/09
> * Service for storing and serving large files
> * Datastore import and export utility for large datasets
> * Billing: developers can pay for more resource usage
> * Support for a new runtime language
> * Uptime monitoring site
>
> And, for reference, here is the release timeline since April:
>
> * 10/16/08 - HTTPS support for *.appspot.com
> * 10/14/20 - Logs for Admin Console usage, and regex filtering for
> application logs
> * 9/18/08 - CPU usage details added to logs and dashboard, zipimport,
> zipserve, memcache viewer
> * 8/22/08 - Multi-entity group batch writes and deletes
> * 7/24/08 - Logs export capability, more apps for everyone!
> * 5/28/08 - Memcache and Image Manipulation API, Open Signups
> * 5/15/08 - App Engine Launcher for Mac
> * 4/8/08 - App Engine Limited Preview Release launches!
>
> -Marzia
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] db.ReferenceProperty django Form

2008-10-24 Thread Francois

Hi,

I just can't find how to populate a drop djangoforms down menu using
the data from another table.

class Formation(db.Model):
date = db.DateProperty()
type = db.StringProperty(choices=set(["PSC 1","PSE 1","PSE 2"]))
moniteur = db.UserProperty()
lieu = db.StringProperty()
statut =
db.StringProperty(choices=set(["Ouvertes","Pause","Fermees"]))
entry_time = db.DateTimeProperty(auto_now_add=True)
added_by = db.UserProperty()

class Student(db.Model):
id_formation = db.ReferenceProperty(Formation)
prenom = db.StringProperty(required=True)
nom = db.StringProperty(required=True)
date_naissance = db.DateProperty()
ville_naissance = db.StringProperty()
dept_naissance = db.StringProperty()
adresse = db.PostalAddressProperty()
telephone = db.PhoneNumberProperty()
comments = db.StringProperty()
paiement = db.StringProperty(choices=set(["PAYE","EN
ATTENTE","REFUSE"]))
entry_time = db.DateTimeProperty(auto_now_add=True)
added_by = db.UserProperty()


class StudentForm(djangoforms.ModelForm):
#   id_formation = djangoforms.ModelChoiceField(Formation,
query=db.Query(Formation).order('date'))
class Meta:
model = Student
exclude = ['added_by']


Does anyone have any idea ?

Thank you

Francois

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Removing unused application

2008-10-24 Thread Rafal Jonca

Hi,

I have an application on my account that i created only as a demo for
PyCon PL presentation. How to remove it free the slot? I tryied to
remove default version (not possible) and remove me as a developer
(also without success). Any suggestions?

Regards,
Rafal
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: time.time() across shards

2008-10-24 Thread jeremy

i'm glad to hear that other thread was way off.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: key().id() upper bound

2008-10-24 Thread jeremy

uh, getting back to my encoding into a string idea. i don't fully
understand this but i am going to get shot in the foot by some behind
the scenes str->unicode conversion, aren't i?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Tips on Optimizing Writes?

2008-10-24 Thread Josh Heitzman

If you can't reduce the number of entities, then all you have left is
to reduce the number of indexed fields on the entities and the number
of elements in any list fields on the entities.  That said you can't
put two entities with only a single non-indexed property each in less
then 1000 mcycles.  See 
http://code.google.com/p/googleappengine/issues/detail?id=786

On Oct 23, 6:57 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> My application get a lot of high-CPU usage warnings on the production
> server. I have spent the past few weeks profiling and optimizing my
> production code as suggested.
>
> From profiler data, I know that 99% of processor time is spent in
> Model.put or db.put. As a result I have been aggressively eliminating
> unnecessary or duplicate write operations. For instance in my most
> processor intensive http request, I have cut down the number of
> entities I update from 5 to a varying number between 0 and 3 depending
> on what absolutely must be updated. I also batch writes by using
> db.put() instead of separately calling Model.put(). As a result, I
> have cut the number of mcycles down from 7000+ to an average of around
> 2000 mcycles.
>
> However, I still get high cpu warnings on one http request, because it
> absolutely needs to update 3 separate entities (two node entities in a
> directed graph, and a sharded counter entity). So my question is, what
> else can I do to further optimize this specific section of code?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: time.time() across shards

2008-10-24 Thread Jon McAlister

Clock sync is generally within seconds between our appservers. The
other thread only has a second-hand account from a nameless source,
but I have found they generally are well synced. If you see any
instances of massive skew, let me know. That said, seconds may be a
lot of skew depending on what your app is doing. It's best to instead
rely on logical constructs (e.g. distributed counters, random ids)
than time.

On Oct 24, 12:30 pm, jeremy <[EMAIL PROTECTED]> wrote:
> off by DAYS?! what the hell google?!!
>
> that's completely unacceptable. how do i "structure around" that one?!
>
> On Oct 24, 2:41 am, Alexander Kojevnikov <[EMAIL PROTECTED]>
> wrote:
>
> > Check this 
> > thread:http://groups.google.com/group/google-appengine/browse_thread/thread/...
>
> > The clocks on different machines can be off by days, you shouldn't
> > rely on them being in sync.
>
> > --www.muspy.com
>
> > On Oct 24, 6:13 pm, jeremy <[EMAIL PROTECTED]> wrote:
>
> > > across shards of the platform, how close can i reasonably expect
> > > time.time() to be synchronized? like, if request A precedes B, how
> > > close would identical requests A and B have to be for me to worry
> > > about B getting an earlier since-epoch value from the platform than A?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: time.time() across shards

2008-10-24 Thread jeremy

off by DAYS?! what the hell google?!!

that's completely unacceptable. how do i "structure around" that one?!



On Oct 24, 2:41 am, Alexander Kojevnikov <[EMAIL PROTECTED]>
wrote:
> Check this 
> thread:http://groups.google.com/group/google-appengine/browse_thread/thread/...
>
> The clocks on different machines can be off by days, you shouldn't
> rely on them being in sync.
>
> --www.muspy.com
>
> On Oct 24, 6:13 pm, jeremy <[EMAIL PROTECTED]> wrote:
>
> > across shards of the platform, how close can i reasonably expect
> > time.time() to be synchronized? like, if request A precedes B, how
> > close would identical requests A and B have to be for me to worry
> > about B getting an earlier since-epoch value from the platform than A?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Creating web forms in GAE

2008-10-24 Thread [EMAIL PROTECTED]

Thanks, I need time to see. It's all new for me.

On Oct 22, 12:22 am, RIAgallery <[EMAIL PROTECTED]> wrote:
> and the back-end comunication is made with 
> JSON:http://sourceforge.net/projects/json-py/
>
> On Oct 21, 7:33 am, "[EMAIL PROTECTED]"
>
>
>
> <[EMAIL PROTECTED]> wrote:
> > Thank's, I'll see! It's very interesting on the first vew!
>
> > On Oct 21, 12:49 am, RIAgallery <[EMAIL PROTECTED]> wrote:
>
> > > I'm using Echo3http://riagallery.appspot.com
>
> > > On Oct 18, 7:47 am, "[EMAIL PROTECTED]"
>
> > > <[EMAIL PROTECTED]> wrote:
> > > > Thanks, David! I  needs time to think, Under integration I was
> > > > thinking to use python on the server side and GWT - on client side.
>
> > > > On Oct 17, 10:56 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote:
>
> > > > > I think:
> > > > > - Servlets are old (now I'm using Struts2)
> > > > > - I like Python to build web prototypes,
> > > > > - and Java static typization for big projects.
> > > > > - GWT output is Javascript/HTML (it is simple to put into GAE)
> > > > > - if you are thinking "integration" as GWT made with Python, a good
> > > > > way is Jython (now I'm using IronPython .NET/Mono for my web browser:
> > > > > this is another integration way)
>
> > > > > On Oct 17, 7:51 am, "[EMAIL PROTECTED]"
>
> > > > > <[EMAIL PROTECTED]> wrote:
> > > > > > And what about using python to make server side code instead of java
> > > > > > servlets? Is that a proper way to integrate GAE and GWT? Excuse me
> > > > > > for my bad english.
>
> > > > > > On Oct 17, 1:49 am, Davide Rognoni <[EMAIL PROTECTED]> wrote:
>
> > > > > > > I like the idea of a GAE Java version: it will run under Tomcat.
>
> > > > > > > On Oct 16, 3:50 am, "[EMAIL PROTECTED]"
>
> > > > > > > <[EMAIL PROTECTED]> wrote:
> > > > > > > > Thanks, David! I thought that my first attempt to ask question 
> > > > > > > > have
> > > > > > > > failed. And what do you think about Java in GAE ?
>
> > > > > > > > Davide Rognoni wrote:
> > > > > > > > > "web forms with  widgets in Django"
> > > > > > > > >http://docs.djangoproject.com/en/dev/ref/forms/widgets/
>
> > > > > > > > > On Oct 15, 3:38 pm, "[EMAIL PROTECTED]"
> > > > > > > > > <[EMAIL PROTECTED]> wrote:
> > > > > > > > > > Hi,
> > > > > > > > > > Can anybody say please, what ways exist in GAE environment 
> > > > > > > > > > to create
> > > > > > > > > > web forms like in GWT widgets library. Is it possible to 
> > > > > > > > > > use tcl\tk
> > > > > > > > > > from python? Thanks in advance!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Implement AJAX in App Engine

2008-10-24 Thread Shay Ben Dov

If you can point to RIA source code that updates continuously the time
or the status of inventory levels

It will be very helpful

thanks

Shay Ben Dov


On Oct 13, 9:21 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote:
> "Ajax Requests"http://docs.jquery.com/Ajax
>
> "setInterval(func, interval, [args])"
> Calls the specified "func" (or aJavaScriptstatement) repeatedly per
> the "interval" interval, in milliseconds (ie: 1000=every 1 second).
> "func" must be surrounded in quotations, as if it was a string. Use
> the optional "args" to pass any number of arguments to the 
> function.http://www.javascriptkit.com/jsref/window.shtml
>
> On Oct 13, 1:00 pm, "David Symonds" <[EMAIL PROTECTED]> wrote:
>
> > On Sun, Oct 12, 2008 at 7:06 PM, Shay Ben Dov <[EMAIL PROTECTED]> wrote:
>
> > > I wonder is there a way to implement AJAX in an application like the
> > > easy way it is done in Rails:
>
> > > you write 1 line in the header to include  Javascript, defaults and
> > > other
>
> > > then you issue a simple command in your HTML body like:
>
> > App Engine is really a much lower level platform than that. You could
> > probably write your own AJAX stuff like you suggest usingJavaScript,
> > being helped out by a library like jQuery.
>
> > Dave.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Move app to another Google Account

2008-10-24 Thread Alexander Kojevnikov

You can add a new developer account from the control panel. After
activating it you can delete the original developer account.

--
www.muspy.com

On Oct 24, 9:17 pm, Diego <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I was wondering if it was possible to move a Gogle App Engine
> application from one Google Account to another?
>
> Cheers,
> Diego
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: time.time() across shards

2008-10-24 Thread Alexander Kojevnikov

Check this thread:
http://groups.google.com/group/google-appengine/browse_thread/thread/92cb907b13585c3f/1e48dba24e998735

The clocks on different machines can be off by days, you shouldn't
rely on them being in sync.

--
www.muspy.com

On Oct 24, 6:13 pm, jeremy <[EMAIL PROTECTED]> wrote:
> across shards of the platform, how close can i reasonably expect
> time.time() to be synchronized? like, if request A precedes B, how
> close would identical requests A and B have to be for me to worry
> about B getting an earlier since-epoch value from the platform than A?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Move app to another Google Account

2008-10-24 Thread chenbaiping

Move  what? 
Source code? Surely you can.

If you want another Google  account can manage the app, you can do it in the 
control panel by this page Administration-> Developers ->Invite a Developer to 
Collaborate on this Application .
In that page , you could also delete the original Google account. But I never 
try it. If you successfully delete it , please tell me.

-邮件原件-
发件人: google-appengine@googlegroups.com [mailto:[EMAIL PROTECTED] 代表 Diego
发送时间: 2008年10月24日 17:17
收件人: Google App Engine
主题: [google-appengine] Move app to another Google Account


Hi all,

I was wondering if it was possible to move a Gogle App Engine
application from one Google Account to another?

Cheers,
Diego


 KILLÓʼþ°²È«Íø¹Ø ÒѾ­É¨ÃèÁËÕâ·âÓʼþ 



--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Dynamic URLs with semicolons work with SDK but not on appspot.com

2008-10-24 Thread pr3d4t0r

On Oct 23, 11:17 pm, Casey Dwyer <[EMAIL PROTECTED]> wrote:
> Consider the following code:
>
> from google.appengine.ext import webapp
> from google.appengine.ext.webapp.util import run_wsgi_app
>
> class MainPage(webapp.RequestHandler):
>   def get(self, filename):
>     self.response.out.write(filename)
>
> def main():
>   application = webapp.WSGIApplication([(r'/bug/(.*)', MainPage)],
> debug=True)
>   run_wsgi_app(application)
>
> if __name__ == '__main__':
>   main()
>
> EOF
>
> I've uploaded this tohttp://kc.appspot.com/bug/.
>
> http://kc.appspot.com/bug/Helloproduces the text "Hello" as expected.
>
> http://kc.appspot.com/bug/semi;colonproduces the text "semi" but on
> localhost it produces "semi%3Bcolon" as expected.
>
> Could somebody please explain this bug to me so I can file an issue
> report? Also, could somebody provide a workaround?

Hi Casey,

Punctuation in URLs or URIs is almost always a bad, bad, bad idea.
Always approach situations like this by explicitly URL-encoding the
data so that semicolons, non-ASCII characters, and other symbols are
URL-encoded and can be safely transmitted when a client consumes the
URL or URI.

Learn more about URL encoding here:
http://www.w3schools.com/

Here are some infos about how to do this in Python:
http://www.python.org/doc/2.5.2/lib/module-urllib.html

Cheers,

pr3d4t0r
http://www.istheserverup.com
http://www.teslatestament.com

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



[google-appengine] Move app to another Google Account

2008-10-24 Thread Diego

Hi all,

I was wondering if it was possible to move a Gogle App Engine
application from one Google Account to another?

Cheers,
Diego
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Profiling code, datastore stats

2008-10-24 Thread Waldemar Kornewald

Hi Mike,

On 24 Okt., 01:59, Mike Wesner <[EMAIL PROTECTED]> wrote:
> The docs mention how to profile the code, which shows function calls
> and things.
>
> How do you profile the datastore calls? (number of queries, read/
> write, time, etc)
>
> Does anyone have some interesting ways to profile their apps?

If you use Django and appenginepatch you can use our integrated
profiler. The documentation also suggests how to profile datastore
calls per request:

http://code.google.com/p/app-engine-patch/wiki/Profiling

Bye,
Waldemar Kornewald
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Appengine Helper, Utilities, Patch, etc

2008-10-24 Thread Waldemar Kornewald

Well, since it was pretty easy and you weren't the only one requesting
this feature I've just added support for Google authentication:
http://code.google.com/p/app-engine-patch/wiki/GoogleAccounts

Bye,
Waldemar Kornewald
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Google App Engine Roadmap - Now Published

2008-10-24 Thread Jon McAlister

Hi Jeffrey, I appreciate your feedback. You definitely have good
insight into the issues and the reasons why they are still issues :-).
We recently did such a fixit of low hanging user bugs and these fixes
will be pushed soon. I don't remember if we got everything that you
mentioned in your email, as we focused on the most highly requested
bug fixes.

We are also still interested in offline processing and a task queue
API. In fact, there are tons of things that we are investigating and
implementing that aren't reflected on the roadmap. We are
intentionally trying to under-promise and over-deliver, and having a
roadmap at all is a fairly novel and experimental thing at Google (as
is the uptime monitoring site we're working on).

I hope we can get your issues resolved quickly. It's hard to balance
new feature development, bug fixing, and service maintenance, but we
sincerely do not want to fall behind on bug fixing.

Jon

On Oct 24, 5:01 am, Jeffrey Rosen <[EMAIL PROTECTED]> wrote:
> Thanks for clarifying this!  I am especially relieved to see the
> datastore import/export and the billing option announced.  I am also
> relieved to see recent advances like the HTTPS release which now lets
> us add things like Google Checkout integration.  As someone who runs
> their entire business (http://www.wolfire.com) on Google App Engine,
> here are a few things that I would like to see, for what it's worth:
>
> - The latency for using your own domain.  The appspot url is
> distributed around the world and extremely fast.  We're talking 2 -
> 8ms in the bay area.  However, once you put your app on your own
> domain, that latency goes to ~100 ms to 200ms in the bay area.  Still
> "decent", but slower than what a typical web host would provide.  I
> would be interested to hear what Google is planning to do about this.
>
> Here is the 
> ticket:http://code.google.com/p/googleappengine/issues/detail?id=531
>
> For what it's worth, the reason I signed up for this service in the
> first place is because I was so impressed with the CDN aspect of the
> service and the low latency around the world of my pages.  I don't
> want to tell you guys about your own business, but IMHO, this CDN
> aspect of GAE is one of the few things that makes Google unique from
> other web hosting providers and Google is one of the few companies out
> there that has the necessary infrastructure to pull it off.  It's a
> shame that GAE isn't reaching its full potential in this regard.
>
> From what I hear, it's internal bureaucracy with the Google Apps team
> handling the DNS routing and the GAE handling the other aspect of the
> service, but whatever it is, I am sure you guys can solve it.
>
> It's just really frustrating because when I was initially testing it
> in jeffr.appspot.com, the site is so fast, it is literally
> instantaneous.  Like you click the link, and it is already there.
> Even people who aren't tech savvy would comment independently on how
> it was the fastest site they had ever seen, but now wolfire.com is
> actually slower than it was on our original dedicated server.
>
> - Support for naked domains.  It's annoying that I have to redirect
> people who go to wolfire.com towww.wolfire.com.  If anything, I'd
> rather do it the other way around.  This also adds to the latency,
> ruining our chance for an instantaneous load like on 
> appspot.http://code.google.com/p/googleappengine/issues/detail?id=777
>
> - Some fixes for small misc bugs and "features".  For example, it is
> impossible to set a display name on emails.  This is a simple best
> practice to make your email look like it was from "Wolfire Games"
> rather than [EMAIL 
> PROTECTED]://code.google.com/p/googleappengine/issues/detail?id=677
>
> Another example is how GAE doesn't let you set cookies on a 301
> redirect.http://code.google.com/p/googleappengine/issues/detail?id=784
>
> I am sure these are tiny bugs that could be corrected in less than a
> day of an engineer's work yet they are actually quite important to GAE
> users (despite the small number of stars).  Basically, I would like a
> little more transparency on what the GAE is doing.  It would be cool
> to maybe allocate a week to just fix all of the low hanging fruit bugs
> like these ones rather than spending months working on adding Java
> support or HTTPS support exclusively.  I can't really comment on what
> Google is doing, because I simply don't know, but that is what it
> feels like to me.
>
> A few other things to throw out there; a task queue so we can get rid
> of the third party server regular http ping hack and full text search.
>
> Sorry if this post sounds negative.  I love GAE and don't regret
> choosing it as my platform for a minute, but that's my feedback as
> someone who works with it every day. :)
>
> On Oct 23, 5:45 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > Many of you have expressed interest in learning about what's coming next for
> > Google App Engine, and although we'

[google-appengine] NTLMAPS proxy stop worked since 1.1.5

2008-10-24 Thread Sharp-Developer.Net

Hi,

I'm sitting behind corporate ISA proxy that require NTLM
authenticaiton.

There is an NTLMAPS proxy solution (http://code.google.com/p/
googleappengine/issues/detail?id=126) that worked fine for me but
seems broken since version 1.1.5

When I enter password when updating an app  it's hanging and in
NTLMAPS a lot of
dots are typed in dead cycle.

Anyone has the same issue or is it something changed on my proxy/
client?

I'm not sure it's about 1.1.5 version as I was on vacation and did not
upload my app using proxy for a while.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Appengine Helper, Utilities, Patch, etc

2008-10-24 Thread Waldemar Kornewald

Hi Mike,

On 24 Okt., 03:57, Mike <[EMAIL PROTECTED]> wrote:
> I am interested in using Google Accounts for authentication with the
> rest of the django auth package to handle permission, additional user
> data and the decorators to restrict access to views. Do you have any
> hints how to do this? Basically I am thinking to authenticate a user
> by simply checking if the email property from users.get_current_user()
> matches with the username/email field of any objects in the User Table
> I setup. The request.user attribute seems to be required for the
> permission decorators to work, so I presume I would need to find some
> way to have request.user retrieve the User object based on
> users.get_current_user(). Any ideas would be appreciated.

Joe Bowman published his implementation on our Google Group:
http://groups.google.com/group/app-engine-patch/msg/9f0d2e6928896381

I'd also suggest looking at the appengine-helper code (the middleware,
in particular):
http://code.google.com/p/google-app-engine-django/source/browse/trunk/appengine_django/auth/

BTW, it's better to use a UserProperty instead of identifying users by
email address. Otherwise someone could change his email without you
taking notice.

Bye,
Waldemar Kornewald
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---