[google-appengine] Time Based Automation ?? How can this be done ?/ Run a .py file every 15 min ??

2009-02-14 Thread ramu

I need to run an script (a .py file ) every 15 min . How is this
possible ?
Any workaround using any external free source or anything .

It would help design funcunality like automatically closing the online
auctions  .
--~--~-~--~~~---~--~~
You 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: ReferenceProperty key without loading the entity

2009-02-14 Thread David Symonds

On Sat, Feb 14, 2009 at 5:17 PM, Ben Nevile  wrote:

> I know it has been discussed in the past, but I bring it up again
> because I keep running into it over and over: please can we have a way
> to access the key for a ReferenceProperty without loading the entity?
> It's my understanding that currently the only way to do this is create
> a separate StringProperty to hold the key?

http://appengine-cookbook.appspot.com/recipe/getting-dbreferenceproperty-key-without-loading-entity


Dave.

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



[google-appengine] Re: New Limits for Several App Engine Operations

2009-02-14 Thread Dennis

Better than a dozen red roses or a black cat not crossing my
sys.path!  Great stuff!



On Feb 14, 12:40 pm, iceanfire  wrote:
> WOW! Thanks!
>
> On Feb 13, 4:13 pm, "Marce (Google)"  wrote:
>
>
>
> > For those of you who haven't already heard, we're very excited
> > yesterday to have announced that we've raised limits on several App
> > Engine operations:
>
> >     * No more "High CPU Requests"! App Engine Apps were once allowed
> > no more than 2 CPU-intensive requests per minute. We've made some
> > adjustments to the way we handle requests, and have eliminated this
> > limitation altogether. To learn more about how this works and the
> > implications for your app, see our documentation.
> >     * Response deadline raised to 30 seconds. The amount of time an
> > App Engine app can take to respond to an incoming request has been
> > raised from 10 to 30 seconds! There are limits on the number of
> > simultaneous active requests an application can process at any given
> > moment--see our docs to learn more.
> >     * Size limits on code files, static files, and requests/responses
> > raised to 10MB! App Engine apps can now receive requests and send
> > responses of up to 10MB in size, and users can upload 10MB code and
> > static files as well. Note that API requests (e.g. memcache.set(),
> > db.put()) are still limited to 1MB in size.
>
> > These changes were inspired and driven by a great deal of developer
> > feedback, and we're not done! Please let us know what you'd like to
> > see next on App Engine .- 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: Can't Creat New Application. Help~~~~~~~~

2009-02-14 Thread Allen

yep, you're right.. my typo error.
Thank you,

And it's ok now, I have resolved it.

By the way, how can I run my application just in my local LAN.
I wanna other computers in the same Lan can visit the application like
it does under Google App Engine.
Thanks

On 2月14日, 下午3时28分, Alexander Kojevnikov 
wrote:
> On Feb 14, 3:46 pm, Allen  wrote:
>
> > As you mentioned, login throughhttp://appengine.google.com/mydomain.com/
>
> It should behttp://appengine.google.com/a/mydomain.com/
> (mind the '/a/' in the middle)
--~--~-~--~~~---~--~~
You 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: HELP~~~~~!!! How to run the Google App in my local LAN

2009-02-14 Thread Allen

Could any one help!!!???

Thanksss!

On 2月14日, 下午12时51分, Allen  wrote:
> When I finish the application, I can upload to Google App Engine by
> "appcfg.py update ."
>
> My question is :
> Can I run this application in my local LAN. And make sure other
> computers in the samd LAN can visit 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: app-engine-patch startup errors; help with getting started

2009-02-14 Thread Waldemar Kornewald

Hi Adrian,

On 13 Feb., 16:48, "Adrian Scott . com" 
wrote:
> trying manage.py runserver
>
> lots of startup errors including on .po files within locale 'msgfmt'
> is not recognized as an internal or external command

I've updated the documentation. You either have to install gettext or
you have to set "USE_I18N = False" in your settings:
http://code.google.com/p/app-engine-patch/wiki/GettingStarted

> also WARNING: root:Could not read datastore data from ... \django-aep-
> sample.datastore

That's normal if your datastore hasn't been created, yet.

> --
> other thing:
>
> http://docs.djangoproject.com/en/dev/intro/tutorial01/#intro-tutorial01
>
> speaks about a mysite directory. i don't see such a dir. just a myapp
> dir... should we use that one to do:
>
> python manage.py startapp polls

myapp is a Django app (like polls) while mysite is the whole project
(in your case, the app-engine-patch-sample folder)
So, run that command in the project root folder, not in myapp.

> "Most manage.py commands just work (runserver, test, flush, ...), so
> you should be in a familiar environment. " is where the getting
> started docs leave me... but i'm just starting w/ django, so it's not
> a familiar environment. not sure what to do where to go next...
>
> anyone else having this little challenge? :)

Well, app-engine-patch is just a port of Django, so you should learn
Django, first. Just keep in mind that whenever you see code for
Django's Model (models.Model, models.CharField, etc.) you have to
actually use Google's Model (db.Model, db.StringProperty, etc.).

Bye,
Waldemar Kornewald

--
Help with porting native Django Models to App Engine:
http://code.djangoproject.com/wiki/AppEngine
--~--~-~--~~~---~--~~
You 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: New Limits for Several App Engine Operations

2009-02-14 Thread dalenewman

wait!  all my suffering, struggling, and over-coming high cpu requests
for nothing!

put the limits back in :-)

Dale
www.bookdope.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: HELP~~~~~!!! How to run the Google App in my local LAN

2009-02-14 Thread Allen

Can I just hosted it in my LAN (like the "dev_appserver.py")?
when we developing, we can use dev_appserver.py to test the
application.
Is there any way I can host the application in local LAN for other
computers?

Thanks

On 2月14日, 下午9时28分, "Sebastian E. Ovide" 
wrote:
> the apps are hosted by Google and any computer connected to Internet can
> access to them. So the computers in your LAN need to be connected to
> Internet
>
> 
> Sebastian E. Ovide
> .
>
>
>
> On Sat, Feb 14, 2009 at 2:51 AM, Allen  wrote:
>
> > When I finish the application, I can upload to Google App Engine by
> > "appcfg.py update ."
>
> > My question is :
> > Can I run this application in my local LAN. And make sure other
> > computers in the samd LAN can visit 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: New Limits for Several App Engine Operations

2009-02-14 Thread Nash

*takes a deep sigh*

Wow, now that's a load off! Thanks! This is perhaps the most
significant hurdle removed to a large amount of functionality which
would not have been otherwise possible.

On Feb 14, 3:13 am, "Marce (Google)"  wrote:
> For those of you who haven't already heard, we're very excited
> yesterday to have announced that we've raised limits on several App
> Engine operations:
>
>     * No more "High CPU Requests"! App Engine Apps were once allowed
> no more than 2 CPU-intensive requests per minute. We've made some
> adjustments to the way we handle requests, and have eliminated this
> limitation altogether. To learn more about how this works and the
> implications for your app, see our documentation.
>     * Response deadline raised to 30 seconds. The amount of time an
> App Engine app can take to respond to an incoming request has been
> raised from 10 to 30 seconds! There are limits on the number of
> simultaneous active requests an application can process at any given
> moment--see our docs to learn more.
>     * Size limits on code files, static files, and requests/responses
> raised to 10MB! App Engine apps can now receive requests and send
> responses of up to 10MB in size, and users can upload 10MB code and
> static files as well. Note that API requests (e.g. memcache.set(),
> db.put()) are still limited to 1MB in size.
>
> These changes were inspired and driven by a great deal of developer
> feedback, and we're not done! Please let us know what you'd like to
> see next on App Engine .
--~--~-~--~~~---~--~~
You 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: HELP~~~~~!!! How to run the Google App in my local LAN

2009-02-14 Thread Faber Fedor
On Fri, Feb 13, 2009 at 11:51 PM, Allen  wrote:

>
> When I finish the application, I can upload to Google App Engine by
> "appcfg.py update ."


Right.  You upload it to Google and take advantage of their infrastructure.


> My question is :
> Can I run this application in my local LAN. And make sure other
> computers in the samd LAN can visit it.


When you run it on your local computer you ARE running it on your local
LAN.  If configured properly, there's no reason other computers on your LAN
can't use your app.  You won't get the benefits of Google's infrastructure,
of course, but maybe you don't need that on your local LAN.

But why would you do that?  The main selling point of AppEngine is, IMO, the
scalability.


-- 
Faber Fedor
Linux New Jersey
http://linuxnj.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] Operand error

2009-02-14 Thread Neversummer

I am new to app engine and pyton and unfortunately am not able to
accomplish a seemingly simple task - thanks for your patience.

I want to store a total miles value, which I am doing in model
TotalDistance. As each new entry is submitted I want to increment that
value. So I am getting the total value, then simply trying to add the
new entry to the existing total. I've tried this a number of different
ways, but keep getting the same error.


// This is how I have defined TotalDistance
class TotalDistance(db.Model):
count = db.IntegerProperty(required=True, default=0)


// Here's the offending code
//---  this all resides in def post(self) ---//
tdResult = TotalDistance.all()
tdCurr = tdResult.count
tempDistance = int(self.request.get('distance')) # from the form
tdMod = tdCurr+tempDistance
putTotal = TotalDistance(
   total = tdMod
)
putTotal.put()

// and the error
receive the following error:

 tdMod = tdCurr+tempDistance
TypeError: unsupported operand type(s) for +: 'instancemethod' and
'int'


Thanks for your 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: Operand error

2009-02-14 Thread Neversummer

Sorry, the put process actually reads:

putTotal = TotalDistance(
count = tdMod
 )

On Feb 14, 8:57 am, Neversummer  wrote:
> I am new to app engine and pyton and unfortunately am not able to
> accomplish a seemingly simple task - thanks for your patience.
>
> I want to store a total miles value, which I am doing in model
> TotalDistance. As each new entry is submitted I want to increment that
> value. So I am getting the total value, then simply trying to add the
> new entry to the existing total. I've tried this a number of different
> ways, but keep getting the same error.
>
> // This is how I have defined TotalDistance
> class TotalDistance(db.Model):
>         count = db.IntegerProperty(required=True, default=0)
>
> // Here's the offending code
> //---  this all resides in def post(self) ---//
> tdResult = TotalDistance.all()
> tdCurr = tdResult.count
> tempDistance = int(self.request.get('distance')) # from the form
> tdMod = tdCurr+tempDistance
> putTotal = TotalDistance(
>            total = tdMod
>         )
> putTotal.put()
>
> // and the error
> receive the following error:
>
>  tdMod = tdCurr+tempDistance
> TypeError: unsupported operand type(s) for +: 'instancemethod' and
> 'int'
>
> Thanks for your 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] Changes to urlfetch seem to have broke my old code

2009-02-14 Thread warreninaustintexas

My app has been working since October of last year.  My app scrapes
stock data from Yahoo! Finance and Google Finance.  I haven't changed
the way it does urlfetch in many months, but today it is suddenly
throwing errors that I haven't had before.

Relevant portion of code:

url = "http://finance.google.com/finance?q="; + ticker_symbol
try:
  result = urlfetch.fetch(url)
except (urlfetch.DownloadError):
  isPageSlow = True
strbig = result.content

I'm getting a "UnboundLocalError: local variable 'result' referenced
before assignment" error on the last line of the above code.  Has App
Engine changed the way it handles slow page fetches?

The app's been running fine for months.  It runs fine on
dev_appserver, too - I can't duplicate the error locally.

View the app at stockpickmodel dot appspot dot 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: How to use remote_api?

2009-02-14 Thread Bill

I've written a blog entry describing how I've gotten the remote_api to
work for me:
http://billkatz.com/2009/2/Remote-API-Hello-World

Hope it helps,
Bill

On Feb 13, 3:24 am, lookon  wrote:
> I am under Windows. Anyone can tell me how to use remote_api? Thanks.
>
> p.s. I met the problem that the appengine module cannot be easily
> imported.
--~--~-~--~~~---~--~~
You 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 copy an entity

2009-02-14 Thread thebrianschott

I have tried this code, but the "next" copy with "joan2" does not get
put() into the datastore, only the original copy with "joan".  Can you
tell me how to do this without doing it attribute by attribute,
please?

import os
from google.appengine.ext import db

class Group(db.Model):
zoom = db.IntegerProperty(default=2)
place = db.StringProperty()

place = Group(key_name="joan")
place.zoom =3
place.place="joan"
place.put()

nextplace = Group(key_name="joan2")
nextplace=place
print nextplace.zoom
nextplace.put()


Thank you,

Brian in Atlanta
--~--~-~--~~~---~--~~
You 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: Google login in a lightbox?

2009-02-14 Thread David Wilson
Just noticed here
:

*2008-05-01*
Program policies
updated to
clarify policy on complying with terms of service policies of
other Google services, e.g. framing the Google Accounts sign-in screen

I can't seem to find the relevant TOS document, but I guess it's
sufficiently implied from the changelog that they don't want people doing
this.


David.

2009/2/1 gops :
>
> may be because clickjacking is more of a problem after login than
> before login
>
> On Jan 31, 10:27 pm, David Wilson  wrote:
>> 2009/1/18 emi420 :
>>
>>
>>
>> > I want to show the Google login form in a lightbox, like this:
>>
>> >http://microbloog.appspot.com/
>>
>> > It works, but isn't an elegant solution.
>>
>> Hi there,
>>
>> As much as I'm happy to hear this works because I've been wanting to
>> use something like it myself, I'm surprised that it works at all. The
>> problem is that a lot of security people recommend using
>> frames-busting Javascript on login pages, etc., in order to avoid
>> Clickjacking attacks.
>>
>> Does anyone know why this works for the Google login page? They are
>> usually very security-concious about these things.
>>
>> David.
>>
>>
>>
>> > Any suggestions?
>>
>> > Thanks!
>>
>> --
>> 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: New Limits for Several App Engine Operations

2009-02-14 Thread Nash-t

Nah, this is your reward for betting with Google and it is just going
to get better. Not to be too much of a fanboy but Google is the best
organization I've seen in the bay area since Genentech.
(who also had their customer service growing pains if I remember
correctly)
Good job App Engine team!
-Tim

On Feb 14, 6:49 am, dalenewman  wrote:
> wait!  all my suffering, struggling, and over-coming high cpu requests
> for nothing!
>
> put the limits back in :-)
>
> Dalewww.bookdope.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: HELP~~~~~!!! How to run the Google App in my local LAN

2009-02-14 Thread Allen

Dear Faberfe,
Thanks. I know google provide excellent service.
But I just wanna test it in this way.

Could let me know ,how to configure it well?

Thanks!

On 2月14日, 下午9时10分, Faber Fedor  wrote:
> On Fri, Feb 13, 2009 at 11:51 PM, Allen  wrote:
>
> > When I finish the application, I can upload to Google App Engine by
> > "appcfg.py update ."
>
> Right.  You upload it to Google and take advantage of their infrastructure.
>
> > My question is :
> > Can I run this application in my local LAN. And make sure other
> > computers in the samd LAN can visit it.
>
> When you run it on your local computer you ARE running it on your local
> LAN.  If configured properly, there's no reason other computers on your LAN
> can't use your app.  You won't get the benefits of Google's infrastructure,
> of course, but maybe you don't need that on your local LAN.
>
> But why would you do that?  The main selling point of AppEngine is, IMO, the
> scalability.
>
> --
> Faber Fedor
> Linux New Jerseyhttp://linuxnj.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: HELP~~~~~!!! How to run the Google App in my local LAN

2009-02-14 Thread Nash-t

I'd like to do this too but keep in mind you need to build your own
authentication and security system.

Has anyone done any load/stress testing on the dev server? Or taken a
close look at it's architecture? Is there a possibility to create a
open source version of app engine that we could use for intranets?

The reason I am interested in this is simple. A significant percentage
of my target market doesn't want their data in the cloud. If we can
write one application that can serve cloud as well as intranet users,
we will promote cloud adoption in an evolutionary way.


-Tim
sanmateowaveforms.com

On Feb 14, 5:10 am, Faber Fedor  wrote:
> On Fri, Feb 13, 2009 at 11:51 PM, Allen  wrote:
>
> > When I finish the application, I can upload to Google App Engine by
> > "appcfg.py update ."
>
> Right.  You upload it to Google and take advantage of their infrastructure.
>
> > My question is :
> > Can I run this application in my local LAN. And make sure other
> > computers in the samd LAN can visit it.
>
> When you run it on your local computer you ARE running it on your local
> LAN.  If configured properly, there's no reason other computers on your LAN
> can't use your app.  You won't get the benefits of Google's infrastructure,
> of course, but maybe you don't need that on your local LAN.
>
> But why would you do that?  The main selling point of AppEngine is, IMO, the
> scalability.
>
> --
> Faber Fedor
> Linux New Jerseyhttp://linuxnj.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: HELP~~~~~!!! How to run the Google App in my local LAN

2009-02-14 Thread Allen

hey guys,

It's done now.

I just use the argument "--address" then other computers can visit the
application through for example:
http://192.168.1.100:8080/



On 2月14日, 下午9时10分, Faber Fedor  wrote:
> On Fri, Feb 13, 2009 at 11:51 PM, Allen  wrote:
>
> > When I finish the application, I can upload to Google App Engine by
> > "appcfg.py update ."
>
> Right.  You upload it to Google and take advantage of their infrastructure.
>
> > My question is :
> > Can I run this application in my local LAN. And make sure other
> > computers in the samd LAN can visit it.
>
> When you run it on your local computer you ARE running it on your local
> LAN.  If configured properly, there's no reason other computers on your LAN
> can't use your app.  You won't get the benefits of Google's infrastructure,
> of course, but maybe you don't need that on your local LAN.
>
> But why would you do that?  The main selling point of AppEngine is, IMO, the
> scalability.
>
> --
> Faber Fedor
> Linux New Jerseyhttp://linuxnj.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] HELP~~~~ user problem.

2009-02-14 Thread Allen

As we know ,Google have provide user API, and user should have google
account or account under mydomain.

Can I develope a new user login model (not use the Google user API),
just like a simple datastore to reserve the username and pw, and the
new visiter can register as a user.


key point is : how can i make sure that 2 or more users can login and
there's no affect each other?



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: Changes to urlfetch seem to have broke my old code

2009-02-14 Thread Jarek Zgoda

If exception is raised in the line "result = urlfetch.fetch(url)",
then the "result" variable will not be set. Trying to access it's
"content" attribute after the exception will raise UnboundLocalError
as the "result" variable simply does not exist. Your code was working
by accident.

warreninaustintexas napisał(a):
> My app has been working since October of last year.  My app scrapes
> stock data from Yahoo! Finance and Google Finance.  I haven't changed
> the way it does urlfetch in many months, but today it is suddenly
> throwing errors that I haven't had before.
>
> Relevant portion of code:
>
> url = "http://finance.google.com/finance?q="; + ticker_symbol
> try:
>   result = urlfetch.fetch(url)
> except (urlfetch.DownloadError):
>   isPageSlow = True
> strbig = result.content
>
> I'm getting a "UnboundLocalError: local variable 'result' referenced
> before assignment" error on the last line of the above code.  Has App
> Engine changed the way it handles slow page fetches?
>
> The app's been running fine for months.  It runs fine on
> dev_appserver, too - I can't duplicate the error locally.
>
> View the app at stockpickmodel dot appspot dot 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: New Limits for Several App Engine Operations

2009-02-14 Thread cz

Awesome possum!
Although having to deal with the more restrictive quotas before was
probably a good thing in that it made us think more about efficiency
and scalability.
thanks,
- Claude

On Feb 14, 11:36 am, Nash-t  wrote:
> Nah, this is your reward for betting with Google and it is just going
> to get better. Not to be too much of a fanboy but Google is the best
> organization I've seen in the bay area since Genentech.
> (who also had their customer service growing pains if I remember
> correctly)
> Good job App Engine team!
> -Tim
>
> On Feb 14, 6:49 am, dalenewman  wrote:
>
> > wait!  all my suffering, struggling, and over-coming high cpu requests
> > for nothing!
>
> > put the limits back in :-)
>
> > Dalewww.bookdope.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: HELP~~~~~!!! How to run the Google App in my local LAN

2009-02-14 Thread Bryan Donlan



On Feb 14, 2:55 pm, Nash-t  wrote:
> I'd like to do this too but keep in mind you need to build your own
> authentication and security system.
>
> Has anyone done any load/stress testing on the dev server? Or taken a
> close look at it's architecture? Is there a possibility to create a
> open source version of app engine that we could use for intranets?
>
> The reason I am interested in this is simple. A significant percentage
> of my target market doesn't want their data in the cloud. If we can
> write one application that can serve cloud as well as intranet users,
> we will promote cloud adoption in an evolutionary way.

The dev appserver does all queries with linear searches, and has no
logging or other such protections for data integrity. It is most
certainly NOT something you want to use for production use.

Of course, anyone is free to fix it up and make it ready for
production use :)
--~--~-~--~~~---~--~~
You 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: Domain squatting on App Engine

2009-02-14 Thread Alexander Konovalenko

There's an issue to remove the Gmail shared namespace limitation:
http://code.google.com/p/googleappengine/issues/detail?id=479

Also, Marzia says that they don't allow similar names. For example, if
'appid' is already registered, you won't be able to create an app
called 'app1d'.

--~--~-~--~~~---~--~~
You 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: Query Filter based on a DateTime Property

2009-02-14 Thread Arun Shanker Prasad

Hi Marzia,

Thanks for the quick reply. I checked the query again with putting
more data in the datastore, as a part of the re-put() (update) process
in App Engine. This still does not fix the issue. I cleared my data in
the local env and tried again, still same. I have uploaded to code to
App Engine also.

Can it be related to the timezone. I also tried with utcnow(), same
result.

I can put up more of my code, as soon as I get to my Dev machine.

Thanks,
Arun Shanker Prasad.

On Feb 13, 9:50 pm, Marzia Niccolai  wrote:
> Hi,
>
> From the sample you have provided, I don't notice anything that shouldn't
> work.  The only issue I could think of is the issue of incomplete indexes
> for the entity you are trying to query, in which case re-put()ing the entity
> should solve the issue.
>
> If you could post the complete code you are using, we can also look at that
> and see if something is amiss.
>
> -Marzia
>
> On Fri, Feb 13, 2009 at 4:23 AM, Arun Shanker Prasad <
>
> arunshankerpra...@gmail.com> wrote:
>
> > Hi All,
>
> >  I have a Model with the posted on date set as a particular datetime.
> > The property is a DateTime Property in the datastore. The problem is
> > that when I try to do a filter query on the model like,
>
> > Posts.all().filter('posted_on >=', dt1).filter('posted_on <', dt2)
>
> > where,
> > dt1 = datetime.datetime.today()
> > dt1 = dt1.replace(hour=0, minute=0, second=0, microsecond=0,
> > tzinfo=None)
>
> > and dt2 is incremented to one day ahead of the current date.
>
> > My problem is that this query returns an empty list. I know there are
> > values in the datastore
>
> > Am I doing something wrong here?
>
> > Thanks,
> > Arun Shanker Prasad.
--~--~-~--~~~---~--~~
You 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: Zip Importer High CPU every request

2009-02-14 Thread captainslim

On Feb 1, 2:02 pm, Ross  wrote:
> I'm suffering from this problem, too.  I'm using the Django Google App
> Engine helper and it seems to be reloading the zip file for every
> request.

Could it be that Google App Engine is caching apps for a very short
length of time for low-use apps? I find that if I make a bunch of
requests to my app in rapid succession, then I don't get the high CPU
warning for requests after the first. If I allow a few seconds between
requests, however, I see the warning about zipimporter taking a lot of
CPU time (though, strangely, not always).

I'm using the latest SVN version of the Google App Engine Helper for
Django.
--~--~-~--~~~---~--~~
You 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: Login for Remote service hosted in Google App Engine

2009-02-14 Thread Arun Shanker Prasad

Hi,

  Is there anyway this can be achieved by passing the ACSID of the
user along. I have noticed that the ACSID cookie for same user in
different domains are different, I also set the cookie in the
URLFETCH. This does not validate the user using the USERS
automatically. Is there any other way this can be achieved?

Any help will be appreciated.

Thanks,
Arun Shanker Prasad.

On Feb 12, 8:14 pm, Arun Shanker Prasad 
wrote:
> Hi,
>
>   For both these implementations, I will need to implement another
> login for the users, and keep the records of that in all my
> applications. I probably should have mentioned, I have my app up in
> the Google Apps domain and locked so that only the members of my
> Google Apps domain can login, so Google actually takes care of the
> login for me, so if I were to implement an HTTP authentication, I will
> need to add the new user across my application, not just in my Google
> Apps account.
>
> Thanks,
> Arun Shanker Prasad.
>
> On Feb 12, 8:02 pm, Andrew Badera  wrote:
>
> > HTTP Basic Auth ... WSSE username token ...
>
> > Thanks-
> > - Andy Badera
> > - and...@badera.us
> > - (518) 641-1280
> > - Tech Valley Code Camp 2009.1:http://www.techvalleycodecamp.com/
> > - Google me:http://www.google.com/search?q=andrew+badera
>
> > On Thu, Feb 12, 2009 at 9:59 AM, Arun Shanker Prasad <
>
> > arunshankerpra...@gmail.com> wrote:
>
> > > Hi All,
>
> > >  First let me explain my situation,
>
> > > 1. I have an application hosted on GAE.
>
> > > 2. I hosted another application, which is sort of a web service
> > > implementation. This will be called from across many applications.
>
> > >  I need my first application to communicate with the second app (i.e
> > > the web service), I made this working by using the URLFETCH API. The
> > > problem is the login in the web service part, I tried sending the
> > > ACSID cookie along with the URLFETCH request. Is there anyway to get
> > > the logged in user through the web service, I know, we can send the
> > > details through the payload in URLFETCH, but I was looking for a more
> > > secure method.
>
> > > I can use the ClientLogin to get the user to login again, but from a
> > > UI point of view that does not seem good.
>
> > > Any help or suggestions will be appreciated.
>
> > > Thanks,
> > > Arun Shanker Prasad.
--~--~-~--~~~---~--~~
You 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] newbie question: can i used the just released remote_api to import data from xml-rpc endpoint

2009-02-14 Thread que0x

Hey Folks,
I need to import data to the data store using a xml-rpc client , is
that doable ?

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: Changes to urlfetch seem to have broke my old code

2009-02-14 Thread warreninaustintexas

Yes, I see that now.  I need to expand my exception handler for this
portion.  Thanks!

On Feb 14, 2:51 pm, Jarek Zgoda  wrote:
> If exception is raised in the line "result = urlfetch.fetch(url)",
> then the "result" variable will not be set. Trying to access it's
> "content" attribute after the exception will raise UnboundLocalError
> as the "result" variable simply does not exist. Your code was working
> by accident.
>
> warreninaustintexas napisał(a):
>
> > My app has been working since October of last year.  My app scrapes
> > stock data from Yahoo! Finance and Google Finance.  I haven't changed
> > the way it does urlfetch in many months, but today it is suddenly
> > throwing errors that I haven't had before.
>
> > Relevant portion of code:
>
> >     url = "http://finance.google.com/finance?q="; + ticker_symbol
> >     try:
> >       result = urlfetch.fetch(url)
> >     except (urlfetch.DownloadError):
> >       isPageSlow = True
> >     strbig = result.content
>
> > I'm getting a "UnboundLocalError: local variable 'result' referenced
> > before assignment" error on the last line of the above code.  Has App
> > Engine changed the way it handles slow page fetches?
>
> > The app's been running fine for months.  It runs fine on
> > dev_appserver, too - I can't duplicate the error locally.
>
> > View the app at stockpickmodel dot appspot dot 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] Trying to create a iCard like service

2009-02-14 Thread O.R.Senthil Kumaran

I am trying to do an Image Manipulation on Google App Engine.  I would
like to write text onto image ( Specific Image Manipulation). Is this
possible with Google App engine currently?

--
Senthil

--~--~-~--~~~---~--~~
You 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] Trying to create a iCard like service

2009-02-14 Thread O.R.Senthil Kumaran

Hello,

I am tring to create an iCard like service, where I will directly have
to write on top of an Image.
(eg, the RHS portion of this iCard: 
http://adminsatwork.com/wp-content/uploads/2007/11/icard.gif
)
Can this be possible in Google App Engine?

any directions?

--
Senthil

--~--~-~--~~~---~--~~
You 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] CPU accounting for Datastore writes and pricing feedback

2009-02-14 Thread diomedes

Hi all,

I have a question with regards to the pricing and how it relates to
the relatively high API CPU associated with each write (400-500msec)

I have started working on my first GAE app about a month ago - and
overall I am both excited and very satisfied.  My initial plan, was to
run it on Amazon's EC2 - but eventually I took the plunge, started
learning python, move to GAE and (almost) never looked back :-)

My app, a cacti-like webservice that monitors the performance ( think
response time) of a website using google analytics-like beacons, is
rather resource demanding.  On top of that GAE best practices imply
that any expensive reports/aggregates etc should be precalculated/
stored instead of dynamically produced on demand.  All that result in
many writes and given that the simplest write (single key-val pair, no
indexes) gets "charged" approx 500msec of API cpu time (see related
thread by Matija 
http://groups.google.com/group/google-appengine/browse_thread/thread/9db986d7ea3ff901/0ad0767787d67a97)
a normal DB design that would have been meaningful in terms of cost on
EC2 becomes impossible on GAE.

Because I am a google-aholic I decided to change the app design to
minimize writes - I fetch a bunch of pickled data as a blob,  update
in mem and write them back as blob (just like people did before DBs
came along :-) )
Before I commit to that design I wanted to get the confirmation that
my understanding is correct:
- Google is going to charge 10-12cents per CPU-hour and it will
include in that all the CPU used from APIs etc. (http://
googleappengine.blogspot.com/2008/05/announcing-open-signups-
expected.html)
- This means that if your site does 10M pageviews a month and does
a couple writes per pageview at 500msec per write it will be  "10M CPU
secs/mo just from the writes, i.e. 10M/3600 * $.10/hr = $280/mo just
from the writes.

Is this correct?

For the record, I find Google's planned pricing extremely attractive
when compared to Amazon's primarily due to the fact that Amazon
charges 10c for CPU-hr of the machine while google (will) charge 10c
for CPU-hr *actually used* by your requests.  This makes a huge
difference -- a server running at 50+% capacity (thats rather
aggressive - but with Amazon/RightScale combination you can be
aggressive) will still use less than 20% of its CPU during that time.
However, when comparing the cost writes  between Google and the
corresponding setup of a [high CPU EC2 server + elastic storage] combo
(able to provide quite more than  20-50 "simple" writes per sec)
Amazon is much cheaper than Google.

Ok, that's all I had to say,
Sorry for the rather long post,
Looking forward to hear comments

Ah and thank you very very much for lifting the high cpu quota!!

Diomedes

--~--~-~--~~~---~--~~
You 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: Time Based Automation ?? How can this be done ?/ Run a .py file every 15 min ??

2009-02-14 Thread diomedes

Hi ramu,

I have been waiting for something similar. The functionality seems to
be in the roadmap http://code.google.com/appengine/docs/roadmap.html
# Support for scheduled tasks
# Task queues for performing background processing

However, when I searched the group for "cron" (the unix scheduler) I
found a thread that implies that some of the functionality is already
out:
Here is the related thread :
http://groups.google.com/group/google-appengine/browse_thread/thread/4376bdd02b7bfa3f/6b166536dc4668f3

diomedes

On Feb 14, 12:02 am, ramu  wrote:
> I need to run an script (a .py file ) every 15 min . How is this
> possible ?
> Any workaround using any external free source or anything .
>
> It would help design funcunality like automatically closing the online
> auctions  .

--~--~-~--~~~---~--~~
You 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] Deleting a field in datastore

2009-02-14 Thread srid

Before deploying version 2, I renamed a field in one of my models.
("foo" to "bar"). But the dataviewer in dashboard still shows *both*
the fields.

Why is this happening? I expect "foo" to vanish naturally. How to
remove this unneeded field?

--~--~-~--~~~---~--~~
You 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] Versions and datastore consistency (was Re: Deleting a field in datastore)

2009-02-14 Thread srid

The below app is a blog application.

I tried adding a new post (with field "bar") in the version 2
instance. As expected, this new post does not appear on the version 1
site.

I then tried adding a new post (with field "foo") in the version 1
instance. Surprisingly, this also appears in the version 2 instance.
Why? How does versioning and datastore work?

On Feb 14, 4:03 pm, srid  wrote:
> Before deploying version 2, I renamed a field in one of my models.
> ("foo" to "bar"). But the dataviewer in dashboard still shows *both*
> the fields.
>
> Why is this happening? I expect "foo" to vanish naturally. How to
> remove this unneeded field?
--~--~-~--~~~---~--~~
You 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: Deleting a field in datastore

2009-02-14 Thread David Symonds

On Sun, Feb 15, 2009 at 11:03 AM, srid  wrote:

> Before deploying version 2, I renamed a field in one of my models.
> ("foo" to "bar"). But the dataviewer in dashboard still shows *both*
> the fields.
>
> Why is this happening? I expect "foo" to vanish naturally. How to
> remove this unneeded field?

Your model classes have nothing to do with the data storage in the
datastore. If you load an entity from the datastore *into* a model
instance then it will simply ignore properties that aren't defined in
your model. So, just remove the property from your model class.
There's not an easy way to remove the properties from the existing
entities.


Dave.

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



[google-appengine] Re: Domain squatting on App Engine

2009-02-14 Thread Ian Lewis
I'm guessing the gmail shared namespace limitation has to do with being able
to the forthcoming release that allows apps to recieve mail (presumably at
@gmail.com). This is probably something they thought about in the
beginning but just didn't implement.

On Sun, Feb 15, 2009 at 7:56 AM, Alexander Konovalenko wrote:

>
> There's an issue to remove the Gmail shared namespace limitation:
> http://code.google.com/p/googleappengine/issues/detail?id=479
>
> Also, Marzia says that they don't allow similar names. For example, if
> 'appid' is already registered, you won't be able to create an app
> called 'app1d'.
>
> >
>


-- 
===
株式会社ビープラウド  イアン・ルイス
〒150-0012
東京都渋谷区広尾1-11-2アイオス広尾ビル604
email: ianmle...@beproud.jp
TEL:03-5795-2707
FAX:03-5795-2708
http://www.beproud.jp/
===

--~--~-~--~~~---~--~~
You 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: Operand error

2009-02-14 Thread Alexander Kojevnikov

On Feb 15, 3:57 am, Neversummer  wrote:
> I am new to app engine and pyton and unfortunately am not able to
> accomplish a seemingly simple task - thanks for your patience.
>
The problem is in this line:

> tdCurr = tdResult.count

Query.count is a method. Unlike in Ruby, in Python you need to use
parentheses to call it:

> tdCurr = tdResult.count()


--~--~-~--~~~---~--~~
You 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] thoughts on the new Loader and migration experience

2009-02-14 Thread Ilia Lobsanov

Before 1.1.9 I had been using bulkload.Loader with my own HandleEntity
which
1) added a key_name to the entity
2) added a __searchable_text_index property to the entity using
search.SearchableModel
3) updated some counters in other entities

Here's my migration experience.

- I had to modify my loader script to override the GenerateKey method
to do the job of (1). Note that GenerateKey takes a list of values as
argument.
- HandleEntity used to take a datastore.Entity object. As of 1.1.9
HandleEntity now takes a db.Model object. That means I can't use
SearchableModel (see point 2) directly because that expects a
datastore.Entity. Any help on this?
- returning None from HandleEntity used to mean: don't update the
entity. Now it's TypeError: 'NoneType' object is not iterable*
- loading with batch_size=1 and num_threads=1 is very slow compared to
loading one row at a time in pre-1.1.9
- what happened to the --cookie option? now I have enter my email and
password every time i'm loading data into the dev server. it was
convenient  to specify --
cookie='dev_appserver_login="use...@gmail.com:True"'


* Traceback (most recent call last):
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/bulkloader.py", line 1305, in run
self.PerformWork()
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/bulkloader.py", line 1381, in PerformWork
item.content = self.request_manager.EncodeContent(item.rows)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/bulkloader.py", line 812, in EncodeContent
entities.extend(entity)
TypeError: 'NoneType' object is not iterable

--~--~-~--~~~---~--~~
You 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: how to copy an entity

2009-02-14 Thread Alexander Kojevnikov

On Feb 15, 6:34 am, thebrianschott  wrote:
> I have tried this code, but the "next" copy with "joan2" does not get
> put() into the datastore, only the original copy with "joan".  Can you
> tell me how to do this without doing it attribute by attribute,
> please?
>
This line:

  nextplace=place

... does not copy the entity but makes variable `nextplace` point to
the same entity as `place`. You can copy the property values like
this:

  nextplace = Group(key_name="joan2")
  nextplace.place = place.place
  nextplace.zoom = place.zoom
  nextplace.put()

Alternatively, you can loop on all properties using Model.properties()
[1] and call getattr/setattr to copy the property values.

[1] 
http://code.google.com/appengine/docs/python/datastore/modelclass.html#Model_properties

--~--~-~--~~~---~--~~
You 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: HELP~~~~ user problem.

2009-02-14 Thread Alexander Kojevnikov

On Feb 15, 7:31 am, Allen  wrote:
> Can I develope a new user login model (not use the Google user API),
> just like a simple datastore to reserve the username and pw, and the
> new visiter can register as a user.
>
http://groups.google.com/group/google-appengine/browse_thread/thread/838e3be58215f2d8/d29b4917a66693aa
--~--~-~--~~~---~--~~
You 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: HELP~~~~~!!! How to run the Google App in my local LAN

2009-02-14 Thread Andy Freeman

As others have pointed out, the dev server is useless for actual
production.  (It's not just the linear search of the dev server's
datastore; its history file will also kill you.)

There are two big problems, the datastore and the web server.

It's obviously possible to create an API compatible datastore that one
could use elsewhere.  http://github.com/jchris/appdrop/tree/master
looks like a first pass at supporting the GAE datastore API using a
single mysql instance.

However, you also need to create a compatible version of the web
server because the "one request at a time" limit is probably too
strict.


On Feb 14, 11:55 am, Nash-t  wrote:
> I'd like to do this too but keep in mind you need to build your own
> authentication and security system.
>
> Has anyone done any load/stress testing on the dev server? Or taken a
> close look at it's architecture? Is there a possibility to create a
> open source version of app engine that we could use for intranets?
>
> The reason I am interested in this is simple. A significant percentage
> of my target market doesn't want their data in the cloud. If we can
> write one application that can serve cloud as well as intranet users,
> we will promote cloud adoption in an evolutionary way.
>
> -Tim
> sanmateowaveforms.com
>
> On Feb 14, 5:10 am, Faber Fedor  wrote:
>
>
>
> > On Fri, Feb 13, 2009 at 11:51 PM, Allen  wrote:
>
> > > When I finish the application, I can upload to Google App Engine by
> > > "appcfg.py update ."
>
> > Right.  You upload it to Google and take advantage of their infrastructure.
>
> > > My question is :
> > > Can I run this application in my local LAN. And make sure other
> > > computers in the samd LAN can visit it.
>
> > When you run it on your local computer you ARE running it on your local
> > LAN.  If configured properly, there's no reason other computers on your LAN
> > can't use your app.  You won't get the benefits of Google's infrastructure,
> > of course, but maybe you don't need that on your local LAN.
>
> > But why would you do that?  The main selling point of AppEngine is, IMO, the
> > scalability.
>
> > --
> > Faber Fedor
> > Linux New Jerseyhttp://linuxnj.com- 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: how to copy an entity

2009-02-14 Thread thebrianschott

Alexander,

Thanks very much for the explanation.

The only link I can find regarding getattr is 
http://code.google.com/appengine/articles/rpc.html
. I am unfamiliar with this approach. Would someone show me how to
loop through my example using getattr/setattr please?

On Feb 14, 7:46 pm, Alexander Kojevnikov 
wrote:
> On Feb 15, 6:34 am, thebrianschott  wrote:> I have 
> tried this code, but the "next" copy with "joan2" does not get
> > put() into the datastore, only the original copy with "joan".  Can you
> > tell me how to do this without doing it attribute by attribute,
> > please?
>
> This line:
>
>   nextplace=place
>
> ... does not copy the entity but makes variable `nextplace` point to
> the same entity as `place`. You can copy the property values like
> this:
>
>   nextplace = Group(key_name="joan2")
>   nextplace.place = place.place
>   nextplace.zoom = place.zoom
>   nextplace.put()
>
> Alternatively, you can loop on all properties using Model.properties()
> [1] and call getattr/setattr to copy the property values.
>
> [1]http://code.google.com/appengine/docs/python/datastore/modelclass.htm...
--~--~-~--~~~---~--~~
You 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: Zip Importer High CPU every request

2009-02-14 Thread Ross Light
I'm thinking now that that's probably the case.  After researching the docs,
it would seem as though the Engine distributes the load over different web
servers, which would cause the cache to cease to be.  I'd still like to know
for sure, because it is rather annoying to have a lot of 2000ms requests.

On Sat, Feb 14, 2009 at 3:11 PM, captainslim  wrote:

>
> On Feb 1, 2:02 pm, Ross  wrote:
> > I'm suffering from this problem, too.  I'm using the Django Google App
> > Engine helper and it seems to be reloading the zip file for every
> > request.
>
> Could it be that Google App Engine is caching apps for a very short
> length of time for low-use apps? I find that if I make a bunch of
> requests to my app in rapid succession, then I don't get the high CPU
> warning for requests after the first. If I allow a few seconds between
> requests, however, I see the warning about zipimporter taking a lot of
> CPU time (though, strangely, not always).
>
> I'm using the latest SVN version of the Google App Engine Helper for
> Django.
> >
>

--~--~-~--~~~---~--~~
You 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] SDK under Linux Bug ?

2009-02-14 Thread sebastian.ov...@gmail.com

Hi All,

I was using SDK under windows without any problem. Now I'm using SDK
1.1.9 under Ubuntu and for some reason it doesn't update correctly the
index.yaml. If I delete it, SDK would recreate it but without any
index in it (even if I run some queries) and therefore I cannot deploy
anymore !

from the console:

INFO 2009-02-15 02:29:09,985 dev_appserver_index.py] Updating /
home/sebas/dev/gae/index.yaml

but it still is empty:

indexes:

# AUTOGENERATED

# This index.yaml is automatically updated whenever the dev_appserver
# detects that a new type of query is run.  If you want to manage the
# index.yaml file manually, remove the above marker line (the line
# saying "# AUTOGENERATED").  If you want to manage some indexes
# manually, move them above the marker line.  The index.yaml file is
# automatically uploaded to the admin console when you next deploy
# your application using appcfg.py.


any 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: SDK under Linux Bug ?

2009-02-14 Thread David Symonds

On Sun, Feb 15, 2009 at 1:32 PM, sebastian.ov...@gmail.com
 wrote:

> I was using SDK under windows without any problem. Now I'm using SDK
> 1.1.9 under Ubuntu and for some reason it doesn't update correctly the
> index.yaml. If I delete it, SDK would recreate it but without any
> index in it (even if I run some queries) and therefore I cannot deploy
> anymore !

What queries are you making? Single-property queries (including
descending order variations) don't need indexes and so
dev_appserver.py won't add such indexes to index.yaml.


Dave.

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



[google-appengine] Re: how to copy an entity

2009-02-14 Thread Alexander Kojevnikov

On Feb 15, 12:40 pm, thebrianschott  wrote:
> The only link I can find regarding getattr 
> ishttp://code.google.com/appengine/articles/rpc.html
> . I am unfamiliar with this approach. Would someone show me how to
> loop through my example using getattr/setattr please?
>
I didn't test the code, let me know if it doesn't work:

def copy_properties(src, dst):
for name in src.properties():
value = getattr(src, name)
setattr(dst, name, value)

place = Group(key_name="joan")
place.zoom =3
place.place="joan"
place.put()

nextplace = Group(key_name="joan2")
copy_properties(place, nextplace)
nextplace.put()
--~--~-~--~~~---~--~~
You 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: how to copy an entity

2009-02-14 Thread thebrianschott

Alexander,

That's perfect. Thanx much. I am just learning object oriented
programming. No, it's more like I am just experiencing oo via great
help, like yours.

On Feb 14, 10:27 pm, Alexander Kojevnikov 
wrote:
> On Feb 15, 12:40 pm, thebrianschott  wrote:> The only 
> link I can find regarding getattr 
> ishttp://code.google.com/appengine/articles/rpc.html
> > . I am unfamiliar with this approach. Would someone show me how to
> > loop through my example using getattr/setattr please?
>
> I didn't test the code, let me know if it doesn't work:
>
> def copy_properties(src, dst):
>     for name in src.properties():
>         value = getattr(src, name)
>         setattr(dst, name, value)
>
> place = Group(key_name="joan")
> place.zoom =3
> place.place="joan"
> place.put()
>
> nextplace = Group(key_name="joan2")
> copy_properties(place, nextplace)
> nextplace.put()
--~--~-~--~~~---~--~~
You 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: HELP~~~~ user problem.

2009-02-14 Thread Allen

Dear Alexan

Thanks for your help. You know I am really a biginner with Google App.

I read the document of 'google-appengine-path'
###
Updating
If you want to update an existing project please follow these steps:
download and unzip the most recent sample project open your project's
"common" folder replace everything in your "common" folder with the
contents of the sample project's "common" folder read the release
notes, so you don't miss any important changes
###

you know ,I just following the "Getting Start" of Goog App. In my
application folder, there're just main.py, app.yaml, and some pics.
there's no so-called common folder.
how can I update step by step.

Maybe my question is really...
But what ever, I do really wanna to learn more.

I notice that: in the downloaded sample
1.although I just run it locally by "dev_appserver.py" (not under
Google App Engine), it can different request in the same time. (user
two computers in the same LAN to visite the hosting application by
"dev_appserer.py".
2.it has custom authoriation system (no need to user Google Account).

these two points are what I really want currently.
I'm not good at programming, I use just the main.py to handle all http
requests by different Class().
So, how can I conveniently archive those 2 functions above?

Appeciate!!



On 2月15日, 上午8时48分, Alexander Kojevnikov 
wrote:
> On Feb 15, 7:31 am, Allen  wrote:> Can I develope a 
> new user login model (not use the Google user API),
> > just like a simple datastore to reserve the username and pw, and the
> > new visiter can register as a user.
>
> http://groups.google.com/group/google-appengine/browse_thread/thread/...
--~--~-~--~~~---~--~~
You 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
-~--~~~~--~~--~--~---