[google-appengine] Re: Google app engine django helper, manage.py update, and (1,0,'final')

2008-09-22 Thread Matt Brown

Aral Balkan wrote:

> Can someone respond as to the roadmap for Django 1.0 compatibility?

The currently released version of the helper (r52) supports Django 0.96 
and the early Django 1.0 alpha versions.

Support for Django 1.0 final is present in the HEAD (r60) of the helper.

I'd like to add support for loading Django 1.0 from a zipfile via the 
zipimport functionality in version 1.1.3 of the SDK before making a new 
release of the helper with Django 1.0 support.

In the meantime you should be able to use the helper and Django 1.0 
together by checking out the helper directly from svn.

Cheers

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



[google-appengine] Re: BadRequestError: offset may not be above 1000

2008-09-22 Thread Emmanuel Okyere
There are a few tips in the "Updating Existing Entities" section of  
this article too:
http://code.google.com/appengine/articles/update_schema.html

cheers,
Emmanuel.

On 21 Sep 2008, at 14:15, Aral Balkan wrote:

>
> Hi,
>
> I'm not sure when this changed but it seems that you cannot specify
> offsets above 1,000 which kind of kills my backup app.
>
> How are we supposed to iterate over large datasets?
>
> Thanks,
> Aral
> >

---
RECURSION, n. See recursion


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



[google-appengine] Re: how can I upload files bigger than 4MB use django and gae

2008-09-22 Thread Waldemar Kornewald

Hi,

On Sep 20, 4:15 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I want to upload a 200MB file in google app engine.
> What can I do?

If you combine these you can work around the upload limitation:

* Amazon S3

* S3 POST: 
http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1434&ref=featured

* boto: http://code.google.com/p/boto/

* appenginepatch: http://code.google.com/p/app-engine-patch/

Your users will have to upload files to S3 via POST. IOW, the files
have to go directly to S3 instead of passing the App Engine servers.
The App Engine server only generates a policy which authorizes the
upload. AFAIK, boto already has a simple function for generating that
policy. Just look at
boto.s3.S3Connection.build_post_form_args()

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



[google-appengine] Re: How to I use xml.sax in google app engine??

2008-09-22 Thread rmz



On Sep 20, 2:48 am, Wooble <[EMAIL PROTECTED]> wrote:
> On Sep 19, 5:32 pm, rmz <[EMAIL PROTECTED]> wrote:
>
> > On Sep 11, 2:38 pm, marc <[EMAIL PROTECTED]> wrote:
>
> > > Sorry about that.
>
> > > Next time I will RTFM first.
>
> > Which part of tfm was that?
>
> > (Rmz)
>
> I'd assume he meant the part of the GAE docs that explains you have no
> access to the filesystem; unlink modifies the filesystem so it doesn't
> work on GAE.

Hm, ok.  Well, yes that could be it ;)  I was kind of  hoping he had
found some kind of workaround that made it possible to parse an XML
string without having to write anything to the local filesystem.  And
it -is- parseString that barfs, there is no need for it to write
anything to the filesystem even if the implementation obviusly does
so.

(Rmz)

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



[google-appengine] Re: How to I use xml.sax in google app engine??

2008-09-22 Thread rmz

This code gives  the same error as the examples above when I try it.
Did you use more code than what is available in 
http://cibass.de/gae/AtomHandler.txt
?

What fails is actually an assignment within the constructor of the
URLopener class.
The constructor refers to os.unlink, which fails, but I don't know if
the unlink reference
is actually used anywhere, so if the lookup could somehow be made
lazy, the code might work.

/me is confused (but muddling along ;)

(Rmz)



On Sep 20, 10:06 am, acm <[EMAIL PROTECTED]> wrote:
> Hi Marc
>
> On Sep 11, 1:08 am, marc <[EMAIL PROTECTED]> wrote:
>
> > def returnTasks(xmldata):
> >     handler = TaskHandler()
> >     xml.sax.parseString(xmldata,handler)
> >     return handler.tasks
>
> > I read the xmldata from a url with googles url fetch.
> > It works from command line. But when I run it in the app engine, i get
> > a:
>
> > AttributeError: 'module' object has no attribute 'unlink'
>
> > Why is this??
>
> I have had the same problem and how Wooble mentioned that is because
> of filesystem restriction of GAE. The xml.sax.parseString - the
> function you are using - should not throw this exception, because it
> work on strings, not on files how xml.sax.parse do. So becarefull
> about the function you use.
>
> Maybe a sample class I wrote could help you. It also uses urlfetch to
> retrive feeds in atom format.
>
> http://cibass.de/gae/AtomHandler.py
>
> Best regards,
>
> acm.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Updating datastore via desktop script

2008-09-22 Thread Byron Saltysiak
what are you using to invoke this url? any decent client / api will provide
the ability to POST but without knowing how you're invoking this url it's a
little hard to suggest a solution.

On Sun, Sep 21, 2008 at 9:29 PM, Joseph <[EMAIL PROTECTED]> wrote:

>
> Hi:
> I got a function to update the datastore (without a form) which should
> be called only by a authorized user.URL of this function is: /api/
> update/
>
> I invoke this function from a desktop script (ref:http://
> stackoverflow.com/questions/101742/how-do-you-access-an-authenticated-
> google-app-engine-service-from-a-non-web-pyt).
> Since I need to
> authenticate, the URL goes like this:
>
> http://app.appspot.com/_ah/login?continue=http%3A%2F%2Fapp.appspot.com%2Fapi%2Fupdate%2F&auth=xyz
>
> Since update has to be done only on a POST, I check if the method is
> POST. However from the above invoke, I always get a GET (guess it is
> because of ? in the URL). Any clues to go forward? Or should I frame a
> different logic?
>
> Thank you,
> Joseph
> http://www.jjude.com | http://twitter.com/jjude
> >
>


-- 
Byron

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



[google-appengine] Re: App.Yaml seems to be malfunctioning

2008-09-22 Thread Wooble

The 404 errors are for favicon.ico.  /newuser is a 405 error, which
means there's something wrong with the handler in NewUser.py.

Does your CreateNewUserPage handler have a get() method defined?

On Sep 21, 4:02 am, Pranny <[EMAIL PROTECTED]> wrote:
> Hi, My App.Yaml file is as follows
>
> application: felix
> version: 1
> runtime: python
> api_version: 1
>
> handlers:
> - url: /
>   script: Login.py
>
> - url: /newuser
>   script: NewUser.py
>
> When i test it, @ localhost:8080 i get the Login Page, as expected.
> However, when i try @ localhost:8080/newuser i get a 404 error. Can
> anyone explain me the cause of this. I have both the scripts properly
> in the application directory.
>
> This is my webrequest handler in NewUser.py
>
> application = webapp.WSGIApplication([
>     ('/newuser', CreateNewUserPage)
>     ], debug=True)
>
> This is my Console output
>
> INFO     2008-09-21 08:09:33,592 dev_appserver.py] "GET / HTTP/1.1"
> 200 -
> INFO     2008-09-21 08:09:33,655 dev_appserver.py] "GET /
> ftc_transparent.gif HTTP/1.1" 404 -
> INFO     2008-09-21 08:09:33,717 dev_appserver.py] "GET /favicon.ico
> HTTP/1.1" 404 -
> INFO     2008-09-21 08:09:46,530 dev_appserver.py] "GET /newuser HTTP/
> 1.1" 405 -
> INFO     2008-09-21 08:09:46,608 dev_appserver.py] "GET /favicon.ico
> HTTP/1.1" 404 -
>
> Any help is highly appreciated. Thanks and Regards,
>
> Pranny
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: How to I use xml.sax in google app engine??

2008-09-22 Thread acm

On 22 Sep., 15:04, rmz <[EMAIL PROTECTED]> wrote:
> This code gives  the same error as the examples above when I try it.
> Did you use more code than what is available 
> inhttp://cibass.de/gae/AtomHandler.txt
> ?

That is really confusing, because the AtomHandler works great on
http://plgoals.appspot.com (top right and do not be scarred about the
rest ;) ).
I'am instantiate the class as follows:


from AtomHandler import AtomHandler

atom = AtomHandler("http://www.heise.de/newsticker/heise-atom.xml";)

for news in atom:
self.response.out.write('' +
atom.news['title'] + '')


I know about the issue with os.unlink, but if xml.sax.parseString is
used the os.unlink function is not called.
It is barred that this problem is related to the python version,
because everyone who use GAE should have the same python version.

I uploaded all importent files to run AtomHandler like on plgoals:
* The AtomHandler class: http://cibass.de/gae/AtomHandler.py.txt
* The MainPage class which inherits
google.appengine.ext.webapp.RequestHandler: http://cibass.de/gae/MainPage.py.txt
* The .html template used by MainPage: 
http://cibass.de/gae/MainPage.html.txt

Hope it helps,

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



[google-appengine] Re: Sample code of i18n on GAE+Django

2008-09-22 Thread A . TNG

On Mon, Sep 15, 2008 at 11:53 AM, Mathieu <[EMAIL PROTECTED]> wrote:
>
> Hi TNG,
>
> I used your sample code and I have been able to create localization
> files for my application and make them work properly.
>
> The only problem I have now is that I dont know how to switch between
> each languages without hard-coding it in the settings file.
>
> I want users to be able to choose the locale they want to use.
>
> The only way I have read about involves the django middleware, but I
> dont believe I could succceed in making it work. I have failed over
> and over at moving my app to django 1.0

Originally in Django, locale could be set via session. But GAE cannot
work with session in Django. So I tried to set
settings.LANGUAGE_CODE='zh-cn' directly to make i18n works
dynamically. It works.

Maybe there are some other ways.

I never tried Django 1.0. All above is based on GAE built-in Django 0.96.1.


>
> Thanks
>
> On Sep 9, 12:41 am, A.TNG <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I find another way to use django's i18n middleware.
>>
>> The story is that you already have a app based on webapp framework and
>> you want to make it support i18n.
>>
>> 1. you still need to create your .po and .mo files and put them under
>> appproj/locale/{locale, eg: zh_CN}/LC_MESSAGES/
>> 2. add settings.py to appproj/
>> 3. modify your main.py and import several django modules.
>> 4. Now, you could use _() in .py and {% trans "" %} in template. You
>> could follow your webapp way, no need to change to django way.
>>
>> For detail information, you could check attached code sample.  Enjoy :-)
>>
>> --
>> Best Regards,
>> TANG Jiyu
>>
>>  webappi18n.zip
>> 7KViewDownload
>
> >
>



-- 
Best Regards,
TANG Jiyu

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



[google-appengine] Re: Problem with my (probably) poorly written function, CheckToken()

2008-09-22 Thread Sam G

Alexander... that seemed to do the trick. Thanks Byron and Alex for
your help.

Sam

On Sep 20, 3:54 pm, "Byron Saltysiak" <[EMAIL PROTECTED]> wrote:
> Maybe the user that you think you're using is not the one really being
> used? Maybe change the code to print out/ log the user and token
> instead of the redirect?
>
> On 9/20/08, Sam G <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > No ideas, from anyone?
>
> > Sam
>
> > On Sep 18, 10:09 pm, Sam G <[EMAIL PROTECTED]> wrote:
> >> Hello (again),
>
> >> I'm running into a problem that I would think would be easy to solve.
> >> I've set up a system to send a given user to an AuthSub token request
> >> URL on first login. After first login, there should be a token in the
> >> datastore for the user, and they can go straight to the home page when
> >> they log in.
>
> >> In my view code (that gets run whenever someone hits '/'):
>
> >> def index(request):
> >>     result = token.CheckToken(user)
> >>     if result == True:
> >>         return HttpResponsePermanentRedirect('/home')
> >>     else:
> >>         return HttpResponsePermanentRedirect('/setup/introduction')
>
> >> CheckToken Function:
>
> >> def CheckToken(user):
> >>     token = db.GqlQuery("SELECT * FROM accountToken WHERE user
> >> = :userobj", userobj=user)
> >>     result = token.fetch(1,0)
> >>     if result is not None:
> >>         return True
> >>     else:
> >>         return False
>
> >> Here is my model for accountToken:
>
> >> class accountToken(db.Model):
> >>     user = db.UserProperty(required=True)
> >>     token = db.StringProperty(required=True)
> >>     version = db.IntegerProperty()
> >>     created = db.DateTimeProperty(auto_now_add=True)
>
> >> By the way, the key_name for each accountToken instance is the user's
> >> nickname().
>
> >> Using the code above, when I log in as a user who definitely has a
> >> token, they are redirected to the home page (like they should be).
> >> However, when I log in as a user who does not have a token, they are
> >> also redirected to the home page.
>
> >> Ideas?
>
> >> Sam
>
> --
> Sent from Gmail for mobile | mobile.google.com
>
> Byron
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Updating datastore via desktop script

2008-09-22 Thread Joseph

This is my server side code mapped to /api/update

def update(request):
resp = HttpResponse()
resp.status_code = 403
resp.content="ForbiddenAccess"

user = users.get_current_user()
if user:
<>
resp.status_code=200
resp.content="Updated Successfully"
return resp


this is my client side code (pure python). You'll see that
full_serv_uri contains a ? to redirect to the update url after
authentication. So the server code thinks it is a GET and I'm not able
to pass parameters. Thanks for helping me out.


users_email_address = "[EMAIL PROTECTED]"
users_password  = "xxpwd"


host="mysecs.appspot.com"
target_authenticated_google_app_engine_uri = 'http://%s/api/update/' %
host
my_app_name = "mySecs"


# we use a cookie to authenticate with Google App Engine
#  by registering a cookie handler here, this will automatically store
the
#  cookie returned when we use urllib2 to open 
http://currentcost.appspot.com/_ah/login
cookiejar = cookielib.LWPCookieJar()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookiejar))
urllib2.install_opener(opener)

#
# get an AuthToken from Google accounts
#
auth_uri = 'https://www.google.com/accounts/ClientLogin'


authreq_data = urllib.urlencode({ "Email":   users_email_address,
  "Passwd":  users_password,
  "service": "ah",
  "source":  my_app_name,
  "accountType": "HOSTED_OR_GOOGLE" })
auth_req = urllib2.Request(auth_uri)
auth_resp = urllib2.urlopen(auth_req, authreq_data)
auth_resp_body = auth_resp.read()
# auth response includes several fields - we're interested in
#  the bit after Auth=
auth_resp_dict = dict(x.split("=")
  for x in auth_resp_body.split("\n") if x)
authtoken = auth_resp_dict["Auth"]


#
# get a cookie
#
#  the call to request a cookie will also automatically redirect us to
the page
#   that we want to go to
#  the cookie jar will automatically provide the cookie when we reach
the
#   redirected location

# this is where I actually want to go to
serv_uri = target_authenticated_google_app_engine_uri

serv_args = {}
serv_args['continue'] = serv_uri
serv_args['auth'] = authtoken

full_serv_uri = "http://%s/_ah/login?%s"; %
(host,urllib.urlencode(serv_args))


time_data = []
time_data.append({'fromtime': datetime.datetime.now(),
  'totime':datetime.datetime.now(),
  'timespent':10,
  'task':'firefox',
  'taskinfo':'mysecs',
  'ipaddress':'121.0.0.0',
  'osversion':'windows',
  'source':'wndclient'})
submit_data = ([('time_details', time_data)])

serv_req = urllib2.Request(full_serv_uri)
serv_req.add_data(urllib.urlencode(submit_data))

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



[google-appengine] Re: Can't Update with appcfg.py

2008-09-22 Thread johnP

After several months of reliable use, suddenly the appcfg.py stopped
updating my application.  It would die silently right when it is
supposed to stat 'cloning' the files.  The workaround was to increment
my app version from 1 to 2.  It started working again after that.



On Sep 15, 11:47 am, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Please ensure that you own the app_id that you specified in your app.yaml
> file.
>
> You see the apps that you administer by signing in 
> tohttp://appengine.google.com. All of your apps will be listed on the first
> page.
>
> -Marzia
>
> On Sun, Sep 14, 2008 at 4:15 PM, gg <[EMAIL PROTECTED]> wrote:
>
> > I just started getting this error:
>
> > Initiating update.
> > 2008-09-14 16:13:11,094 ERROR appcfg.py:1334 An unexpected error
> > occurred. Aborting.
> > Error 403: --- begin server output ---
> > You do not have permission to modify this app.
> > --- end server output ---
>
> > What is up?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Need help with Appengine helper.

2008-09-22 Thread Matt Brown

Peter wrote:
> Hmm.  A couple of extra lines of documentation would have been very
> helpful.  I'm not used to ignoring warnings and errors.

I've committed a change to the Google Appengine Helper for Django 
article to mention these warnings and that they can be safely ignored.

> The datastore seems to be empty at each startup which could be a bit
> tedious.  Is there any way to keep it between server starts?

The default path for the datastore is in /tmp which on some 
distributions is cleared on reboot. You can run dev_appserver.py 
manually and specify the --datastore_path and --history_path options to 
put it somewhere else.

Cheers

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



[google-appengine] User Authentication

2008-09-22 Thread My3

Can we use the Google Apps users to login to our own web application.

I have Google Apps account for my domain.
I want my domain users to access my web application. Can i do it.

Else
Can i forward them to my web application after authenticating then in
Google 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] I I can't receive smsessages .how can i get a GAE?

2008-09-22 Thread gamexg

I I can't receive smsessages .how can i get a GAE?

thank you!

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



[google-appengine] How to solve this problem(just like" in" in sql)

2008-09-22 Thread 102010cncger

my code:
class PDM_InitReportEntity(db.Model):
 
 Users=db.ListProperty(users.User)
 
another class:
...
def get(self):
...
curentuser=users.User("[EMAIL PROTECTED]")
pet=PDM_InitReportEntity()
pet.FaceUsers=[curentuser]
pets=db.GqlQuery("SELECT * FROM PDM_InitReportEntity WHERE :1 in
FaceUsers",curentuser)#canont select like this
for singlepet in pets:
self.response.out.write(singlepet.CoName)


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



[google-appengine] mail.send size limits?

2008-09-22 Thread ron esain

Hi

I get this error - "The request to API call mail.Send() was too large"
with an attachment of 1.5 Mbytes any idea what the limit is? Works ok
with an attachment of 300Kbytes or so.

Is this another restriction?

Cheers

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



[google-appengine] I I can't receive smsessages .how can i get a GAE?

2008-09-22 Thread gamexg

I I can't receive smsessages .how can i get a GAE?
thank you!

https://appengine.google.com/waitlist/sms_issues.do display

There were errors:

* Comments

[EMAIL PROTECTED]


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



[google-appengine] Re: local log file

2008-09-22 Thread Marzia Niccolai
Hi Joseph,

Currently, dev_appserver logs are printed to the terminal.  It only prints
info level logging, so to view logs in development, you will need to log at
this level.

-Marzia

On Fri, Sep 19, 2008 at 10:03 PM, Joseph <[EMAIL PROTECTED]> wrote:

>
> Hi: How do I view the log file when I develop locally? For urls
> invoked from browser I can append ?debug in the url and can view the
> log file. However, if I have integration URLs (those that will be
> called only via programs and not via browser) how do I view the log
> file?
>
> Thank you,
> Joseph
> >
>

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



[google-appengine] Re: TemplateSyntaxError when using app engine helper's auth on appspot

2008-09-22 Thread Matt Brown

Hi Bobby,

Bobby Moretti wrote:
> This seems to do the trick, but it shouldn't be necessary. Any idea
> what I've been doing wrong?

I presume that you're using Django 1.0?

Anyway, this looks to be Django 1.0 related breakage to me. I've 
committed a fix in r62 that makes the login/logout URL template tags 
available to all templates by default.

Cheers


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



[google-appengine] Re: maximum reference dataset size without timeout

2008-09-22 Thread Marzia Niccolai
Hi,

Adding an index here should have no effect.  The reference property stores
the key for the referenced value, and retrieving it is a simple get
operation - the quickest there is.

I doubt that the timeout is occurring for just one get - if you are
operating over a large enough set of data, it is possible this is where the
error is occurring, and you should try to reduce the amount of data fetched.
With out seeing any code, it's difficult to provide more specific advice on
how you might eliminate the timeout message.

-Marzia

On Fri, Sep 19, 2008 at 11:38 PM, रवींदर ठाकुर (ravinder thakur) <
[EMAIL PROTECTED]> wrote:

>
> hi
>
> i am developing an application that uses ReferenceProperty heavily.
> When i am trying to dereference, i am getting an timeout exception.
>
> here is my data definition:
>
> class Triples(db.Model):
>  subject   =
> db.ReferenceProperty(Subjects,collection_name="subj_refs")
>  count = db.IntegerProperty()
>
> class Subjects(db.Model):
>subject = db.StringProperty()
>
>
> and i am taking a triple and accessing it to get the string version of
> subject and this is where i am getting an exception. For certain
> subjects, this exception occurs always.
>
> substring = triple.subject.subject
>
>
>
> Also i am not using any index. Will adding an index help in this
> case ?
>
>
> Thanks
> Ravinder Thakur
> >
>

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



[google-appengine] Re: Delete all data for a kind

2008-09-22 Thread Marzia Niccolai
Hi,

Currently there is no quick solution for deleting all entities of a specific
kind.  The only way this can be achieved is to write a handler that chunks
the data in to manageable sizes, and then deletes the data over a series of
requests.

If this is something you'd like to see, please star the issue for in the
issue tracker.

-Marzia

On Sat, Sep 20, 2008 at 10:29 AM, Michael Bailey <[EMAIL PROTECTED]>wrote:

>
> I would like to wipe out all data for a specific kind. What is the
> best way to do this?
> I wrote a delete script (hack), but since there is so much data is
> timeout's out after a few hundred records.
> >
>

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



[google-appengine] Re: How to get a users last entry in a table

2008-09-22 Thread Marzia Niccolai
Hi,

Assuming you've stored the user object and login date in your datastore, the
query would like something like this:

# Assume user is logged in
user = users.get_current_user()

last_login = Login.filter('user =', user).order('-login_time').get()

-Marzia

On Sat, Sep 20, 2008 at 8:42 AM, NTulip <[EMAIL PROTECTED]> wrote:

>
> Guys,
>
> I need some help. I am trying to figure out to get a single record
> from a table that represents the users last entry.
>
> Example: You are logging each users log in. You want to display their
> last login date.
>
> Exactly how does one go about getting the last record in the
> AttemptedLogins model where the user is the current logged in user?
>
> Thanks for any help.
>
> >
>

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



[google-appengine] Re: Which versions of Python work?

2008-09-22 Thread Marzia Niccolai
Hi,

Currently App Engine runs Python 2.5.  It is possible to run the App Engine
SDK under other versions of Python (such as 2.4), though there are no
guarantees that it will be 100% compatible.

All applications are currently written to run with Python 2.5, and it's
unlikely we would introduce any changes for that would break these apps.

If you are interested in Python 3K support, you should file that feature in
the issue tracker.

-Marzia

On Sun, Sep 21, 2008 at 11:35 AM, david <[EMAIL PROTECTED]>wrote:

>
> Hello everyone,
> I came here just to ask one questions, I think most already know that
> Python 3k version is coming out soon and that it will be incompatible
> with earlier versions (2.X). The question is, will Google App Engine
> work with Python 3k or it will work with 2.5.X or 2.X ?
>
> Thanks for your answers.
>
> (I just hope this time message is going to show up in group)
>
> >
>

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



[google-appengine] How to create SOAP server in GAE

2008-09-22 Thread Hasanat Kazmi
Hello folks,
I am facing a problem. I want to create SOAP web services using GAE. I want
to create server (so that others can utilize it) not client (I dont want to
utilize other SOAPes)
The problem is I have looked into few solutions on the internet specially
SOAPpy but when the create a SOAP server, they also create Web server to
handle it, secondly it is highly feasible that it won't work on GAE.
Anyone having an idea how to do it

Regards

-- 
[EMAIL PROTECTED]
+923464362473

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



[google-appengine] Re: ImportError: No module named _md5

2008-09-22 Thread Marzia Niccolai
Hi,

If you could provide some more information, that would be helpful:

What version of the SDK are you currently running 1.1.3?
What version of Mac OS are you running?
Are you using the Mac Python install, or a different Python installation
when running the SDK?

Thanks,
Marzia

On Sat, Sep 20, 2008 at 9:25 AM, JoshuaJ <[EMAIL PROTECTED]> wrote:

>
> When I try to run google's "hello world" example in
> GoogleAppEngineLauncher on Mac OS X, I get an error message
> complaining "ImportError: No module named _md5".
>
> A similar question was posted here several months ago, and a
> workaround was provided, but that one no longer applies; the
> workaround has already been incorporated into the latest versions of
> GoogleAppEngineLauncher, but I'm still having the problem!
>
> Here's the log that it outputs:
>
>
> *** Running dev_appserver with the following flags:
>--admin_console_server= --port=8080
> Python command: /opt/local/bin/python2.5
> Traceback (most recent call last):
>  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
> GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
> dev_appserver.py", line 55, in 
>execfile(script_path, globals())
>  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
> GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
> google/appengine/tools/dev_appserver_main.py", line 73, in 
>from google.appengine.tools import appcfg
>  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
> GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
> google/appengine/tools/appcfg.py", line 40, in 
>import sha
>  File "/opt/local/lib/python2.5/sha.py", line 6, in 
>from hashlib import sha1 as sha
>  File "/opt/local/lib/python2.5/hashlib.py", line 133, in 
>md5 = __get_builtin_constructor('md5')
>  File "/opt/local/lib/python2.5/hashlib.py", line 60, in
> __get_builtin_constructor
>import _md5
> ImportError: No module named _md5
>
> >
>

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



[google-appengine] Re: NeedIndexError, but index is in index.yaml file

2008-09-22 Thread Marzia Niccolai
Hi,

>From the description, it seems as though Alexander is correct, and you are
experiencing the below issue.

However, if you would like to reply directly to me with the App Id, I can
look in to it and verify if it is this or something else may be happening.

Thanks,
Marzia

On Sun, Sep 21, 2008 at 5:33 PM, Alexander Kojevnikov <
[EMAIL PROTECTED]> wrote:

>
> Star this issue:
> http://code.google.com/p/googleappengine/issues/detail?id=423
>
> On Sep 22, 1:50 am, djidjadji <[EMAIL PROTECTED]> wrote:
> > I have a BarB object that is the parent of a couple of FooA objects.
> > I want to find all the FooA objects that have a certain parent and
> > that have an "myID < 0"
> >
> > barB = BarB.get_by_key_name(keyname)
> > result = FooA.all().ancestor(barB).filter('myID <', 0)
> >
> > When I test it on the devappserver v1.1.3 it works correct, and an
> > entry in index.yaml is made
> >
> > ===
> > - kind: FooA
> >   ancestor: yes
> >   properties:
> >   - name: myID
> > ===
> >
> > When I upload the new code and try it out I get the following error:
> >
> > ===
> > NeedIndexError: no matching index found.
> > This query needs this index:
> > - kind: FooA
> >   ancestor: yes
> >   properties:
> >   - name: myID
> > ===
> >
> > When I look in the Dashboard this index is "Serving". And it tells the
> > index is Ascending sorted, this is maybe the default.
> >
> > What is the cause of this error?
> >
> > Djidjadji
> >
>

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



[google-appengine] Re: Urlfetch works fine at localhost but errors out after uploading

2008-09-22 Thread Marzia Niccolai
Hi,

This error indicates that the URLFetch request took too long to complete (we
allow around 5 seconds for a URLFetch request to complete).

Since the performance characteristics of the dev_appserver are not exactly
inline with App Engine, we do not enforce the deadlines on the SDK as we do
in production, which is why these errors only occurred on upload.

-Marzia

On Sun, Sep 21, 2008 at 8:46 PM, Downtown <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> I am fetching a yahoo pipe in json format and I am receiving the
> following error message:
>
> File "/base/python_lib/versions/1/google/appengine/api/urlfetch.py",
> line 260, in fetch
>raise DownloadError(str(e))
> DownloadError: ApplicationError: 3
>
> It works fine on my localhost but errors out if I upload the app to
> Google.
>
> Why would it work fine locally but not after uploading? Is the fetch
> limited upon uploading?  The debugger only shows the above error
> messge.  How can I find out further details?
>
> Thanks
>
>
>
> >
>

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



[google-appengine] Re: problem in SDK 1.1.3 with FloatProperty() in local Datastore Viewer

2008-09-22 Thread Jeff S

Hi axartico,

This is a know issue and a workaround has been posted in the issue
tracker: http://code.google.com/p/googleappengine/issues/detail?id=710

Cheers,

Jeff

On Sep 19, 8:15 am, axartico <[EMAIL PROTECTED]> wrote:
> i have found a problem in Development Console with Datastore Viewer.
>
> This Entity works fine with vers. 1.1.2
>
> class assiste(db.Expando):
>   luogo = db.StringProperty()
>   tempo = db.FloatProperty()
>
> but with  vers. 1.1.3 it give this error
>
> Traceback (most recent call last):
>   File "C:\Attivita2002\Access_programmazione\Python\Esempi
> \google_appengine\google\appengine\ext\webapp\__init__.py", line 496,
> in __call__
>     handler.get(*groups)
>   File "C:\Attivita2002\Access_programmazione\Python\Esempi
> \google_appengine\google\appengine\ext\admin\__init__.py", line 558,
> in get
>     'kinds': self.get_kinds(),
>   File "C:\Attivita2002\Access_programmazione\Python\Esempi
> \google_appengine\google\appengine\ext\admin\__init__.py", line 485,
> in get_kinds
>     schema = datastore_admin.GetSchema()
>   File "C:\Attivita2002\Access_programmazione\Python\Esempi
> \google_appengine\google\appengine\api\datastore_admin.py", line 58,
> in GetSchema
>     _Call('GetSchema', req, resp)
>   File "C:\Attivita2002\Access_programmazione\Python\Esempi
> \google_appengine\google\appengine\api\datastore_admin.py", line 124,
> in _Call
>     apiproxy_stub_map.MakeSyncCall('datastore_v3', call, req, resp)
>   File "C:\Attivita2002\Access_programmazione\Python\Esempi
> \google_appengine\google\appengine\api\apiproxy_stub_map.py", line 46,
> in MakeSyncCall
>     stub.MakeSyncCall(service, call, request, response)
>   File "C:\Attivita2002\Access_programmazione\Python\Esempi
> \google_appengine\google\appengine\api\datastore_file_stub.py", line
> 263, in MakeSyncCall
>     (getattr(self, "_Dynamic_" + call))(request, response)
>   File "C:\Attivita2002\Access_programmazione\Python\Esempi
> \google_appengine\google\appengine\api\datastore_file_stub.py", line
> 626, in _Dynamic_GetSchema
>     value_pb.set_doublevalue(float('-inf'))
> ValueError: invalid literal for float(): -inf
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: How to solve this problem(just like" in" in sql)

2008-09-22 Thread Marzia Niccolai
Hi,

For this query you do not need to use an 'IN' query.  The correct query is:

db.GqlQuery("SELECT * FROM PDM_InitReportEntity WHERE Users =
:1",curentuser)

From
http://code.google.com/appengine/docs/datastore/typesandpropertyclasses.html#ListProperty:

"In a query, comparing a list property to a value performs the test against
the list members: list_property = value tests if the value appears anywhere
in the list, list_property < value tests if any of the members of the list
are less than the given value, and so forth."

-Marzia

On Sun, Sep 21, 2008 at 11:35 PM, 102010cncger <[EMAIL PROTECTED]>wrote:

>
> my code:
> class PDM_InitReportEntity(db.Model):
> 
> Users=db.ListProperty(users.User)
> 
> another class:
> ...
> def get(self):
>...
>curentuser=users.User("[EMAIL PROTECTED]")
>pet=PDM_InitReportEntity()
>pet.FaceUsers=[curentuser]
>pets=db.GqlQuery("SELECT * FROM PDM_InitReportEntity WHERE :1 in
> FaceUsers",curentuser)#canont select like this
>for singlepet in pets:
>self.response.out.write(singlepet.CoName)
>
>
> >
>

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



[google-appengine] Re: Confusions on transactions and concurrent writes to entity groups

2008-09-22 Thread Jeff S

Hi David,

Even if a put request to the datastore is not run in a transaction,
the operation is automatically retried. Contention is not unique to
transactions. The benefit of using transactions, is that if one write
in the transaction times out (due to too much contention or some other
issue) the other parts of the transaction will not be applied. For
more details see: 
http://code.google.com/appengine/docs/datastore/transactions.html#Using_Transactions

Happy coding,

Jeff

On Sep 18, 6:25 pm, DXD <[EMAIL PROTECTED]> wrote:
> I appreciate any clarifications on my situation as follows. I have an
> entity group whose the root entity is called "root". When a particular
> URL is requested, a new entity is added to this group as a direct
> child of root. The code looks similar to this:
>
> def insert():
>   root = Root.get_by_key_name('key_name')
>   child = Child(parent=root)
>   child.put()
>
> Note that the insert() function is not run in a transaction (not
> called by db.run_in_transaction()).
>
> I spawned many concurrent requests to this URL. The log shows that
> there are many failed requests with either "TransactionFailedError:
> too much contention on these datastore entities. please try again" or
> "DeadlineExceededError". Since I'm still a bit unclear about the
> internal working of the datastore, these are my explanations for what
> happened. Pls correct me where I'm wrong:
>
> 1. when one child entity is being inserted, it locks the entire group.
> All other concurrent requests are blocked, and their child.put()
> statement exclusively is retried a number of times. Say the limit
> number of retry is r.
>
> 2. If child.put() is retried r times but still doesn't go through, it
> gives up and yields the "too much contention" error.
>
> 3. If child.put() does not yet reach r times of retry, but its session
> already reaches the time limit t, then it fails yielding the
> "DeadlineExceededError".
>
> If my explanations are correct, isn't it true that the insert()
> function is exactly equivalent to this version?:
>
> def insert():
>   root = Root.get_by_key_name('key_name')
>   child = Child(parent=root)
>   def txn()
>     child.put()
>   db.run_in_transaction(txn)
>
> Or more generally, is it true that all API operations that write to
> the datastore have exactly the same effect with transaction
> (automatically retried if failed, and so on)?
>
> Thanks for clarifications,
> David.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: 1.1.3 appinfo_errors import problem

2008-09-22 Thread Jeff S

Hi Byron,

Would you mind filing an issue in our tracker?
http://code.google.com/p/googleappengine/issues/list This seems like
something that should be fixed in future versions.

Thank you,

Jeff

On Sep 20, 12:12 pm, byronsalty <[EMAIL PROTECTED]> wrote:
> I just got the 1.1.3 SDK today and now I'm getting the following
> import error. I'm on Ubuntu 8.04 with Python 2.5.2.
>
> $ python dev_appserver.py
> Traceback (most recent call last):
>   File "dev_appserver.py", line 55, in 
>     execfile(script_path, globals())
>   File "/usr/local/google_appengine/google/appengine/tools/
> dev_appserver_main.py", line 73, in 
>     from google.appengine.tools import appcfg
>   File "/usr/local/google_appengine/google/appengine/tools/appcfg.py",
> line 49, in 
>     from google.appengine.api import appinfo
>   File "/usr/local/google_appengine/google/appengine/api/appinfo.py",
> line 30, in 
>     from google.appengine.api import appinfo_errors
> ImportError: cannot import name appinfo_errors
>
> The same error occurs with or without specifying a project.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Confusions on transactions and concurrent writes to entity groups

2008-09-22 Thread Jeff S

To further clarify. All writes are transactional. Details on how the
transactions work can be found in ryan's presentation from Google I/O:
http://snarfed.org/space/datastore_talk.html The section on
transactions specifically begins at slide 49. You can also watch the
video here: 
http://sites.google.com/site/io/under-the-covers-of-the-google-app-engine-datastore

Cheers,

Jeff

On Sep 22, 10:36 am, Jeff S <[EMAIL PROTECTED]> wrote:
> Hi David,
>
> Even if a put request to the datastore is not run in a transaction,
> the operation is automatically retried. Contention is not unique to
> transactions. The benefit of using transactions, is that if one write
> in the transaction times out (due to too much contention or some other
> issue) the other parts of the transaction will not be applied. For
> more details 
> see:http://code.google.com/appengine/docs/datastore/transactions.html#Usi...
>
> Happy coding,
>
> Jeff
>
> On Sep 18, 6:25 pm, DXD <[EMAIL PROTECTED]> wrote:
>
> > I appreciate any clarifications on my situation as follows. I have an
> > entity group whose the root entity is called "root". When a particular
> > URL is requested, a new entity is added to this group as a direct
> > child of root. The code looks similar to this:
>
> > def insert():
> >   root = Root.get_by_key_name('key_name')
> >   child = Child(parent=root)
> >   child.put()
>
> > Note that the insert() function is not run in a transaction (not
> > called by db.run_in_transaction()).
>
> > I spawned many concurrent requests to this URL. The log shows that
> > there are many failed requests with either "TransactionFailedError:
> > too much contention on these datastore entities. please try again" or
> > "DeadlineExceededError". Since I'm still a bit unclear about the
> > internal working of the datastore, these are my explanations for what
> > happened. Pls correct me where I'm wrong:
>
> > 1. when one child entity is being inserted, it locks the entire group.
> > All other concurrent requests are blocked, and their child.put()
> > statement exclusively is retried a number of times. Say the limit
> > number of retry is r.
>
> > 2. If child.put() is retried r times but still doesn't go through, it
> > gives up and yields the "too much contention" error.
>
> > 3. If child.put() does not yet reach r times of retry, but its session
> > already reaches the time limit t, then it fails yielding the
> > "DeadlineExceededError".
>
> > If my explanations are correct, isn't it true that the insert()
> > function is exactly equivalent to this version?:
>
> > def insert():
> >   root = Root.get_by_key_name('key_name')
> >   child = Child(parent=root)
> >   def txn()
> >     child.put()
> >   db.run_in_transaction(txn)
>
> > Or more generally, is it true that all API operations that write to
> > the datastore have exactly the same effect with transaction
> > (automatically retried if failed, and so on)?
>
> > Thanks for clarifications,
> > David.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Strange expiration date (now + 1 day)

2008-09-22 Thread Marzia Niccolai
Hi Sylvain,

My simple 'Hello World' with the Cache-Control set seems to always set this
header as expected, so if you could point me to a URL in your application
that you have noticed this behavior, this will help us pinpoint where this
might be occurring.

Also, do you set any expirations explicitly in your app.yaml file?

I am looking in to the report of the same issue on the admin console.

Thanks,
Marzia

On Fri, Sep 19, 2008 at 11:42 PM, Sylvain <[EMAIL PROTECTED]> wrote:

>
> Since 1.1.3, my pages randomly get an expiration date (now + 1 day)
>
> Strange because by default a reponse is __init__ with this :
> self.headers['Cache-Control'] = 'no-cache'
>
> So it should never happend.
>
> I don't know if there is a link but the new Dashboard has the same
> issue. Sometimes, I have to force a refresh to get the new values
> (quota, image,)
> >
>

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



[google-appengine] Re: Strange expiration date (now + 1 day)

2008-09-22 Thread Sylvain

Hi,

Yes, i thought is was an issue with the app.yaml. So, i've removed it
('default_expiration'.).
But this bug continues.

One important thing : it is random. And to raise it, it was sometimes
hard/long.

If the Dashboad is a GAE app (like ours), it has the bug too.

Check these images : I've reproduced this bug for the Dashboard.

http://testgapp.appspot.com/np1LN6q53sFd5P2SocyNyvCAHnnvnt
http://testgapp.appspot.com/nppEvndmbnDzp7vgeVQoc3ygG2okoD

For my app, I've removed this bug by adding :





Regards



On 22 sep, 20:00, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> Hi Sylvain,
>
> My simple 'Hello World' with the Cache-Control set seems to always set this
> header as expected, so if you could point me to a URL in your application
> that you have noticed this behavior, this will help us pinpoint where this
> might be occurring.
>
> Also, do you set any expirations explicitly in your app.yaml file?
>
> I am looking in to the report of the same issue on the admin console.
>
> Thanks,
> Marzia
>
> On Fri, Sep 19, 2008 at 11:42 PM, Sylvain <[EMAIL PROTECTED]> wrote:
>
> > Since 1.1.3, my pages randomly get an expiration date (now + 1 day)
>
> > Strange because by default a reponse is __init__ with this :
> > self.headers['Cache-Control'] = 'no-cache'
>
> > So it should never happend.
>
> > I don't know if there is a link but the new Dashboard has the same
> > issue. Sometimes, I have to force a refresh to get the new values
> > (quota, image,)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: A Very Specific AJAX RPC App Engine Question

2008-09-22 Thread Downtown

Thank you .  I have everything working.  I appreciate your feedback.

On Sep 12, 3:16 pm, Adam Fisk <[EMAIL PROTECTED]> wrote:
> Couple of quick points here:
>
> 1) In your example (Downtown), you don't need to use eval.  When you
> specify "handleAs: 'json'" the response is already JSON (already
> evaled underneath).  You don't need to worry about YUI and all,
> although the commented format suggested above is ideal.
>
> 2) In response to Peter above, GAE only "supports callbacks" in the
> same sense that any server supports callbacks.  You have to manually
> include the callback function in your response, as in "callbackFunc("
> + json + ")"
>
> -Adam
>
> On Sep 12, 11:23 am, Bill <[EMAIL PROTECTED]> wrote:
>
>
>
> > You might want to use Crockford's JSON utility instead of the naked
> > eval of the response. See the section "A word of caution against using
> > eval" on the YUI JSON page:http://developer.yahoo.com/yui/json/
>
> > The original non-YUI version can be used as well:http://json.org/json2.js
>
> > On Sep 12, 6:36 am,Downtown<[EMAIL PROTECTED]> wrote:
>
> > > Thanks for all the posts. I have GET working very well.  I had one
> > > additional issue converting string to JSON object which was solved as
> > > follows:
>
> > >                              dojo.xhrGet({
> > >                                 url: myurl,
> > >                                         handleAs: "json",
> > >                                         load: function(response, ioArgs){
> > >                                         var myObject = eval('(' + 
> > > response + ')');
> > >                                         myjsfunction(myObject);
> > >                                     },
> > >                                     error: function(response, ioArgs){
> > >                                            alert("An error occurred 
> > > retrieving the current feed from the
> > > server cache.");
> > >                                       
> > > //dojo.byId("toBeReplaced").innerHTML = "An error occurred,
> > > with response: " + response;
> > >                                      return response;
> > >                                     }
>
> > >                                   });
>
> > > On Sep 10, 12:52 am, "Peter Svensson" <[EMAIL PROTECTED]> wrote:
>
> > > > That's a good example of how jsonp can look like. Also, I wrote the last
> > > > post with my head screwed on backwards, I think :) To get jsonp, you can
> > > > just use response.out.write('/*'+foo+'*/')  where foo is the json 
> > > > string.
>
> > > > Cheers,
> > > > PS
>
> > > > On Tue, Sep 9, 2008 at 10:18 PM, Davide Rognoni <[EMAIL 
> > > > PROTECTED]>wrote:
>
> > > > > JSON-P example:
>
> > > > > 
> > > > > function foo(json) {
> > > > >    alert( json["responseData"]["translatedText"] );
> > > > > }
> > > > > 
>
> > > > > 

[google-appengine] Re: Urlfetch works fine at localhost but errors out after uploading

2008-09-22 Thread Downtown

WOW! Please provide a link in your documentation where this is
discussed. You need to put this limitation in big red letters
someplace. Now I will need to recode major pieces of my application.

Please provide a few recommendations.  I really need assistance.  My
deadline is almost here and I was not anticipating this extra work:

1) Any work around on this issue?  Can I run a procedure off line
looping urlfetch until I get what I need?
2) I have noticed that if you request a feed (using urlfetch) several
times in a row it will not timeout.  It is like Google App Engine
eventually caches the feed so when you request it a third or forth
time it work.  Is this true?
3) Any issue requesting a feed direct to the client and have the
client POST the feed to the server.  I did not want to go down this
road due to security issues of POSTing a large feed to GAE from a
client.  I may not have a choice.

Thanks



On Sep 22, 1:14 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> This error indicates that the URLFetch request took too long to complete (we
> allow around 5 seconds for a URLFetch request to complete).
>
> Since the performance characteristics of the dev_appserver are not exactly
> inline with App Engine, we do not enforce the deadlines on the SDK as we do
> in production, which is why these errors only occurred on upload.
>
> -Marzia
>
>
>
> On Sun, Sep 21, 2008 at 8:46 PM, Downtown <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I am fetching a yahoo pipe in json format and I am receiving the
> > following error message:
>
> > File "/base/python_lib/versions/1/google/appengine/api/urlfetch.py",
> > line 260, in fetch
> >    raise DownloadError(str(e))
> > DownloadError: ApplicationError: 3
>
> > It works fine on my localhost but errors out if I upload the app to
> > Google.
>
> > Why would it work fine locally but not after uploading? Is the fetch
> > limited upon uploading?  The debugger only shows the above error
> > messge.  How can I find out further details?
>
> > Thanks- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Unit test failure with 1.1.3 release

2008-09-22 Thread Jason Etheridge

On Mon, Sep 22, 2008 at 5:33 AM, I.K. <[EMAIL PROTECTED]> wrote:
> I'm suffering with the same problem since upgrading to 1.1.3.
>
> I have always included the first argument here:
> stub =
> datastore_file_stub.DatastoreFileStub(u'myTemporaryDataStorage', '/dev/
> null', '/dev/null')
>
> Do you have any more information on what you changed to correct your
> problem please?

I added the following in my test setup:

os.environ['APPLICATION_ID'] = APP_ID

... along with the other environment variables that are locally set
(AUTH_DOMAIN and USER_EMAIL). This was done after the call to create
my DataStoreFileStub instance. No other change was necessary.

Hope that helps!

-- 
Jason Etheridge
mailto:[EMAIL PROTECTED]

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



[google-appengine] Re: Urlfetch works fine at localhost but errors out after uploading

2008-09-22 Thread Wooble



On Sep 22, 3:12 pm, Downtown <[EMAIL PROTECTED]> wrote:
> WOW! Please provide a link in your documentation where this is
> discussed. You need to put this limitation in big red letters
> someplace. Now I will need to recode major pieces of my application.

http://code.google.com/appengine/docs/urlfetch/overview.html

"Since your application must respond to the user's request within
several seconds, a URL fetch action to a slow remote server may cause
your application to return a server error to the user. There is
currently no way to specify a time limit to the URL fetch action. One
way to control the user experience of a slow remote server is to use
browser JavaScript to call a separate handler on your application that
performs the action that requires URL fetching, then report the error
to the user if the handler fails."
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Urlfetch works fine at localhost but errors out after uploading

2008-09-22 Thread gmalquestion



On Sep 22, 9:12 pm, Downtown <[EMAIL PROTECTED]> wrote:
>
> 1) Any work around on this issue?  Can I run a procedure off line
> looping urlfetch until I get what I need?
> 2) I have noticed that if you request a feed (using urlfetch) several
> times in a row it will not timeout.  It is like Google App Engine
> eventually caches the feed so when you request it a third or forth
> time it work.  Is this true?

Note that an urlfetch which is taking long is apparently considered a
high CPU operation even if it's not CPU-bound, so if you repeat the
request several times and you do it frequently then your app may be
banned temporarily due to overshooting its high-CPU quota.

Why a long IO operation is counted as a high CPU operation is beyond
me, but you can see the heaps of CPU warnings in your logs if you do
such operations.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Admin Users

2008-09-22 Thread Sam G

GAE Group,

Quick question... I've got a Google App Engine app setup for
authentication with a GAFYD account. I had thought that the
"is_current_user_admin()" method returns True if the user has admin
privs for the GA domain.

I guess not - it isn't working for my Google Apps Admin. Upon closer
review of the Users API documentation, I read that "You can manage
which users have administrative status using the Administration
Console.".

Where do I do this?

I have already added the user in question as a developer of the
application. Is there something I'm missing?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Urlfetch works fine at localhost but errors out after uploading

2008-09-22 Thread Downtown

Thanks for pointing this out but you need to clarify in red letters
that the Dev environment does not behave the same as Prod or there is
an imposed 5 second timeout.

>"Since your application must respond to the user's request within
> several seconds, a URL fetch action to a slow remote server may cause
> your application to return a server error to the user.

I ready this weeks ago.  I just assumed in the Dev environment that my
"slow remote server" was fine.  I didn't get any timeouts so why would
i think otherwise!  Also, please consider adding additional
documentation that a localhost development environment may be
insufficient to adequately test and certify an application.

Please take this as positive feedback.  I just want to help the next
developer and clarify this issue.

Any thoughts or suggestions from the questions I pointed out before?

Thanks!



On Sep 22, 3:47 pm, Wooble <[EMAIL PROTECTED]> wrote:
> On Sep 22, 3:12 pm, Downtown <[EMAIL PROTECTED]> wrote:
>
> > WOW! Please provide a link in your documentation where this is
> > discussed. You need to put this limitation in big red letters
> > someplace. Now I will need to recode major pieces of my application.
>
> http://code.google.com/appengine/docs/urlfetch/overview.html
>
> "Since your application must respond to the user's request within
> several seconds, a URL fetch action to a slow remote server may cause
> your application to return a server error to the user. There is
> currently no way to specify a time limit to the URL fetch action. One
> way to control the user experience of a slow remote server is to use
> browser JavaScript to call a separate handler on your application that
> performs the action that requires URL fetching, then report the error
> to the user if the handler fails."
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: 1.1.3 appinfo_errors import problem

2008-09-22 Thread Byron Saltysiak
No problem. Issue 725 filed.

On Mon, Sep 22, 2008 at 1:43 PM, Jeff S <[EMAIL PROTECTED]> wrote:

>
> Hi Byron,
>
> Would you mind filing an issue in our tracker?
> http://code.google.com/p/googleappengine/issues/list This seems like
> something that should be fixed in future versions.
>
> Thank you,
>
> Jeff
>
> On Sep 20, 12:12 pm, byronsalty <[EMAIL PROTECTED]> wrote:
> > I just got the 1.1.3 SDK today and now I'm getting the following
> > import error. I'm on Ubuntu 8.04 with Python 2.5.2.
> >
> > $ python dev_appserver.py
> > Traceback (most recent call last):
> >   File "dev_appserver.py", line 55, in 
> > execfile(script_path, globals())
> >   File "/usr/local/google_appengine/google/appengine/tools/
> > dev_appserver_main.py", line 73, in 
> > from google.appengine.tools import appcfg
> >   File "/usr/local/google_appengine/google/appengine/tools/appcfg.py",
> > line 49, in 
> > from google.appengine.api import appinfo
> >   File "/usr/local/google_appengine/google/appengine/api/appinfo.py",
> > line 30, in 
> > from google.appengine.api import appinfo_errors
> > ImportError: cannot import name appinfo_errors
> >
> > The same error occurs with or without specifying a project.
> >
>


-- 
Byron

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



[google-appengine] Re: Strange expiration date (now + 1 day)

2008-09-22 Thread Barry Hunter

On Mon, Sep 22, 2008 at 7:33 PM, Sylvain <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Yes, i thought is was an issue with the app.yaml. So, i've removed it
> ('default_expiration'.).
> But this bug continues.
>
> One important thing : it is random. And to raise it, it was sometimes
> hard/long.
>
> If the Dashboad is a GAE app (like ours), it has the bug too.
>
> Check these images : I've reproduced this bug for the Dashboard.
>
> http://testgapp.appspot.com/np1LN6q53sFd5P2SocyNyvCAHnnvnt

That url is to the Google Chart API. For a given set of URL params the
chart should never change so it doesnt matter what the expires is. If
the chart needs updating the URL will change which will defeat the
cache. For a chart it only matters what the parent pages caching is
like.



> http://testgapp.appspot.com/nppEvndmbnDzp7vgeVQoc3ygG2okoD
>
> For my app, I've removed this bug by adding :
>
> 
> 
> 
>
> Regards
>
>
>
> On 22 sep, 20:00, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
>> Hi Sylvain,
>>
>> My simple 'Hello World' with the Cache-Control set seems to always set this
>> header as expected, so if you could point me to a URL in your application
>> that you have noticed this behavior, this will help us pinpoint where this
>> might be occurring.
>>
>> Also, do you set any expirations explicitly in your app.yaml file?
>>
>> I am looking in to the report of the same issue on the admin console.
>>
>> Thanks,
>> Marzia
>>
>> On Fri, Sep 19, 2008 at 11:42 PM, Sylvain <[EMAIL PROTECTED]> wrote:
>>
>> > Since 1.1.3, my pages randomly get an expiration date (now + 1 day)
>>
>> > Strange because by default a reponse is __init__ with this :
>> > self.headers['Cache-Control'] = 'no-cache'
>>
>> > So it should never happend.
>>
>> > I don't know if there is a link but the new Dashboard has the same
>> > issue. Sometimes, I have to force a refresh to get the new values
>> > (quota, image,)
> >
>



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



[google-appengine] Re: Problem Setting Date property to None

2008-09-22 Thread jtbrne

Same problem here...any solutions?

On Aug 19, 9:01 am, Arun Shanker Prasad <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I have a fewdatefields, until recently I just used a text field to
> get the value and store it in the GAE datastore, it maps thedatein
> into y-m-d format. I needed to change the format and put a validation
> to check the user input, following are the changes I made to the form,
> startDate = forms.DateField(input_formats=['%d/%m/%Y'],
> widget=forms.TextInput(attrs={'class':'inp100','maxlength':'10'}),
> required=False)
>
> The validation part is working correctly. But when i try to remove 
> thedatevalue from the form and try to update, the old values are still
> retained, they are not made into None ornull.
> NOTE: Updating thedatewith another validdateseems to work. I have
> also changed the initial value to get thedate.strftime(format).
>
> Any help will be appreciated, as I am new to Python and Django.
>
> I am using Django 0.96

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



[google-appengine] Re: User Authentication

2008-09-22 Thread Sam G

My3,

Yes, you can integrate with your existing (and future) Google Apps
user accounts.

When setting up an application (go to appengine.google.com, sign in,
select "Create an Application"), click on the link at the bottom of
the page labeled "Edit", under "Open to all Google Accounts users
(default)". Select the radio button for "Restricted to the following
Google Apps domain:", and enter your domain name in the box.

Push save, and it will now use your existing user accounts and
passwords.

Sam

On Sep 22, 7:59 am, My3 <[EMAIL PROTECTED]> wrote:
> Can we use the Google Apps users to login to our own web application.
>
> I have Google Apps account for my domain.
> I want my domain users to access my web application. Can i do it.
>
> Else
> Can i forward them to my web application after authenticating then in
> Google 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Strange expiration date (now + 1 day)

2008-09-22 Thread Sylvain

Yes, it's true but the parent page gets a now + 30 minutes :
http://testgapp.appspot.com/nppEvndmbnDzp7vgeVQoc3ygG2okoD

And it's random too. Most of the time, i've got a "no cache"
expiration date.

EDIT :

I've just tested it again and now i've got a now + 1 day ?
http://testgapp.appspot.com/npNzEvfzroQOQTb5tbLjFL61O8tTY4

So if I click the "dashboard" link : it never refreshes during 1 day.
It was the exact same thing with my app.

Regards.


On 22 sep, 22:35, "Barry Hunter" <[EMAIL PROTECTED]> wrote:
> On Mon, Sep 22, 2008 at 7:33 PM, Sylvain <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > Yes, i thought is was an issue with the app.yaml. So, i've removed it
> > ('default_expiration'.).
> > But this bug continues.
>
> > One important thing : it is random. And to raise it, it was sometimes
> > hard/long.
>
> > If the Dashboad is a GAE app (like ours), it has the bug too.
>
> > Check these images : I've reproduced this bug for the Dashboard.
>
> >http://testgapp.appspot.com/np1LN6q53sFd5P2SocyNyvCAHnnvnt
>
> That url is to the Google Chart API. For a given set of URL params the
> chart should never change so it doesnt matter what the expires is. If
> the chart needs updating the URL will change which will defeat the
> cache. For a chart it only matters what the parent pages caching is
> like.
>
>
>
> >http://testgapp.appspot.com/nppEvndmbnDzp7vgeVQoc3ygG2okoD
>
> > For my app, I've removed this bug by adding :
>
> > 
> > 
> > 
>
> > Regards
>
> > On 22 sep, 20:00, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> >> Hi Sylvain,
>
> >> My simple 'Hello World' with the Cache-Control set seems to always set this
> >> header as expected, so if you could point me to a URL in your application
> >> that you have noticed this behavior, this will help us pinpoint where this
> >> might be occurring.
>
> >> Also, do you set any expirations explicitly in your app.yaml file?
>
> >> I am looking in to the report of the same issue on the admin console.
>
> >> Thanks,
> >> Marzia
>
> >> On Fri, Sep 19, 2008 at 11:42 PM, Sylvain <[EMAIL PROTECTED]> wrote:
>
> >> > Since 1.1.3, my pages randomly get an expiration date (now + 1 day)
>
> >> > Strange because by default a reponse is __init__ with this :
> >> > self.headers['Cache-Control'] = 'no-cache'
>
> >> > So it should never happend.
>
> >> > I don't know if there is a link but the new Dashboard has the same
> >> > issue. Sometimes, I have to force a refresh to get the new values
> >> > (quota, image,)
>
> --
> 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Problem Setting Date property to None

2008-09-22 Thread jtbrne

There has to be a better way, but I can't figure it out and this isn't
very important to my problem.  The problem seems to be that the django
form won't actually set a dbmodel DateProperty to None.  There does
not appear to be an issue with the StringProperty.

entity = data.save(commit=False)

for property in dbmodel.properties():
 if self.request.POST[property]=="":
  setattr(dbmodel, property, None)

entity.put()

On Aug 19, 9:01 am, Arun Shanker Prasad <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I have a fewdatefields, until recently I just used a text field to
> get the value and store it in the GAE datastore, it maps thedatein
> into y-m-d format. I needed to change the format and put a validation
> to check the user input, following are the changes I made to the form,
> startDate = forms.DateField(input_formats=['%d/%m/%Y'],
> widget=forms.TextInput(attrs={'class':'inp100','maxlength':'10'}),
> required=False)
>
> The validation part is working correctly. But when i try to remove 
> thedatevalue from the form and try to update, the old values are still
> retained, they are not made into None ornull.
> NOTE: Updating thedatewith another validdateseems to work. I have
> also changed the initial value to get thedate.strftime(format).
>
> Any help will be appreciated, as I am new to Python and Django.
>
> I am using Django 0.96
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Denial of Service Attack on a GAE Application

2008-09-22 Thread Sharp-Developer.Net

Starred - I think it's gonna be even more impotant when we get paid
service.
--
Alex
http://sharp-developer.net/

On Sep 20, 5:31 am, Tony Smith <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I created an issue for this request. Please star it if you feel it's
> important to you.
>
> http://code.google.com/p/googleappengine/issues/detail?id=718
>
> Thanks,
> Tony
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: I I can't receive smsessages .how can i get a GAE?

2008-09-22 Thread Alexander Kojevnikov

> I I can't receive smsessages .how can i get a GAE?

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



[google-appengine] Re: Admin Users

2008-09-22 Thread Alexander Kojevnikov

It's under Administration / Developers. You need to add a new
developer (AKA admin) and then click on the link in the confirmation e-
mail

--
http://www.muspy.com

On Sep 23, 6:58 am, Sam G <[EMAIL PROTECTED]> wrote:
> GAE Group,
>
> Quick question... I've got a Google App Engine app setup for
> authentication with a GAFYD account. I had thought that the
> "is_current_user_admin()" method returns True if the user has admin
> privs for the GA domain.
>
> I guess not - it isn't working for my Google Apps Admin. Upon closer
> review of the Users API documentation, I read that "You can manage
> which users have administrative status using the Administration
> Console.".
>
> Where do I do this?
>
> I have already added the user in question as a developer of the
> application. Is there something I'm missing?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Urlfetch works fine at localhost but errors out after uploading

2008-09-22 Thread Alexander Kojevnikov

> Why a long IO operation is counted as a high CPU operation is beyond
> me, but you can see the heaps of CPU warnings in your logs if you do
> such operations.

There is an issue filed for this, please star it if it's important
for you:
http://code.google.com/p/googleappengine/issues/detail?id=678

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



[google-appengine] Dashboard - Logs - How to clear them? - What is the Date-Time reference?

2008-09-22 Thread djidjadji

I have 2 questions about the Dashboard Logs window.

What is the reference of the Data-Time used in the log messages?
It's not UTC (as used in the Datastore). Is it PST? And how much does
this time differ from UTC?

How do I clear the log messages?
Every time I look at the log window I see a lot of (quota) messages.
After careful looking at the date-time I find there are NO new ones.
Is it possible to purge the log messages you know or that I have
downloaded with appcfg.py?

djidjadji

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



[google-appengine] Re: NeedIndexError, but index is in index.yaml file

2008-09-22 Thread djidjadji

Hi Marzia,

Yes Alexander is correct.

I have read the issue and have exact the same problem.
In my index.yaml file there is also the following entry as the first
index, placed by devappserver.py.
===
- kind: FooA
 ancestor: yes
===
This is because in some cases I want all the FooA objects that have a
certain parent.
But sometimes I just need a selection of them, and what I heard from a
Google IO talk was
"If you can: let the Datastore work for you" that is why I added the
filter() call.
But to work around the bug I have done the work myself and implemented
the filter
with python if-statement. At the moment the parent does not have a lot
of FooA childs but that might not be the case in the future ( and then
I get hit by the CPU quota ;-)

djidjadji

2008/9/22 Marzia Niccolai <[EMAIL PROTECTED]>:
> Hi,
>
> From the description, it seems as though Alexander is correct, and you are
> experiencing the below issue.
>
> However, if you would like to reply directly to me with the App Id, I can
> look in to it and verify if it is this or something else may be happening.
>
> Thanks,
> Marzia
>
> On Sun, Sep 21, 2008 at 5:33 PM, Alexander Kojevnikov
> <[EMAIL PROTECTED]> wrote:
>>
>> Star this issue:
>> http://code.google.com/p/googleappengine/issues/detail?id=423
>>
>> On Sep 22, 1:50 am, djidjadji <[EMAIL PROTECTED]> wrote:
>> > I have a BarB object that is the parent of a couple of FooA objects.
>> > I want to find all the FooA objects that have a certain parent and
>> > that have an "myID < 0"
>> >
>> > barB = BarB.get_by_key_name(keyname)
>> > result = FooA.all().ancestor(barB).filter('myID <', 0)
>> >
>> > When I test it on the devappserver v1.1.3 it works correct, and an
>> > entry in index.yaml is made
>> >
>> > ===
>> > - kind: FooA
>> >   ancestor: yes
>> >   properties:
>> >   - name: myID
>> > ===
>> >
>> > When I upload the new code and try it out I get the following error:
>> >
>> > ===
>> > NeedIndexError: no matching index found.
>> > This query needs this index:
>> > - kind: FooA
>> >   ancestor: yes
>> >   properties:
>> >   - name: myID
>> > ===
>> >
>> > When I look in the Dashboard this index is "Serving". And it tells the
>> > index is Ascending sorted, this is maybe the default.
>> >
>> > What is the cause of this error?
>> >
>> > Djidjadji
>>
>
>
> >
>

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



[google-appengine] memcache: is it distributed or local?

2008-09-22 Thread djidjadji

To speed up the response for most queries I use memchache to store
part of the generated html.
When the objects change that are used for this memcache entry I call
memcache.delete(key) then
I redirect myself to the page that will generate the memcache content
for this key.

What I see is that sometimes the new page contains the modifications,
memcache(key) is updated.
In the other cases I see the old content. Then I wait a while and do a
second reload
and then I see the new content. I don't think it is a browser cache
issue because there are cases
where the updated content is show when I redirect.
If the redirect is serviced by the same host I can assume the memcache
item is deleted.
But if the redirect request is serviced by another host or another
datacenter is the item then also deleted?

The manual and a few post in this group memtion that mecache inc() and
dec() an integer value atomically in the memcache.
This would suggest that ALL instances of my application see the same
memcache items.

My question?

Is there one (1) memcache as observed by the programmer?
Does it take time to distribute the delete (or inc or dec) operation
across the datacenters?
Or is the memcache separate for every host or every datacenter?

All the examples that use mecache that I I have seen use it for
keeping score of a total with a timeout of around 60 min.
Not a problem if it is not the exact number (of people online, of
messages posted today...)
I have a timeout value of around 3600 (60min), large time between mutations.

djidjadji

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



[google-appengine] Re: local log file

2008-09-22 Thread Brian Clapper

On 9/22/08 12:09 PM, Marzia Niccolai wrote:
> Hi Joseph,
> 
> Currently, dev_appserver logs are printed to the terminal.  It only
> prints info level logging, so to view logs in development, you will need
> to log at this level.

Am I missing something? I believe I've used the -d (--debug) parameter to
dev_appserver to get debug-level logs printed on the terminal.

Or are we talking about two different things?


Brian Clapper, http://www.clapper.org/bmc/

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



[google-appengine] Re: local log file

2008-09-22 Thread Marzia Niccolai
Hi,

Ahhh yes, I've just gotten in the habit of doing everything .info because
that is the level by default.

-Marzia

On Mon, Sep 22, 2008 at 5:36 PM, Brian Clapper <[EMAIL PROTECTED]>wrote:

>
> On 9/22/08 12:09 PM, Marzia Niccolai wrote:
> > Hi Joseph,
> >
> > Currently, dev_appserver logs are printed to the terminal.  It only
> > prints info level logging, so to view logs in development, you will need
> > to log at this level.
>
> Am I missing something? I believe I've used the -d (--debug) parameter to
> dev_appserver to get debug-level logs printed on the terminal.
>
> Or are we talking about two different things?
>
>
> Brian Clapper, http://www.clapper.org/bmc/
>
> >
>

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



[google-appengine] Re: Admin Users

2008-09-22 Thread Marzia Niccolai
Hi,

After adding a new Admin, you need to re-upload the application for the
'is_current_user_admin' bit to be flipped to true for the new developer.

-Marzia

On Mon, Sep 22, 2008 at 3:57 PM, Alexander Kojevnikov <
[EMAIL PROTECTED]> wrote:

>
> It's under Administration / Developers. You need to add a new
> developer (AKA admin) and then click on the link in the confirmation e-
> mail
>
> --
> http://www.muspy.com
>
> On Sep 23, 6:58 am, Sam G <[EMAIL PROTECTED]> wrote:
> > GAE Group,
> >
> > Quick question... I've got a Google App Engine app setup for
> > authentication with a GAFYD account. I had thought that the
> > "is_current_user_admin()" method returns True if the user has admin
> > privs for the GA domain.
> >
> > I guess not - it isn't working for my Google Apps Admin. Upon closer
> > review of the Users API documentation, I read that "You can manage
> > which users have administrative status using the Administration
> > Console.".
> >
> > Where do I do this?
> >
> > I have already added the user in question as a developer of the
> > application. Is there something I'm missing?
> >
>

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



[google-appengine] Re: Dashboard - Logs - How to clear them? - What is the Date-Time reference?

2008-09-22 Thread Marzia Niccolai
Hi,

To answer the first question, the logs are currently displayed in PST, which
is currently -7:00 from GMT.

As for the second question, currently there is no way to clear log
messages.  However, if you upload a new version of your application, that
version's logs will be stored on new page with messages relating only to
that version.

-Marzia

On Mon, Sep 22, 2008 at 4:18 PM, djidjadji <[EMAIL PROTECTED]> wrote:

>
> I have 2 questions about the Dashboard Logs window.
>
> What is the reference of the Data-Time used in the log messages?
> It's not UTC (as used in the Datastore). Is it PST? And how much does
> this time differ from UTC?
>
> How do I clear the log messages?
> Every time I look at the log window I see a lot of (quota) messages.
> After careful looking at the date-time I find there are NO new ones.
> Is it possible to purge the log messages you know or that I have
> downloaded with appcfg.py?
>
> djidjadji
>
> >
>

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



[google-appengine] Re: Problem Setting Date property to None

2008-09-22 Thread @@
hi
this maybe the same problem as
http://code.google.com/p/googleappengine/issues/detail?id=599
On Tue, Sep 23, 2008 at 5:29 AM, jtbrne <[EMAIL PROTECTED]> wrote:
>
> There has to be a better way, but I can't figure it out and this isn't
> very important to my problem.  The problem seems to be that the django
> form won't actually set a dbmodel DateProperty to None.  There does
> not appear to be an issue with the StringProperty.
>
> entity = data.save(commit=False)
>
> for property in dbmodel.properties():
> if self.request.POST[property]=="":
>  setattr(dbmodel, property, None)
>
> entity.put()
>
> On Aug 19, 9:01 am, Arun Shanker Prasad <[EMAIL PROTECTED]>
> wrote:
>> Hi,
>>
>> I have a fewdatefields, until recently I just used a text field to
>> get the value and store it in the GAE datastore, it maps thedatein
>> into y-m-d format. I needed to change the format and put a validation
>> to check the user input, following are the changes I made to the form,
>> startDate = forms.DateField(input_formats=['%d/%m/%Y'],
>> widget=forms.TextInput(attrs={'class':'inp100','maxlength':'10'}),
>> required=False)
>>
>> The validation part is working correctly. But when i try to remove
thedatevalue from the form and try to update, the old values are still
>> retained, they are not made into None ornull.
>> NOTE: Updating thedatewith another validdateseems to work. I have
>> also changed the initial value to get thedate.strftime(format).
>>
>> Any help will be appreciated, as I am new to Python and Django.
>>
>> I am using Django 0.96
> >
>

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



[google-appengine] Re: How to create SOAP server in GAE

2008-09-22 Thread Greg

You are right that appengine does the webserving for you. To provide a
SOAP service, you simply need to...

- Decode the XML contained in the request
- Do something with it
- Encode the response in XML.

I'll leave it to you to google for python XML modules.

Cheers!
Greg.

On Sep 23, 5:00 am, "Hasanat Kazmi" <[EMAIL PROTECTED]> wrote:
> Hello folks,
> I am facing a problem. I want to create SOAP web services using GAE. I want
> to create server (so that others can utilize it) not client (I dont want to
> utilize other SOAPes)
> The problem is I have looked into few solutions on the internet specially
> SOAPpy but when the create a SOAP server, they also create Web server to
> handle it, secondly it is highly feasible that it won't work on GAE.
> Anyone having an idea how to do it
>
> Regards
>
> --
> [EMAIL PROTECTED]
> +923464362473
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: NeedIndexError, but index is in index.yaml file

2008-09-22 Thread Alexander Kojevnikov

Marzia,

Can we expect this to be fixed any time soon? This bug is very
annoying. As mentioned by djidjadji, workarounds can be very resource-
intensive. Usage of indices (vs manual filtering) is encouraged in the
docs, but this bug makes it impossible with a very obscure error
message.

Thanks!
Alex

--
http://www.muspy.com

On Sep 23, 4:08 am, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> From the description, it seems as though Alexander is correct, and you are
> experiencing the below issue.
>
> However, if you would like to reply directly to me with the App Id, I can
> look in to it and verify if it is this or something else may be happening.
>
> Thanks,
> Marzia
>
> On Sun, Sep 21, 2008 at 5:33 PM, Alexander Kojevnikov <
>
> [EMAIL PROTECTED]> wrote:
>
> > Star this issue:
> >http://code.google.com/p/googleappengine/issues/detail?id=423
>
> > On Sep 22, 1:50 am, djidjadji <[EMAIL PROTECTED]> wrote:
> > > I have a BarB object that is the parent of a couple of FooA objects.
> > > I want to find all the FooA objects that have a certain parent and
> > > that have an "myID < 0"
>
> > > barB = BarB.get_by_key_name(keyname)
> > > result = FooA.all().ancestor(barB).filter('myID <', 0)
>
> > > When I test it on the devappserver v1.1.3 it works correct, and an
> > > entry in index.yaml is made
>
> > > ===
> > > - kind: FooA
> > >   ancestor: yes
> > >   properties:
> > >   - name: myID
> > > ===
>
> > > When I upload the new code and try it out I get the following error:
>
> > > ===
> > > NeedIndexError: no matching index found.
> > > This query needs this index:
> > > - kind: FooA
> > >   ancestor: yes
> > >   properties:
> > >   - name: myID
> > > ===
>
> > > When I look in the Dashboard this index is "Serving". And it tells the
> > > index is Ascending sorted, this is maybe the default.
>
> > > What is the cause of this error?
>
> > > Djidjadji
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] I cannot receive gae verify code.

2008-09-22 Thread 叮叮当当

Hi,

   I am an chinese, i have try to use China Mobile phone to receive my
verify code and China Unicom 133 to receive verify code ,

but after wait for several days, i still did not receive any verify
code.

   i have google this problem, it is the fault of China Mobile & China
Unicom, they drop these messages, so Almost every China user

cannot get a gae account.


   My mobile : +8613776691096


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



[google-appengine] Comment system - preview, edit?

2008-09-22 Thread David Underhill

The system for commenting on an application would be a bit better if
one could preview the post, and perhaps edit it if needed.  Also, it
is easy to miss the stars portion of the comment and rate the
application "0 stars" on accident.

Just some thoughts!

~ David

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



[google-appengine] Having trouble uploading application.

2008-09-22 Thread [EMAIL PROTECTED]

I'm sorry, this is going to sound very beginner-ish (because I am one
obviously). I've made my application and I'm trying to upload it but I
keep running into problems. I'm using Ubuntu, and I go into the
terminal and type  /home/*username*/Documents/google_appengine/
appcfg.py update  and get the
output bash: syntax error near unexpected token `newline'. Am I doing
something totally obvious wrong?

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



[google-appengine] Re: Dashboard - Logs - How to clear them? - What is the Date-Time reference?

2008-09-22 Thread Alexander Kojevnikov

> currently there is no way to clear log messages

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



[google-appengine] Re: User Authentication

2008-09-22 Thread My3

Sam,

Yes i am currently using it. But i want to host an application
elsewhere which has to be used only by these Google Apps users.

So for that can i use Google App engine to forward the authentication.
Or else can i use any other authentication.

My3

On Sep 22, 3:57 pm, Sam G <[EMAIL PROTECTED]> wrote:
> My3,
>
> Yes, you can integrate with your existing (and future) Google Apps
> user accounts.
>
> When setting up an application (go to appengine.google.com, sign in,
> select "Create an Application"), click on the link at the bottom of
> the page labeled "Edit", under "Open to all Google Accounts users
> (default)". Select the radio button for "Restricted to the following
> Google Apps domain:", and enter your domain name in the box.
>
> Push save, and it will now use your existing user accounts and
> passwords.
>
> Sam
>
> On Sep 22, 7:59 am, My3 <[EMAIL PROTECTED]> wrote:
>
> > Can we use the Google Apps users to login to our own web application.
>
> > I have Google Apps account for my domain.
> > I want my domain users to access my web application. Can i do it.
>
> > Else
> > Can i forward them to my web application after authenticating then in
> > Google 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: How to solve this problem(just like" in" in sql)

2008-09-22 Thread bo . wang
thank you very much!

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



[google-appengine] Re: High Amount CPU Quota should be removed

2008-09-22 Thread Ethan Post
Agree 100%. All I am doing is posting 10-20K every now and then, say every
15 minutes and I get warnings with every post, only 1 or 2 puts. I have
tested my app for a few days and all my daily quotas stay at near 0%.

On Sun, Sep 21, 2008 at 6:27 AM, mitnickcbc <[EMAIL PROTECTED]> wrote:

>
> I have filed a feature request for this issue, if you feel so please
> star it.
>
> http://code.google.com/p/googleappengine/issues/detail?id=720
>
> Here is the description:
>
> Well, I don't get the purpose for having a High Amount CPU Quota since
> there is already a general CPU Quota. And there are quite a lot of
> problems caused by this quota which restrict my application from
> affording more load. And my application is far away from a 5 million
> month PV app.
> 1. Requests can become a high amount CPU one very easily. A little
> complex request will consume more than 3K mcycles. And what do I mean
> a little
> complex? If you do more than 2 put, or you do a url fetch, or you do a
> query based on an order to select more than 50 model, or you do a put
> on a
> model more than 20 fields, it is that complex. In my case, 80% of the
> requests are that complex and I don't think it can be optimized
> anymore
> since I do need to do put and url fetch.
> 2. Bad visibility to this quota. There is no way we can know when we
> will run out of quota for this. All we got is the warning in admin
> console that
> says our requests are using high amount CPU quota and will soon run
> out of it.
> 3. Doesn't back to normal quickly. I'm using a script to continue
> fetching my data from production and do some offline process.
> Unfortunately I fetch
> too much in one call that I try to get 100 models at a time and which
> makes the request a high CPU one. Soon, I meet quota deny. Then I stop
> my script,
> but after 1.5 hours, I still see quota deny for requests from my
> users. The "Many of the requests to your application are taking a very
> long time.
> Please optimize these requests." warning keeps there even I have
> stopped the script for so long time.
>
> >
>

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



[google-appengine] Re: High Amount CPU Quota should be removed

2008-09-22 Thread gg



On Sep 21, 10:29 am, रवींदर ठाकुर (ravinder thakur)
<[EMAIL PROTECTED]> wrote:
> I think this is the biggest roadblock that will be preventing anyone
> to develop and deploy any real world apps based on appengine.The
> calculation of these warning limits is so unpredictable so how can one
> be supposed to optimize the queries for these limits ?

Agreed. The problem at Google is very simple and has two components.
First, the engineers run the show and there is no rational voice at
Google to point out to them when they do something that does not meet
a real world demand (they make something stupid). And the second
component is they still have a lot of money to blow so they can get
away making things that do not meet market demand (writing stuff that
does not work and is stupid).

These two problems are endemic at Google. And the only thing to cure
it is some red ink on the books.

An example of the problem as lined out above that comes to mind is
Google's Carrier Calculated Shipping API in Google Checkout which was
released exactly one year ago. Carrier Calculated Shipping as
described here:

http://googlecheckoutapi.blogspot.com/2007/09/carrier-calculated-shipping-is-here.html

" is to provide buyers with shipping rates for the major shipping
carriers." This allows merchants to provide shipping rates to buyers
when they provide information about the shipments for Google Checkout
Transactions.

It does provide rates. Rates that are 30% or more off the actual real
rates from UPS, FedEx or USPS.

It seems that the Google Engineers have designed an Algorithm to
compute the rates instead of using the published web services from the
carriers which give accurate results. I am sure the Algorithm required
many hours of time from the best of Google Engineers. And I am sure
the engineers are sure they have coded the best shipping cost
predictive algorithm known to man, with only a +/- 30% margin of
error!

Don't question the fact that a merchant may lose $ on every
transaction with low shipping costs or scare away customers with
overly high shipping cost. The Google Engineers are smarter than you!
They have designed the best Algorithm in the world to compute shipping
costs. +/- 30% is acceptable to them and no one in the world could do
better.

It is the same with Google App Engine. The Google engineers have
designed the ultimate computing platform. Who are we to question the
fact that it can not repeatedly return a reasonably sized result set
without displaying an "Over Quote" error page. You just do not know
how to use it!

There is a demand for free/low cost reliable scalable cloud computing
services. Even those that run only python web frameworks.

There is not a demand for a cloud computing service that can not
repeatedly return a reasonably sized result set without undo amounts
of caching or other machinations to get it to happen. Nor is there a
demand for a checkout system that returns wildly inaccurate shipping
quotes!

I am sure the Engineers will all be very puzzled when they try to
charge for Google App Engine and no one is willing to pay. Just
remember that they are smarter than you and their solution is the
best. Even if you would never pay for it.

For more info on the Joke that is Carrier Calculated Shipping checkot
the Google Checkout forum:

http://groups.google.com/group/google-checkout-api-troubleshooting/search?group=google-checkout-api-troubleshooting&q=carrier+calculated+shipping&qt_g=Search+this+category
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---