[google-appengine] Re: dev_appserver.py

2009-03-16 Thread Tim Hoffman

Hi

Have a read of the docs/command line for dev_appserver.

By default the dev server only listens to localhost (ie the loopback
interface) and
is therefore not listening on any other interface (apache for instance
by default will listen to all interfaces).

You need to start the dev server with the command line option telling
it to listen on a particular interface

Note below the --address and --port options

Also there is probably a good chance your firewall (you do have a
firewall) should block inbound access on that port.

T



python ../google_appengine/dev_appserver.py --help
Runs a development application server for an application.

dev_appserver.py [options] 

Application root must be the path to the application to run in this
server.
Must contain a valid app.yaml or app.yml file.

Options:
  --help, -h View this helpful message.
  --debug, -dUse debug logging. (Default false)
  --clear_datastore, -c  Clear the Datastore on startup. (Default
false)
  --address=ADDRESS, -a ADDRESS
 Address to which this server should bind.
(Default
 localhost).
  --port=PORT, -p PORT   Port for the server to run on. (Default
8080)
  --datastore_path=PATH  Path to use for storing Datastore file
stub data.
 (Default /tmp/dev_appserver.datastore)
  --history_path=PATHPath to use for storing Datastore
history.
 (Default /tmp/
dev_appserver.datastore.history)
  --require_indexes  Disallows queries that require composite
indexes
 not defined in index.yaml.
  --smtp_host=HOSTNAME   SMTP host to send test mail to.  Leaving
this
 unset will disable SMTP mail sending.
 (Default '')
  --smtp_port=PORT   SMTP port to send test mail to.
 (Default 25)
  --smtp_user=USER   SMTP user to connect as.  Stub will only
attempt
 to login if this field is non-empty.
 (Default '').
  --smtp_password=PASSWORD   Password for SMTP server.
 (Default '')
  --enable_sendmail  Enable sendmail when SMTP not configured.
 (Default false)
  --show_mail_body   Log the body of emails in mail stub.
 (Default false)
  --auth_domain  Authorization domain that this app runs
in.
 (Default gmail.com)
  --debug_importsEnables debug logging for module imports,
showing
 search paths used for finding modules and
any
 errors encountered during the import
process.
  --disable_static_caching   Never allow the browser to cache static
files.
 (Default enable if expiration set in
app.yaml)


On Mar 17, 1:59 pm, Venky  wrote:
> Hi,
>
> I developed a python application on eclipse using plugin pydev...
>
> my url ishttp://localhost:8080/sampleits working fine...
>
> nut my url is not accesed from other systems the url i gave is
>  http://ws-10.hyd.ecomzera.com:8080/workspace_loc:rhs/src
>
> where ws-10 is system name
> hyd.ecomzera.com is domain
> :8080 is port number
> workspace_loc:rhs/src is workspace directory
>
> its not opening from other systems
>
> its working fine in my local system
>
> I am trying in command prompt dev_appserver.py myapp
>
> its displaying dev_webserver.py is not recognized as a internal or
> external command...
>
> what to do please help
> --~--~-~--~~~---~--~~
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: urgent help needed:cann't update to GAE via http proxy

2009-03-16 Thread Coonay

it really works,

On Mar 16, 10:28 am, catgon  wrote:
> Hi Coonay,
>
> If you are under a proxy you need to do the below commands first:
>
> Set http_proxy=http://user:p...@proxy:8080
> Set https_proxy=http://user:p...@proxy:8080
>
> hope this works
>
> On Mar 15, 1:05 am, Coonay  wrote:
>
> > yes, i did 
> > ashttp://code.google.com/appengine/docs/python/tools/uploadinganapp.htm...
> > ,but it doesn't work,
> > i cann't update succesuffly that way
>
> > On Mar 13, 9:50 pm, "Sharp-Developer.Net"
>
> >  wrote:
> > > Try to search on this group or in Google.com - it was discussed many
> > > times here.
> > > --
> > > Alex
>
> > > On Mar 13, 6:57 am, Coonay  wrote:
>
> > > > cmd>set HTTP_PROXY=http://cache.mycompany.com:3128
> > > > cmd>python appcfg.py update myapp
> > > > URLError:  > > > because the t
> > > > arget machine actively refused it>
> > > > Traceback (most recent call last):
> > > >   File "C:\Program Files\Google\google_appengine\appcfg.py", line 60,
> > > > in 
> > > >     run_file(__file__, globals())
> > > >   File "C:\Program Files\Google\google_appengine\appcfg.py", line 57,
> > > > in run_fil
> > > > e
> > > >     execfile(script_path, globals_)
> > > >   File "C:\Program Files\Google\google_appengine\google\appengine
> > > > \tools
> > > > \appcfg.p
> > > > y", line 1976, in 
> > > >     main(sys.argv)
> > > >   File "C:\Program Files\Google\google_appengine\google\appengine
> > > > \tools
> > > > \appcfg.p
> > > > y", line 1967, in main
> > > >     result = AppCfgApp(argv).Run()
> > > >   File "C:\Program Files\Google\google_appengine\google\appengine
> > > > \tools
> > > > \appcfg.p
> > > > y", line 1418, in Run
> > > >     self.action(self)
> > > >   File "C:\Program Files\Google\google_appengine\google\appengine
> > > > \tools
> > > > \appcfg.p
> > > > y", line 1879, in __call__
> > > >     return method()
> > > >   File "C:\Program Files\Google\google_appengine\google\appengine
> > > > \tools
> > > > \appcfg.p
> > > > y", line 1669, in Update
> > > >     lambda path: open(os.path.join(basepath, path), "rb"))
> > > >   File "C:\Program Files\Google\google_appengine\google\appengine
> > > > \tools
> > > > \appcfg.p
> > > > y", line 1213, in DoUpload
> > > >     missing_files = self.Begin()
> > > >   File "C:\Program Files\Google\google_appengine\google\appengine
> > > > \tools
> > > > \appcfg.p
> > > > y", line 1009, in Begin
> > > >     version=self.version, payload=self.config.ToYAML())
> > > >   File "C:\Program Files\Google\google_appengine\google\appengine
> > > > \tools
> > > > \appengin
> > > > e_rpc.py", line 312, in Send
> > > >     self._Authenticate()
> > > >   File "C:\Program Files\Google\google_appengine\google\appengine
> > > > \tools
> > > > \appengin
> > > > e_rpc.py", line 344, in _Authenticate
> > > >     super(HttpRpcServer, self)._Authenticate()
> > > >   File "C:\Program Files\Google\google_appengine\google\appengine
> > > > \tools
> > > > \appengin
> > > > e_rpc.py", line 233, in _Authenticate
> > > >     auth_token = self._GetAuthToken(credentials[0], credentials[1])
> > > >   File "C:\Program Files\Google\google_appengine\google\appengine
> > > > \tools
> > > > \appengin
> > > > e_rpc.py", line 177, in _GetAuthToken
> > > >     response = self.opener.open(req)
> > > >   File "C:\PROGRA~1\Python26\lib\urllib2.py", line 383, in open
> > > >     response = self._open(req, data)
> > > >   File "C:\PROGRA~1\Python26\lib\urllib2.py", line 401, in _open
> > > >     '_open', req)
> > > >   File "C:\PROGRA~1\Python26\lib\urllib2.py", line 361, in
> > > > _call_chain
> > > >     result = func(*args)
> > > >   File "C:\PROGRA~1\Python26\lib\urllib2.py", line 1138, in
> > > > https_open
> > > >     return self.do_open(httplib.HTTPSConnection, req)
> > > >   File "C:\PROGRA~1\Python26\lib\urllib2.py", line 1105, in do_open
> > > >     raise URLError(err)
> > > > urllib2.URLError:  > > > made becau
> > > > se the target machine actively refused it>
>
> > > > PS:the version of gae is 1.1.9,
> > > >      python  is 2.6- Hide quoted text -
>
> > - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: hello

2009-03-16 Thread venkat rambotla
Hi Jyothi,

Thanks for ur suggestion...
I am facing a problem when i am running ur suggested command from command
prompt its
saying 'dev_appserver.py is not a internal or external command,operable
program or batch file..

please help

Thanking You,
Regards,
Venky

On Thu, Mar 12, 2009 at 10:13 PM, Jyoti Shete-Javadekar <
jyoti.javade...@gmail.com> wrote:

> Hi Venky,
> Use -a0.0.0.0 option while starting your dev server.
>
> e.g.
> python dev_appserver.py -a0.0.0.0 
>
> Once you start the server like this, you will be able to access your app
> using the IP address of the machine where dev server is running. http://
> :8080
>
>
>  On Thu, Mar 12, 2009 at 2:27 AM, Venky  wrote:
>
>>
>> Hello I created a python application in ecilpse targeting app engine
>> through pydev
>>
>> my application name is Helloworld
>>
>> its runs fine on my local browser http://localhost:8080
>>
>> now how should i make my application access to other systems,What
>> should be the url from other systems to access the application
>>
>>
>>
>
>
> --
> -Jyoti
> www.videonym.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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] dev_appserver.py

2009-03-16 Thread Venky

Hi,

I developed a python application on eclipse using plugin pydev...

my url is http://localhost:8080/sample its working fine...

nut my url is not accesed from other systems the url i gave is
 http://ws-10.hyd.ecomzera.com:8080/workspace_loc:rhs/src

where ws-10 is system name
hyd.ecomzera.com is domain
:8080 is port number
workspace_loc:rhs/src is workspace directory

its not opening from other systems

its working fine in my local system

I am trying in command prompt dev_appserver.py myapp

its displaying dev_webserver.py is not recognized as a internal or
external command...

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



[google-appengine] dev_appserver.py

2009-03-16 Thread Venky

Hi,

I developed a python application on eclipse using plugin pydev...

my url is http://localhost:8080/sample its working fine...

nut my url is not accesed from other systems the url i gave is
 http://ws-10.hyd.ecomzera.com:8080/workspace_loc:rhs/src

where ws-10 is system name
hyd.ecomzera.com is domain
:8080 is port number
workspace_loc:rhs/src is workspace directory

its not opening from other systems

its working fine in my local system

I am trying in command prompt dev_webserver.py myapp

its displaying dev_webserver.py is not recognized as a internal or
external command...

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



[google-appengine] Re: lots of datastore timeouts in our app

2009-03-16 Thread Gee

sorry to keep replying to my own thread lol

I tracked it down... seems that a get() is now throwing an exception
where it wasn't before... (maybe because its empty)

I just catch it instead of proceeding and the code works again (since
I dont want to do anything when its empty anyway)

just an fyi for anyone taht sees this.

also, if someone from google can verify that the behavior changed,
that would be awesome thanks!

On Mar 16, 8:55 pm, Gee  wrote:
> hmm will it show 500 error if the model is empty?  that might be
> why...  but still getting lots of timeouts.   will look into it more,
> but let me know if anyone else is seeing this.. thanks!
>
> On Mar 16, 8:54 pm, Gee  wrote:
>
> > Hello,
>
> > we are seeing repeated timeouts on one of our models in the
> > datastore.  I also cannot view it in the admin console... it returns a
> > 500 server error.  I can view the other models just fine.
>
> > Our app id is: rotzy
>
> > please help thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: lots of datastore timeouts in our app

2009-03-16 Thread Gee

hmm will it show 500 error if the model is empty?  that might be
why...  but still getting lots of timeouts.   will look into it more,
but let me know if anyone else is seeing this.. thanks!


On Mar 16, 8:54 pm, Gee  wrote:
> Hello,
>
> we are seeing repeated timeouts on one of our models in the
> datastore.  I also cannot view it in the admin console... it returns a
> 500 server error.  I can view the other models just fine.
>
> Our app id is: rotzy
>
> please help thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] lots of datastore timeouts in our app

2009-03-16 Thread Gee

Hello,

we are seeing repeated timeouts on one of our models in the
datastore.  I also cannot view it in the admin console... it returns a
500 server error.  I can view the other models just fine.

Our app id is: rotzy

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



[google-appengine] Re: Just checking before I start using app engine - paypal/checkout, django 1.0....

2009-03-16 Thread jay

Hello,

I would also like to know if anybody has done integrations with Paypal
or Google Checkout.

An article in the Docs would be ideal.

I can't imagine this would be difficult, but concerned about the
security implications.

Jay.

On Mar 8, 7:47 pm, Lou  wrote:
> Hey guys,
>
> I'm really keen on the idea of app engine.
>
> I've been developing a site with a friend and we are finishing off
> development/putting it up online at the moment.  It's all written
> using django.  We've found that our site is really slow (too many
> database queries I think). -it's the first site we've developed using
> python and django.
>
> What I want to know is if it's straightforward, and how much of a
> learning curve/hassle it is to transfer our site from django 1.02 to
> app engine.
>
> I thought I might ask about whether integration with paypal/google
> checkout is difficult (I think we want to use the InstantPayment
> Notification (IPN) ) in paypal.
>
> Lastly, just a quick question about how good the documentation is, and
> help when you need it?
>
> Thanks a lot :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: "Let Delete My Apps" (3 apps)

2009-03-16 Thread Adam

If you must subject us to this every day, for the love of god please
change it to 'let ME delete my apps'.

Or better yet, just stop.

A

On Mar 16, 4:31 pm, xml2jsonp  wrote:
> Thanks to:
> - ikoo-dirtylife
> - gythialy-app
> - pyoohtml
>
> http://pyoohtml.appspot.com/let-delete-my-apps/home
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Can Google Apps Account be an Administrator?

2009-03-16 Thread Scumbag

I've got a Google App Engine application which is using Google
Accounts for authentication.

The application was created by a Google Apps user.  If I try to add a
new developer, and they accept the invitation using a Google Account,
then they can't see the application.  Note that the acceptance is
registered and the new user is listed as an active developer.

If the new user instead tries to login using Google Apps
authentication, then they can successfully see the Google App Engine
application.

Does that make sense?

The problem I've got is that I cannot use the is_current_user_admin()
function.  To my application, all users appear as ordinary users -
because all the Developers/Administrators have to login using a Google
Apps account.


On Feb 27, 5:45 am, Marzia Niccolai  wrote:
> Hi,
>
> Yes, Google Apps accounts can be admins of an application.  However, it's
> really only suggested that they are admins of an application where the
> authentication option of an app is also set to Google Apps.
>
> Generally, in order to sign in to an application as an admin, the type of
> account must match the authentication setting for that app.  This is because
> the app can only serve the authentication page that matches it's
> authentication option.
>
> We have an article on the subject which may be slightly more 
> clear:http://code.google.com/appengine/articles/auth.html
>
> If it sounds confusing, that's because it is.  Especially because you can
> have emails that are both Google Accounts and Google Apps accounts.  All I
> can say on that is that we hope in the future we can make it less confusing
> for all our users, but we aren't there yet.
>
> -Marzia
>
> On Thu, Feb 26, 2009 at 10:37 AM, lenza  wrote:
>
> > I signed up for GAE using my Google Apps account, not a gmail.com
> > account.  I can access the administrator console with this account.
> > However, I cannot access pages where I have "login: admin" set.  Also
> > users.is_current_user_admin() returns False when signed into my Google
> > Apps account.
>
> > I also have an gmail.com account that I just added as an
> > administrator.  This account can access "login: admin" pages and
> > users.is_current_user_admin() returns True.
>
> > Is this a known issue?
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: dev_appserver.py", line 55, in

2009-03-16 Thread Matthew Page-Lieberman
Do you have a .yaml file? Are you using the Getting Started tutorial?

On Mon, Mar 16, 2009 at 8:24 PM, Lord Gustavo Miguel Angel <
goosfanc...@gmail.com> wrote:

>  with python 2.5.4 equal. same error.
>
> - Original Message -
> *From:* Matthew Page-Lieberman 
> *To:* google-appengine@googlegroups.com
> *Sent:* Monday, March 16, 2009 9:10 PM
> *Subject:* [google-appengine] Re: dev_appserver.py", line 55, in 
>
>
> *The Development Environment*
>
> *You develop and upload applications for Google App Engine using the App
> Engine software development kit (SDK).*
>
> *The SDK includes a web server application that simulates the App Engine
> environment, including a local version of the datastore, Google Accounts,
> and the ability to fetch URLs and send email directly from your computer
> using the App Engine APIs. The SDK runs on any computer with Python 2.5,and 
> versions are available for Windows, Mac OS X and Linux.
> *
> *If necessary, download and install Python 2.5 for your platform from the
> Python website ...
>
> *
> http://code.google.com/appengine/docs/python/gettingstarted/devenvironment.html
> *
>
> **You need to have Python 2.5 and you only have Python 2.4.5 installed.
> ** *
> On Mon, Mar 16, 2009 at 8:05 PM, Lord Gustavo Miguel Angel <
> goosfanc...@gmail.com> wrote:
>
>
>  sorry i don´t understand
>>
>>
>>  - Original Message -
>> *From:* Matthew Page-Lieberman 
>> *To:* google-appengine@googlegroups.com
>>   *Sent:* Monday, March 16, 2009 8:50 PM
>> *Subject:* [google-appengine] Re: dev_appserver.py", line 55, in 
>>
>> Don't forget the first sentence.
>>
>> On Mon, Mar 16, 2009 at 7:29 PM, Lord Gustavo Miguel Angel <
>> goosfanc...@gmail.com> wrote:
>>
>>>  thank´s
>>> But i have python 2.4.5 not 3.0
>>>
>>>
>>>   - Original Message -
>>> *From:* Matthew Page-Lieberman 
>>> *To:* google-appengine@googlegroups.com
>>> *Sent:* Monday, March 16, 2009 6:09 PM
>>> *Subject:* [google-appengine] Re: dev_appserver.py", line 55, in
>>> 
>>>
>>> I know that one of the requirements to run GAE is to have at least Python
>>> 2.5. Don't go running to Python 3.0 though just quite yet for GAE. It's not
>>> supported AFAIK.
>>>
>>> On Mon, Mar 16, 2009 at 3:54 PM, goosfancito wrote:
>>>

 hello,

 OS: windows xp Sp2
 version python: 2.4.5


 i´m new user googe app engine. when i do

 dev_appserver.py holamundo

 appeserver reports

 - 8< -
  File "C:\Google\google_appengine\dev_appserver.py", line 55, in
 
execfile(script_path, globals())
  File "C:\Google\google_appengine\google\appengine\tools
 \dev_appserver_main.py"
 , line 358, in 
sys.exit(main(sys.argv))
  File "C:\Google\google_appengine\google\appengine\tools
 \dev_appserver_main.py"
 , line 306, in main
config, matcher = dev_appserver.LoadAppConfig(root_path, {})
  File "C:\Google\google_appengine\google\appengine\tools
 \dev_appserver.py", lin
 e 2638, in LoadAppConfig
raise AppConfigNotFoundError
 google.appengine.tools.dev_appserver.AppConfigNotFoundError

 - 8< -

 Why?
 Thank´s



>>>
>>>
>>> --
>>> M. Page-Lieberman
>>> mateus.just...@gmail.com
>>>
>>>
>>
>>
>> --
>> M. Page-Lieberman
>> mateus.just...@gmail.com
>>
>>
>
>
> --
> M. Page-Lieberman
> mateus.just...@gmail.com
> >
>


-- 
M. Page-Lieberman
mateus.just...@gmail.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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: dev_appserver.py", line 55, in

2009-03-16 Thread Lord Gustavo Miguel Angel
with python 2.5.4 equal. same error.
  - Original Message - 
  From: Matthew Page-Lieberman 
  To: google-appengine@googlegroups.com 
  Sent: Monday, March 16, 2009 9:10 PM
  Subject: [google-appengine] Re: dev_appserver.py", line 55, in 




  The Development Environment
  You develop and upload applications for Google App Engine using the App 
Engine software development kit (SDK).

  The SDK includes a web server application that simulates the App Engine 
environment, including a local version of the datastore, Google Accounts, and 
the ability to fetch URLs and send email directly from your computer using the 
App Engine APIs. The SDK runs on any computer with Python 2.5, and versions are 
available for Windows, Mac OS X and Linux.

  If necessary, download and install Python 2.5 for your platform from the 
Python website...

  
http://code.google.com/appengine/docs/python/gettingstarted/devenvironment.html

  You need to have Python 2.5 and you only have Python 2.4.5 installed.
   

  On Mon, Mar 16, 2009 at 8:05 PM, Lord Gustavo Miguel Angel 
 wrote:



sorry i don´t understand

  - Original Message - 
  From: Matthew Page-Lieberman 
  To: google-appengine@googlegroups.com 
  Sent: Monday, March 16, 2009 8:50 PM
  Subject: [google-appengine] Re: dev_appserver.py", line 55, in 


  Don't forget the first sentence.


  On Mon, Mar 16, 2009 at 7:29 PM, Lord Gustavo Miguel Angel 
 wrote:

thank´s
But i have python 2.4.5 not 3.0

  - Original Message - 
  From: Matthew Page-Lieberman 
  To: google-appengine@googlegroups.com 
  Sent: Monday, March 16, 2009 6:09 PM
  Subject: [google-appengine] Re: dev_appserver.py", line 55, in 



  I know that one of the requirements to run GAE is to have at least 
Python 2.5. Don't go running to Python 3.0 though just quite yet for GAE. It's 
not supported AFAIK.


  On Mon, Mar 16, 2009 at 3:54 PM, goosfancito  
wrote:


hello,

OS: windows xp Sp2
version python: 2.4.5


i´m new user googe app engine. when i do

dev_appserver.py holamundo

appeserver reports

- 8< -
 File "C:\Google\google_appengine\dev_appserver.py", line 55, in

   execfile(script_path, globals())
 File "C:\Google\google_appengine\google\appengine\tools
\dev_appserver_main.py"
, line 358, in 
   sys.exit(main(sys.argv))
 File "C:\Google\google_appengine\google\appengine\tools
\dev_appserver_main.py"
, line 306, in main
   config, matcher = dev_appserver.LoadAppConfig(root_path, {})
 File "C:\Google\google_appengine\google\appengine\tools
\dev_appserver.py", lin
e 2638, in LoadAppConfig
   raise AppConfigNotFoundError
google.appengine.tools.dev_appserver.AppConfigNotFoundError

- 8< -

Why?
Thank´s






  -- 

  M. Page-Lieberman
  mateus.just...@gmail.com






  -- 
  M. Page-Lieberman
  mateus.just...@gmail.com





  -- 
  M. Page-Lieberman
  mateus.just...@gmail.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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Entity Relationships/Groups

2009-03-16 Thread Omer Shakil
Ping!? :)

On Tue, Mar 10, 2009 at 12:11 AM, Omer Shakil  wrote:

> Trying to move away from the standard thinking of relational databases, I
> looked around but couldn't find a solid document to get up to speed so I
> chose to pick up a fairly complicated scenario and brainstorm about it:
>
> Quick Overview: Trying to model: Students get group Assignments in a Class.
> Student can be enrolled in multiple classes. A class can have multiple group
> assignments and one student can take part in multiple assignments.
>
> There are quite a few ways you could model this (as mentioned in the docs)
> - I chose:
>
> We make an Entity Group: Class being the parent - Assignment, Enrollment,
> AssignmentSplit can be its children. Assignment keeps a reference to 
> Class(One to many relationship),
> AssignmentSplit keeps a reference to Assignment and Enrollment (Many to
> many relationship). Enrollment keeps a reference to both Student and 
> Class(Many to many relationship) - it can keep attributes about the student's
> performance.
>
> 1. Easily retrieve classes enrolled by student.enrollment_set[*].class. How
> efficient is this? Is it better to maintain a list of Class keys in
> Student? In general, having a ReferenceProperty is how good/bad compared
> to managing List of Keys?
> 2. Retrieve all assignments:
> student.enrollment_set[*].assignmentsplit_set[*].assignment. Is this better
> or
> student.enrollment_set[*].class.assignment_set[*].assignmentsplit[*].filter(enrollment)?
> Most probably the former, but just wanted to throw this out there too.
> 3. What advantages/disadvantages do i get of putting all of this in one
> entity group under Class.
>
> http://code.google.com/appengine/articles/modeling.html says I need to be
> extra careful with Enrollment and AssignmentSplit as it will generate more
> calls to the data store. What alternatives do I have? Whats the most
> efficient way to do this?
>
> Advanced twist: What if students can also sign up for assignments outside a
> class. In this way, I cant make a concrete Entity Group. Assignment and 
> AssignmentSplit
> still stay as is, but there is no Enrollment. Maybe AssignmentSplit keeps
> a reference to Assignment and Student (Many to many relationship). How do
> I retrieve these 'open' assignments for a given student?
> student.assignmentsplit_set[*]? Will that be really inefficient? Is it
> better to keep a List of Assignments or AssignmentSplits in Student? What
> if I want to keep some attributes about these open assignments, where would
> I keep them, in Student? do I create a special OpenEnrollment? but in
> either case, I would have to update it when I update AssignmentSplit in a
> transaction meaning they have to be in the same Entity Group. But if I put
> Student in there, sooner or later, this entity group would include a lot
> of Students and then spoil performance ... Ideas/Thoughts?
>
>
> Just wanted to throw something out there which has enough One to many /
> Many to many issues and also touches on Entity Groups - let me know what you
> guys think of this problem, would help me better understand the data store.
>
> Thanks a lot in advance for your time,
> Omer
>

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



[google-appengine] Re: dev_appserver.py", line 55, in

2009-03-16 Thread Lord Gustavo Miguel Angel
jaaa
Thank´s

sorry :)
  - Original Message - 
  From: Matthew Page-Lieberman 
  To: google-appengine@googlegroups.com 
  Sent: Monday, March 16, 2009 9:10 PM
  Subject: [google-appengine] Re: dev_appserver.py", line 55, in 




  The Development Environment
  You develop and upload applications for Google App Engine using the App 
Engine software development kit (SDK).

  The SDK includes a web server application that simulates the App Engine 
environment, including a local version of the datastore, Google Accounts, and 
the ability to fetch URLs and send email directly from your computer using the 
App Engine APIs. The SDK runs on any computer with Python 2.5, and versions are 
available for Windows, Mac OS X and Linux.

  If necessary, download and install Python 2.5 for your platform from the 
Python website...

  
http://code.google.com/appengine/docs/python/gettingstarted/devenvironment.html

  You need to have Python 2.5 and you only have Python 2.4.5 installed.
   

  On Mon, Mar 16, 2009 at 8:05 PM, Lord Gustavo Miguel Angel 
 wrote:



sorry i don´t understand

  - Original Message - 
  From: Matthew Page-Lieberman 
  To: google-appengine@googlegroups.com 
  Sent: Monday, March 16, 2009 8:50 PM
  Subject: [google-appengine] Re: dev_appserver.py", line 55, in 


  Don't forget the first sentence.


  On Mon, Mar 16, 2009 at 7:29 PM, Lord Gustavo Miguel Angel 
 wrote:

thank´s
But i have python 2.4.5 not 3.0

  - Original Message - 
  From: Matthew Page-Lieberman 
  To: google-appengine@googlegroups.com 
  Sent: Monday, March 16, 2009 6:09 PM
  Subject: [google-appengine] Re: dev_appserver.py", line 55, in 



  I know that one of the requirements to run GAE is to have at least 
Python 2.5. Don't go running to Python 3.0 though just quite yet for GAE. It's 
not supported AFAIK.


  On Mon, Mar 16, 2009 at 3:54 PM, goosfancito  
wrote:


hello,

OS: windows xp Sp2
version python: 2.4.5


i´m new user googe app engine. when i do

dev_appserver.py holamundo

appeserver reports

- 8< -
 File "C:\Google\google_appengine\dev_appserver.py", line 55, in

   execfile(script_path, globals())
 File "C:\Google\google_appengine\google\appengine\tools
\dev_appserver_main.py"
, line 358, in 
   sys.exit(main(sys.argv))
 File "C:\Google\google_appengine\google\appengine\tools
\dev_appserver_main.py"
, line 306, in main
   config, matcher = dev_appserver.LoadAppConfig(root_path, {})
 File "C:\Google\google_appengine\google\appengine\tools
\dev_appserver.py", lin
e 2638, in LoadAppConfig
   raise AppConfigNotFoundError
google.appengine.tools.dev_appserver.AppConfigNotFoundError

- 8< -

Why?
Thank´s






  -- 

  M. Page-Lieberman
  mateus.just...@gmail.com






  -- 
  M. Page-Lieberman
  mateus.just...@gmail.com





  -- 
  M. Page-Lieberman
  mateus.just...@gmail.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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: delete an entry in a stringlistproperty

2009-03-16 Thread Tim Hoffman

Yep

You do need to save back so do the person.put()

Also pop will return the entity removed from the the list in case you
need to use it for something.
(ie a message saying URL was deleted etc...)

See ya

T

On Mar 17, 5:05 am, sagey  wrote:
> Thanks for the help.
>
> If as you suggest i pop the element i want to delete, do i then need
> to:
>
> person.put()
>
> In order to write the changes back to the datastore?
> Sorry if this question is really obvious, but i'm not finding the gae
> documentation the most useful.
>
> On Mar 16, 4:40 pm, "M. Page-Lieberman" 
> wrote:
>
> > Sage. Python makes your life a lot easier.
>
> > On Mar 16, 2009, at 11:18, Tim Hoffman  wrote:
>
> > > Nah
>
> > > try:
>
> > >    index = keylist.index(keyIWantToFind)
>
> > >    keylist.pop(index)
> > >    urlist.pop(index)
> > >    nameslist.pop(index)
> > > except ValueError:
> > >    pass
>
> > > or
>
> > > index = keylist.find( keyIWantToFind)
> > > if index > -1:
> > >    keylist.pop(index)
> > >    urlist.pop(index)
> > >    nameslist.pop(index)
>
> > > Remember a ListProperty is a list
>
> > > See ya
>
> > > T
> > > T
>
> > > Remember ListProperty is a list.
>
> > > On Mar 16, 10:29 pm,sagey wrote:
> > >> Hello, i'd really appreciate some help.
>
> > >> I have a model with 3 stringlistproperty properties.
>
> > >> keylist
> > >> urllist
> > >> namelist
>
> > >> keylist[0] relates to urllist[0] and namelist[0]
>
> > >> i want to be able to search through the keylist property for a key,
> > >> then delete each record in the 3 stringlistproperties that relate to
> > >> it.
>
> > >> I'm presuming the best way to do this is to iterate through the
> > >> keylist incrementing a loopcount whilst doing so, and then deleting
> > >> the elements of each stringlistproperty using the loopcount??
>
> > >> hewres some pseudo code:
>
> > >> keyIWantToFind = 'blah
> > >> person = db.GqlQuery("SELECT * FROM Person WHERE You = :
> > >> 1",users.get_current_user())
> > >>                         if person:
> > >>                                 loopCount = 0
> > >>                                 for thekey in person.keyList:
> > >>                                        if keyIWantToFind == thekey:
> > >>                                                     #do something to
> > >> delete the elements from keylist,namelist and urllist
> > >>                                                     # access the
> > >> elements to be deleted by keylist[loopcount]  ???
> > >>                                        loopCount = loopCount + 1
>
> > >> I have 2 questions:
>
> > >> 1) What syntax would i use to delete an element from a
> > >> stringlistproperty, the gae documentation doesn't mention.
>
> > >> 2) Is this the best way to do what i want to do?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: dev_appserver.py", line 55, in

2009-03-16 Thread Matthew Page-Lieberman
*The Development Environment*

*You develop and upload applications for Google App Engine using the App
Engine software development kit (SDK).*

*The SDK includes a web server application that simulates the App Engine
environment, including a local version of the datastore, Google Accounts,
and the ability to fetch URLs and send email directly from your computer
using the App Engine APIs. The SDK runs on any computer with Python 2.5, and
versions are available for Windows, Mac OS X and Linux.*
*If necessary, download and install Python 2.5 for your platform from the
Python website ...

*
http://code.google.com/appengine/docs/python/gettingstarted/devenvironment.html
*

**You need to have Python 2.5 and you only have Python 2.4.5 installed.
** *
On Mon, Mar 16, 2009 at 8:05 PM, Lord Gustavo Miguel Angel <
goosfanc...@gmail.com> wrote:


 sorry i don´t understand
>
>
> - Original Message -
> *From:* Matthew Page-Lieberman 
> *To:* google-appengine@googlegroups.com
> *Sent:* Monday, March 16, 2009 8:50 PM
> *Subject:* [google-appengine] Re: dev_appserver.py", line 55, in 
>
> Don't forget the first sentence.
>
> On Mon, Mar 16, 2009 at 7:29 PM, Lord Gustavo Miguel Angel <
> goosfanc...@gmail.com> wrote:
>
>>  thank´s
>> But i have python 2.4.5 not 3.0
>>
>>
>>   - Original Message -
>> *From:* Matthew Page-Lieberman 
>> *To:* google-appengine@googlegroups.com
>> *Sent:* Monday, March 16, 2009 6:09 PM
>> *Subject:* [google-appengine] Re: dev_appserver.py", line 55, in 
>>
>> I know that one of the requirements to run GAE is to have at least Python
>> 2.5. Don't go running to Python 3.0 though just quite yet for GAE. It's not
>> supported AFAIK.
>>
>> On Mon, Mar 16, 2009 at 3:54 PM, goosfancito wrote:
>>
>>>
>>> hello,
>>>
>>> OS: windows xp Sp2
>>> version python: 2.4.5
>>>
>>>
>>> i´m new user googe app engine. when i do
>>>
>>> dev_appserver.py holamundo
>>>
>>> appeserver reports
>>>
>>> - 8< -
>>>  File "C:\Google\google_appengine\dev_appserver.py", line 55, in
>>> 
>>>execfile(script_path, globals())
>>>  File "C:\Google\google_appengine\google\appengine\tools
>>> \dev_appserver_main.py"
>>> , line 358, in 
>>>sys.exit(main(sys.argv))
>>>  File "C:\Google\google_appengine\google\appengine\tools
>>> \dev_appserver_main.py"
>>> , line 306, in main
>>>config, matcher = dev_appserver.LoadAppConfig(root_path, {})
>>>  File "C:\Google\google_appengine\google\appengine\tools
>>> \dev_appserver.py", lin
>>> e 2638, in LoadAppConfig
>>>raise AppConfigNotFoundError
>>> google.appengine.tools.dev_appserver.AppConfigNotFoundError
>>>
>>> - 8< -
>>>
>>> Why?
>>> Thank´s
>>>
>>>
>>>
>>
>>
>> --
>> M. Page-Lieberman
>> mateus.just...@gmail.com
>>
>>
>
>
> --
> M. Page-Lieberman
> mateus.just...@gmail.com
> >
>


-- 
M. Page-Lieberman
mateus.just...@gmail.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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: dev_appserver.py", line 55, in

2009-03-16 Thread Lord Gustavo Miguel Angel
sorry i don´t understand

  - Original Message - 
  From: Matthew Page-Lieberman 
  To: google-appengine@googlegroups.com 
  Sent: Monday, March 16, 2009 8:50 PM
  Subject: [google-appengine] Re: dev_appserver.py", line 55, in 


  Don't forget the first sentence.


  On Mon, Mar 16, 2009 at 7:29 PM, Lord Gustavo Miguel Angel 
 wrote:

thank´s
But i have python 2.4.5 not 3.0

  - Original Message - 
  From: Matthew Page-Lieberman 
  To: google-appengine@googlegroups.com 
  Sent: Monday, March 16, 2009 6:09 PM
  Subject: [google-appengine] Re: dev_appserver.py", line 55, in 


  I know that one of the requirements to run GAE is to have at least Python 
2.5. Don't go running to Python 3.0 though just quite yet for GAE. It's not 
supported AFAIK.


  On Mon, Mar 16, 2009 at 3:54 PM, goosfancito  
wrote:


hello,

OS: windows xp Sp2
version python: 2.4.5


i´m new user googe app engine. when i do

dev_appserver.py holamundo

appeserver reports

- 8< -
 File "C:\Google\google_appengine\dev_appserver.py", line 55, in

   execfile(script_path, globals())
 File "C:\Google\google_appengine\google\appengine\tools
\dev_appserver_main.py"
, line 358, in 
   sys.exit(main(sys.argv))
 File "C:\Google\google_appengine\google\appengine\tools
\dev_appserver_main.py"
, line 306, in main
   config, matcher = dev_appserver.LoadAppConfig(root_path, {})
 File "C:\Google\google_appengine\google\appengine\tools
\dev_appserver.py", lin
e 2638, in LoadAppConfig
   raise AppConfigNotFoundError
google.appengine.tools.dev_appserver.AppConfigNotFoundError

- 8< -

Why?
Thank´s






  -- 

  M. Page-Lieberman
  mateus.just...@gmail.com






  -- 
  M. Page-Lieberman
  mateus.just...@gmail.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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: dev_appserver.py", line 55, in

2009-03-16 Thread Matthew Page-Lieberman
Don't forget the first sentence.

On Mon, Mar 16, 2009 at 7:29 PM, Lord Gustavo Miguel Angel <
goosfanc...@gmail.com> wrote:

>  thank´s
> But i have python 2.4.5 not 3.0
>
>
> - Original Message -
> *From:* Matthew Page-Lieberman 
> *To:* google-appengine@googlegroups.com
> *Sent:* Monday, March 16, 2009 6:09 PM
> *Subject:* [google-appengine] Re: dev_appserver.py", line 55, in 
>
> I know that one of the requirements to run GAE is to have at least Python
> 2.5. Don't go running to Python 3.0 though just quite yet for GAE. It's not
> supported AFAIK.
>
> On Mon, Mar 16, 2009 at 3:54 PM, goosfancito wrote:
>
>>
>> hello,
>>
>> OS: windows xp Sp2
>> version python: 2.4.5
>>
>>
>> i´m new user googe app engine. when i do
>>
>> dev_appserver.py holamundo
>>
>> appeserver reports
>>
>> - 8< -
>>  File "C:\Google\google_appengine\dev_appserver.py", line 55, in
>> 
>>execfile(script_path, globals())
>>  File "C:\Google\google_appengine\google\appengine\tools
>> \dev_appserver_main.py"
>> , line 358, in 
>>sys.exit(main(sys.argv))
>>  File "C:\Google\google_appengine\google\appengine\tools
>> \dev_appserver_main.py"
>> , line 306, in main
>>config, matcher = dev_appserver.LoadAppConfig(root_path, {})
>>  File "C:\Google\google_appengine\google\appengine\tools
>> \dev_appserver.py", lin
>> e 2638, in LoadAppConfig
>>raise AppConfigNotFoundError
>> google.appengine.tools.dev_appserver.AppConfigNotFoundError
>>
>> - 8< -
>>
>> Why?
>> Thank´s
>>
>>
>>
>
>
> --
> M. Page-Lieberman
> mateus.just...@gmail.com
> >
>


-- 
M. Page-Lieberman
mateus.just...@gmail.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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: app-engine-patch MediaGenerator not generating any media!

2009-03-16 Thread capoista

Waldemar,

Thank you for responding so quickly and pointing me in the right
direction, also many thanks for creating a beautiful resource  : )

You were right about the files - when I went over it again an made
sure the right files were in the right places it worked.

I am trying to teach myself about Django and GAE by incorporating Aral
Balkan's GAEswf project into your app-engine-patch sample project and
it has been very challenging - making good progress now though.

Many thanks and keep up the good work.

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



[google-appengine] Re: Deployments Quota and Billing Settings

2009-03-16 Thread mchirico

Marzia:

Understood. Thank you.

Mike

On Mar 16, 4:32 pm, Marzia Niccolai  wrote:
> Hi Mike,
>
> There are no plans to increase this limit with billing, and at this time we
> are not able to grant increases for this quota.
>
> -Marzia
>
> On Sat, Mar 14, 2009 at 6:27 AM, mchir...@gmail.com wrote:
>
>
>
> > I have a need to go over the 250 Deployments per day.  Are there any
> > plans to increase the Deployment quota limit through the Billing
> > Settings? For example, could one pay to increase this limit?
>
> > I'm assuming that every upload is being counted as a Deployment? This
> > number seems to correspond with my uploads.
>
> > Working in the SDK would not be an option for this application, since
> > it's the Internet transactions between multiple sites that need to be
> > tested, fixed by recoding, then reloaded etc.
>
> > Regards,
>
> > Mike Chirico
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: dev_appserver.py", line 55, in

2009-03-16 Thread Lord Gustavo Miguel Angel
thank´s
But i have python 2.4.5 not 3.0

  - Original Message - 
  From: Matthew Page-Lieberman 
  To: google-appengine@googlegroups.com 
  Sent: Monday, March 16, 2009 6:09 PM
  Subject: [google-appengine] Re: dev_appserver.py", line 55, in 


  I know that one of the requirements to run GAE is to have at least Python 
2.5. Don't go running to Python 3.0 though just quite yet for GAE. It's not 
supported AFAIK.


  On Mon, Mar 16, 2009 at 3:54 PM, goosfancito  wrote:


hello,

OS: windows xp Sp2
version python: 2.4.5


i´m new user googe app engine. when i do

dev_appserver.py holamundo

appeserver reports

- 8< -
 File "C:\Google\google_appengine\dev_appserver.py", line 55, in

   execfile(script_path, globals())
 File "C:\Google\google_appengine\google\appengine\tools
\dev_appserver_main.py"
, line 358, in 
   sys.exit(main(sys.argv))
 File "C:\Google\google_appengine\google\appengine\tools
\dev_appserver_main.py"
, line 306, in main
   config, matcher = dev_appserver.LoadAppConfig(root_path, {})
 File "C:\Google\google_appengine\google\appengine\tools
\dev_appserver.py", lin
e 2638, in LoadAppConfig
   raise AppConfigNotFoundError
google.appengine.tools.dev_appserver.AppConfigNotFoundError

- 8< -

Why?
Thank´s






  -- 
  M. Page-Lieberman
  mateus.just...@gmail.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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] u32 too big ProtocolBufferError for memcache time over maximum on production, but works locally

2009-03-16 Thread James

When setting the time for a memcache.set(), the time specified can't
be longer than one month. When the time is longer, it works fine on
the local SDK, but fails with a "u32 too big ProtocolBufferError" on
production.

Either the local SDK behavior should match production, or else the
memcache handler should automatically set the time to the maximum if
it is above the maximum allowed.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: "Let Delete My Apps" (3 apps)

2009-03-16 Thread Matthew Page-Lieberman
NICE

On Mon, Mar 16, 2009 at 4:31 PM, xml2jsonp  wrote:

>
> Thanks to:
> - ikoo-dirtylife
> - gythialy-app
> - pyoohtml
>
> http://pyoohtml.appspot.com/let-delete-my-apps/home
>
> >
>


-- 
M. Page-Lieberman
mateus.just...@gmail.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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: dev_appserver.py", line 55, in

2009-03-16 Thread Matthew Page-Lieberman
I know that one of the requirements to run GAE is to have at least Python
2.5. Don't go running to Python 3.0 though just quite yet for GAE. It's not
supported AFAIK.

On Mon, Mar 16, 2009 at 3:54 PM, goosfancito  wrote:

>
> hello,
>
> OS: windows xp Sp2
> version python: 2.4.5
>
>
> i´m new user googe app engine. when i do
>
> dev_appserver.py holamundo
>
> appeserver reports
>
> - 8< -
>  File "C:\Google\google_appengine\dev_appserver.py", line 55, in
> 
>execfile(script_path, globals())
>  File "C:\Google\google_appengine\google\appengine\tools
> \dev_appserver_main.py"
> , line 358, in 
>sys.exit(main(sys.argv))
>  File "C:\Google\google_appengine\google\appengine\tools
> \dev_appserver_main.py"
> , line 306, in main
>config, matcher = dev_appserver.LoadAppConfig(root_path, {})
>  File "C:\Google\google_appengine\google\appengine\tools
> \dev_appserver.py", lin
> e 2638, in LoadAppConfig
>raise AppConfigNotFoundError
> google.appengine.tools.dev_appserver.AppConfigNotFoundError
>
> - 8< -
>
> Why?
> Thank´s
>
> >
>


-- 
M. Page-Lieberman
mateus.just...@gmail.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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Redirect loop when accessing my site

2009-03-16 Thread Min Li

It seems not related to codes. Please have a visit to the website:
http://www.childcenter.ca. Sometimes it works, sometimes the error
happens. I checked this morning, it worked. But it's not working now.
It sounds like the very unstable domain name service.

Thanks for your time.
Min

On Mar 16, 1:48 pm, Marzia Niccolai  wrote:
> Hi,
>
> Could you post any code that might help diagnose the error, as well as the
> URL where it is occurring?
>
> -Marzia
>
> On Sun, Mar 15, 2009 at 10:57 PM, Min Li  wrote:
>
> > Hi,
>
> > My web site experience the 'redirect loop ' error. It worked well
> > before. Any idea?
>
> > Thanks,
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Realease versions

2009-03-16 Thread Dan Sanderson
You can actually use any string for the version identifier.  So yes, you can
use floats.
-- Dan

On Mon, Mar 16, 2009 at 1:36 PM, Ronn Ross  wrote:

> Can you on use integers for version numbers? For example 1,2, and 3, or can
> you uses floats e.g. 1.1,1.2,1.3?thanks
>
> >
>

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



[google-appengine] dev_appserver.py", line 55, in

2009-03-16 Thread goosfancito

hello,

OS: windows xp Sp2
version python: 2.4.5


i´m new user googe app engine. when i do

dev_appserver.py holamundo

appeserver reports

- 8< -
  File "C:\Google\google_appengine\dev_appserver.py", line 55, in

execfile(script_path, globals())
  File "C:\Google\google_appengine\google\appengine\tools
\dev_appserver_main.py"
, line 358, in 
sys.exit(main(sys.argv))
  File "C:\Google\google_appengine\google\appengine\tools
\dev_appserver_main.py"
, line 306, in main
config, matcher = dev_appserver.LoadAppConfig(root_path, {})
  File "C:\Google\google_appengine\google\appengine\tools
\dev_appserver.py", lin
e 2638, in LoadAppConfig
raise AppConfigNotFoundError
google.appengine.tools.dev_appserver.AppConfigNotFoundError

- 8< -

Why?
Thank´s

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



[google-appengine] GAE will not let me validate my mobile number

2009-03-16 Thread nate12o6

I am trying to validate my google apps engine account with my cell
phone but it is telling me it was used already.  That is simply not
the case.  Can someone help me out with this? I have a google apps
account.  email is nat...@greneaux.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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Clearing an entire table

2009-03-16 Thread xml2jsonp

But why this GAE limit --> "Since you can't write a query that sorts
on two properties in the same query"
Could I open a "New Issue" ???

On Mar 16, 6:58 pm, Wooble  wrote:
> Kludgy solution: add a "week" property to your objects, and use an
> equality filter on it.
>
> On Mar 16, 6:26 am, "sucram.mar...@gmail.com"
>
>  wrote:
> > Hello everyone!
>
> > I am looking at designing a feature where I would have a weekly window
> > of database entries. This means that I would like to sort the last
> > weeks entries in a particular order.
>
> > The problem is that I have difficulties to see a solution with app
> > engine. Since you can't write a query that sorts on two properties in
> > the same query.
>
> > The next way I thought to solve this was to clear the database once a
> > week. But I have not seen a way to do this, I have only found delete
> > entry by entry API:s and that may a bit slow since I have a lot of
> > entries.
>
> > Ideas ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Getting 500 error message

2009-03-16 Thread Marzia Niccolai
Hi,

You are now able to serve Google Apps login pages off an appspot domain if
you add the app id through your cPanel.  However, this change happened this
past week, if you added the app to your domain prior to that time, it will
need to be re-added.

-Marzia

On Mon, Mar 16, 2009 at 4:12 AM, Greg  wrote:

>
> Yup, when I deactivate the login requirement the app magically re-
> appears. However, I need to protect the data so this isn't a viable
> option.
>
> On Mar 16, 7:00 pm, Greg  wrote:
> > Yes, my application uses authentication with a google appsdomain
> > account. I think we have the same problem... Just as with your case,
> > without any changes my application suddenly just got500error
> > messages and nothing shows up on the logs.
> >
> > On Mar 4, 4:21 pm, lubomir.kamen...@gmail.com wrote:
> >
> > > Does your app use authentication with a Google Appsdomainaccount and
> > > have you login required pages?
> >
> > > I have same problem:
> http://groups.google.com/group/google-appengine/browse_frm/thread/bd3...
> >
> > > On 17 Ún, 07:57, Greg  wrote:
> >
> > > > I created a simple contact management application for a non-profit
> > > > using app engine. Things were going OK when all of a sudden I got a
> > > >500errormessage today. As far as I know, the code wasn't be updated
> > > > before the problem happened.
> >
> > > > Any ideas?
> >
> > > > Greg
> >
>

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



[google-appengine] Re: Genshi on GAE

2009-03-16 Thread xml2jsonp

See here:
http://groups.google.com/group/genshi/browse_thread/thread/c7b6f38845d27151

On Mar 16, 9:42 pm, Ronn Ross  wrote:
> Has anyone use Genshi on GAE?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Stored Data figure suddenly way higher than Data Viewer suggests

2009-03-16 Thread Marzia Niccolai
Hi,

It takes some time for the accounting to take affect for the datastore, so
what you probably saw was the offline adjustment of storage.

If you are experiencing problems with billing enabled on your account, I
would suggest contact billing support directly:
http://code.google.com/support/bin/request.py?contact_type=AppEngineBillingSupport

-Marzia

On Mon, Mar 16, 2009 at 2:00 AM, Michael O'Brien wrote:

>
> Thanks Marzia, but I think something must have gone wrong with the
> stats that day. I didn't make any change but I'm now back down to 0.00
> GB used (which sounds right for the tiny amount of test data I have).
>
> It's not causing me a problem right now, but I did notice something
> strange: my billing history has $0.00 entries for each day up to the
> 11th (when I noticed this and posted), but there's nothing since.
> Billing still seems to be enabled on my account.
>
> thanks
> Michael
>
> On Mar 13, 8:21 pm, Marzia Niccolai  wrote:
> > Hi,
> >
> > Please see this thread for my response:
> http://groups.google.com/group/google-appengine/browse_thread/thread/...
> >
> > -Marzia
> >
> > On Wed, Mar 11, 2009 at 4:01 AM, Michael O'Brien  >wrote:
> >
> >
> >
> > > Hi,
> >
> > > I'm still testing my app, so it only has a small amount of test data
> > > in it right now (maybe 200 small entities max). I hadn't paid much
> > > attention to the Stored Data figure on the dashboard page until now
> > > since today for the first time it looks like I actually owe money (1
> > > cent, but hey it's something :).
> >
> > > I'd guess the actual size of the data I have is under 1 MB, but the
> > > dashboard page says I'm using 2GB! The actual figure is 2.01 GB, which
> > > curiously is 1% of the 201 GB max.
> >
> > > I have seven extra indexes and I did have more data in the datastore
> > > before, but deleted that at least a week ago. Still, I don't expect
> > > this could account for such a huge difference?
> >
> > > Anyone else seeing similar behaviour?
> >
> > > thanks!
> > > Michael
> >
>

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



[google-appengine] Re: Redirect loop when accessing my site

2009-03-16 Thread Marzia Niccolai
Hi,

Could you post any code that might help diagnose the error, as well as the
URL where it is occurring?

-Marzia

On Sun, Mar 15, 2009 at 10:57 PM, Min Li  wrote:

>
> Hi,
>
> My web site experience the 'redirect loop ' error. It worked well
> before. Any idea?
>
> Thanks,
> >
>

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



[google-appengine] Re: exporting table to xml

2009-03-16 Thread Marzia Niccolai
Hi,

There is no built-in way to bulk-download your data, you will need to write
a custom utility.  You can only fetch at most 1000 entities at a time, but
depending on the size and shape of your data, it's possible that in 1
request it will be less than that.

If you haven't built in a reliable way to sort and iterate through your
entities, you can simply sort by key:
http://code.google.com/appengine/docs/python/datastore/queriesandindexes.html#Queries_on_Keys

-Marzia

On Mon, Mar 16, 2009 at 12:05 PM, Wooble  wrote:

>
>
>
> On Mar 16, 1:15 pm, Steph Thirion  wrote:
> > (By the way, how do I check how many entries I have in a table? From
> > the data viewer I see it only shows a max of 1000)
>
> You put in a (possibly sharded) counter from the start.
> >
>

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



[google-appengine] Genshi on GAE

2009-03-16 Thread Ronn Ross
Has anyone use Genshi on GAE?

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



[google-appengine] Re: "Is the billing the future?" Porting my mind from GAE to PHP to JavaScript (from server-side to client-side)

2009-03-16 Thread xml2jsonp

- "Is the billing the future?"
I think "free + AdSense" will be the best way, not only the billing...

- Porting my mind from GAE to PHP to JavaScript (from server-side to
client-side)
The server side is only one side: if you want have a server-side
indipendent web applications you must focalize your code on client-
side.

- GAE + PHP + JavaScript
You must study all technology to have full power :-)

On Mar 16, 8:59 pm, Barry Hunter  wrote:
> Precisely, my question!
>
> On 16/03/2009, xml2jsonp  wrote:
>
>
>
>
>
> >  What sense?
>
> >  On Mar 16, 1:17 am, Barry Hunter  wrote:
> >  > Is this thread actually meant to make sense?
>
> > > On 15/03/2009, xml2jsonp  wrote:
>
> >  > >  "Upcoming Changes to the Free Quotas"
> >  > >  http://code.google.com/appengine/docs/quotas.html#Free_Changes
>
> >  > >  I hope GAE will always remain free :-)
>
> --
> Barry
>
> -www.nearby.org.uk-www.geograph.org.uk-
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Realease versions

2009-03-16 Thread Ronn Ross
Can you on use integers for version numbers? For example 1,2, and 3, or can
you uses floats e.g. 1.1,1.2,1.3?thanks

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



[google-appengine] Re: Deployments Quota and Billing Settings

2009-03-16 Thread Marzia Niccolai
Hi Mike,

There are no plans to increase this limit with billing, and at this time we
are not able to grant increases for this quota.

-Marzia

On Sat, Mar 14, 2009 at 6:27 AM, mchir...@gmail.com wrote:

>
>
> I have a need to go over the 250 Deployments per day.  Are there any
> plans to increase the Deployment quota limit through the Billing
> Settings? For example, could one pay to increase this limit?
>
> I'm assuming that every upload is being counted as a Deployment? This
> number seems to correspond with my uploads.
>
> Working in the SDK would not be an option for this application, since
> it's the Internet transactions between multiple sites that need to be
> tested, fixed by recoding, then reloaded etc.
>
> Regards,
>
> Mike Chirico
> >
>

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



[google-appengine] Re: GAE and Google Apps Domain

2009-03-16 Thread Marzia Niccolai
Hi,

Yes, this is possible.  Two things to be aware of:

1) The Google Apps administer has to add the id through the Google Apps
cPanel

2) If you restrict authentication to a Google Apps account, you must either
serve it off of _that_ Apps domain, or you off of appspot if you add the app
id to your cPanel (it must have been added in the past week for this to
work, apps added before that time have to be re-added to serve off of
appspot).

-Marzia

On Fri, Mar 13, 2009 at 8:39 PM, Doug  wrote:

>
> Good Evening Everyone,
>
> Can a Google Apps Domain serve applications from mutiple GAE
> accounts?
>
> Thanks,
> Doug
> >
>

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



[google-appengine] "Let Delete My Apps" (3 apps)

2009-03-16 Thread xml2jsonp

Thanks to:
- ikoo-dirtylife
- gythialy-app
- pyoohtml

http://pyoohtml.appspot.com/let-delete-my-apps/home

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



[google-appengine] Re: The no-brainer integration with Google Checkout is missing.

2009-03-16 Thread Amr Ellafi

HTTPS already exists but with your appspot domain, scheduled task is
planned but not yet released !

On Sun, Mar 15, 2009 at 7:55 PM, RunningCloud  wrote:
>
> Hmmm.
>
> -- Cannot use the notification API because no support for HTTPS on
> custom domains
> -- Cannot use the polling API because no scheduled tasks can run
>
> If there is some way to Google Checkout now with GAE, I would think
> this would be the #1 cookbook or sample application. Or simply built
> into the Services API!
>
> Has anyone come across more info or are we rolling our own?
>
> >
>

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



[google-appengine] Re: Release Status of Google App Engine

2009-03-16 Thread xml2jsonp

"Is Google's perpetual beta a winning strategy?"
http://209.85.129.132/search?q=cache:ApYmZkCJSmkJ:news.cnet.com/8301-13505_3-10054293-16.html+Google+beta+strategy&cd=1&hl=en&ct=clnk
[...]
We have very high internal metrics our consumer products have to meet
before coming out of beta. Our teams continue to work to improve these
products and provide users with an even better experience. We believe
beta has a different meaning when applied to applications on the Web,
where people expect continual improvements in a productRather than
the packaged, stagnant software of decades past, we're moving to a
world of regular updates and constant feature refinement where
applications live in the cloud.
[...]
Regardless, the real story in this as with Microsoft is that
regardless of its successes or failures with products, any hint of
Google entering a market is a death knell for start-ups looking to
raise money in that area, when it really shouldn't be. Their
respective track records in their core businesses is awesome to
behold. Their respective track records in most everything else?
Nothing to fret about.
-
-
-
-
-
-
On Mar 16, 7:12 pm, Marzia Niccolai  wrote:
> Hi,
>
> For the record, App Engine is still in preview release.
>
> -Marzia
>
> On Sun, Mar 15, 2009 at 10:12 AM, Ryan Lamansky  wrote:
>
> > Gmail is still in beta... so I figure the App Engine has 10-20 years
> > before it's "released" :)
>
> > peterk is right; consider it "done" when it satisfies your needs :)
>
> > -Ryan
>
> > On Mar 14, 11:25 am, Doug  wrote:
> > > Is GAE still a preview release?  I guess that I would have thought
> > > that when billing was enabled that it would have lost its preview
> > > release status.
>
> > > Thanks,
> > > Doug
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: delete an entry in a stringlistproperty

2009-03-16 Thread sagey

Thanks for the help.

If as you suggest i pop the element i want to delete, do i then need
to:

person.put()

In order to write the changes back to the datastore?
Sorry if this question is really obvious, but i'm not finding the gae
documentation the most useful.




On Mar 16, 4:40 pm, "M. Page-Lieberman" 
wrote:
> Sage. Python makes your life a lot easier.
>
> On Mar 16, 2009, at 11:18, Tim Hoffman  wrote:
>
>
>
> > Nah
>
> > try:
>
> >    index = keylist.index(keyIWantToFind)
>
> >    keylist.pop(index)
> >    urlist.pop(index)
> >    nameslist.pop(index)
> > except ValueError:
> >    pass
>
> > or
>
> > index = keylist.find( keyIWantToFind)
> > if index > -1:
> >    keylist.pop(index)
> >    urlist.pop(index)
> >    nameslist.pop(index)
>
> > Remember a ListProperty is a list
>
> > See ya
>
> > T
> > T
>
> > Remember ListProperty is a list.
>
> > On Mar 16, 10:29 pm,sagey wrote:
> >> Hello, i'd really appreciate some help.
>
> >> I have a model with 3 stringlistproperty properties.
>
> >> keylist
> >> urllist
> >> namelist
>
> >> keylist[0] relates to urllist[0] and namelist[0]
>
> >> i want to be able to search through the keylist property for a key,
> >> then delete each record in the 3 stringlistproperties that relate to
> >> it.
>
> >> I'm presuming the best way to do this is to iterate through the
> >> keylist incrementing a loopcount whilst doing so, and then deleting
> >> the elements of each stringlistproperty using the loopcount??
>
> >> hewres some pseudo code:
>
> >> keyIWantToFind = 'blah
> >> person = db.GqlQuery("SELECT * FROM Person WHERE You = :
> >> 1",users.get_current_user())
> >>                         if person:
> >>                                 loopCount = 0
> >>                                 for thekey in person.keyList:
> >>                                        if keyIWantToFind == thekey:
> >>                                                     #do something to
> >> delete the elements from keylist,namelist and urllist
> >>                                                     # access the
> >> elements to be deleted by keylist[loopcount]  ???
> >>                                        loopCount = loopCount + 1
>
> >> I have 2 questions:
>
> >> 1) What syntax would i use to delete an element from a
> >> stringlistproperty, the gae documentation doesn't mention.
>
> >> 2) Is this the best way to do what i want to do?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Release Status of Google App Engine

2009-03-16 Thread WallyDD

I know we can read the fine print and see that we probably have 90
days if Google decides to pull the plug.

Where is Google headed with App Engine?
Is this product still going to be here five years from now? six months
from now?

The beta tag is something of a joke with gmail, they are already
charging money for the service (if you want to pay). All beta means is
that it is still being developed and bug fixed, just like almost every
website and service on the web.

On Mar 16, 2:12 pm, Marzia Niccolai  wrote:
> Hi,
>
> For the record, App Engine is still in preview release.
>
> -Marzia
>
> On Sun, Mar 15, 2009 at 10:12 AM, Ryan Lamansky  wrote:
>
> > Gmail is still in beta... so I figure the App Engine has 10-20 years
> > before it's "released" :)
>
> > peterk is right; consider it "done" when it satisfies your needs :)
>
> > -Ryan
>
> > On Mar 14, 11:25 am, Doug  wrote:
> > > Is GAE still a preview release?  I guess that I would have thought
> > > that when billing was enabled that it would have lost its preview
> > > release status.
>
> > > Thanks,
> > > Doug
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: "Is the billing the future?" Porting my mind from GAE to PHP to JavaScript (from server-side to client-side)

2009-03-16 Thread Barry Hunter

Precisely, my question!

On 16/03/2009, xml2jsonp  wrote:
>
>  What sense?
>
>
>  On Mar 16, 1:17 am, Barry Hunter  wrote:
>  > Is this thread actually meant to make sense?
>  >
>
> > On 15/03/2009, xml2jsonp  wrote:
>  >
>  >
>  >
>  > >  "Upcoming Changes to the Free Quotas"
>  > >  http://code.google.com/appengine/docs/quotas.html#Free_Changes
>  >
>  > >  I hope GAE will always remain free :-)
>  >
>


-- 
Barry

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

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



[google-appengine] Re: "Is the billing the future?" Porting my mind from GAE to PHP to JavaScript (from server-side to client-side)

2009-03-16 Thread xml2jsonp

What sense?

On Mar 16, 1:17 am, Barry Hunter  wrote:
> Is this thread actually meant to make sense?
>
> On 15/03/2009, xml2jsonp  wrote:
>
>
>
> >  "Upcoming Changes to the Free Quotas"
> >  http://code.google.com/appengine/docs/quotas.html#Free_Changes
>
> >  I hope GAE will always remain free :-)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Forward request or webapp.RequestHandler chaining (like Actions framework in java)

2009-03-16 Thread xml2jsonp

Yes, ok.
You could open a "New Issue"...

On Mar 15, 10:44 pm, Jarek Zgoda  wrote:
> It would be easier if you do not use WebApp but follow Django way of
> request handling (easy to achieve even without Django, ie. using
> Werkzeug to lay out application in model-view-template style):
>
> def handler_a(request):
>   return response('a')
>
> def handler_b(request):
>   return handler_a(request)
>
> In handler_b you just called handler_a with a request object from
> handler_b. You can modify request object before passing it to another
> view function as you please.
>
> On 15 Mar, 12:06, "Serega.Sheypak"  wrote:
>
> > Hello, I would like to know is it possible to forward request?
>
> > For example in Java I can forward request from one servlet (like
> > webapp.RequestHandler) to another or from servlet to jsp (like Django
> > template).
> > self.redirect("/someUrl") clears response and doesn't "transfer"
> > request object. That is why I need redirect.
>
> > The task is:
> > I have a view (Django template)
> > Person can perform silmpe crud: Create something, delete something,
> > update something.
>
> > Here is a code:
>
> > #prepare view data, show news
> > class AdminPage(webapp.RequestHandler):
> >         def get(self):
> >                 message = self.request.get('message')
> >                 if not message:
> >                         message = 'You are in admin console.'
> >                 logging.debug("Did message came -> " + message);
> >                 offset = self.request.get('offset')
> >                 limit = self.request.get('limit')
> >                 news = get_news(offset, limit, False)
> >                 values = {
> >                         'page': 'admin',
> >                         'news': news,
> >                         'count': get_news_count(),
> >                         'message': message
> >                 }
> >                 path = 
> > os.path.join(os.path.dirname(__file__),'html/admin.html')
> >                 self.response.out.write( template.render(path, values) )
>
> > #Hide news from user and send to view preparation
> > class HideNews(webapp.RequestHandler):
> >         def get(self):
> >                 key = self.request.get('key')
> >                 logging.debug("hide news with key["+key+"]")
> >                 hide_news( key )
> >                 values = {
> >                         'message':'News was hidden'
> >                 }
> >                 self.redirect("/admin")
>
> > As you can see "HideNews" performs an action and wants to send message
> > to the news requestHandler.
> > But it can't do it.
>
> > Is there any opportunity to forward request processing in GAE?
>
> > P.S
> > I've tried to do this:
> > class HideNews(webapp.RequestHandler):
> >         def get(self):
> >                 key = self.request.get('key')
> >                 logging.debug("hide news with key["+key+"]")
> >                 hide_news( key )
> >                 message = "Some str with russian chars".decode('utf-8')
> >                 url = "/admin?message=".decode('utf-8')+message
> >                 self.redirect(url)
>
> > And I get:
> > self.response.headers['Location'] = str(absolute_url)
> > UnicodeEncodeError: 'ascii' codec can't encode characters in position
> > 36-42: ordinal not in range(128)
>
> > It doesn't accept utf-8 chars?
> > What to try next?
>
> > 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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: sending mail with nicely formatted sender

2009-03-16 Thread xml2jsonp

Only 47 stars :-(
More stars (please) the Universe is full :-)

On Mar 15, 8:55 pm, manuelaraoz  wrote:
> please everyone star this issue, it must have a very simple fix and
> it's very necessary
> thanks
>
> Manuel
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: GWEI (Google Will Eat Itself) on GAE ???

2009-03-16 Thread xml2jsonp

Does Google not like the art of hacktivism?

On Mar 15, 8:23 pm, xml2jsonp  wrote:
> Ok, then Why this response:
>
> "ok, we understand it's art, but you have to stop it 
> now".http://www.we-make-money-not-art.com/archives/2008/01/how-did-neural.php
> .
> .
> .
> .
> .
> .
> On Mar 15, 8:17 pm, Andy Freeman  wrote:
>
> > (1) Google won't pay for fraudulent clicks that it detects.
> > (2) Google's market cap is a lot larger than the relevant revenue
> > stream.
> > (3) Buying significant numbers of shares drives the share price up,
> > making (2) a bigger issue.
> > (4) Once you accumulate a certain % of shares, you have to file
> > reports with the SEC.
> > (5) The shares that control Google aren't on the market.
>
> > On Mar 15, 10:56 am, xml2jsonp  wrote:
>
> > > Is legal implement this idea on GAE 
> > > ?http://gwei.org/pages/diagram/diagram.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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Can I query to find out the children entities of a Parent entity?

2009-03-16 Thread iceanfire

Also, now when I ran the following code in the console:


from google.appengine.ext import db

key_of_specific_Thumb_entity = "agdhcHRydXNochALEgpJbWFnZVRodW1iGEUM"
<<==key grabbed from datastore for thumbnail (which is a parent of the
Bin/Large Image)

db.get(db.Key(key_of_specific_Thumb_entity))


I get this error:


Traceback (most recent call last):
  File "C:\Program Files\Google\google_appengine\google\appengine\ext
\admin\__init__.py", line 194, in post
exec(compiled_code, globals())
  File "", line 5, in 
  File "C:\Program Files\Google\google_appengine\google\appengine\ext
\db\__init__.py", line 1053, in get
cls1 = class_for_kind(entity.kind())
  File "C:\Program Files\Google\google_appengine\google\appengine\ext
\db\__init__.py", line 217, in class_for_kind
raise KindError('No implementation for kind \'%s\'' % kind)
KindError: No implementation for kind 'ImageThumb'


I'm guessing it has something to do with it being a parent or
something!?

On Mar 16, 1:03 pm, iceanfire  wrote:
> Hi,
>
> I'm having a bit of trouble understanding how to use parents/children
> properties within transactions.
>
> I have divided up my "Thumbnails" and the actual "Large Image" into
> two separate models to save processing power, but when I upload, I
> want to make sure that both entities are updated--therefore I have to
> use transactions.
>
> Short version (incase the answer is something simple):
> ==
> Can I query to find out the children entities of a Parent entity?
>
> Long Version:
> ===
> Key fact - thumbnails is connected to the Large Image (bin) via the
> column "bin_id"
>
> The code in Exhibit 1 doesn't work because I get the 'error
> "ImageThumb" must have a complete key before it can be used as a
> parent'. So I tried to:
> 1.  .put() ImageThumb
> 2. assign it as a parent
> 3. .put() Bin (the large image)
> 4. get the ID from step 3
> 5. insert the id in the ImageThumb and .put() it again.
>
> I got the error:  you can't put an entity more than once in appengine!
>
> So my last resort was to just get rid of binID and do steps 1-3. This
> works! But now i'm stuck as to getting the Large Image (child) for a
> specific thumbnail(parent).
>
> Code Exhibit 1
> ==
> def uploadImages(self):
>                         thumb_db = ImageThumb()
>                         thumb = images.resize(image_data,
> 150,150,images.JPEG)
>                         thumb_db.thumb = db.Blob(thumb)
>
>                         bin_db = ImageBin(parent=thumb_db)
>                         bin_db.image = image_data
>                         bin_put=bin_db.put()
>                         bin_id = bin_put.id()
>
>                         thumb_db.binId = bin_id <<=== need binId so
> that thumbnail is linked to actual image (so I can use get by id
> class)
>
>                         thumb_db.type= "Picture"
>                         thumb_put = thumb_db.put()
>                         thumb_id = thumb_put.id()
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: exporting table to xml

2009-03-16 Thread Wooble



On Mar 16, 1:15 pm, Steph Thirion  wrote:
> (By the way, how do I check how many entries I have in a table? From
> the data viewer I see it only shows a max of 1000)

You put in a (possibly sharded) counter from the start.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Can I query to find out the children entities of a Parent entity?

2009-03-16 Thread iceanfire

Hi,

I'm having a bit of trouble understanding how to use parents/children
properties within transactions.

I have divided up my "Thumbnails" and the actual "Large Image" into
two separate models to save processing power, but when I upload, I
want to make sure that both entities are updated--therefore I have to
use transactions.

Short version (incase the answer is something simple):
==
Can I query to find out the children entities of a Parent entity?

Long Version:
===
Key fact - thumbnails is connected to the Large Image (bin) via the
column "bin_id"

The code in Exhibit 1 doesn't work because I get the 'error
"ImageThumb" must have a complete key before it can be used as a
parent'. So I tried to:
1.  .put() ImageThumb
2. assign it as a parent
3. .put() Bin (the large image)
4. get the ID from step 3
5. insert the id in the ImageThumb and .put() it again.

I got the error:  you can't put an entity more than once in appengine!

So my last resort was to just get rid of binID and do steps 1-3. This
works! But now i'm stuck as to getting the Large Image (child) for a
specific thumbnail(parent).

Code Exhibit 1
==
def uploadImages(self):
thumb_db = ImageThumb()
thumb = images.resize(image_data,
150,150,images.JPEG)
thumb_db.thumb = db.Blob(thumb)

bin_db = ImageBin(parent=thumb_db)
bin_db.image = image_data
bin_put=bin_db.put()
bin_id = bin_put.id()

thumb_db.binId = bin_id <<=== need binId so
that thumbnail is linked to actual image (so I can use get by id
class)

thumb_db.type= "Picture"
thumb_put = thumb_db.put()
thumb_id = thumb_put.id()


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



[google-appengine] Re: Chartle.net - application based on Google App Engine

2009-03-16 Thread Andrew Badera

Agreed. Looks good, appears to operate smoothly.

Nice app!




On Mon, Mar 16, 2009 at 2:00 PM, Matthew Page-Lieberman
 wrote:
>
> I liked it a lot too.
>
> On Mon, Mar 16, 2009 at 2:39 PM, Amr Ellafi  wrote:
>>
>> Congrats I liked it very much. user-friendly as well.
>> if this is a one man show, then you are talented !
>>
>> On Mon, Mar 16, 2009 at 12:57 PM, Dieter Krachtus
>>  wrote:
>> >
>> > I created a webapp to create charts, plots and maps using the Google
>> > Chart API and the Google Visualization API. The webapp is hosted using
>> > Google Appengine.
>> >
>> > I would like to get your feedback.
>> >
>> > http://www.chartle.net
>> >
>> > Cheers,
>> > Dieter
>> >
>> > >
>> >
>>
>>
>
>
>
> --
> M. Page-Lieberman
> mateus.just...@gmail.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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Chartle.net - application based on Google App Engine

2009-03-16 Thread Matthew Page-Lieberman
I liked it a lot too.

On Mon, Mar 16, 2009 at 2:39 PM, Amr Ellafi  wrote:

>
> Congrats I liked it very much. user-friendly as well.
> if this is a one man show, then you are talented !
>
> On Mon, Mar 16, 2009 at 12:57 PM, Dieter Krachtus
>  wrote:
> >
> > I created a webapp to create charts, plots and maps using the Google
> > Chart API and the Google Visualization API. The webapp is hosted using
> > Google Appengine.
> >
> > I would like to get your feedback.
> >
> > http://www.chartle.net
> >
> > Cheers,
> > Dieter
> >
> > >
> >
>
> >
>


-- 
M. Page-Lieberman
mateus.just...@gmail.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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Chartle.net - application based on Google App Engine

2009-03-16 Thread Amr Ellafi

Congrats I liked it very much. user-friendly as well.
if this is a one man show, then you are talented !

On Mon, Mar 16, 2009 at 12:57 PM, Dieter Krachtus
 wrote:
>
> I created a webapp to create charts, plots and maps using the Google
> Chart API and the Google Visualization API. The webapp is hosted using
> Google Appengine.
>
> I would like to get your feedback.
>
> http://www.chartle.net
>
> Cheers,
> Dieter
>
> >
>

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



[google-appengine] Re: Reading from a static text file

2009-03-16 Thread Matthew Page-Lieberman
Also, Prasy, try running this spell check application on your outgoing
emails...

On Mon, Mar 16, 2009 at 2:14 PM, Nash-t  wrote:

>
> if all you really have to do is read the file you could just put it in
> a .py file and import it.
> Store it as a dictionary or an array or an object. Whatever works.
>
> On Mar 16, 12:31 am, djidjadji  wrote:
> > Why don't you put the file in the datastore.
> >
> > You can put it on a word basis, one object for every word,
> db.StringProperty.
> > Use the datastore index to find the word. Use bulk_upload to fill the
> datastore.
> >
> > Or split it up in parts, each part starting with a different
> > character. Put it in db.TextProperty.
> >
> > 2009/3/16 prasy :
> >
> >
> >
> > > Hi..
> >
> > > Im abt to create a spell check application.. I have a text file called
> > > "wordlist.txt' containing english words. I will be getting a wrd from
> > > user and checks its spelling wit de help of the text file.
> >
> > > I simply need to read de file.. Is it possible for me to run tis app
> > > in appengine.. Bcz i heard tat its not possible to read de contents of
> > > a static file in app engine. Moreover de file is around 2 MB so i cant
> > > simply make it as list or dict type and use..
> >
> > > Regards,
> > > Prasy..
> >
>


-- 
M. Page-Lieberman
mateus.just...@gmail.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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Reading from a static text file

2009-03-16 Thread Nash-t

if all you really have to do is read the file you could just put it in
a .py file and import it.
Store it as a dictionary or an array or an object. Whatever works.

On Mar 16, 12:31 am, djidjadji  wrote:
> Why don't you put the file in the datastore.
>
> You can put it on a word basis, one object for every word, db.StringProperty.
> Use the datastore index to find the word. Use bulk_upload to fill the 
> datastore.
>
> Or split it up in parts, each part starting with a different
> character. Put it in db.TextProperty.
>
> 2009/3/16 prasy :
>
>
>
> > Hi..
>
> > Im abt to create a spell check application.. I have a text file called
> > "wordlist.txt' containing english words. I will be getting a wrd from
> > user and checks its spelling wit de help of the text file.
>
> > I simply need to read de file.. Is it possible for me to run tis app
> > in appengine.. Bcz i heard tat its not possible to read de contents of
> > a static file in app engine. Moreover de file is around 2 MB so i cant
> > simply make it as list or dict type and use..
>
> > Regards,
> > Prasy..
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Release Status of Google App Engine

2009-03-16 Thread Marzia Niccolai
Hi,

For the record, App Engine is still in preview release.

-Marzia

On Sun, Mar 15, 2009 at 10:12 AM, Ryan Lamansky  wrote:

>
> Gmail is still in beta... so I figure the App Engine has 10-20 years
> before it's "released" :)
>
> peterk is right; consider it "done" when it satisfies your needs :)
>
> -Ryan
>
> On Mar 14, 11:25 am, Doug  wrote:
> > Is GAE still a preview release?  I guess that I would have thought
> > that when billing was enabled that it would have lost its preview
> > release status.
> >
> > Thanks,
> > Doug
> >
>

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



[google-appengine] Re: Clearing an entire table

2009-03-16 Thread Wooble

Kludgy solution: add a "week" property to your objects, and use an
equality filter on it.

On Mar 16, 6:26 am, "sucram.mar...@gmail.com"
 wrote:
> Hello everyone!
>
> I am looking at designing a feature where I would have a weekly window
> of database entries. This means that I would like to sort the last
> weeks entries in a particular order.
>
> The problem is that I have difficulties to see a solution with app
> engine. Since you can't write a query that sorts on two properties in
> the same query.
>
> The next way I thought to solve this was to clear the database once a
> week. But I have not seen a way to do this, I have only found delete
> entry by entry API:s and that may a bit slow since I have a lot of
> entries.
>
> Ideas ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] exporting table to xml

2009-03-16 Thread Steph Thirion

Hi all,

for a week I have been gathering statistics from my iphone game, and
now I'd like to grab it and draw some visualizations. What I thought
I'd do is somehow exporting the stats table into an xml, and then play
around with that xml locally.

I know the appengine folks are still working on datastore export, but
my table is not big, just around 2000 entries. Shouldn't I be able to
script that?

I'm very new to the whole appengine and webapp, and even python, but I
think I can manage to find my way quickly. What I'd really appreciate,
is if someone could give me a few directions on what python syntax and
methodology to use. Would I be able to build that xml in only one
request?

I'm using webapp, not django.

(By the way, how do I check how many entries I have in a table? From
the data viewer I see it only shows a max of 1000)

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



[google-appengine] Re: Parallel urlfetch utility class / function.

2009-03-16 Thread bFlood

thanks david.

agreed on datastore except that unlike the current batch calls, you
might be able to execute code concurrently on each response and then
wait for all the worker's results. to me, and I could be wrong, even a
no-op datastore request could serve as a poor man's worker thread.
I'll see if I can get it working on our stuff and report back (did you
happen to notice if all the threads were started on the same machine?)

regardless, it will just be testing for right now. I'm sure the GAE
team has their own ideas about whats allowed with async access.

cheers and thanks again
brian





On Mar 16, 1:12 pm, David Wilson  wrote:
> I forgot to mention, AppEngine does not close the request until all
> asynchronous requests have ended. This means it's not truly "fire and
> forget". Regardless of whether you're waiting for a response or not,
> if a request is in progress, the HTTP response body is not returned to
> the client.
>
> I created a simple function this morning to call datastore_v3.Delete
> on a set of key objects, it appeared to work but I didn't test beyond
> ensuring the callback didn't receive an exception. Pretty untested
> code here: .
>
> For simple uses, it's probably not all that useful to call Datastore
> asynchronously is all that useful anyway, since unlike urlfetch, you
> can already minimize latency by making batch calls at the start/end of
> your request for all the keys you want to load/save. It's possibly
> useful to use it to concurrently commit a bunch of different
> transactions, but the code for this is less trivial than the urlfetch
> case. Probably best to see what the AppEngine team themselves provide
> for this. ;)
>
> David.
>
> 2009/3/16 bFlood :
>
>
>
>
>
> > @joe - fire/forget - you can just skip the fetcher.wait() call (which
> > call AsyncAPIProxy.wait). I'm not sure of you would need a valid
> > callback but even if you did it could be a simple stub that does
> > nothing.
>
> > @david - have you made this work with datastore calls yet? having some
> > issues trying to figure out how to set pbrequest/pbresponse variables
>
> > cheers
> > brian
>
> > On Mar 16, 12:05 pm, Joe Bowman  wrote:
> >> Wow that's great. The SDK might be problematic for you, as it appears
> >> to be very single threaded, I know for a fact it can't reply to
> >> requests to itself.
>
> >> Out of curiosity, are you still using base urlfetch, or is it your own
> >> creation? While when Google releases their scheduled tasks
> >> functionality it will be less of an issue, if your solution had the
> >> ability to fire off urlfetch calls and not wait for a response, it
> >> could be a perfect fit for the gaeutilities cron utility.
>
> >> Currently it grabs a list of tasks it's supposed to run on request,
> >> sets a timestamp, runs one, the compares now() to the timestamp and if
> >> the timedelta is more than 1 second, stops running tasks and finishes
> >> the request. It already appears your project would be perfect for
> >> running all necessary tasks at once, and the MIT License I believe is
> >> compatible with the BSD license I've released gaeutilities, so would
> >> you have any personal objection to me including it in gaeutilities at
> >> some point, with proper attribution of course?
>
> >> If you haven't see that project, it's url 
> >> ishttp://gaeutilities.appspot.com/
>
> >> On Mar 16, 11:03 am, David Wilson  wrote:
>
> >> > Joe,
>
> >> > I've only tested it in production. ;)
>
> >> > The code should work serially on the SDK, but I haven't tried yet.
>
> >> > David.
>
> >> > 2009/3/16 Joe Bowman :
>
> >> > > Does the batch fetching working on live appengine applications, or
> >> > > only on the SDK?
>
> >> > > On Mar 16, 10:19 am, David Wilson  wrote:
> >> > >> I have no idea how definitive this is, but literally it means wall
> >> > >> clock time seems to be how CPU cost is measured. I guess this makes
> >> > >> sense for a few different reasons.
>
> >> > >> I found some internal function
> >> > >> "google3.apphosting.runtime._apphosting_runtime___python__apiproxy.get_requ
> >> > >>  est_cpu_usage"
> >> > >> with the docstring:
>
> >> > >>     Returns the number of megacycles used so far by this request.
> >> > >>     Does not include CPU used by API calls.
>
> >> > >> Calling it, then running time.sleep(5), then calling it again,
> >> > >> indicates thousands of megacycles used, yet in real terms the CPU was
> >> > >> probably doing nothing. I guess Datastore CPU, etc., is added on top
> >> > >> of this, but it seems to suggest to me that if you can drastically
> >> > >> reduce request time, quota usage should drop too.
>
> >> > >> I have yet to do any kind of rough measurements of Datastore CPU, so
> >> > >> I'm not sure how correct this all is.
>
> >> > >> David.
>
> >> > >>  - One of the guys on IRC suggested this means that per-request cost
> >> > >> is scaled during peak usage (and thus internal services running
> >> > >> slower).
>
> >> > >> 2009/3/16

[google-appengine] Re: Accessing the datastore

2009-03-16 Thread Joe Bowman

I think you're looking for this: 
http://code.google.com/appengine/articles/remote_api.html

On Mar 16, 1:01 am, pokiman  wrote:
> Hello All,
>
> Is there a way to access the google datastore via an external python
> program? What I want to basically do is run a computationally
> intensive process on my home machine and update the google datastore
> periodically, preferably automatically.
>
> 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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: remote_api documentation's example, batching on __key__ without ordering?

2009-03-16 Thread Dan Sanderson
__key__ is the default ordering when no other filters or sort orders are
requested.  (In general, __key__ is the last ordering applied after all
other orders.)

-- Dan

On Fri, Mar 13, 2009 at 8:37 PM, Simo Salminen  wrote:

>
> Hi.
>
> In http://code.google.com/appengine/articles/remote_api.html there is
> example:
>
> entities = MyModel.all().fetch(100)
> while entities:
>  for entity in entities:
># Do something with entity
>  entities = MyModel.all().filter('__key__ >', entities[-1].key
> ()).fetch(100)
>
>
> How come there is no ordering on __key__?
>
> >
>

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



[google-appengine] Re: doc files suddenly missing from google apps domain

2009-03-16 Thread Dan Sanderson
Hi James -
Please contact Google Apps support for this issue:
  http://www.google.com/support/a/?hl=en

The google-appengine group is for App Engine issues and discussions.

Thanks!
-- Dan

On Sat, Mar 14, 2009 at 4:51 AM, Legacy FamilyTree  wrote:

>  Hi guys,
>
> This one is very serious for us at at our googleapps domain of
> kycevents.com
>
> Some time yesterday, March 13, 2009, our major group of users at our
> sailing club found that all of the doc files they were sharing suddenly
> disappeared
> off of their doc folder.
>
> The doc files that were not shared with that list of users are intact.
> There were half a dozen collaborators using the missing files and all
> report the loss of these same files. The Trash basket is empty for each of
> the users.
>
> Testing shows that I can share my files today with these same users, but
> all of their own files seem to have gone up the pipe.
>
> any ideas.?
>
>
> James Anderson
> webmaster, Kelowna Yacht Club
> Kelowna, B.C.
> Canada
> legacyfamilyt...@shaw.ca
> www.kelownayachtclub.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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Parallel urlfetch utility class / function.

2009-03-16 Thread Joe Bowman

I imagine keeping the request open until everything is done isn't
going to go away any time soon, it's how http responses work and the
scheduled tasks on the roadmap would be better suited to providing
better support for that. I also agree on the batch put and get
functionality for the most part is there.

My experience from mass delete scripts has been delete is extremely
heavy, and before the runtime length was extended, I came up with the
number 75 being the safe amount of entities to delete in a request
without encountering timeouts for the most part. I ended up using
javascript with a simple protocol (responses of "there's more" and
"all done" in order to delete 10k+ objects at a time). During that
time I did notice that repeated writing to the datastore (or delete in
my case) also caused other errors, which it looked like I was being
throttled, so that's something else you may encounter if you continue
to work on asynchronous datastore calls.

On Mar 16, 1:12 pm, David Wilson  wrote:
> I forgot to mention, AppEngine does not close the request until all
> asynchronous requests have ended. This means it's not truly "fire and
> forget". Regardless of whether you're waiting for a response or not,
> if a request is in progress, the HTTP response body is not returned to
> the client.
>
> I created a simple function this morning to call datastore_v3.Delete
> on a set of key objects, it appeared to work but I didn't test beyond
> ensuring the callback didn't receive an exception. Pretty untested
> code here: .
>
> For simple uses, it's probably not all that useful to call Datastore
> asynchronously is all that useful anyway, since unlike urlfetch, you
> can already minimize latency by making batch calls at the start/end of
> your request for all the keys you want to load/save. It's possibly
> useful to use it to concurrently commit a bunch of different
> transactions, but the code for this is less trivial than the urlfetch
> case. Probably best to see what the AppEngine team themselves provide
> for this. ;)
>
> David.
>
> 2009/3/16 bFlood :
>
>
>
>
>
> > @joe - fire/forget - you can just skip the fetcher.wait() call (which
> > call AsyncAPIProxy.wait). I'm not sure of you would need a valid
> > callback but even if you did it could be a simple stub that does
> > nothing.
>
> > @david - have you made this work with datastore calls yet? having some
> > issues trying to figure out how to set pbrequest/pbresponse variables
>
> > cheers
> > brian
>
> > On Mar 16, 12:05 pm, Joe Bowman  wrote:
> >> Wow that's great. The SDK might be problematic for you, as it appears
> >> to be very single threaded, I know for a fact it can't reply to
> >> requests to itself.
>
> >> Out of curiosity, are you still using base urlfetch, or is it your own
> >> creation? While when Google releases their scheduled tasks
> >> functionality it will be less of an issue, if your solution had the
> >> ability to fire off urlfetch calls and not wait for a response, it
> >> could be a perfect fit for the gaeutilities cron utility.
>
> >> Currently it grabs a list of tasks it's supposed to run on request,
> >> sets a timestamp, runs one, the compares now() to the timestamp and if
> >> the timedelta is more than 1 second, stops running tasks and finishes
> >> the request. It already appears your project would be perfect for
> >> running all necessary tasks at once, and the MIT License I believe is
> >> compatible with the BSD license I've released gaeutilities, so would
> >> you have any personal objection to me including it in gaeutilities at
> >> some point, with proper attribution of course?
>
> >> If you haven't see that project, it's url 
> >> ishttp://gaeutilities.appspot.com/
>
> >> On Mar 16, 11:03 am, David Wilson  wrote:
>
> >> > Joe,
>
> >> > I've only tested it in production. ;)
>
> >> > The code should work serially on the SDK, but I haven't tried yet.
>
> >> > David.
>
> >> > 2009/3/16 Joe Bowman :
>
> >> > > Does the batch fetching working on live appengine applications, or
> >> > > only on the SDK?
>
> >> > > On Mar 16, 10:19 am, David Wilson  wrote:
> >> > >> I have no idea how definitive this is, but literally it means wall
> >> > >> clock time seems to be how CPU cost is measured. I guess this makes
> >> > >> sense for a few different reasons.
>
> >> > >> I found some internal function
> >> > >> "google3.apphosting.runtime._apphosting_runtime___python__apiproxy.get_requ
> >> > >>  est_cpu_usage"
> >> > >> with the docstring:
>
> >> > >>     Returns the number of megacycles used so far by this request.
> >> > >>     Does not include CPU used by API calls.
>
> >> > >> Calling it, then running time.sleep(5), then calling it again,
> >> > >> indicates thousands of megacycles used, yet in real terms the CPU was
> >> > >> probably doing nothing. I guess Datastore CPU, etc., is added on top
> >> > >> of this, but it seems to suggest to me that if you can drastically
> >> > >> reduce request time, quota usa

[google-appengine] Re: Parallel urlfetch utility class / function.

2009-03-16 Thread David Wilson

I forgot to mention, AppEngine does not close the request until all
asynchronous requests have ended. This means it's not truly "fire and
forget". Regardless of whether you're waiting for a response or not,
if a request is in progress, the HTTP response body is not returned to
the client.

I created a simple function this morning to call datastore_v3.Delete
on a set of key objects, it appeared to work but I didn't test beyond
ensuring the callback didn't receive an exception. Pretty untested
code here: .

For simple uses, it's probably not all that useful to call Datastore
asynchronously is all that useful anyway, since unlike urlfetch, you
can already minimize latency by making batch calls at the start/end of
your request for all the keys you want to load/save. It's possibly
useful to use it to concurrently commit a bunch of different
transactions, but the code for this is less trivial than the urlfetch
case. Probably best to see what the AppEngine team themselves provide
for this. ;)


David.

2009/3/16 bFlood :
>
>
> @joe - fire/forget - you can just skip the fetcher.wait() call (which
> call AsyncAPIProxy.wait). I'm not sure of you would need a valid
> callback but even if you did it could be a simple stub that does
> nothing.
>
> @david - have you made this work with datastore calls yet? having some
> issues trying to figure out how to set pbrequest/pbresponse variables
>
> cheers
> brian
>
>
> On Mar 16, 12:05 pm, Joe Bowman  wrote:
>> Wow that's great. The SDK might be problematic for you, as it appears
>> to be very single threaded, I know for a fact it can't reply to
>> requests to itself.
>>
>> Out of curiosity, are you still using base urlfetch, or is it your own
>> creation? While when Google releases their scheduled tasks
>> functionality it will be less of an issue, if your solution had the
>> ability to fire off urlfetch calls and not wait for a response, it
>> could be a perfect fit for the gaeutilities cron utility.
>>
>> Currently it grabs a list of tasks it's supposed to run on request,
>> sets a timestamp, runs one, the compares now() to the timestamp and if
>> the timedelta is more than 1 second, stops running tasks and finishes
>> the request. It already appears your project would be perfect for
>> running all necessary tasks at once, and the MIT License I believe is
>> compatible with the BSD license I've released gaeutilities, so would
>> you have any personal objection to me including it in gaeutilities at
>> some point, with proper attribution of course?
>>
>> If you haven't see that project, it's url ishttp://gaeutilities.appspot.com/
>>
>> On Mar 16, 11:03 am, David Wilson  wrote:
>>
>> > Joe,
>>
>> > I've only tested it in production. ;)
>>
>> > The code should work serially on the SDK, but I haven't tried yet.
>>
>> > David.
>>
>> > 2009/3/16 Joe Bowman :
>>
>> > > Does the batch fetching working on live appengine applications, or
>> > > only on the SDK?
>>
>> > > On Mar 16, 10:19 am, David Wilson  wrote:
>> > >> I have no idea how definitive this is, but literally it means wall
>> > >> clock time seems to be how CPU cost is measured. I guess this makes
>> > >> sense for a few different reasons.
>>
>> > >> I found some internal function
>> > >> "google3.apphosting.runtime._apphosting_runtime___python__apiproxy.get_requ
>> > >>  est_cpu_usage"
>> > >> with the docstring:
>>
>> > >>     Returns the number of megacycles used so far by this request.
>> > >>     Does not include CPU used by API calls.
>>
>> > >> Calling it, then running time.sleep(5), then calling it again,
>> > >> indicates thousands of megacycles used, yet in real terms the CPU was
>> > >> probably doing nothing. I guess Datastore CPU, etc., is added on top
>> > >> of this, but it seems to suggest to me that if you can drastically
>> > >> reduce request time, quota usage should drop too.
>>
>> > >> I have yet to do any kind of rough measurements of Datastore CPU, so
>> > >> I'm not sure how correct this all is.
>>
>> > >> David.
>>
>> > >>  - One of the guys on IRC suggested this means that per-request cost
>> > >> is scaled during peak usage (and thus internal services running
>> > >> slower).
>>
>> > >> 2009/3/16 peterk :
>>
>> > >> > A couple of questions re. CPU usage..
>>
>> > >> > "CPU time quota appears to be calculated based on literal time"
>>
>> > >> > Can you clarify what you mean here? I presume each async request eats
>> > >> > into your CPU budget. But you say:
>>
>> > >> > "since you can burn a whole lot more AppEngine CPU more cheaply using
>> > >> > the async api"
>>
>> > >> > Can you clarify how that's the case?
>>
>> > >> > I would guess as long as you're being billed for the cpu-ms spent in
>> > >> > your asynchronous calls, Google would let you hang yourself with them
>> > >> > when it comes to billing.. :) so I presume they'd let you squeeze in
>> > >> > as many as your original request, and its limit, will allow for?
>>
>> > >> > Thanks again.
>>
>> > >> > On Mar 

[google-appengine] Clearing an entire table

2009-03-16 Thread sucram.mar...@gmail.com

Hello everyone!

I am looking at designing a feature where I would have a weekly window
of database entries. This means that I would like to sort the last
weeks entries in a particular order.

The problem is that I have difficulties to see a solution with app
engine. Since you can't write a query that sorts on two properties in
the same query.

The next way I thought to solve this was to clear the database once a
week. But I have not seen a way to do this, I have only found delete
entry by entry API:s and that may a bit slow since I have a lot of
entries.

Ideas ?

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



[google-appengine] Chartle.net - application based on Google App Engine

2009-03-16 Thread Dieter Krachtus

I created a webapp to create charts, plots and maps using the Google
Chart API and the Google Visualization API. The webapp is hosted using
Google Appengine.

I would like to get your feedback.

http://www.chartle.net

Cheers,
Dieter

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



[google-appengine] Re: delete an entry in a stringlistproperty

2009-03-16 Thread M. Page-Lieberman

Sage. Python makes your life a lot easier.

On Mar 16, 2009, at 11:18, Tim Hoffman  wrote:

>
> Nah
>
> try:
>
>index = keylist.index(keyIWantToFind)
>
>keylist.pop(index)
>urlist.pop(index)
>nameslist.pop(index)
> except ValueError:
>pass
>
> or
>
> index = keylist.find( keyIWantToFind)
> if index > -1:
>keylist.pop(index)
>urlist.pop(index)
>nameslist.pop(index)
>
>
> Remember a ListProperty is a list
>
> See ya
>
> T
> T
>
> Remember ListProperty is a list.
>
>
> On Mar 16, 10:29 pm, sagey  wrote:
>> Hello, i'd really appreciate some help.
>>
>> I have a model with 3 stringlistproperty properties.
>>
>> keylist
>> urllist
>> namelist
>>
>> keylist[0] relates to urllist[0] and namelist[0]
>>
>> i want to be able to search through the keylist property for a key,
>> then delete each record in the 3 stringlistproperties that relate to
>> it.
>>
>> I'm presuming the best way to do this is to iterate through the
>> keylist incrementing a loopcount whilst doing so, and then deleting
>> the elements of each stringlistproperty using the loopcount??
>>
>> hewres some pseudo code:
>>
>> keyIWantToFind = 'blah
>> person = db.GqlQuery("SELECT * FROM Person WHERE You = :
>> 1",users.get_current_user())
>> if person:
>> loopCount = 0
>> for thekey in person.keyList:
>>if keyIWantToFind == thekey:
>> #do something to
>> delete the elements from keylist,namelist and urllist
>> # access the
>> elements to be deleted by keylist[loopcount]  ???
>>loopCount = loopCount + 1
>>
>> I have 2 questions:
>>
>> 1) What syntax would i use to delete an element from a
>> stringlistproperty, the gae documentation doesn't mention.
>>
>> 2) Is this the best way to do what i want to do?
> >

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



[google-appengine] Re: Writing to the file system?

2009-03-16 Thread M. Page-Lieberman

No. It's prohibited to write to the file system.

On Mar 16, 2009, at 9:10, Andrew Badera  wrote:

>
> I'm sure this has never come up before ... certainly not recently ...
>
>
> On Mon, Mar 16, 2009 at 9:08 AM, Ronn Ross   
> wrote:
>> Can you write to the file system with app engine? My app requires  
>> people to
>> upload text documents.
>> Thanks
>>>
>>
>
> >

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



[google-appengine] Countries banned from using GAE applications?

2009-03-16 Thread will

Are certain countries banned from using applications running on GAE?
One of our users said they got the following message when they tried
to access our app:

ForbiddenYour client does not have permission to get URL / from this
server.
(Client IP address: 88.86.31.163)

You are accessing this page from a forbidden country.

"Terms of Service" doesn't seem to mention any countries not allowed
to access GAE applications. But then, it's more an agreement between
the developer and Google.

Btw, the app in question is http://www.earthhour.org/, a movement
promoting environmental awareness.

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



[google-appengine] Accessing the datastore

2009-03-16 Thread pokiman

Hello All,

Is there a way to access the google datastore via an external python
program? What I want to basically do is run a computationally
intensive process on my home machine and update the google datastore
periodically, preferably automatically.

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



[google-appengine] Re: Datastore usage goes up over time?

2009-03-16 Thread Stephen

On Mar 13, 9:39 pm, "C. Scott Ananian"  wrote:
> I imported about 3 million very simple records into appengine, using
> the bulk_uploader tool.  The raw size of the input CSV was 85M.  After
> upload, google showed my datastore quota usage as being about 0.16G --
> a factor of 2 increase, but reasonable.  I left the application for a
> few days, and logged back in to check on it: suddenly my datastore
> usage is pegged at 100% (1.0G)!
>
> First: why did my datastore usage grow over time?  My application
> isn't writing records to the datastore, just serving queries against
> the static data set.  Is it because Google created indexes?  Can I
> stop that from happening?
>
> Second: how do I find out how much space my data is "really" taking up
> (according to the quota system).  I'm reluctant to turn on billing
> until I know whether the suddenly-bloated version of my data is 1.01G
> or 16G -- and until I know whether it will continue to bloat further!
>
> http://cscott-geotest.appspot.com/is the application URL; as you can
> see, it's a very simple application which returns a guessed zip code
> and country for the user based on the IP address their request comes
> from.  The model looks like:
>
> class IP2PostalCode(BaseModel):
>     """Starting IPv4 address, as a 32-bit integer; ie, a.b.c.d
>     is represented as 256*(256*(256*a+b)+c)+d"""
>     ipStart = db.IntegerProperty(required=True)
>     """ISO-3166 alpha2 country code for this IPv4 address block."""
>     country = db.StringProperty()
>     """State (AdminCode1) for this block."""
>     state = db.StringProperty()
>     """City for this block."""
>     city = db.StringProperty()
>     """Postal code for this IPv4 address block."""
>     postcode = db.StringProperty()


You only query based on ipStart?  Try making the other properties
db.TextProperty instead of db.StringProperty, which do not have
indexes automatically created for them.

Not sure how you remove the now unused indexes.  The documentation
mentions 'appcfg.py vacuum_indexes', but that only seems to apply to
composite indexes defined in index.yaml.  You may have to loop through
every entity in your database, select it and then save it back, so the
properties change from String to Text.

BigTable does seem bloaty...

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



[google-appengine] The no-brainer integration with Google Checkout is missing.

2009-03-16 Thread RunningCloud

Hmmm.

-- Cannot use the notification API because no support for HTTPS on
custom domains
-- Cannot use the polling API because no scheduled tasks can run

If there is some way to Google Checkout now with GAE, I would think
this would be the #1 cookbook or sample application. Or simply built
into the Services API!

Has anyone come across more info or are we rolling our own?

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



[google-appengine] How to initialize db.TimeProperty and db.GeoPtProperty from POST params?

2009-03-16 Thread hardwarrior

Hi!
I want db.TimeProperty and db.GeoPtProperty to be initialized from
request params. I know how to do it for blob (db.Blob), text and
postAddress. But have no idea how to make the same db.TimeProperty and
db.GeoPtProperty. Please advise.

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



[google-appengine] Why I cann't access appengine applications in china today??

2009-03-16 Thread cpp...@163.com

Why I cann't access appengine applications in china today??

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



[google-appengine] Re: Brazil and Hong Kong now supported for Billing

2009-03-16 Thread meaglith
When support China?

On Thu, Mar 5, 2009 at 6:19 AM, Thyako  wrote:

>
> Great!
>
> However, Brazil still does not appear in the Google Checkout own
> signup page. That is, only activating billing on GAE you can see
> Brazil before accepting the Checkout terms. If you go to
> checkout.google.com and try to signup, Brazil is not listed (just to
> note it, so someone can fix it if it is accidental).
>
> ~Thiago
>
> On Mar 2, 9:21 pm, Brett Slatkin  wrote:
> > Hey there,
> >
> > At launch,Braziland Hong Kong were not in our list of supported
> > countries for billing. I'm happy to announce that application
> > administrators in these countries may now purchase additional
> > resources for App Engine. Thanks for your patience!
> >
> > -Brett
> >
> > Google App Engine Team
> >
>

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



[google-appengine] doc files suddenly missing from google apps domain

2009-03-16 Thread Legacy FamilyTree
Hi guys,

This one is very serious for us at at our googleapps domain of kycevents.com

Some time yesterday, March 13, 2009, our major group of users at our sailing 
club found that all of the doc files they were sharing suddenly disappeared 
off of their doc folder.

The doc files that were not shared with that list of users are intact.  There 
were half a dozen collaborators using the missing files and all 
report the loss of these same files. The Trash basket is empty for each of the 
users.

Testing shows that I can share my files today with these same users, but all of 
their own files seem to have gone up the pipe.

any ideas.?


James Anderson
webmaster, Kelowna Yacht Club
Kelowna, B.C. 
Canada
legacyfamilyt...@shaw.ca
www.kelownayachtclub.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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Is Google App Engine support UDP communication? I know it is support tcp like http.

2009-03-16 Thread JasonJi

I want develop a small tools use UDP, But I don't know if Google App
Engine support UDP communication? I know it is support tcp like http.

Tks.

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



[google-appengine] Re: App Engine is Blocked by Chinse gov

2009-03-16 Thread zhangrich...@gmail.com

I am in Ningbo. I found this problem yesterday afternoon also. I can
not visit my web proxy http://proxy1china.appspot.com (74.125.19.141).
I thought it is caused by GFW instead of Google Bug because I used
other proxy tool and I can get my site. Then I add a subdomin
http://168.chinaguideblog.com(72.14.235.121) to bound my web proxy,I
can visit the subdomian but http web proxy doesn't work,I thought
https web roxy will work but my domain doesn't have SSL certificate,
so I have to stop to try.

This morning,I used OPENDNS,change DNS to 208.67.220.220. After that,I
can visit my web proxy directly but http://proxy1china.appspot.com
doesn't work, https://proxy1china.appspot.com still works well.

On 3月13日, 下午11时42分, Haoyu Bai  wrote:
> Hi,
>
> Could any from China confirm this? I can't access any subdomain of
> appspot.com now, for examplehttp://socghop.appspot.com
>
> Traceroute show it is blocked at 202.112.61.214 . Seems it is blocked
> by GFW again! Too bad!
>
> Thanks!
>
> -- Haoyu Bai

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



[google-appengine] Re: App Engine is Blocked by Chinse gov

2009-03-16 Thread zhangrich...@gmail.com

I am in Ningbo. I found this problem yesterday afternoon also. I can
not visit my web proxy http://proxy1china.appspot.com (74.125.19.141).
I thought it is caused by GFW instead of Google Bug because I used
other proxy tool and I can get my site. Then I add a subdomin
http://168.chinaguideblog.com(72.14.235.121) to bound my web proxy,I
can visit the subdomian but http web proxy doesn't work,I thought
https web roxy will work but my domain doesn't have SSL certificate,
so I have to stop to try.

This morning,I used OPENDNS,change DNS to 208.67.220.220. After that,I
can visit my web proxy directly but http://proxy1china.appspot.com
doesn't work, https://proxy1china.appspot.com still works well.

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



[google-appengine] Paging article code sample has wrong order() call parameter?

2009-03-16 Thread Simo Salminen

Hi,

In article http://code.google.com/appengine/articles/paging.html there
is code sample for "Paging without a property":

def get(self):
  next = None
  bookmark = self.request.get("__key__")
  if bookmark:
suggestions = Suggestion.all().order("__key__").filter('__key__
>=', bookmark).fetch(PAGESIZE+1)
  else:
suggestions = Suggestion.all().order("-when").fetch(PAGESIZE+1)
(continues..)

I believe the order("-when") should be order("__key__")?

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



[google-appengine] remote_api documentation's example, batching on __key__ without ordering?

2009-03-16 Thread Simo Salminen

Hi.

In http://code.google.com/appengine/articles/remote_api.html there is
example:

entities = MyModel.all().fetch(100)
while entities:
  for entity in entities:
# Do something with entity
  entities = MyModel.all().filter('__key__ >', entities[-1].key
()).fetch(100)


How come there is no ordering on __key__?

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



[google-appengine] Re: Problem for bulkloader.py using PolyModel

2009-03-16 Thread Saravana

Marzia,

The problem is occurs when data for  a class that is derived from a
class that is derived from polymodel class.

The problem is bulkloader looks for the class in _kind_map[1], but it
is not available in _kind_map.  See comment[2] in polymodel class, why
subclasses are not added to _kind_map,

 Unless the class is a root class or PolyModel itself, it is not
inserted in to the kind-map like other models.  However, all polymorphic
classes, are inserted in to the class-map which maps the class-key to
implementation.  This class key is consulted using the polymorphic instances
discriminator (the 'class' property of the entity) when loading from the
datastore.

Hope this helps in understanding the issue.

[1] 
http://code.google.com/p/googleappengine/source/browse/trunk/google/appengine/ext/db/__init__.py#215
[2] 
http://code.google.com/p/googleappengine/source/browse/trunk/google/appengine/ext/db/polymodel.py#103

Thanks
Saravana


On Fri, Mar 13, 2009 at 3:00 PM, Marzia Niccolai  wrote:
>
> Hi,
>
> Can you also post the code from the handler?
>
> Thanks,
> Marzia
>
> On Thu, Mar 12, 2009 at 8:30 PM, Webysther  wrote:
>>
>> 1.Create entity
>>
>> class Contact(polymodel.PolyModel):
>>  phone_number = db.PhoneNumberProperty()
>>  address = db.PostalAddressProperty()
>>
>> Upload data...
>>
>> 2.Create entity
>>
>> class Person(Contact):
>>  first_name = db.StringProperty()
>>  last_name = db.StringProperty()
>>  mobile_number = db.PhoneNumberProperty()
>>
>> Upload data, opss!!! Error...
>>
>> Traceback (most recent call last):
>>  File "C:\Program Files (x86)\Google\google_appengine\bulkloader.py",
>> line
>> 60, in 
>>    run_file(__file__, globals())
>>  File "C:\Program Files (x86)\Google\google_appengine\bulkloader.py",
>> line
>> 57, in run_file
>>    execfile(script_path, globals_)
>>  File "C:\Program Files
>> (x86)\Google\google_appengine\google\appengine\tools\bulkloader.py",
>> line
>> 2588, in 
>>    sys.exit(main(sys.argv))
>>  File "C:\Program Files
>> (x86)\Google\google_appengine\google\appengine\tools\bulkloader.py",
>> line
>> 2584, in main
>>    auth_domain=auth_domain)
>>  File "C:\Program Files
>> (x86)\Google\google_appengine\google\appengine\tools\bulkloader.py",
>> line
>> 2467, in _PerformBulkload
>>    LoadConfig(config_file)
>>  File "C:\Program Files
>> (x86)\Google\google_appengine\google\appengine\tools\bulkloader.py",
>> line
>> 2376, in LoadConfig
>>    Loader.RegisterLoader(cls())
>>  File "H:\projects\ibge\import\uf.py", line 10, in __init__
>>    ('co_regiao', int)
>>  File "C:\Program Files
>> (x86)\Google\google_appengine\google\appengine\tools\bulkloader.py",
>> line
>> 1880, in __init__
>>    db.class_for_kind(kind)
>>  File "C:\Program Files
>> (x86)\Google\google_appengine\google\appengine\ext\db\__init__.py",
>> line
>> 217, in class_for_kind
>>    raise KindError('No implementation for kind \'%s\'' % kind)
>> google.appengine.ext.db.KindError: No implementation for kind 'Person'
>>
>> http://code.google.com/p/googleappengine/issues/detail?id=1133
>>
>> Ideas?
>>

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



[google-appengine] Re: Change Development Server logging level default to debug

2009-03-16 Thread Chris Mohler

On Fri, Mar 13, 2009 at 10:09 PM, Coonay  wrote:
>
> IN order to display debug level info ,have to supply debug option like
> following
>>dev_appserver.py coonay --debug
>
> how can i Change Development Server logging level default to debug

If dev_appserver.py is in your $PATH you can probably use an alias in
.bashrc - see man bashrc

Chris

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



[google-appengine] Image/font manipulation

2009-03-16 Thread cr33dog

Hi Group,

Sorry if I missed this in the FAQ, but is there any way to load a font
and output text as an image?

I've been toying with an idea of making a GAE app to manipulate text
using bezier curves (containers) - sort of like "fontwork" in a
popular office suite (but better!).  However, the 'images' module
shipping with GAE seems quite limited.  The first step would be
loading font data from the font file and rendering a preview on the
web page and I can't seem to clear this simple step - am I missing
something?  I'm guessing PIL (and therefore the ImageFont) module is
still a no-go - any suggestions?

Thanks,
Chris

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



[google-appengine] Re: Parallel urlfetch utility class / function.

2009-03-16 Thread bFlood


@joe - fire/forget - you can just skip the fetcher.wait() call (which
call AsyncAPIProxy.wait). I'm not sure of you would need a valid
callback but even if you did it could be a simple stub that does
nothing.

@david - have you made this work with datastore calls yet? having some
issues trying to figure out how to set pbrequest/pbresponse variables

cheers
brian


On Mar 16, 12:05 pm, Joe Bowman  wrote:
> Wow that's great. The SDK might be problematic for you, as it appears
> to be very single threaded, I know for a fact it can't reply to
> requests to itself.
>
> Out of curiosity, are you still using base urlfetch, or is it your own
> creation? While when Google releases their scheduled tasks
> functionality it will be less of an issue, if your solution had the
> ability to fire off urlfetch calls and not wait for a response, it
> could be a perfect fit for the gaeutilities cron utility.
>
> Currently it grabs a list of tasks it's supposed to run on request,
> sets a timestamp, runs one, the compares now() to the timestamp and if
> the timedelta is more than 1 second, stops running tasks and finishes
> the request. It already appears your project would be perfect for
> running all necessary tasks at once, and the MIT License I believe is
> compatible with the BSD license I've released gaeutilities, so would
> you have any personal objection to me including it in gaeutilities at
> some point, with proper attribution of course?
>
> If you haven't see that project, it's url ishttp://gaeutilities.appspot.com/
>
> On Mar 16, 11:03 am, David Wilson  wrote:
>
> > Joe,
>
> > I've only tested it in production. ;)
>
> > The code should work serially on the SDK, but I haven't tried yet.
>
> > David.
>
> > 2009/3/16 Joe Bowman :
>
> > > Does the batch fetching working on live appengine applications, or
> > > only on the SDK?
>
> > > On Mar 16, 10:19 am, David Wilson  wrote:
> > >> I have no idea how definitive this is, but literally it means wall
> > >> clock time seems to be how CPU cost is measured. I guess this makes
> > >> sense for a few different reasons.
>
> > >> I found some internal function
> > >> "google3.apphosting.runtime._apphosting_runtime___python__apiproxy.get_requ
> > >>  est_cpu_usage"
> > >> with the docstring:
>
> > >>     Returns the number of megacycles used so far by this request.
> > >>     Does not include CPU used by API calls.
>
> > >> Calling it, then running time.sleep(5), then calling it again,
> > >> indicates thousands of megacycles used, yet in real terms the CPU was
> > >> probably doing nothing. I guess Datastore CPU, etc., is added on top
> > >> of this, but it seems to suggest to me that if you can drastically
> > >> reduce request time, quota usage should drop too.
>
> > >> I have yet to do any kind of rough measurements of Datastore CPU, so
> > >> I'm not sure how correct this all is.
>
> > >> David.
>
> > >>  - One of the guys on IRC suggested this means that per-request cost
> > >> is scaled during peak usage (and thus internal services running
> > >> slower).
>
> > >> 2009/3/16 peterk :
>
> > >> > A couple of questions re. CPU usage..
>
> > >> > "CPU time quota appears to be calculated based on literal time"
>
> > >> > Can you clarify what you mean here? I presume each async request eats
> > >> > into your CPU budget. But you say:
>
> > >> > "since you can burn a whole lot more AppEngine CPU more cheaply using
> > >> > the async api"
>
> > >> > Can you clarify how that's the case?
>
> > >> > I would guess as long as you're being billed for the cpu-ms spent in
> > >> > your asynchronous calls, Google would let you hang yourself with them
> > >> > when it comes to billing.. :) so I presume they'd let you squeeze in
> > >> > as many as your original request, and its limit, will allow for?
>
> > >> > Thanks again.
>
> > >> > On Mar 16, 2:00 pm, David Wilson  wrote:
> > >> >> It's completely undocumented (at this stage, anyway), but definitely
> > >> >> seems to work. A few notes I've come gathered:
>
> > >> >>  - CPU time quota appears to be calculated based on literal time,
> > >> >> rather than e.g. the UNIX concept of "time spent in running state".
>
> > >> >>  - I can fetch 100 URLs in 1.3 seconds from a machine colocated in
> > >> >> Germany using the asynchronous API. I can't begin to imagine how slow
> > >> >> (and therefore expensive in monetary terms) this would be using the
> > >> >> standard API.
>
> > >> >>  - The user-specified callback function appears to be invoked in a
> > >> >> separate thread; the RPC isn't "complete" until this callback
> > >> >> completes. The callback thread is still subject to the request
> > >> >> deadline.
>
> > >> >>  - It's a standard interface, and seems to have no parallel
> > >> >> restrictions at least for urlfetch and Datastore. However, I imagine
> > >> >> that it's possible restrictions may be placed here at some later
> > >> >> stage, since you can burn a whole lot more AppEngine CPU more cheaply
> > >> >> using the async api.

[google-appengine] Re: Parallel urlfetch utility class / function.

2009-03-16 Thread Joe Bowman

Wow that's great. The SDK might be problematic for you, as it appears
to be very single threaded, I know for a fact it can't reply to
requests to itself.

Out of curiosity, are you still using base urlfetch, or is it your own
creation? While when Google releases their scheduled tasks
functionality it will be less of an issue, if your solution had the
ability to fire off urlfetch calls and not wait for a response, it
could be a perfect fit for the gaeutilities cron utility.

Currently it grabs a list of tasks it's supposed to run on request,
sets a timestamp, runs one, the compares now() to the timestamp and if
the timedelta is more than 1 second, stops running tasks and finishes
the request. It already appears your project would be perfect for
running all necessary tasks at once, and the MIT License I believe is
compatible with the BSD license I've released gaeutilities, so would
you have any personal objection to me including it in gaeutilities at
some point, with proper attribution of course?

If you haven't see that project, it's url is http://gaeutilities.appspot.com/

On Mar 16, 11:03 am, David Wilson  wrote:
> Joe,
>
> I've only tested it in production. ;)
>
> The code should work serially on the SDK, but I haven't tried yet.
>
> David.
>
> 2009/3/16 Joe Bowman :
>
>
>
>
>
> > Does the batch fetching working on live appengine applications, or
> > only on the SDK?
>
> > On Mar 16, 10:19 am, David Wilson  wrote:
> >> I have no idea how definitive this is, but literally it means wall
> >> clock time seems to be how CPU cost is measured. I guess this makes
> >> sense for a few different reasons.
>
> >> I found some internal function
> >> "google3.apphosting.runtime._apphosting_runtime___python__apiproxy.get_request_cpu_usage"
> >> with the docstring:
>
> >>     Returns the number of megacycles used so far by this request.
> >>     Does not include CPU used by API calls.
>
> >> Calling it, then running time.sleep(5), then calling it again,
> >> indicates thousands of megacycles used, yet in real terms the CPU was
> >> probably doing nothing. I guess Datastore CPU, etc., is added on top
> >> of this, but it seems to suggest to me that if you can drastically
> >> reduce request time, quota usage should drop too.
>
> >> I have yet to do any kind of rough measurements of Datastore CPU, so
> >> I'm not sure how correct this all is.
>
> >> David.
>
> >>  - One of the guys on IRC suggested this means that per-request cost
> >> is scaled during peak usage (and thus internal services running
> >> slower).
>
> >> 2009/3/16 peterk :
>
> >> > A couple of questions re. CPU usage..
>
> >> > "CPU time quota appears to be calculated based on literal time"
>
> >> > Can you clarify what you mean here? I presume each async request eats
> >> > into your CPU budget. But you say:
>
> >> > "since you can burn a whole lot more AppEngine CPU more cheaply using
> >> > the async api"
>
> >> > Can you clarify how that's the case?
>
> >> > I would guess as long as you're being billed for the cpu-ms spent in
> >> > your asynchronous calls, Google would let you hang yourself with them
> >> > when it comes to billing.. :) so I presume they'd let you squeeze in
> >> > as many as your original request, and its limit, will allow for?
>
> >> > Thanks again.
>
> >> > On Mar 16, 2:00 pm, David Wilson  wrote:
> >> >> It's completely undocumented (at this stage, anyway), but definitely
> >> >> seems to work. A few notes I've come gathered:
>
> >> >>  - CPU time quota appears to be calculated based on literal time,
> >> >> rather than e.g. the UNIX concept of "time spent in running state".
>
> >> >>  - I can fetch 100 URLs in 1.3 seconds from a machine colocated in
> >> >> Germany using the asynchronous API. I can't begin to imagine how slow
> >> >> (and therefore expensive in monetary terms) this would be using the
> >> >> standard API.
>
> >> >>  - The user-specified callback function appears to be invoked in a
> >> >> separate thread; the RPC isn't "complete" until this callback
> >> >> completes. The callback thread is still subject to the request
> >> >> deadline.
>
> >> >>  - It's a standard interface, and seems to have no parallel
> >> >> restrictions at least for urlfetch and Datastore. However, I imagine
> >> >> that it's possible restrictions may be placed here at some later
> >> >> stage, since you can burn a whole lot more AppEngine CPU more cheaply
> >> >> using the async api.
>
> >> >>  - It's "standard" only insomuch as you have to fiddle with
> >> >> AppEngine-internal protocolbuffer definitions for each service type.
> >> >> This mostly means copy-pasting the standard sync call code from the
> >> >> SDK, and hacking it to use pubsubhubub's proxy code.
>
> >> >> Per the last point, you might be better waiting for an officially
> >> >> sanctioned API for doing this, albeit I doubt the protocolbuffer
> >> >> definitions change all that often.
>
> >> >> Thanks for Brett Slatkin & co. for doing the digging required to get
> >> >> th

[google-appengine] Re: delete an entry in a stringlistproperty

2009-03-16 Thread Tim Hoffman

Nah

try:

index = keylist.index(keyIWantToFind)

keylist.pop(index)
urlist.pop(index)
nameslist.pop(index)
except ValueError:
pass

or

index = keylist.find( keyIWantToFind)
if index > -1:
keylist.pop(index)
urlist.pop(index)
nameslist.pop(index)


Remember a ListProperty is a list

See ya

T
T

Remember ListProperty is a list.


On Mar 16, 10:29 pm, sagey  wrote:
> Hello, i'd really appreciate some help.
>
> I have a model with 3 stringlistproperty properties.
>
> keylist
> urllist
> namelist
>
> keylist[0] relates to urllist[0] and namelist[0]
>
> i want to be able to search through the keylist property for a key,
> then delete each record in the 3 stringlistproperties that relate to
> it.
>
> I'm presuming the best way to do this is to iterate through the
> keylist incrementing a loopcount whilst doing so, and then deleting
> the elements of each stringlistproperty using the loopcount??
>
> hewres some pseudo code:
>
> keyIWantToFind = 'blah
> person = db.GqlQuery("SELECT * FROM Person WHERE You = :
> 1",users.get_current_user())
>                         if person:
>                                 loopCount = 0
>                                 for thekey in person.keyList:
>                                        if keyIWantToFind == thekey:
>                                                     #do something to
> delete the elements from keylist,namelist and urllist
>                                                     # access the
> elements to be deleted by keylist[loopcount]  ???
>                                        loopCount = loopCount + 1
>
> I have 2 questions:
>
> 1) What syntax would i use to delete an element from a
> stringlistproperty, the gae documentation doesn't mention.
>
> 2) Is this the best way to do what i want to do?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Parallel urlfetch utility class / function.

2009-03-16 Thread David Wilson

Joe,

I've only tested it in production. ;)

The code should work serially on the SDK, but I haven't tried yet.


David.

2009/3/16 Joe Bowman :
>
> Does the batch fetching working on live appengine applications, or
> only on the SDK?
>
> On Mar 16, 10:19 am, David Wilson  wrote:
>> I have no idea how definitive this is, but literally it means wall
>> clock time seems to be how CPU cost is measured. I guess this makes
>> sense for a few different reasons.
>>
>> I found some internal function
>> "google3.apphosting.runtime._apphosting_runtime___python__apiproxy.get_request_cpu_usage"
>> with the docstring:
>>
>>     Returns the number of megacycles used so far by this request.
>>     Does not include CPU used by API calls.
>>
>> Calling it, then running time.sleep(5), then calling it again,
>> indicates thousands of megacycles used, yet in real terms the CPU was
>> probably doing nothing. I guess Datastore CPU, etc., is added on top
>> of this, but it seems to suggest to me that if you can drastically
>> reduce request time, quota usage should drop too.
>>
>> I have yet to do any kind of rough measurements of Datastore CPU, so
>> I'm not sure how correct this all is.
>>
>> David.
>>
>>  - One of the guys on IRC suggested this means that per-request cost
>> is scaled during peak usage (and thus internal services running
>> slower).
>>
>> 2009/3/16 peterk :
>>
>>
>>
>>
>>
>> > A couple of questions re. CPU usage..
>>
>> > "CPU time quota appears to be calculated based on literal time"
>>
>> > Can you clarify what you mean here? I presume each async request eats
>> > into your CPU budget. But you say:
>>
>> > "since you can burn a whole lot more AppEngine CPU more cheaply using
>> > the async api"
>>
>> > Can you clarify how that's the case?
>>
>> > I would guess as long as you're being billed for the cpu-ms spent in
>> > your asynchronous calls, Google would let you hang yourself with them
>> > when it comes to billing.. :) so I presume they'd let you squeeze in
>> > as many as your original request, and its limit, will allow for?
>>
>> > Thanks again.
>>
>> > On Mar 16, 2:00 pm, David Wilson  wrote:
>> >> It's completely undocumented (at this stage, anyway), but definitely
>> >> seems to work. A few notes I've come gathered:
>>
>> >>  - CPU time quota appears to be calculated based on literal time,
>> >> rather than e.g. the UNIX concept of "time spent in running state".
>>
>> >>  - I can fetch 100 URLs in 1.3 seconds from a machine colocated in
>> >> Germany using the asynchronous API. I can't begin to imagine how slow
>> >> (and therefore expensive in monetary terms) this would be using the
>> >> standard API.
>>
>> >>  - The user-specified callback function appears to be invoked in a
>> >> separate thread; the RPC isn't "complete" until this callback
>> >> completes. The callback thread is still subject to the request
>> >> deadline.
>>
>> >>  - It's a standard interface, and seems to have no parallel
>> >> restrictions at least for urlfetch and Datastore. However, I imagine
>> >> that it's possible restrictions may be placed here at some later
>> >> stage, since you can burn a whole lot more AppEngine CPU more cheaply
>> >> using the async api.
>>
>> >>  - It's "standard" only insomuch as you have to fiddle with
>> >> AppEngine-internal protocolbuffer definitions for each service type.
>> >> This mostly means copy-pasting the standard sync call code from the
>> >> SDK, and hacking it to use pubsubhubub's proxy code.
>>
>> >> Per the last point, you might be better waiting for an officially
>> >> sanctioned API for doing this, albeit I doubt the protocolbuffer
>> >> definitions change all that often.
>>
>> >> Thanks for Brett Slatkin & co. for doing the digging required to get
>> >> the async stuff working! :)
>>
>> >> David.
>>
>> >> 2009/3/16 peterk :
>>
>> >> > Very neat.. Thank you.
>>
>> >> > Just to clarify, can we use this for all API calls? Datastore too? I
>> >> > didn't look very closely at the async proxy in pubsubhubub..
>>
>> >> > Asynchronous calls available on all apis might give a lot to chew
>> >> > on.. :) It's been a while since I've worked with async function calls
>> >> > or threading, might have to dig up some old notes to see where I could
>> >> > extract gains from it in my app. Some common cases might be worth the
>> >> > community documenting for all to benefit from, too.
>>
>> >> > On Mar 16, 1:26 pm, David Wilson  wrote:
>> >> >> I've created a Google Code project to contain some batch utilities I'm
>> >> >> working on, based on async_apiproxy.py from pubsubhubbub[0]. The
>> >> >> project currently contains just a modified async_apiproxy.py that
>> >> >> doesn't require dummy google3 modules on the local machine, and a
>> >> >> megafetch.py, for batch-fetching URLs.
>>
>> >> >>    http://code.google.com/p/appengine-async-tools/
>>
>> >> >> David
>>
>> >> >> [0]http://code.google.com/p/pubsubhubbub/source/browse/trunk/hub/async_a...
>>
>> >> >> --
>> >> >> It is better to be wr

[google-appengine] Re: Parallel urlfetch utility class / function.

2009-03-16 Thread Joe Bowman

Does the batch fetching working on live appengine applications, or
only on the SDK?

On Mar 16, 10:19 am, David Wilson  wrote:
> I have no idea how definitive this is, but literally it means wall
> clock time seems to be how CPU cost is measured. I guess this makes
> sense for a few different reasons.
>
> I found some internal function
> "google3.apphosting.runtime._apphosting_runtime___python__apiproxy.get_request_cpu_usage"
> with the docstring:
>
>     Returns the number of megacycles used so far by this request.
>     Does not include CPU used by API calls.
>
> Calling it, then running time.sleep(5), then calling it again,
> indicates thousands of megacycles used, yet in real terms the CPU was
> probably doing nothing. I guess Datastore CPU, etc., is added on top
> of this, but it seems to suggest to me that if you can drastically
> reduce request time, quota usage should drop too.
>
> I have yet to do any kind of rough measurements of Datastore CPU, so
> I'm not sure how correct this all is.
>
> David.
>
>  - One of the guys on IRC suggested this means that per-request cost
> is scaled during peak usage (and thus internal services running
> slower).
>
> 2009/3/16 peterk :
>
>
>
>
>
> > A couple of questions re. CPU usage..
>
> > "CPU time quota appears to be calculated based on literal time"
>
> > Can you clarify what you mean here? I presume each async request eats
> > into your CPU budget. But you say:
>
> > "since you can burn a whole lot more AppEngine CPU more cheaply using
> > the async api"
>
> > Can you clarify how that's the case?
>
> > I would guess as long as you're being billed for the cpu-ms spent in
> > your asynchronous calls, Google would let you hang yourself with them
> > when it comes to billing.. :) so I presume they'd let you squeeze in
> > as many as your original request, and its limit, will allow for?
>
> > Thanks again.
>
> > On Mar 16, 2:00 pm, David Wilson  wrote:
> >> It's completely undocumented (at this stage, anyway), but definitely
> >> seems to work. A few notes I've come gathered:
>
> >>  - CPU time quota appears to be calculated based on literal time,
> >> rather than e.g. the UNIX concept of "time spent in running state".
>
> >>  - I can fetch 100 URLs in 1.3 seconds from a machine colocated in
> >> Germany using the asynchronous API. I can't begin to imagine how slow
> >> (and therefore expensive in monetary terms) this would be using the
> >> standard API.
>
> >>  - The user-specified callback function appears to be invoked in a
> >> separate thread; the RPC isn't "complete" until this callback
> >> completes. The callback thread is still subject to the request
> >> deadline.
>
> >>  - It's a standard interface, and seems to have no parallel
> >> restrictions at least for urlfetch and Datastore. However, I imagine
> >> that it's possible restrictions may be placed here at some later
> >> stage, since you can burn a whole lot more AppEngine CPU more cheaply
> >> using the async api.
>
> >>  - It's "standard" only insomuch as you have to fiddle with
> >> AppEngine-internal protocolbuffer definitions for each service type.
> >> This mostly means copy-pasting the standard sync call code from the
> >> SDK, and hacking it to use pubsubhubub's proxy code.
>
> >> Per the last point, you might be better waiting for an officially
> >> sanctioned API for doing this, albeit I doubt the protocolbuffer
> >> definitions change all that often.
>
> >> Thanks for Brett Slatkin & co. for doing the digging required to get
> >> the async stuff working! :)
>
> >> David.
>
> >> 2009/3/16 peterk :
>
> >> > Very neat.. Thank you.
>
> >> > Just to clarify, can we use this for all API calls? Datastore too? I
> >> > didn't look very closely at the async proxy in pubsubhubub..
>
> >> > Asynchronous calls available on all apis might give a lot to chew
> >> > on.. :) It's been a while since I've worked with async function calls
> >> > or threading, might have to dig up some old notes to see where I could
> >> > extract gains from it in my app. Some common cases might be worth the
> >> > community documenting for all to benefit from, too.
>
> >> > On Mar 16, 1:26 pm, David Wilson  wrote:
> >> >> I've created a Google Code project to contain some batch utilities I'm
> >> >> working on, based on async_apiproxy.py from pubsubhubbub[0]. The
> >> >> project currently contains just a modified async_apiproxy.py that
> >> >> doesn't require dummy google3 modules on the local machine, and a
> >> >> megafetch.py, for batch-fetching URLs.
>
> >> >>    http://code.google.com/p/appengine-async-tools/
>
> >> >> David
>
> >> >> [0]http://code.google.com/p/pubsubhubbub/source/browse/trunk/hub/async_a...
>
> >> >> --
> >> >> It is better to be wrong than to be vague.
> >> >>   — Freeman Dyson
>
> >> --
> >> It is better to be wrong than to be vague.
> >>   — Freeman Dyson
>
> --
> It is better to be wrong than to be vague.
>   — Freeman Dyson
--~--~-~--~~~---~--~~
You received th

[google-appengine] Re: I got a problem with Appengine + Flex-HttpService

2009-03-16 Thread amc

I have the same problem with my flex application and IE6. I can't shed
any insight at the moment - just wanted to let you know that I see the
same problem too. For now I can get away with letting my soon to be
users know not to use IE6.

Anton

On Mar 4, 12:58 pm, "Scott Seely"  wrote:
> Fiddler2 should help with the IE traffic.
>
> Firebug can help you track the FF traffic
>
> From: google-appengine@googlegroups.com
> [mailto:google-appeng...@googlegroups.com] On Behalf Of ???
> Sent: Tuesday, March 03, 2009 8:04 PM
> To: google-appengine@googlegroups.com
> Subject: [google-appengine] Re: I got a problem with Appengine +
> Flex-HttpService
>
> Thanks Andrew,
>
> I don't know much at sniffer. Do you have some advice on what's software is
> good?
>
> 2009/3/2 Andrew Badera 
>
> use a network sniffer or transparent proxy to figure out what the
> differences are, and address them.
>
> On Sun, Mar 1, 2009 at 11:09 PM, Legend Zhang <52openplatf...@gmail.com>
> wrote:
>
>
>
> > I can not access Appengine from flex using httpservice when I use IE6,
> > using get and post.
>
> > Did someone have this problem too?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] new Open source proj -- for login, remember me, security, usability functionality -- adrian remembers

2009-03-16 Thread Adrian Scott . com

Get your app started very quickly with this free code... for
membership capability



http://www.adrianremembersme.com/


Version 0.1.1 currently offers basic login, remember me functionality
( + photo upload for profile )

Attempting to follow and encode best practices for cookies, security,
etc. Let's stop re-inventing the wheel ;)


On the roadmap -- advanced security features (e.g. handling when
someone's trying to hack a pwd, save yourself! from Twitter's recent
celeb hack embarassment), usability enhancements (ooh  aah)


Please come and Kick the Tires... and tell us what you really think!


http://www.adrianremembersme.com/

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

http://adrianremembersme.appspot.com/


recruiting developers, soon will be posting bounties for little
upgrades... great code for new developers to start poking around with!

---
i couldn't find anything else that really provided all this in one
bundle, according to most current best practices, etc. we can put
together a django version of this at some point too...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: minimal http response headers

2009-03-16 Thread Jarek Zgoda

Nothing forces you to use WebApp framework with its request/response
objects - WebOb is available already (afaik, in WebApp request is
WebOb request, but response is not a subclass of WebOb response),
Werkzeug works too.

On 15 Mar, 06:32, zombie  wrote:
> Does anyone know what is the minimum amount of data that the appengine
> http response can return?
>
> I need  the ***absolute*** minimum, counting both headers and data.
> Actually, I don't even plan to return any data, just 1 bit of
> information through (custom) status response codes like "201" (for OK)
> or "501" (for ERR).
>
> (as to why, short answer: GPRS transfer charged per byte, lots of
> requests)
>
> And since this is my custom app doing requests, I will not even use
> GET request, probably just HEAD, or even PUT (or anything that will
> help return the smallest amount of data). Also, any caching method
> (that could help) is possible for me (IfModified/ETag?).
>
> Doing a normal "GET / HTTP/1.0" request on some appengine app, I get
> this response headers:
>
> HTTP/1.0 200 OK
> Content-Type: text/html; charset=utf-8
> Cache-Control: no-cache
> Date: Sun, 15 Mar 2009 05:00:48 GMT
> Server: Google Frontend
> Content-Length: 2906
> Connection: Close
>
> I can see from appengine documentation that you can't modify Content-
> Length, Date and Server fields, so I suppose they can't be disabled
> either. Is there a way to disable them, possibly using custom HTTP
> commands (HEAD/PUT?)?
>
> Or just a simple redirection maybe? Are all those headers sent back
> when your script does a simple HTTP 302 redirect?
>
> Thanks in advance
> Tomislav Jovanovic
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Parallel urlfetch utility class / function.

2009-03-16 Thread David Wilson

I have no idea how definitive this is, but literally it means wall
clock time seems to be how CPU cost is measured. I guess this makes
sense for a few different reasons.

I found some internal function
"google3.apphosting.runtime._apphosting_runtime___python__apiproxy.get_request_cpu_usage"
with the docstring:

Returns the number of megacycles used so far by this request.
Does not include CPU used by API calls.

Calling it, then running time.sleep(5), then calling it again,
indicates thousands of megacycles used, yet in real terms the CPU was
probably doing nothing. I guess Datastore CPU, etc., is added on top
of this, but it seems to suggest to me that if you can drastically
reduce request time, quota usage should drop too.

I have yet to do any kind of rough measurements of Datastore CPU, so
I'm not sure how correct this all is.


David.

 - One of the guys on IRC suggested this means that per-request cost
is scaled during peak usage (and thus internal services running
slower).

2009/3/16 peterk :
>
> A couple of questions re. CPU usage..
>
> "CPU time quota appears to be calculated based on literal time"
>
> Can you clarify what you mean here? I presume each async request eats
> into your CPU budget. But you say:
>
> "since you can burn a whole lot more AppEngine CPU more cheaply using
> the async api"
>
> Can you clarify how that's the case?
>
> I would guess as long as you're being billed for the cpu-ms spent in
> your asynchronous calls, Google would let you hang yourself with them
> when it comes to billing.. :) so I presume they'd let you squeeze in
> as many as your original request, and its limit, will allow for?
>
> Thanks again.
>
>
> On Mar 16, 2:00 pm, David Wilson  wrote:
>> It's completely undocumented (at this stage, anyway), but definitely
>> seems to work. A few notes I've come gathered:
>>
>>  - CPU time quota appears to be calculated based on literal time,
>> rather than e.g. the UNIX concept of "time spent in running state".
>>
>>  - I can fetch 100 URLs in 1.3 seconds from a machine colocated in
>> Germany using the asynchronous API. I can't begin to imagine how slow
>> (and therefore expensive in monetary terms) this would be using the
>> standard API.
>>
>>  - The user-specified callback function appears to be invoked in a
>> separate thread; the RPC isn't "complete" until this callback
>> completes. The callback thread is still subject to the request
>> deadline.
>>
>>  - It's a standard interface, and seems to have no parallel
>> restrictions at least for urlfetch and Datastore. However, I imagine
>> that it's possible restrictions may be placed here at some later
>> stage, since you can burn a whole lot more AppEngine CPU more cheaply
>> using the async api.
>>
>>  - It's "standard" only insomuch as you have to fiddle with
>> AppEngine-internal protocolbuffer definitions for each service type.
>> This mostly means copy-pasting the standard sync call code from the
>> SDK, and hacking it to use pubsubhubub's proxy code.
>>
>> Per the last point, you might be better waiting for an officially
>> sanctioned API for doing this, albeit I doubt the protocolbuffer
>> definitions change all that often.
>>
>> Thanks for Brett Slatkin & co. for doing the digging required to get
>> the async stuff working! :)
>>
>> David.
>>
>> 2009/3/16 peterk :
>>
>>
>>
>>
>>
>> > Very neat.. Thank you.
>>
>> > Just to clarify, can we use this for all API calls? Datastore too? I
>> > didn't look very closely at the async proxy in pubsubhubub..
>>
>> > Asynchronous calls available on all apis might give a lot to chew
>> > on.. :) It's been a while since I've worked with async function calls
>> > or threading, might have to dig up some old notes to see where I could
>> > extract gains from it in my app. Some common cases might be worth the
>> > community documenting for all to benefit from, too.
>>
>> > On Mar 16, 1:26 pm, David Wilson  wrote:
>> >> I've created a Google Code project to contain some batch utilities I'm
>> >> working on, based on async_apiproxy.py from pubsubhubbub[0]. The
>> >> project currently contains just a modified async_apiproxy.py that
>> >> doesn't require dummy google3 modules on the local machine, and a
>> >> megafetch.py, for batch-fetching URLs.
>>
>> >>    http://code.google.com/p/appengine-async-tools/
>>
>> >> David
>>
>> >> [0]http://code.google.com/p/pubsubhubbub/source/browse/trunk/hub/async_a...
>>
>> >> --
>> >> It is better to be wrong than to be vague.
>> >>   — Freeman Dyson
>>
>> --
>> It is better to be wrong than to be vague.
>>   — Freeman Dyson
> >
>



-- 
It is better to be wrong than to be vague.
  — Freeman Dyson

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit

[google-appengine] Re: Parallel urlfetch utility class / function.

2009-03-16 Thread bFlood

oh my, this is working now?!? I just assumed it would only be
available from the next build. great work david!

I agree on waiting for the "official" release but its certainly
something that we can test with right now in preparation for the new
release.

thanks for digging this out (and thanks to Brett Slatkin as well)

cheers
brian

On Mar 16, 10:00 am, David Wilson  wrote:
> It's completely undocumented (at this stage, anyway), but definitely
> seems to work. A few notes I've come gathered:
>
>  - CPU time quota appears to be calculated based on literal time,
> rather than e.g. the UNIX concept of "time spent in running state".
>
>  - I can fetch 100 URLs in 1.3 seconds from a machine colocated in
> Germany using the asynchronous API. I can't begin to imagine how slow
> (and therefore expensive in monetary terms) this would be using the
> standard API.
>
>  - The user-specified callback function appears to be invoked in a
> separate thread; the RPC isn't "complete" until this callback
> completes. The callback thread is still subject to the request
> deadline.
>
>  - It's a standard interface, and seems to have no parallel
> restrictions at least for urlfetch and Datastore. However, I imagine
> that it's possible restrictions may be placed here at some later
> stage, since you can burn a whole lot more AppEngine CPU more cheaply
> using the async api.
>
>  - It's "standard" only insomuch as you have to fiddle with
> AppEngine-internal protocolbuffer definitions for each service type.
> This mostly means copy-pasting the standard sync call code from the
> SDK, and hacking it to use pubsubhubub's proxy code.
>
> Per the last point, you might be better waiting for an officially
> sanctioned API for doing this, albeit I doubt the protocolbuffer
> definitions change all that often.
>
> Thanks for Brett Slatkin & co. for doing the digging required to get
> the async stuff working! :)
>
> David.
>
> 2009/3/16 peterk :
>
>
>
>
>
> > Very neat.. Thank you.
>
> > Just to clarify, can we use this for all API calls? Datastore too? I
> > didn't look very closely at the async proxy in pubsubhubub..
>
> > Asynchronous calls available on all apis might give a lot to chew
> > on.. :) It's been a while since I've worked with async function calls
> > or threading, might have to dig up some old notes to see where I could
> > extract gains from it in my app. Some common cases might be worth the
> > community documenting for all to benefit from, too.
>
> > On Mar 16, 1:26 pm, David Wilson  wrote:
> >> I've created a Google Code project to contain some batch utilities I'm
> >> working on, based on async_apiproxy.py from pubsubhubbub[0]. The
> >> project currently contains just a modified async_apiproxy.py that
> >> doesn't require dummy google3 modules on the local machine, and a
> >> megafetch.py, for batch-fetching URLs.
>
> >>    http://code.google.com/p/appengine-async-tools/
>
> >> David
>
> >> [0]http://code.google.com/p/pubsubhubbub/source/browse/trunk/hub/async_a...
>
> >> --
> >> It is better to be wrong than to be vague.
> >>   — Freeman Dyson
>
> --
> It is better to be wrong than to be vague.
>   — Freeman Dyson
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Parallel urlfetch utility class / function.

2009-03-16 Thread peterk

A couple of questions re. CPU usage..

"CPU time quota appears to be calculated based on literal time"

Can you clarify what you mean here? I presume each async request eats
into your CPU budget. But you say:

"since you can burn a whole lot more AppEngine CPU more cheaply using
the async api"

Can you clarify how that's the case?

I would guess as long as you're being billed for the cpu-ms spent in
your asynchronous calls, Google would let you hang yourself with them
when it comes to billing.. :) so I presume they'd let you squeeze in
as many as your original request, and its limit, will allow for?

Thanks again.


On Mar 16, 2:00 pm, David Wilson  wrote:
> It's completely undocumented (at this stage, anyway), but definitely
> seems to work. A few notes I've come gathered:
>
>  - CPU time quota appears to be calculated based on literal time,
> rather than e.g. the UNIX concept of "time spent in running state".
>
>  - I can fetch 100 URLs in 1.3 seconds from a machine colocated in
> Germany using the asynchronous API. I can't begin to imagine how slow
> (and therefore expensive in monetary terms) this would be using the
> standard API.
>
>  - The user-specified callback function appears to be invoked in a
> separate thread; the RPC isn't "complete" until this callback
> completes. The callback thread is still subject to the request
> deadline.
>
>  - It's a standard interface, and seems to have no parallel
> restrictions at least for urlfetch and Datastore. However, I imagine
> that it's possible restrictions may be placed here at some later
> stage, since you can burn a whole lot more AppEngine CPU more cheaply
> using the async api.
>
>  - It's "standard" only insomuch as you have to fiddle with
> AppEngine-internal protocolbuffer definitions for each service type.
> This mostly means copy-pasting the standard sync call code from the
> SDK, and hacking it to use pubsubhubub's proxy code.
>
> Per the last point, you might be better waiting for an officially
> sanctioned API for doing this, albeit I doubt the protocolbuffer
> definitions change all that often.
>
> Thanks for Brett Slatkin & co. for doing the digging required to get
> the async stuff working! :)
>
> David.
>
> 2009/3/16 peterk :
>
>
>
>
>
> > Very neat.. Thank you.
>
> > Just to clarify, can we use this for all API calls? Datastore too? I
> > didn't look very closely at the async proxy in pubsubhubub..
>
> > Asynchronous calls available on all apis might give a lot to chew
> > on.. :) It's been a while since I've worked with async function calls
> > or threading, might have to dig up some old notes to see where I could
> > extract gains from it in my app. Some common cases might be worth the
> > community documenting for all to benefit from, too.
>
> > On Mar 16, 1:26 pm, David Wilson  wrote:
> >> I've created a Google Code project to contain some batch utilities I'm
> >> working on, based on async_apiproxy.py from pubsubhubbub[0]. The
> >> project currently contains just a modified async_apiproxy.py that
> >> doesn't require dummy google3 modules on the local machine, and a
> >> megafetch.py, for batch-fetching URLs.
>
> >>    http://code.google.com/p/appengine-async-tools/
>
> >> David
>
> >> [0]http://code.google.com/p/pubsubhubbub/source/browse/trunk/hub/async_a...
>
> >> --
> >> It is better to be wrong than to be vague.
> >>   — Freeman Dyson
>
> --
> It is better to be wrong than to be vague.
>   — Freeman Dyson
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Parallel urlfetch utility class / function.

2009-03-16 Thread David Wilson

It's completely undocumented (at this stage, anyway), but definitely
seems to work. A few notes I've come gathered:

 - CPU time quota appears to be calculated based on literal time,
rather than e.g. the UNIX concept of "time spent in running state".

 - I can fetch 100 URLs in 1.3 seconds from a machine colocated in
Germany using the asynchronous API. I can't begin to imagine how slow
(and therefore expensive in monetary terms) this would be using the
standard API.

 - The user-specified callback function appears to be invoked in a
separate thread; the RPC isn't "complete" until this callback
completes. The callback thread is still subject to the request
deadline.

 - It's a standard interface, and seems to have no parallel
restrictions at least for urlfetch and Datastore. However, I imagine
that it's possible restrictions may be placed here at some later
stage, since you can burn a whole lot more AppEngine CPU more cheaply
using the async api.

 - It's "standard" only insomuch as you have to fiddle with
AppEngine-internal protocolbuffer definitions for each service type.
This mostly means copy-pasting the standard sync call code from the
SDK, and hacking it to use pubsubhubub's proxy code.

Per the last point, you might be better waiting for an officially
sanctioned API for doing this, albeit I doubt the protocolbuffer
definitions change all that often.

Thanks for Brett Slatkin & co. for doing the digging required to get
the async stuff working! :)


David.

2009/3/16 peterk :
>
> Very neat.. Thank you.
>
> Just to clarify, can we use this for all API calls? Datastore too? I
> didn't look very closely at the async proxy in pubsubhubub..
>
> Asynchronous calls available on all apis might give a lot to chew
> on.. :) It's been a while since I've worked with async function calls
> or threading, might have to dig up some old notes to see where I could
> extract gains from it in my app. Some common cases might be worth the
> community documenting for all to benefit from, too.
>
> On Mar 16, 1:26 pm, David Wilson  wrote:
>> I've created a Google Code project to contain some batch utilities I'm
>> working on, based on async_apiproxy.py from pubsubhubbub[0]. The
>> project currently contains just a modified async_apiproxy.py that
>> doesn't require dummy google3 modules on the local machine, and a
>> megafetch.py, for batch-fetching URLs.
>>
>>    http://code.google.com/p/appengine-async-tools/
>>
>> David
>>
>> [0]http://code.google.com/p/pubsubhubbub/source/browse/trunk/hub/async_a...
>>
>> --
>> It is better to be wrong than to be vague.
>>   — Freeman Dyson
> >
>



-- 
It is better to be wrong than to be vague.
  — Freeman Dyson

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



[google-appengine] Re: Parallel urlfetch utility class / function.

2009-03-16 Thread peterk

Very neat.. Thank you.

Just to clarify, can we use this for all API calls? Datastore too? I
didn't look very closely at the async proxy in pubsubhubub..

Asynchronous calls available on all apis might give a lot to chew
on.. :) It's been a while since I've worked with async function calls
or threading, might have to dig up some old notes to see where I could
extract gains from it in my app. Some common cases might be worth the
community documenting for all to benefit from, too.

On Mar 16, 1:26 pm, David Wilson  wrote:
> I've created a Google Code project to contain some batch utilities I'm
> working on, based on async_apiproxy.py from pubsubhubbub[0]. The
> project currently contains just a modified async_apiproxy.py that
> doesn't require dummy google3 modules on the local machine, and a
> megafetch.py, for batch-fetching URLs.
>
>    http://code.google.com/p/appengine-async-tools/
>
> David
>
> [0]http://code.google.com/p/pubsubhubbub/source/browse/trunk/hub/async_a...
>
> --
> It is better to be wrong than to be vague.
>   — Freeman Dyson
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



  1   2   >