[google-appengine] Re: Error for datastore_v3.RunQuery()

2009-07-07 Thread 'Αλκης Ευλογημένος
Do you retry requests that timed out? If not can you wrap them in a retry
loop and see if that fixes it?
On Tue, Jul 7, 2009 at 12:12 AM, Federico Builes
wrote:

>
> I'm seeing a lot of "Error: An error occurred for the API request
> datastore_v3.RunQuery()" in my application (around 1.5%, app_id is
> garota-social). Any ideas of what might be going on?
>
> A full trace can be found in: http://gist.github.com/141726
>
> --
> Federico
>
>
> >
>


-- 

Alkis

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



[google-appengine] Re: HIPAA requirements vs. AppEngine security guidelines

2009-07-07 Thread Andrew Badera

There's a whitepaper by Amazon on the topic. Google it, it's been a
few months since I looked at it, don't have a link offhand, sorry.

Thanks-
- Andy Badera
- and...@badera.us
- Google me: http://www.google.com/search?q=andrew+badera
- This email is: [ ] bloggable [x] ask first [ ] private



On Mon, Jul 6, 2009 at 5:17 PM, GenghisOne wrote:
>
> Does anyone know if Amazon's EC2 platform is HIPAA-compliant?
>
> On Jul 6, 12:44 pm, richard emberson 
> wrote:
>> Not going to happen. The IT requirements for Google would
>> cost far more than the couple of applications that might
>> need HIPAA. They would have to have a completely
>> separate group with their own machines, passwords,
>> procedures, etc. with a real wall (both material wall
>> and software/hardware wall) between the group and the rest of
>> Google or all of Google would have to be HIPAA
>> compliant. So, how much is it worth for Google? Not much.
>>
>> RME
>>
>>
>>
>> Ken wrote:
>> > Hi,
>>
>> > I'm researching the feasibility of running a healthcare app on the
>> > AppEngine cloud.  I've read through the AE terms of service and they
>> > don't say much about the actual security guidelines other than
>> > deferring to the boilerplate Google security policy.  I have no doubt
>> > there are internal documents detailing the exact security guarantees
>> > provided by Google's infrastructure, but that information is not
>> > readily available to the public.
>>
>> > It's been a full year since the last time HIPAA was discussed in this
>> > group.  Now that SSL support has been enabled, data transfer
>> > constraints can be met with ease.  So, what's the story today with GAE
>> > and HIPAA compliance?  Are the App Engine's data storage and transfer
>> > mechanisms compatible with the guidelines set out by HIPAA?
>>
>> > Google Apps documentation has quite a bit more security information,
>> > such as specifying annual SAS 70 Type II audits.  I'm not familiar
>> > with this particular security audit, but some quick research seems to
>> > indicate that SAS 70 audit controls are mostly a superset of HIPAA
>> > guidelines.  However, there are some aspects of HIPAA compliance that
>> > seem to be difficult to implement in a distributed database system, so
>> > any reassurances from the Google App Engine folks in this regard would
>> > be most appreciated.
>>
>> > Thanks!
>>
>> > Ken
>>
>> --
>> Quis custodiet ipsos custodes
> >
>

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



[google-appengine] Re: Strange production only problem

2009-07-07 Thread Nick Johnson (Google)

Hi techboy,

App Engine uses a custom Python environment, and as such, things like
the search path may differ. For example, if you execute "sys.path" on
shell.appspot.com, you get:

['/base/python_dist/lib/python25.zip',
'/base/python_lib/versions/third_party/django-0.96',
'/base/python_dist/lib/python2.5/',
'/base/python_dist/lib/python2.5/plat-linux2',
'/base/python_dist/lib/python2.5/lib-tk',
'/base/python_dist/lib/python2.5/lib-dynload',
'/base/python_lib/versions/1',
'/base/data/home/apps/shell/1.334417654335420704/']

Note that the app's directory is last in the path, rather than first.

-Nick Johnson

On Tue, Jul 7, 2009 at 4:28 AM, techboy wrote:
>
> Thanks Nick for your reply. Is the python module search path different
> in production, than a standard client install? Because on my local
> machine, the current directory is first in the search path, and
> "import profile" from within the SDK loads profile.py from my project.
>
> Thanks again.
>
> On Jul 6, 2:06 am, "Nick Johnson (Google)" 
> wrote:
>> Hitechboy,
>>
>> It's not a sandboxing issue - it's all down to the Python search path.
>> System directories are listed before your own source directories, so
>> it searches them first. You can change it by modifying sys.path if you
>> wish.
>>
>> -Nick Johnson
>>
>>
>>
>>
>>
>> On Mon, Jul 6, 2009 at 5:12 AM,techboy wrote:
>>
>> > The problem appears to be that the file in my project is named
>> > profile.py. There is also a profile.py in the python distribution
>> > itself.
>>
>> > I'm assuming that it is a sandboxing restriction(?), that I can't
>> > import my own profile.py in production (even though it works fine in
>> > the dev appserver).
>>
>> > In production,
>>
>> > import profile
>> > print profile.__file__
>>
>> > Shows it is the profile from the python library.
>>
>> > On Jul 5, 12:29 pm,techboy wrote:
>> >> I have a webapp.RequestHandler derived class called Profile, in a file
>> >> profile.py. It operates correctly locally. When I deploy to
>> >> production, it fails. If I simply rename the class to a different
>> >> name, it works in production.
>>
>> >>  The logs show this for the failure case.
>>
>> >> : Profile instance has no attribute
>> >> 'initialize'
>> >> Traceback (most recent call last):
>> >>   <...snip...>
>> >>   File "/base/python_lib/versions/1/google/appengine/ext/webapp/
>> >> util.py", line 76, in run_wsgi_app
>> >>     result = application(env, _start_response)
>> >>   File "/base/python_lib/versions/1/google/appengine/ext/webapp/
>> >> __init__.py", line 491, in __call__
>> >>     handler.initialize(request, response)
>>
>> >> I can work around this problem obviously but I wonder if anyone could
>> >> speculate why is happening.
>>
>> --
>> Nick Johnson, App Engine Developer Programs Engineer
>> Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
>> Number: 368047
> >
>



-- 
Nick Johnson, App Engine Developer Programs Engineer
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
Number: 368047

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



[google-appengine] Re: Authenticate user in AppEngine from iGoogle gadget

2009-07-07 Thread Rohannes

Yes you are right. I will use the opensocial API and a signed
makeRequest to send the user id to AppEngine -- that's what I wanted
really. Then I can identify those records with the user id.

Would this user id be the same as the id in the Google Accounts API?
That we be awesome. Then users could also log in directly to
AppEngine.

I found a good wiki here

http://wiki.opensocial.org/index.php?title=Building_an_OpenSocial_App_with_Google_App_Engine

Thanks!

On Jul 6, 10:21 pm, "Jeff S (Google)"  wrote:
> Hi Rohannes,
>
> If the user is just signed in to Google (mail, docs, etc.) they will not be
> signed in to the App Engine app, so the users API will report no current
> user. The user needs to sign in for each App Engine app individually and a
> cookie is set client side which is sent in each request.
>
> How do you plan to use this information in your gadget? If you just need to
> uniquly identify users, would the gadget's profile API be sufficient?
>
> Thank you,
>
> Jeff
>
> On Fri, Jul 3, 2009 at 1:53 AM, Rohannes  wrote:
>
> > I'm starting to consider using a direct Javascript client-side AJAX
> > query to AppEngine rather than use Google's indirect server-side
> > cached query. Maybe then AppEngine will realise that the user is
> > logged into a Google session (since the same browser will be
> > contacting AppEngine). Is this a viable option?
>
> > I imagine there is authentication data being sent with the HTTP
> > requests which will be included if the request comes directly from the
> > client's browser but not if the request comes indirectly from
> > igmodules.
>
> > For example, even though I am logged into my Google account, and the
> > AppEngine app greets me appropriately, requests sent from the gadget
> > do not appear to come from a logged-in user. Perhaps sending these
> > requests directly from the user's browser will fix the problem.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] unable to add new .com domain to GAE

2009-07-07 Thread Robert S

For the past few days when I attempt to link my domain name at:

https://www.google.com:443/a/cpanel/XX.com/AddAppEngineService

i get the following error

"An error occurred while trying to install this application. Please
try again later."

very vague, but it's been happening since Sunday (when I 1st tried it
- might have been happening longer though).

anyone else run into this issue?

thanks!

r.S.


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



[google-appengine] Re: unable to add new .com domain to GAE

2009-07-07 Thread Pashka R.

Hi Robert.

Goto https://www.google.com/a/cpanel/XX.com/DomainSettings and
change control panel version to current (the very last option) and try
to relink your app. Should work.

//wbr Pashka R. 



On Tue, Jul 7, 2009 at 14:38, Robert S wrote:
>
> For the past few days when I attempt to link my domain name at:
>
> https://www.google.com:443/a/cpanel/XX.com/AddAppEngineService
>
> i get the following error
>
> "An error occurred while trying to install this application. Please
> try again later."
>
> very vague, but it's been happening since Sunday (when I 1st tried it
> - might have been happening longer though).
>
> anyone else run into this issue?
>
> thanks!
>
> r.S.
>
>
> >
>

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



[google-appengine] Indexing Woes

2009-07-07 Thread Scott

app: skrit

I've been trying to delete some indexes over the last couple days but
I accidentally added a few of them back when I updated, so now they
are in an Error state. They will not leave that error state; I can't
get them back to deleting.

Whenever I do something involving indexes, I tend to hit that
"Workflow Backend Index Task Count" quota, and errors are not
infrequent. Could the quota be raised, or is there a better way to go
about doing indexing, like deleting or adding one index at a time? I
think some of the problem might be when an index gets auto put into my
index.yaml file that I had deleted manually, and then the errors crop
up. Is there anything else that might help?

Recently I got a warning of another overquota message saying I was
trying to exceed the number of indexes limit. I've only got about a
couple dozen indexes, and I've heard sometimes appengine thinks you
have more indexes than you do. Could you reset my index count?

And finally, a feature request: would be great to get some kind of
progress percentage, or place in queue number. It's just, progress
bars are clearly better than 'spinning things' and their ilk, as shown
here:

http://www.videosift.com/video/Progrss-bars-why-we-need-them-in-everyday-life
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: bugs in index?

2009-07-07 Thread Nick Johnson (Google)

Hi buger,

Sorry for the long delay. Your indexes should now be fixed.

-Nick Johnson

On Thu, Jul 2, 2009 at 4:11 PM, buger wrote:
>
> Ooh, looks like it is my karma of beta-tester. Nick, is it serious
> bug? Maybe I it's not original question, but how it's going, do you
> have progress?)
>
> On 29 июн, 20:40, "Nick Johnson (Google)" 
> wrote:
>> Hi buger,
>>
>> I'm looking into it at the moment.
>>
>> -Nick Johnson
>>
>>
>>
>> On Mon, Jun 29, 2009 at 5:38 PM, buger wrote:
>>
>> > Is my problem investigating? Because it is a critical bug...
>>
>> > On Jun 27, 1:25 pm, buger  wrote:
>> >> "and this 2 queries return one result!" i mean queries in first
>> >> message
>>
>> >> On Jun 27, 1:19 pm, buger  wrote:
>>
>> >> > Oohh, it's more interesting problem than i though. I rebuild my
>> >> > indexes, and this 2 queries return one result!
>> >> > Let's look:
>>
>> >> > SELECT * FROM Video WHERE artist = Key
>> >> > ('ag9tdXNpY3ZpZGVvYnVnZXJyFwsSBkFydGlzdCILYXNpZ3VyIHLDs3MM')
>>
>> >> > This query returns 5 objects, and 4 of them have status value is equal
>> >> > to "2"
>>
>> >> > SELECT * FROM Video WHERE artist = Key
>> >> > ('ag9tdXNpY3ZpZGVvYnVnZXJyFwsSBkFydGlzdCILYXNpZ3VyIHLDs3MM') AND
>> >> > status = 2
>> >> > This query return only 1 object. Ooops, what is it? :)
>>
>> >> > my appid is "musicvideobuger"
>>
>> >> > On Jun 26, 2:26 pm, "Nick Johnson (Google)" 
>> >> > wrote:
>>
>> >> > > Hi buger,
>>
>> >> > > Is this in production, or on the dev_appserver? In production, your
>> >> > > app does not appear to have the necessary indexes to execute the
>> >> > > second query.
>>
>> >> > > -Nick Johnson
>>
>> >> > > On Thu, Jun 25, 2009 at 11:38 PM, buger wrote:
>>
>> >> > > > SELECT * FROM Video WHERE artist = Key
>> >> > > > ('ag9tdXNpY3ZpZGVvYnVnZXJyFwsSBkFydGlzdCILYXNpZ3VyIHLDs3MM') AND
>> >> > > > status = 2
>> >> > > > This query gives me 4 results
>>
>> >> > > > But this gives only 1 result!, i'm just added order
>> >> > > > SELECT * FROM Video WHERE artist = Key
>> >> > > > ('ag9tdXNpY3ZpZGVvYnVnZXJyFwsSBkFydGlzdCILYXNpZ3VyIHLDs3MM') AND
>> >> > > > status = 2 ORDER BY created_at desc
>>
>> >> > > > created_at is DateTime property, and all this objects have it
>>
>> >> > > --
>> >> > > Nick Johnson, App Engine Developer Programs Engineer
>> >> > > Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
>> >> > > Number: 368047
>>
>> --
>> Nick Johnson, App Engine Developer Programs Engineer
>> Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
>> Number: 368047
> >
>



-- 
Nick Johnson, App Engine Developer Programs Engineer
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
Number: 368047

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



[google-appengine] Are requests billable?

2009-07-07 Thread Rodion

Hello,

The amount of requests to the application is limited and divided into
free and billable quotas. But there is no information how much
additional request quotas costs. Where can be found the prices to the
request quotas?

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



[google-appengine] Re: Are requests billable?

2009-07-07 Thread Nick Johnson (Google)

Hi Rodion,

Requests aren't directly billed for - only by the resources they use.
The only billed resources are CPU time, outgoing/incoming bandwidth,
stored data, and emails sent.

-Nick Johnson

On Tue, Jul 7, 2009 at 2:29 PM, Rodion wrote:
>
> Hello,
>
> The amount of requests to the application is limited and divided into
> free and billable quotas. But there is no information how much
> additional request quotas costs. Where can be found the prices to the
> request quotas?
>
> Thanx!
> >
>



-- 
Nick Johnson, App Engine Developer Programs Engineer
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
Number: 368047

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



[google-appengine] CPU Billing

2009-07-07 Thread Rodion

Hello,

how do you calculate the CPU costs? For example, if  I want my
application run 24x7, how much do I have to pay? How can I compute the
CPU time in this case?

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



[google-appengine] Re: CPU Billing

2009-07-07 Thread Nick Johnson (Google)

Hi Rodion,

Requests are charged based on actual CPU time required to serve a
request. Since a request can involve more than one computer
simultaneously (for example, when executing datastore queries), this
can come out to be more than the actual number of wall-clock seconds
spent executing that request, but it depends highly on your
application.

App Engine apps are request-based, so talking about it being running
24x7 isn't a meaningful measurement. Your app is always ready to serve
requests, but it won't consume quotas unless it actually does.

-Nick Johnson

On Tue, Jul 7, 2009 at 2:31 PM, Rodion wrote:
>
> Hello,
>
> how do you calculate the CPU costs? For example, if  I want my
> application run 24x7, how much do I have to pay? How can I compute the
> CPU time in this case?
>
> Thanx
> >
>



-- 
Nick Johnson, App Engine Developer Programs Engineer
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
Number: 368047

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



[google-appengine] Re: Indexing Woes

2009-07-07 Thread Nick Johnson (Google)

Hi Scott,

On Tue, Jul 7, 2009 at 1:06 PM, Scott wrote:
>
> app: skrit
>
> I've been trying to delete some indexes over the last couple days but
> I accidentally added a few of them back when I updated, so now they
> are in an Error state. They will not leave that error state; I can't
> get them back to deleting.
>
> Whenever I do something involving indexes, I tend to hit that
> "Workflow Backend Index Task Count" quota, and errors are not
> infrequent. Could the quota be raised, or is there a better way to go
> about doing indexing, like deleting or adding one index at a time?

Sorry you've been having trouble. We're working on a more permanent
solution to the index building issues; in the meantime, I've reset
your quota and error indexes.

> I
> think some of the problem might be when an index gets auto put into my
> index.yaml file that I had deleted manually, and then the errors crop
> up. Is there anything else that might help?

You could remove the 'AUTOGENERATED' section of index.yaml, so new
indexes don't sneak in without you knowing.

>
> Recently I got a warning of another overquota message saying I was
> trying to exceed the number of indexes limit. I've only got about a
> couple dozen indexes, and I've heard sometimes appengine thinks you
> have more indexes than you do. Could you reset my index count?

Done.

>
> And finally, a feature request: would be great to get some kind of
> progress percentage, or place in queue number. It's just, progress
> bars are clearly better than 'spinning things' and their ilk, as shown
> here:
>
> http://www.videosift.com/video/Progrss-bars-why-we-need-them-in-everyday-life

We're working on that - but do file a bug in the external issue
tracker, if there isn't one already.

-Nick Johnson

> >
>



-- 
Nick Johnson, App Engine Developer Programs Engineer
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
Number: 368047

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



[google-appengine] RAM Question

2009-07-07 Thread Rodion

Hello,

is it possible to get information about how much RAM will be available
for the installed application? What are the min and max limits?

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



[google-appengine] Re: DatastoreNeedIndexException: no matching index found.

2009-07-07 Thread Nick Johnson (Google)

Hi GArchitect,

The index you list isn't suitable for that query - the index includes
the 'id' field at the start, but you don't appear to be filtering or
sorting on it.

-Nick Johnson

On Mon, Jul 6, 2009 at 4:28 AM, GArchitect wrote:
>
> Hi, I got the following exception in a method executing a query:
>
> C 07-05 07:23PM 42.069
> Uncaught exception from servlet
> com.google.appengine.api.datastore.DatastoreNeedIndexException: no
> matching index found.
>        at
> com.google.appengine.api.datastore.DatastoreApiHelper.translateError
> (DatastoreApiHelper.java:34)
>        at com.google.appengine.api.datastore.DatastoreApiHelper.makeSyncCall
> (DatastoreApiHelper.java:55)
>        at com.google.appengine.api.datastore.DatastoreServiceImpl
> $PreparedQueryImpl.runQuery(DatastoreServiceImpl.java:310)
>        at com.google.appengine.api.datastore.DatastoreServiceImpl
> $PreparedQueryImpl.access$100(DatastoreServiceImpl.java:240)
>        at com.google.appengine.api.datastore.DatastoreServiceImpl
> $PreparedQueryImpl$1.iterator(DatastoreServiceImpl.java:269)
>        at
> org.datanucleus.store.appengine.query.RuntimeExceptionWrappingIterable.iterator
> (RuntimeExceptionWrappingIterable.java:42)
>        at org.datanucleus.store.appengine.query.StreamingQueryResult.
> (StreamingQueryResult.java:72)
>        at
> org.datanucleus.store.appengine.query.DatastoreQuery.fulfillEntityQuery
> (DatastoreQuery.java:253)
>        at org.datanucleus.store.appengine.query.DatastoreQuery.performExecute
> (DatastoreQuery.java:220)
>        at org.datanucleus.store.appengine.query.JDOQLQuery.performExecute
> (JDOQLQuery.java:85)
>        at org.datanucleus.store.appengine.query.JDOQLQuery.performExecute
> (JDOQLQuery.java:31)
>        at org.datanucleus.store.query.Query.executeQuery(Query.java:1466)
>        at org.datanucleus.store.query.Query.executeWithArray(Query.java:
> 1340)
>        at org.datanucleus.jdo.JDOQuery.execute(JDOQuery.java:240)
>        at
> com.solveware.gwt.sample.stockwatcher.server.HistoricalQuote.getAllQuotesOnSymbol
> (HistoricalQuote.java:130)
> ...
>
> However, according to the admin console, the required index is up and
> running
>
> HistoricalQuote
> id ▲ , symbol ▲ , date ▲  Serving
>
> And the code for executing the query:
>
>          public static List getAllQuotesOnSymbol(String
> symbol) {
>                    PersistenceManager pm = PMF.get().getPersistenceManager();
>                    Query query = pm.newQuery(HistoricalQuote.class);
>                    query.setFilter("symbol == userSubmittedSymbol");
>                    query.setOrdering("date ASC");
>                    query.declareParameters("String userSubmittedSymbol");
>                    List entries = (List)
> query.execute(symbol);
>                    return entries;
>          }
>
> So I wonder if anyone can shed some light on why this is happening?
> Is it a problem on the GAE side that is waiting to be fixed?
>
> Any help is appreciated.  Thanks.
>
> Best,
>
> Tommy
>
> >
>



-- 
Nick Johnson, App Engine Developer Programs Engineer
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
Number: 368047

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



[google-appengine] Re: using Hook API to add additional filters to a query

2009-07-07 Thread Nick Johnson (Google)

Hi we,

You need to familiarize yourself with the Protocol Buffer classes used
internally. Reading the source is one option, as is experimenting on
shell.appspot.com. You may find the Protocol Buffer definition handy:
http://www.google.com/codesearch/p?hl=en&sa=N&cd=1&ct=rc#7VUv29z7Sc8/trunk/proto/datastore_v3.proto&q=file:datastore_v3.proto
. Note that the version of Protocol Buffers used by App Engine does
not have the same interface as the Open Source ones.

request.add_filter() is along the right lines, but MergeFromString is
intended for merging from encoded Protocol Buffers, so won't
understand your string. add_filter returns a Filter Protocol Buffer,
on which you need to set the appropriate fields.

-Nick Johnson

On Mon, Jul 6, 2009 at 1:13 PM, we wrote:
>
> Hi.  I am trying to use the hook api in Python to intercept all calls
> to the datastore and run a check to ensure that the user has proper
> authorization to take the action requested - possibly by adding a
> filter or by querying some other tables.  As an example, when
> displaying results, I would like to add some additoinal filters to the
> query while in the hook.  However, I cannot figure out how to add
> these filters.  I am using
> apiproxy_stub_map.apiproxy.GetPreCallHooks.  THe hook provides 4
> parameters - including an object that is a
> google.appengine.datastore.datastore_pb.Query.  How can I add an
> additional filter to the query before it is run?
> I have tried many different things - including:
>
> request.filter("title","test item")
> request.add_filter().MergeFromString("title = test item")
>
> Thank you for your help.
>
> >
>



-- 
Nick Johnson, App Engine Developer Programs Engineer
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
Number: 368047

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



[google-appengine] AppEngine server cannot import atom module

2009-07-07 Thread ZelluX

I have gdata library install on my ArchLinux, and a simple application
which imports atom library at the beginning, when I run gapp engine
and access that web app,

$ python2.5 ./dev_appserver.py ~/myapp

It throws exception 'No module named atom'. But when I run 'import
atom' in Python2.5 interactive mode, it works well. How can I import
atom module in my GAppEngine applications?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: app engine serving wrong static files

2009-07-07 Thread Nick Johnson (Google)

Hi Jay,

This sounds like a caching issue, not an App Engine one. You can
confirm this by going to
http://yourversion.latest.yourappid.appspot.com/static/file/path
(replace as appropriate) and verifying it's serving only new files.
Or, append a dummy query string parameter to the end of the static
file URL (eg, ?foo).

-Nick Johnson

On Mon, Jul 6, 2009 at 2:03 AM, Jay wrote:
>
> I have an app running on the python runtime. As part of its function,
> it serves some static images, jpg files. Starting today, and all of a
> sudden, it is consistently serving the wrong images for some file
> names. The configuration is such that these images are available
> through there own URI. I have confirmed that app engine is serving the
> wrong files by punching in specific URIs, so it is not something in
> the app. This is just straight up static files.
>
> I did change the files a few days ago, without changing the names. It
> worked since then, but not today. It is not every file, just some and
> there seems to be no pattern.
>
> I tried creating a new version of the app and switching to that - no
> luck. The new version works fine when referencing the versioned URL,
> but not when using the site URL.
>
> Any ideas? Has anyone else seen this issue?
>
> >
>



-- 
Nick Johnson, App Engine Developer Programs Engineer
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
Number: 368047

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



[google-appengine] Re: Indexing Woes

2009-07-07 Thread Scott

Oh no! Now it shows all the previously deleting indexes are in a state
of permanent error, with vacuum_indexes being ineffective. Are you
sure those are now deleting?

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



[google-appengine] Re: AppEngine server cannot import atom module

2009-07-07 Thread Nick Johnson (Google)

Hi ZelluX,

Since App Engine doesn't have access to modules installed in your
site_packages, the dev_appserver emulates this by making them
inaccessible. You need to copy any modules you want to be accessible
into your app's directory.

-Nick Johnson

On Tue, Jul 7, 2009 at 3:40 PM, ZelluX wrote:
>
> I have gdata library install on my ArchLinux, and a simple application
> which imports atom library at the beginning, when I run gapp engine
> and access that web app,
>
>    $ python2.5 ./dev_appserver.py ~/myapp
>
> It throws exception 'No module named atom'. But when I run 'import
> atom' in Python2.5 interactive mode, it works well. How can I import
> atom module in my GAppEngine applications?
> >
>



-- 
Nick Johnson, App Engine Developer Programs Engineer
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
Number: 368047

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



[google-appengine] Re: Indexing Woes

2009-07-07 Thread Nick Johnson (Google)

Hi Scott,

Try vacuum_indexes again now.

-Nick Johnson

On Tue, Jul 7, 2009 at 3:54 PM, Scott wrote:
>
> Oh no! Now it shows all the previously deleting indexes are in a state
> of permanent error, with vacuum_indexes being ineffective. Are you
> sure those are now deleting?
>
> -Scott
> >
>



-- 
Nick Johnson, App Engine Developer Programs Engineer
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
Number: 368047

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



[google-appengine] Re: Indexing Woes

2009-07-07 Thread Scott

I tried a few more times. No luck.

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



[google-appengine] upload error: java.net.SocketException: Connection reset

2009-07-07 Thread Roger

Hi all,

Greeting from Roger
I try to deploy App via eclipse plugin several times, but every time I
got the exception as below.
It has nothing to do with my code, right? Could anyone help on this?
thanks in advance.

Unable to upload:
java.net.SocketException: Connection reset
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.net.www.protocol.http.HttpURLConnection.getChainedException
(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at com.google.appengine.tools.admin.ServerConnection.send
(ServerConnection.java:126)
at com.google.appengine.tools.admin.ServerConnection.post
(ServerConnection.java:78)
at com.google.appengine.tools.admin.AppVersionUpload.send
(AppVersionUpload.java:345)
at com.google.appengine.tools.admin.AppVersionUpload.cloneFiles
(AppVersionUpload.java:211)
at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction
(AppVersionUpload.java:173)
at com.google.appengine.tools.admin.AppVersionUpload.doUpload
(AppVersionUpload.java:68)
at com.google.appengine.tools.admin.AppAdminImpl.update
(AppAdminImpl.java:49)
at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy
(AppEngineBridgeImpl.java:271)
at
com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace
(DeployProjectJob.java:148)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run
(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read1(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderFieldKey
(Unknown Source)
at com.google.appengine.tools.util.ClientCookieManager.readCookies
(ClientCookieManager.java:123)
at com.google.appengine.tools.admin.ServerConnection.connect
(ServerConnection.java:331)
at com.google.appengine.tools.admin.ServerConnection.send
(ServerConnection.java:124)
... 10 more

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



[google-appengine] Kind if applet to servlet communication with appengine

2009-07-07 Thread n...@oj

Hi everyone,

I wrote a small application deployed on my server which tends to
generate some files. The action of generation is called in a rpc
method when the user ask for it.

In my service implementation (call it "applet"), I open an url
connection to a remote servlet :

URL url = new URL("http://localhost:8080/requestmanager/download";);
URLConnection con = url.openConnection();
con.setDoInput(true);
con.setDoOutput(true);
con.setUseCaches(false);
con.setDefaultUseCaches(false);
con.setRequestProperty("Content-Type",// "application/x-java-
serialized-object");

Then I'm using an ObjectOutputStream and an ObjectInputStream to
communicate with the servlet. It's a kind of mirror to the "applet". I
get an ObjectInputStream with the request and write the response with
an ObjectOutputStream.

Until here, there is no problem. But since I want to deploy my
applcation with the appengine, it doestn't work at all.
On the servlet side, when I want to get the request this way :
ObjectInputStream ois = new ObjectInputStream(request.getInputStream
()); I caught the exception java.io.StreamCorruptedException: invalid
stream header

Does anybody know why it only happens since (or when) I import
appengine's library in my project ? Is there a way to avoid this
exception ?


As far as I am working on it, I don't understand why it's happening
whereas every object I'm using are in the white list :/

To give some tracks, when I read the Inputstream from
request.getInputStream() byte per byte, the 6 or 7 firsts bytes seems
me strange. For example, if I send a basic string like "abscdef", the
inputstream contain :
63
63
0
5
116
0
26
97 < a
98 < b
99 < c
100 < d

So... i dunno what to do >_<

Thanks in advance, bye.

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



[google-appengine] Google App engine down

2009-07-07 Thread jukl

Check

http://appgallery.appspot.com/

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



[google-appengine] Re: Google App engine down

2009-07-07 Thread Jeff S (Google)

Hi,

The App Gallery has been taken offline for maintenance. App Engine as
a whole is doing just fine at the moment. The out-of-service page
which you are seeing is actually being served by App Engine and is
just a new version of the app which we switched to temporarily since
the old version contained a bug. As noted, the application gallery
will be back soon :-)

Thank you,

Jeff

On Jul 7, 8:46 am, jukl  wrote:
> Check
>
> http://appgallery.appspot.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: need more than 10 apps

2009-07-07 Thread Jeff S (Google)
Hi Roberto,

I've increased your app limit to 20.

Happy coding!

Jeff

On Mon, Jul 6, 2009 at 8:11 PM, coolmenu  wrote:

>
> you can register more google account to deploy more APP..i think.
>
> On Jul 6, 8:32 am, Roberto Saccon  wrote:
> > Dear  Google group admins:
> >
> > I have ten apps, one is going to change its name, so I would be very
> > happy if you could do either:
> >
> > - allow me more than ten apps
> > - manually delete the apps which are not deployed
> > - somehow allow me to rename an app
> >
> > thanks in advance
> >
> > --
> > Roberto
> >
>

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



[google-appengine] Re: CapabilityDisabledError - How to simulate and test locally?

2009-07-07 Thread djidjadji

Could it be possible to use the hooks functionality [1] to throw a
CapabilityDisabledError exception when a Put or Delete call is made?

You can add the hooks only when you are running in the dev environment
debugEnv=os.environ['SERVER_SOFTWARE'].startswith('Dev')
if debugEnv:
   patch_appengine()

[1] http://code.google.com/appengine/articles/hooks.html

2009/7/4 Andy Freeman :
>
> You might want to comment on and star
>
> http://code.google.com/p/googleappengine/issues/detail?id=915 .
>
> On Jul 3, 8:19 am, Charlie  wrote:
>> Indeed.
>>
>> I was thinking it would be great to be able to disable the APIs from
>> the app engine admin console, myself, so I could do testing of the
>> deployed app.
>>
>> On Jul 2, 1:26 pm, mckoss  wrote:
>>
>>
>>
>> > Unfortunately, we're all dealing with the AppEngine outage today with
>> > even the System Status page down!
>>
>> >http://code.google.com/status/appengine
>>
>> > Thank goodness for the Downtime forum - it seems to be the only
>> > official notification about this from Google:
>>
>> >http://groups.google.com/group/google-appengine-downtime-notify/brows...
>>
>> > My question is, I'd like to make my application more robust in the
>> > face of Service outages.  I know about the "CapabilityDisabledError"
>> > exception.  I'd like to test my application in the local environment
>> > and simulate failures of the datastore, memcache, etc.
>>
>> > Is there an easy way to simulate service failures locally?  Anyone
>> > have any techniques for doing this if it's not directly supported in
>> > the SDK?
>>
>> > Thanks!
>> > Mike- Hide quoted text -
>>
>> - Show quoted text -
> >
>

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



[google-appengine] Re: OAuth and text_db and google app engine and reading a google spreadsheet

2009-07-07 Thread Jeff S (Google)
Hello,

I saw that you posted on the gdata python contributor's group and I replied
there:

http://groups.google.com/group/gdata-python-client-library-contributors/browse_thread/thread/19d93048d9914cd6

Thank you,

Jeff

On Sun, Jul 5, 2009 at 5:12 PM, fedex1  wrote:

>
> Hi,
>
> I'm sure I'm missing something.  But I don't see the correct way to
> read a google spreadsheet from google app engine using OAuth.
>
> Is there a simple example?
>
> I can get the documents and spreadsheets names, dates, etc. but I
> would like to access the data.
>
>
> This is an example of reading a spreadsheet via installed app but I
> want to do it from google app engine using OAuth.
>
> Thanks.
>
> import gdata.spreadsheet.text_db
>
> client = gdata.spreadsheet.text_db.DatabaseClient
> (username='x...@gmail.com',password='')
> db = client.GetDatabases(name='My Tracks-street running')
> table=db[0].GetTables()[0]
> rows=table.GetRecords(1,1000)
> for row in rows:
>  print row.content.get('name'),',', row.content.get('date'),',',
> row.content.get('movingtime'),',',  row.content.get('distance'),',',
> row.content.get('distanceunit'),',', row.content.get('map')
>
> for row in rows:
>   print '==='
>   for cell in row.content:
>   print '%s = %s' % (cell, row.content.get(cell), )
> >
>

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



[google-appengine] Re: Deploying to Google is very slow

2009-07-07 Thread Jeff S (Google)
Hi Neil and Koen,

What are your app IDs? There could be quite a few factors that would cause
an update to take longer than you may be used to, I'll investigate to see if
there is anything on our end.

Thank you,

Jeff

On Mon, Jul 6, 2009 at 11:58 AM, Koen Bok  wrote:

>
> Hey Neil,
>
> I'm sort of glad you do. I posted the exact same thing yesterday, but
> nobody replied so I thought is was just us.
>
> Could some friendly Google person maybe shine some light on this? I
> mean, it's doable bu annoying so I'd love to know if it's temporary.
>
> - Koen
>
> On Jul 6, 12:54 pm, Neil  wrote:
> > These days  i found that my application deploying is very slow, it
> > needs 3 - 5 minutes, and 1 minute was ok before.
> > why?
> >
>

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



[google-appengine] Re: Problem launching dev_server via GoogleApp1ngineLauncher Version 1.2.3.422 on OSX

2009-07-07 Thread Jeff S (Google)
Hello,

Unless I'm missing something it looks like the launcher is running just fine
based on the stack trace you provided. The messages about that datastore are
just warnings stating that the dev_appserver couldn't find a temp datastore
file so it is creating a new one.

Thank you,

Jeff

On Thu, Jul 2, 2009 at 1:59 AM, cast42  wrote:

>
> Hi,
> since I've installed version 1.2.3 (1.2.3.422) i can't invoke the
> dev_server anymore. Her's the output i get from the log window:
>
> *** Running dev_appserver with the following flags:
>--admin_console_server= --port=8080 --clear_datastore
> Python command: /usr/local/bin/python2.5/
> /usr/local/bin/python2.5
> /ust/local/bin/python2.5
> /usr/bin/python
>
> I've entered /usr/local/bin/pyton2.5/ in the preferecence window but
> that didn't help.
> When I invoke from the commandline:
>  ln$ python2.5 /usr/local/google_appengine/dev_appserver.py
> deredactie
> INFO 2009-07-02 08:56:51,438 appengine_rpc.py:157] Server:
> appengine.google.com
> INFO 2009-07-02 08:56:51,447 appcfg.py:322] Checking for updates
> to the SDK.
> INFO 2009-07-02 08:56:51,960 appcfg.py:336] The SDK is up to date.
> WARNING  2009-07-02 08:56:51,960 datastore_file_stub.py:404] Could not
> read datastore data from /var/folders/6e/6escUHHXEs4SaAttWB7CkU+++TI/-
> Tmp-/dev_appserver.datastore
> WARNING  2009-07-02 08:56:51,960 datastore_file_stub.py:404] Could not
> read datastore data from /var/folders/6e/6escUHHXEs4SaAttWB7CkU+++TI/-
> Tmp-/dev_appserver.datastore.history
> INFO 2009-07-02 08:56:52,010 dev_appserver_main.py:465] Running
> application m-deredactie on port 8080: http://localhost:8080
>
> it works like expected.
>
> How can I fix that in the launcher ?
>
> Thx
>
> >
>

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



[google-appengine] Re: jruby app doesn't running on GAE

2009-07-07 Thread Jeff S (Google)
Hi tknv/,

The NoClassDefFound error is a result of the class not being present in the
runtime because it would violate the sandbox requirements for App Engine. On
App Engine, you currently cannot make outbound TCP/raw socket connections
(HTTP is fine with certain constraints on port numbers). More information
can be found here:

http://code.google.com/appengine/docs/java/runtime.html#The_Sandbox

Also, since you mentioned JRuby, you might want to get more info on JRuby on
App Engine specifically. Ola Bini has been doing great work on getting JRuby
to work more smoothly in App Engine, and here are a few resouces which I'm
aware of, though some searching will certainly turn up more:

http://code.google.com/events/io/sessions/JrubyAppEngineJava.html
http://www.youtube.com/watch?v=xTC6LVAc6Ps
http://olabini.com/blog/2009/04/jruby-on-rails-on-google-app-engine/

Happy coding,

Jeff

On Thu, Jul 2, 2009 at 3:34 AM, tknv  wrote:

>
> Hi.et.,al.
>
> My app jruby app doesn't running on GAE.
> But could run on my local.
>
> This is logs on GAE.
> Error for /
> java.lang.NoClassDefFoundError: Could not initialize class
>
> com.google.apphosting.runtime.security.shared.stub.java.net.InetSocketAddress
>at org.jruby.ext.socket.RubyTCPSocket.initialize(RubyTCPSocket.java:
> 101)
>at org.jruby.ext.socket.RubyTCPSocket$i_method_0_2$RUBYINVOKER
> $initialize.call(org/jruby/ext/socket/RubyTCPSocket
> $i_method_0_2$RUBYINVOKER$initialize.gen)
>at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodN.call
> (JavaMethod.java:635)
>at org.jruby.runtime.callsite.CachingCallSite.callBlock
> (CachingCallSite.java:44)
>at org.jruby.runtime.callsite.CachingCallSite.call
> (CachingCallSite.java:51)
>at org.jruby.RubyClass.newInstance(RubyClass.java:593)
>at org.jruby.RubyIO.newInstance(RubyIO.java:822)
>at org.jruby.RubyIO$s_method_0_0$RUBYFRAMEDINVOKER$newInstance.call
> (org/jruby/RubyIO$s_method_0_0$RUBYFRAMEDINVOKER$newInstance.gen)
>at org.jruby.internal.runtime.methods.DynamicMethod.call
> (DynamicMethod.java:138)
>at org.jruby.RubyClass.finvoke(RubyClass.java:511)
>at org.jruby.javasupport.util.RuntimeHelpers.invoke
> (RuntimeHelpers.java:419)
>at org.jruby.RubyBasicObject.callMethod(RubyBasicObject.java:323)
>at org.jruby.ext.socket.RubyTCPSocket.open(RubyTCPSocket.java:131)
>at org.jruby.ext.socket.RubyTCPSocket$s_method_0_0$RUBYFRAMEDINVOKER
> $open.call(org/jruby/ext/socket/RubyTCPSocket
> $s_method_0_0$RUBYFRAMEDINVOKER$open.gen)
>at org.jruby.internal.runtime.methods.DynamicMethod.call
> (DynamicMethod.java:176)
>at org.jruby.internal.runtime.methods.DynamicMethod.call
> (DynamicMethod.java:172)
>at org.jruby.runtime.callsite.CachingCallSite.call
> (CachingCallSite.java:155)
>at org.jruby.ast.CallTwoArgNode.interpret(CallTwoArgNode.java:59)
>at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
>at org.jruby.runtime.InterpretedBlock.evalBlockBody
> (InterpretedBlock.java:222)
>at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:
> 173)
>at org.jruby.runtime.InterpretedBlock.yieldSpecific
> (InterpretedBlock.java:114)
>at org.jruby.runtime.Block.yieldSpecific(Block.java:99)
>at org.jruby.ext.Timeout.timeout(Timeout.java:67)
>at org.jruby.ext.Timeout$TimeoutToplevel.timeout(Timeout.java:53)
>at org.jruby.ext.Timeout$TimeoutToplevel$s_method_0_1$RUBYINVOKER
> $timeout.call(org/jruby/ext/Timeout$TimeoutToplevel
> $s_method_0_1$RUBYINVOKER$timeout.gen)
>at org.jruby.internal.runtime.methods.DynamicMethod.call
> (DynamicMethod.java:168)
>at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall
> (CachingCallSite.java:288)
>at org.jruby.runtime.callsite.CachingCallSite.callBlock
> (CachingCallSite.java:126)
>at org.jruby.runtime.callsite.CachingCallSite.callIter
> (CachingCallSite.java:141)
>at org.jruby.ast.FCallOneArgBlockNode.interpret
> (FCallOneArgBlockNode.java:34)
>at org.jruby.ast.LocalAsgnNode.interpret(LocalAsgnNode.java:123)
>at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
>at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
>at org.jruby.internal.runtime.methods.InterpretedMethod.call
> (InterpretedMethod.java:136)
>at org.jruby.internal.runtime.methods.DefaultMethod.call
> (DefaultMethod.java:139)
>at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall
> (CachingCallSite.java:258)
>at org.jruby.runtime.callsite.CachingCallSite.call
> (CachingCallSite.java:77)
>at org.jruby.ast.VCallNode.interpret(VCallNode.java:85)
>at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
>at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
>at org.jruby.internal.runtime.methods.InterpretedMethod.call
> (InterpretedMethod.java:136)
>at org

[google-appengine] Re: API Versioning

2009-07-07 Thread alexbf

Thanks for your feedback Jeff,

I'll try to keep my api backward compatible as much as possible, so
yes, the versioning should allow my users to keep their existing
version unless the api compatibility is broken for some reason (data
model changes, etc).

In that case, I think I will manage it with a major/minor versioning
pattern. 1.1 -> 1.2 will not require client update but 1.3 -> 2.0
will.

Better idea anybody?

Thanks,
Alex




On Jul 2, 7:09 pm, "Jeff S (Google)"  wrote:
> Hi Alex,
>
> This sounds like a reasonable approach to me. You might want to consider the
> case where a user does not want to upgrade to a new version or is for some
> reason unable. In those cases it might be helpful to have the older version
> of the API running along side the newer version so that an old client could
> still function if the user declines to upgrade.
>
> Happy coding,
>
> Jeff
>
>
>
> On Wed, Jul 1, 2009 at 9:50 AM, alexbf  wrote:
>
> > Hello all,
>
> > Let's say I have an application hosted on GAE that publishes an API.
> > This API is used by a desktop client application.
>
> > The API will obviously change over time forcing the client app users
> > to upgrade their app.
>
> > I would like the client app to know automatically that the API version
> > has changed and ask the user to download the new version. I don't want
> > to "check for update" when the application start but I want it to do
> > it for every API call.
>
> > The strategy I have in head so far would be to add a Version parameter
> > to all API calls so the client would pass its current version to the
> > API and that version number would be validated against the current API
> > version. If the version don't match, an exception is thrown and the
> > client app will ask the user to upgrade the app.
>
> > Do you think this strategy is viable? What do you think are the pros
> > and cons? Have you ever done something similar? Anything else to
> > propose?
>
> > Thank you very much!
> > Alex- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Dynamically add pages (url)

2009-07-07 Thread alexbf

Nice, thanks I'll give it a try.

Would it be possible to have the HTML code in the table and render it
instead of an html file? If so, what is the method to call?

Regards,
Alex

On Jul 1, 8:50 pm, Pankaj Vishwani  wrote:
> One way to do this is the following:
>
> - Create a table with URL and fileName as two fields.
> - Replace ('/', Page_Main) by ('/.*', Page_Main)
> - In Page_Main.py do the query and get the html fileName for the url
> you just got and then render that HTML page.
>
> If you want the entire code let me know and I will post that here.
>
> Regards,
> Pankaj Vishwani
>
> On Jul 1, 9:57 am, alexbf  wrote:
>
>
>
> > Hello,
>
> > is it possible to dynamically add urls/methods through the
> > WSGIApplication object?
>
> > Right now I have all the URLs and methods hardcoded in my main()
>
> > def main():
> >         application = webapp.WSGIApplication([('/', Page_Main),
> >                                                                             
> >     ('/pageone', Page_One),
> >                                                                             
> >     ('/pagetwo', Page_Two),
> >                                                                             
> >     ('/pagethree', Page_Three)],
> >                                                                             
> >     debug=True)
>
> > Let's say I have a table that contains URL/HTML code pairs... is it
> > possible to do something like this?
>
> > def main():
> >         application = webapp.WSGIApplication(debug=True)
>
> >        #Load URLs from table- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Need help with Email, getting an odd error

2009-07-07 Thread Jeff S (Google)
Hi Ray,

It looks like ApplicationError 1 indicates an internal error, but there is
not much more I can say without trying to reproduce the issue. Would you be
willing to share some of your source code? Also, how rapidly are these
emails being sent?

The errors which are returned by the underlying mail API are defined in the
following protocol buffer service:
http://code.google.com/p/googleappengine/source/browse/trunk/python/google/appengine/api/mail_service_pb.py

The exception is raised in the mail.py code, and since the internal error is
not listed in ERROR_MAP, a more generic ApplicationError is raised.
http://code.google.com/p/googleappengine/source/browse/trunk/python/google/appengine/api/mail.py

Cheers,

Jeff

On Sat, Jul 4, 2009 at 8:11 AM, Ray Malone  wrote:

>
> message.send()
>  File "/base/python_lib/versions/1/google/appengine/api/mail.py",
> line 513, in send
>raise e
> ApplicationError: ApplicationError: 1
>
> I'm sending out several hundred emails to people that have signed up
> to announcements, but after 70 or so go I get this 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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: memcache architecture

2009-07-07 Thread jonathan

I'd also be interested to know if there is some general predictions we
can make about how much data we can actually store in memcache before
our LRU data is evicted. I am using memcache as a processing queue for
non-critical writes and I run a cron-job every one minute because I am
not sure how often I need to run it before the writes would be
evicted.

jonathan

On Jul 1, 12:32 am, hawkett  wrote:
> Hi,
>
>    I'm wondering what thememcachearchitecture is - is it
>
> a) single instance with a massive pool of memory for everyone, or
> b) many instances that are each shared by a few apps, or
> c) an instance per app, or
> d) something else?
>
> I'm guessing (a) if there is an intelligent LRU policy that provides
> separate LRU for each app, preventing a few apps evicting everyone
> else's data, or (b) if the LRU policy is not intelligent.  (c) would
> lead to a very poor memory utilisation.
>
> Apart from being interested, I am wondering aboutmemcache
> prioritisation - i.e. where the blunt LRU scheme is not suitable.  I
> might have a small amount of data that I really don't want evicted
> frommemcache(even if it is not used very often), and a large stream
> of less important data for which the blunt LRU policy is fine.  In the
> current GAE implementation my important data can be evicted by my less
> important data.
>
> It would be great if there was some way to prioritisememcachedata -
> in a stand-alone system, this would be achieved using multiple
> instances, one for each priority level.
>
> Assuming we have option (a) with intelligent LRU on a per app basis,
> then it shouldn't be too hard to provide multiplememcacheinstances
> that can be used for prioritisation of cached data.  It should be easy
> enough to make this backward compatible by providing an optional
> parameter to specify the instance, defaulting if it is not provided.
>
> I can see that this would impact memory utilisation, but it would be
> possible to make the second, non-default instance much smaller than
> the default one - say 5% - forcing developers to think carefully about
> using the smaller cache.   Even if no one uses the secondary instance,
> memory utilisation can still top 95%.
>
> Interested to understand the issues, as this is forcing me not to
> cache my 'big data' for fear of constantly evicting my 'little data'.
> In my situation, my 'little data' is very important for general
> response times, which are good to keep up even if the data is not used
> particularly often.  Essentially what I need is a cache with low
> volatility, and a cache whose volatility isn't so important.  Cheers,
>
> Colin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] a bug of urlfetch on GAE production server

2009-07-07 Thread chenbaiping

I have a very simple html page http://cbc007.cn/test.html .

When I fetch it using http://shell.appspot.com/, an error occurs, sometimes.
When I fetch it in my app, it has the same error.

>>> r=urlfetch.fetch('http://cbc007.cn/test.html')
Traceback (most recent call last):
  File "/base/data/home/apps/shell/1.334417654335420704/shell.py", line 278,
in get
exec compiled in statement_module.__dict__
  File "", line 1, in 
  File "/base/python_lib/versions/1/google/appengine/api/urlfetch.py", line
241, in fetch
return rpc.get_result()
  File
"/base/python_lib/versions/1/google/appengine/api/apiproxy_stub_map.py",
line 442, in get_result
return self.__get_result_hook(self)
  File "/base/python_lib/versions/1/google/appengine/api/urlfetch.py", line
331, in _get_fetch_result
raise DownloadError(str(err))
DownloadError: ApplicationError: 5

Sometimes, it throws "DownloadError: ApplicationError: 2" error. Very
curious.

But it occurs on GAE production server only. On local sdk, it works fine.
Is it a bug?


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



[google-appengine] Re: HIPAA requirements vs. AppEngine security guidelines

2009-07-07 Thread GenghisOne

Andy

Thanks for the heads-up...

The link to that paper is here and it makes for a good read...
http://awsmedia.s3.amazonaws.com/AWS_HIPAA_Whitepaper_Final.pdf

Unfortunately after I skimmed through it I felt a little unsettled
about AppEngine's security model...probably just my limited
understanding of what's under the hood, but nonetheless security is
kinda important and maybe its time to start asking some plain
questions.

For instance, here's one thing the Amazon whitepaper had to say about
auditing...


"In designing a HIPAA-compliant system, customers should put auditing
capabilities in place
to allow security analysts to drill down into detailed activity logs
or reports to see who had
access, IP address entry, what data was accessed, etc. This data
should be tracked, logged, and
stored in a central location for extended periods of time in case of
an audit. "

So can AppEngine enable this and if so how? My gut is telling me yes
but there's still a nagging concern...How do I know if someone inside
Google looked at my customers data? Is there some kind of *deep*
logging mechanism of sorts?

Thx much.

BTW -- If Google has a comparable whitepaper, I'd very much appreciate
the link.

Thx much.

On Jul 7, 4:01 am, Andrew Badera  wrote:
> There's a whitepaper by Amazon on the topic. Google it, it's been a
> few months since I looked at it, don't have a link offhand, sorry.
>
> Thanks-
> - Andy Badera
> - and...@badera.us
> - Google me:http://www.google.com/search?q=andrew+badera
> - This email is: [ ] bloggable [x] ask first [ ] private
>
> On Mon, Jul 6, 2009 at 5:17 PM, GenghisOne wrote:
>
> > Does anyone know if Amazon's EC2 platform is HIPAA-compliant?
>
> > On Jul 6, 12:44 pm, richard emberson 
> > wrote:
> >> Not going to happen. The IT requirements for Google would
> >> cost far more than the couple of applications that might
> >> need HIPAA. They would have to have a completely
> >> separate group with their own machines, passwords,
> >> procedures, etc. with a real wall (both material wall
> >> and software/hardware wall) between the group and the rest of
> >> Google or all of Google would have to be HIPAA
> >> compliant. So, how much is it worth for Google? Not much.
>
> >> RME
>
> >> Ken wrote:
> >> > Hi,
>
> >> > I'm researching the feasibility of running a healthcare app on the
> >> > AppEngine cloud.  I've read through the AE terms of service and they
> >> > don't say much about the actual security guidelines other than
> >> > deferring to the boilerplate Google security policy.  I have no doubt
> >> > there are internal documents detailing the exact security guarantees
> >> > provided by Google's infrastructure, but that information is not
> >> > readily available to the public.
>
> >> > It's been a full year since the last time HIPAA was discussed in this
> >> > group.  Now that SSL support has been enabled, data transfer
> >> > constraints can be met with ease.  So, what's the story today with GAE
> >> > and HIPAA compliance?  Are the App Engine's data storage and transfer
> >> > mechanisms compatible with the guidelines set out by HIPAA?
>
> >> > Google Apps documentation has quite a bit more security information,
> >> > such as specifying annual SAS 70 Type II audits.  I'm not familiar
> >> > with this particular security audit, but some quick research seems to
> >> > indicate that SAS 70 audit controls are mostly a superset of HIPAA
> >> > guidelines.  However, there are some aspects of HIPAA compliance that
> >> > seem to be difficult to implement in a distributed database system, so
> >> > any reassurances from the Google App Engine folks in this regard would
> >> > be most appreciated.
>
> >> > Thanks!
>
> >> > Ken
>
> >> --
> >> Quis custodiet ipsos custodes
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] a bug of urlfetch on GAE production server

2009-07-07 Thread chenbaiping


I have a very simple html page http://cbc007.cn/test.html .

When I fetch it using http://shell.appspot.com/, an error occurs.
When I fetch it in my app, it has the same error.

>>> r=urlfetch.fetch('http://cbc007.cn/test.html')
Traceback (most recent call last):
  File "/base/data/home/apps/shell/1.334417654335420704/shell.py", line 278,
in get
exec compiled in statement_module.__dict__
  File "", line 1, in 
  File "/base/python_lib/versions/1/google/appengine/api/urlfetch.py", line
241, in fetch
return rpc.get_result()
  File
"/base/python_lib/versions/1/google/appengine/api/apiproxy_stub_map.py",
line 442, in get_result
return self.__get_result_hook(self)
  File "/base/python_lib/versions/1/google/appengine/api/urlfetch.py", line
331, in _get_fetch_result
raise DownloadError(str(err))
DownloadError: ApplicationError: 5

Sometimes, it throws "DownloadError: ApplicationError: 2" error. Very
curious.

But it occurs on GAE production server only. On local sdk, it works fine.
Is it a bug?



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



[google-appengine] Re: why there is no way to build a key id?

2009-07-07 Thread Jeff Enderwick

Just star'd it -thx.

2009/6/24 Jeff S (Google) :
> Hi Jeff,
>
> This is an idea that we're aware of as well. If you could reserve the next
> ID in advance, then you could actually do this in one put since multiple
> entities could be sent in one batch :-) The workaround available now is to
> use the key_name, but the difficulty becomes ensuring that the key_name is
> unique. Here is a feature request which I'm aware of which is along these
> lines (though the approach differs slightly):
>
> http://code.google.com/p/googleappengine/issues/detail?id=1003
>
> Thank you,
>
> Jeff
>
> 2009/6/24 Jeff Enderwick 
>>
>> Hey Jeff - sorry for the confusion. The idea was that one would be
>> able to get the unique id from an GOOG and then do a db.put with that
>> id as an arg. For example, let's say I want to create two entities,
>> with each referring to each other. I need to do three db.put
>> operations:
>>
>> a = Foo()
>> db.put(a)
>> b = Foo()
>> b.ref = a.key()
>> db.put(b)
>> a.ref = b.key()
>> db.put(a)
>>
>> One would hope to be able to do this with two db.puts.
>>
>> Thanks,
>> Jeff
>>
>>
>> 2009/6/16 Jeff S (Google) :
>> >
>> > The datastore does not allow key_names which begin with a digit in
>> > order to avoid confusion with an ID, which is numerical. If you want
>> > to use numeric key names, you could add a one letter prefix :-)
>> >
>> > Happy coding,
>> >
>> > Jeff
>> >
>> > On Jun 16, 1:17 am, cryb  wrote:
>> >> Hi Jeff.
>> >> Thanks for your reply.. I really hope that in the near future
>> >> appengine will support setting key ids for entities.
>> >> You mentioned that I can use hooks in order to achieve my goal..
>> >> However I was more interested in a solution based on appengine java
>> >> sdk, and not on python hooks. Does appengine java sdk provide hooks or
>> >> some other similar mechanism?
>> >> It seems that for the moment I'll stick to generating key names.
>> >> One more question: I've tried to generate some entities with key names
>> >> on my local devappserver and I got a strange exception stating that I
>> >> can't create key names that start with a digit (?!?)... this holds on
>> >> google appengine production servers too or it's just a "bug" of
>> >> devappserver?
>> >>
>> >> Thanks
>> >>
>> >> On Jun 16, 2:45 am, "Jeff S (Google)"  wrote:
>> >>
>> >> > Hi cryb,
>> >>
>> >> > As you noted, we do not currently allow the ID for a key to be set,
>> >> > as we
>> >> > ensure that the ID is unique for each existing entity. I recommend
>> >> > using a
>> >> > key name instead of an ID, as Antoniov suggeted, if possible.
>> >>
>> >> > It is technically possible to modify the key of an entity as it is
>> >> > being
>> >> > converted to a protocol buffer message before it is sent to the
>> >> > datastore.
>> >> > You could do this using hooks in the API proxy as described in this
>> >> > article:http://code.google.com/appengine/articles/hooks.htmlAlsoit is
>> >> > possible to
>> >> > construct the key for the desired object if you know the ID in
>> >> > advance.
>> >>
>> >> > class X(db.Model):
>> >> >   pass
>> >>
>> >> > # If you've already created the entity so you have the ID.
>> >> > x_id = X().put().id()
>> >>
>> >> > # Instead of getting by ID, you can create the key manually.
>> >> > k = db.Key.from_path('X', x_id)
>> >>
>> >> > Now you have the desired key without having fetched the object, but
>> >> > the part
>> >> > which the model class does not allow is setting the key yourself. So
>> >> > you
>> >> > could modify the protocol buffer message before it is written to the
>> >> > datastore, but I don't recommend it.
>> >>
>> >> > The decision to allow setting key_names but not IDs is something we
>> >> > may
>> >> > revisit.
>> >>
>> >> > Happy coding,
>> >>
>> >> > Jeff
>> >>
>> >> > 2009/6/12 cryb 
>> >>
>> >> > > Hi.. that is to build key names... What I asked was why I can't
>> >> > > build
>> >> > > a key ID..
>> >>
>> >> > > On Jun 12, 5:35 am, Antoniov  wrote:
>> >> > > > Use the code:
>> >> > > > s = Story(key_name="xzy123")
>> >> > > > Then you create an entity with the key name "xzy123".
>> >>
>> >> > > > Check this:
>> >> >
>> >> > > >http://code.google.com/intl/en-US/appengine/docs/python/datastore/key...
>> >>
>> >> > > > On 6月12日, 上午1时28分, cryb  wrote:
>> >>
>> >> > > > > Does anyone know why it is possible to build a key name but NOT
>> >> > > > > a key
>> >> > > > > id? I know key IDs are used as autoincrements, but why can't I
>> >> > > > > just
>> >> > > > > override this mechanism and build my own key id?
>> >> > > > > Suppose I want to overwrite an existent entry in my table that
>> >> > > > > has a
>> >> > > > > key id I know, and also I want to keep that key id after
>> >> > > > > update...
>> >> > > > > because I can't just build a key id, I am forced to fetch that
>> >> > > > > entity,
>> >> > > > > modify it and write it back, instead of just write the updated
>> >> > > > > entity
>> >> > > > > with the key id I already know - so an additional read to th

[google-appengine] Re: HIPAA requirements vs. AppEngine security guidelines

2009-07-07 Thread Jeff Enderwick

I say go hire a HIPAA consultant who can answer such questions authoritatively.

I've been through FIPS before, and you would not believe the odd
lawyeresque contrivances used to get certified. With HIPAA you are in
the same realm, and so you should hire yourself the appropriate
barrister.

$.02,

Jeff

On Tue, Jul 7, 2009 at 7:11 PM, GenghisOne wrote:
>
> Andy
>
> Thanks for the heads-up...
>
> The link to that paper is here and it makes for a good read...
> http://awsmedia.s3.amazonaws.com/AWS_HIPAA_Whitepaper_Final.pdf
>
> Unfortunately after I skimmed through it I felt a little unsettled
> about AppEngine's security model...probably just my limited
> understanding of what's under the hood, but nonetheless security is
> kinda important and maybe its time to start asking some plain
> questions.
>
> For instance, here's one thing the Amazon whitepaper had to say about
> auditing...
>
>
> "In designing a HIPAA-compliant system, customers should put auditing
> capabilities in place
> to allow security analysts to drill down into detailed activity logs
> or reports to see who had
> access, IP address entry, what data was accessed, etc. This data
> should be tracked, logged, and
> stored in a central location for extended periods of time in case of
> an audit. "
>
> So can AppEngine enable this and if so how? My gut is telling me yes
> but there's still a nagging concern...How do I know if someone inside
> Google looked at my customers data? Is there some kind of *deep*
> logging mechanism of sorts?
>
> Thx much.
>
> BTW -- If Google has a comparable whitepaper, I'd very much appreciate
> the link.
>
> Thx much.
>
> On Jul 7, 4:01 am, Andrew Badera  wrote:
>> There's a whitepaper by Amazon on the topic. Google it, it's been a
>> few months since I looked at it, don't have a link offhand, sorry.
>>
>> Thanks-
>> - Andy Badera
>> - and...@badera.us
>> - Google me:http://www.google.com/search?q=andrew+badera
>> - This email is: [ ] bloggable [x] ask first [ ] private
>>
>> On Mon, Jul 6, 2009 at 5:17 PM, GenghisOne wrote:
>>
>> > Does anyone know if Amazon's EC2 platform is HIPAA-compliant?
>>
>> > On Jul 6, 12:44 pm, richard emberson 
>> > wrote:
>> >> Not going to happen. The IT requirements for Google would
>> >> cost far more than the couple of applications that might
>> >> need HIPAA. They would have to have a completely
>> >> separate group with their own machines, passwords,
>> >> procedures, etc. with a real wall (both material wall
>> >> and software/hardware wall) between the group and the rest of
>> >> Google or all of Google would have to be HIPAA
>> >> compliant. So, how much is it worth for Google? Not much.
>>
>> >> RME
>>
>> >> Ken wrote:
>> >> > Hi,
>>
>> >> > I'm researching the feasibility of running a healthcare app on the
>> >> > AppEngine cloud.  I've read through the AE terms of service and they
>> >> > don't say much about the actual security guidelines other than
>> >> > deferring to the boilerplate Google security policy.  I have no doubt
>> >> > there are internal documents detailing the exact security guarantees
>> >> > provided by Google's infrastructure, but that information is not
>> >> > readily available to the public.
>>
>> >> > It's been a full year since the last time HIPAA was discussed in this
>> >> > group.  Now that SSL support has been enabled, data transfer
>> >> > constraints can be met with ease.  So, what's the story today with GAE
>> >> > and HIPAA compliance?  Are the App Engine's data storage and transfer
>> >> > mechanisms compatible with the guidelines set out by HIPAA?
>>
>> >> > Google Apps documentation has quite a bit more security information,
>> >> > such as specifying annual SAS 70 Type II audits.  I'm not familiar
>> >> > with this particular security audit, but some quick research seems to
>> >> > indicate that SAS 70 audit controls are mostly a superset of HIPAA
>> >> > guidelines.  However, there are some aspects of HIPAA compliance that
>> >> > seem to be difficult to implement in a distributed database system, so
>> >> > any reassurances from the Google App Engine folks in this regard would
>> >> > be most appreciated.
>>
>> >> > Thanks!
>>
>> >> > Ken
>>
>> >> --
>> >> Quis custodiet ipsos custodes
> >
>

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



[google-appengine] Re: Problem with "Verify Your Account by SMS"

2009-07-07 Thread Luis

I get same error but I'm in the US using AT&T.

Any help will be greatly appreciated.
Thanks,
- Luis


On Jul 6, 3:22 am, "Nick Johnson (Google)" 
wrote:
> Hi vico.ar,
>
> I've manually activated your account.
>
> -Nick Johnson
>
> On Fri, Jul 3, 2009 at 6:31 PM, vico.ar wrote:
>
> > I have a problem with "Verify Your Account by SMS" page.
>
> > Does anyone know how to verify one's account if you are living in
> > Argentina?
>
> > I entered my number in the format required by the verificator but it
> > always gives "Mobile Number or Username" error.
>
> > Regards,
> > Víctor
>
> --
> Nick Johnson, App Engine Developer Programs Engineer
> Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
> Number: 368047

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



[google-appengine] Re: a bug of urlfetch on GAE production server

2009-07-07 Thread 'Αλκης Ευλογημένος
Maybe the fetch service is blocked in China?

On Wed, Jul 8, 2009 at 4:14 AM, chenbaiping  wrote:

>
> I have a very simple html page http://cbc007.cn/test.html .
>
> When I fetch it using http://shell.appspot.com/, an error occurs,
> sometimes.
> When I fetch it in my app, it has the same error.
>
> >>> r=urlfetch.fetch('http://cbc007.cn/test.html')
> Traceback (most recent call last):
>  File "/base/data/home/apps/shell/1.334417654335420704/shell.py", line 278,
> in get
>exec compiled in statement_module.__dict__
>  File "", line 1, in 
>  File "/base/python_lib/versions/1/google/appengine/api/urlfetch.py", line
> 241, in fetch
>return rpc.get_result()
>  File
> "/base/python_lib/versions/1/google/appengine/api/apiproxy_stub_map.py",
> line 442, in get_result
>return self.__get_result_hook(self)
>  File "/base/python_lib/versions/1/google/appengine/api/urlfetch.py", line
> 331, in _get_fetch_result
>raise DownloadError(str(err))
> DownloadError: ApplicationError: 5
>
> Sometimes, it throws "DownloadError: ApplicationError: 2" error. Very
> curious.
>
> But it occurs on GAE production server only. On local sdk, it works fine.
> Is it a bug?
>
>
> >
>


-- 

Alkis

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