[google-appengine] Re: Cloud NDB Datastore library Beta

2019-09-26 Thread 'Mario Jimenez Leon' via Google App Engine


This is great news!

 

The library is gonna be supported by GCP support until the beta phase ends. 
You can track the changes in the changelog of the library in github: 
https://github.com/googleapis/python-ndb/blob/master/CHANGELOG.md

 

Currently, we don't have an Estimated Time of Arrival for the new version.


On Thursday, September 26, 2019 at 1:01:48 AM UTC-5, Soeren Balko wrote:
>
> Great news and good to see Google (finally!) reacting to the Python 2 EOL 
> dilemma and its repercussions on AppEngine!
>
> A couple of question though:
>
> (1) "beta" is not very reassuring in a sense that we have millions of 
> users in our AppEngine/DataStore backend. When will the library come out of 
> beta?
> (2) Does the library come under Google Cloud support contracts?
>
> Thank you,
> Soeren
>
>
> On Friday, September 20, 2019 at 7:33:38 AM UTC+10, Andrew Gorcester wrote:
>>
>> Hello Pythonistas,
>>
>> I'm pleased to announce the Beta release of Cloud NDB, an updated version 
>> of the App Engine NDB client library for Datastore to support the GAE 
>> Python 3 runtime and other Python platforms. Our goal with Cloud NDB and 
>> related efforts is to ensure App Engine Python 2.7 applications are fully 
>> portable and can smoothly migrate to Python 3.
>>
>> The library can be installed with `pip install google-cloud-ndb` and the 
>> source code can be found at https://github.com/googleapis/python-ndb. 
>> Please refer to our newly published migration guide at 
>> https://cloud.google.com/appengine/docs/standard/python3/migrating-to-cloud-ndb,
>>  
>> and our API documentation at 
>> https://googleapis.dev/python/python-ndb/latest/index.html.
>>
>> We're grateful to have received generous user support in testing, 
>> comments, bug reports and even code contributions in our Alpha phase, and 
>> we hope the community will continue to send feedback as we work towards GA. 
>> Please see our GitHub repository linked above to follow development and 
>> communicate with our team, or email me directly at gorc...@google.com.
>>
>> While Cloud NDB can be used freely by any Cloud Datastore (and Firestore 
>> in Datastore mode) customers, it is intended to facilitate migration to 
>> Python 3 for App Engine NDB users; our recommendation for new apps is still 
>> to use the Cloud Client Datastore or Firestore libraries which are part of 
>> the Google Cloud SDK.
>>
>> Thanks for your continued support of our platform. I am looking forward 
>> to hearing from the community on this and upcoming efforts.
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/83877d90-87e6-46ea-8b9a-39b3e68e1c16%40googlegroups.com.


[google-appengine] Re: Custom domain redirecting to appspot URL

2017-02-17 Thread Mario Gallegos
Thanks John, but what i'm trying yo do is to avoid my app to redirect to 
appspot-preview.com and use my custom domain instead.

On Friday, February 17, 2017 at 3:21:43 PM UTC-6, John Lowry wrote:
>
> Hi,
>
> We made a change this morning which causes some App Engine Flexible apps 
> to redirect to appspot-preview.com. 
>
> If this is causing an issue for you, please create a support case and we 
> will provide help.
>
> https://cloud.google.com/support/
>
> John Lowry
>
>
>
> On Friday, February 17, 2017 at 12:45:26 PM UTC-8, Mario Gallegos wrote:
>>
>> Hello Alex, I just tested it and it is not working for me. 
>>
>> Is it supposed to be fixed for everyone? or just a few?
>>
>>
>> On Wednesday, February 15, 2017 at 10:15:27 AM UTC-6, Alex (Cloud 
>> Platform Support) wrote:
>>>
>>> Good news, it seems like this redirection issue has now been resolved. 
>>> Custom domains listed on Flexible Environment App Engine instances should 
>>> work as prescribed without redirecting to an appspot.com URL.
>>>
>>> Regards,
>>> Alex
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/b8c3e06f-81ee-452a-87a2-99f2c2992cbe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Custom domain redirecting to appspot URL

2017-02-17 Thread Mario Gallegos
Hello Alex, I just tested it and it is not working for me. 

Is it supposed to be fixed for everyone? or just a few?


On Wednesday, February 15, 2017 at 10:15:27 AM UTC-6, Alex (Cloud Platform 
Support) wrote:
>
> Good news, it seems like this redirection issue has now been resolved. 
> Custom domains listed on Flexible Environment App Engine instances should 
> work as prescribed without redirecting to an appspot.com URL.
>
> Regards,
> Alex
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/e64782d5-c80d-47c6-a060-45c326599b62%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Cloud CDN cache invalidation per domain name

2016-10-19 Thread Mario Tomic
Hi,

we have multiple domain names sharing a single load balancer. Reading 
through the docs I wasn't be able to find if it's possible to invalidate 
cache per domain name.

For example, I'd like to invalidate http://example-1.org/foo.jpg 

but not http://example-2.org/foo.jpg

Thanks


-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/5f4154b5-7599-41b5-b020-5df2743dc67b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Request was aborted after waiting too long to attempt to service your request. sprees

2015-04-22 Thread Mario
Hi,

What are those requests that result in errors?

On Sunday, April 19, 2015 at 8:53:24 PM UTC+2, Kaan Soral wrote:

 I started regularly getting 200-1000 of these in batches

 Not sure what to do about them

 My other app that handles more requests never has them, I'm guessing they 
 are related to instance bursts, the app that experiences the issue probably 
 bursts instances too much

 I don't think the issue is memory related, as in that case, the instances 
 usually die with the critical memory error

 On Tuesday, April 14, 2015 at 10:58:20 AM UTC+3, Mario wrote:

 Hi Kaan,

 This error is sometimes created by your requests going over the memory 
 limit of your instance. You could try to update the instance to F4 or to 
 make your requests to process data in smaller chunks. 

 Mario

 On Monday, April 13, 2015 at 11:52:19 PM UTC+2, Kaan Soral wrote:

 Hi Cody

 That makes an extreme amount of sense, it would also explain a lot of 
 the inconsistent behaviours of appengine, especially invisibly exhausted 
 taskqueue retries

 I checked the logs, however, although my log storage is more than 
 enough, for some reason the phrase aborted/.*aborted.* didn't produce 
 any results, didn't pursue the issue further, the log routines are annoying 
 at best

 Mario, the instances are:
 instance_class: F2
 automatic_scaling:
   min_idle_instances: 1
   max_idle_instances: 1
   max_pending_latency: 900ms

 The issue has been happening in bursts lately

 On Monday, April 13, 2015 at 10:28:00 PM UTC+3, Cody Landgrebe wrote:

 Kaan,

 Looking at the SDK release notes and current version of GAE console app 
 engine release 1.9.19 notes have not been published yet; but from 
 research my assumption is that the logging level was changed from info to 
 error in the latest version. If you look through your logs prior to the 
 move to .19 I assume that you will have the same messages but logged as 
 info.

 On Saturday, April 11, 2015 at 12:02:34 PM UTC-5, Kaan Soral wrote:

 Request was aborted after waiting too long to attempt to service 
 your request.

 I've been seeing these messages a lot lately, momentarily many 
 requests log these errors, it floods the error logs

 Anyone else?



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/570dfd18-afe0-4165-8bd6-e8f1f2a86da6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Request was aborted after waiting too long to attempt to service your request. sprees

2015-04-14 Thread Mario
Hi Kaan,

This error is sometimes created by your requests going over the memory 
limit of your instance. You could try to update the instance to F4 or to 
make your requests to process data in smaller chunks. 

Mario

On Monday, April 13, 2015 at 11:52:19 PM UTC+2, Kaan Soral wrote:

 Hi Cody

 That makes an extreme amount of sense, it would also explain a lot of the 
 inconsistent behaviours of appengine, especially invisibly exhausted 
 taskqueue retries

 I checked the logs, however, although my log storage is more than enough, 
 for some reason the phrase aborted/.*aborted.* didn't produce any 
 results, didn't pursue the issue further, the log routines are annoying at 
 best

 Mario, the instances are:
 instance_class: F2
 automatic_scaling:
   min_idle_instances: 1
   max_idle_instances: 1
   max_pending_latency: 900ms

 The issue has been happening in bursts lately

 On Monday, April 13, 2015 at 10:28:00 PM UTC+3, Cody Landgrebe wrote:

 Kaan,

 Looking at the SDK release notes and current version of GAE console app 
 engine release 1.9.19 notes have not been published yet; but from 
 research my assumption is that the logging level was changed from info to 
 error in the latest version. If you look through your logs prior to the 
 move to .19 I assume that you will have the same messages but logged as 
 info.

 On Saturday, April 11, 2015 at 12:02:34 PM UTC-5, Kaan Soral wrote:

 Request was aborted after waiting too long to attempt to service your 
 request.

 I've been seeing these messages a lot lately, momentarily many requests 
 log these errors, it floods the error logs

 Anyone else?



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f3b499bc-a35f-4f01-9e34-8c9589b4958c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Request was aborted after waiting too long to attempt to service your request. sprees

2015-04-13 Thread Mario
In order to help you further, you'd need to provide more information about 
when you see those messages, kind of instances you're using, programming 
language, etc.

On Saturday, April 11, 2015 at 7:02:34 PM UTC+2, Kaan Soral wrote:

 Request was aborted after waiting too long to attempt to service your 
 request.

 I've been seeing these messages a lot lately, momentarily many requests 
 log these errors, it floods the error logs

 Anyone else?


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/35203f66-4a18-4458-9b53-63c9d86c9ee6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: how to convert ppt slides to images in google app engine, i am using apache POI, which in turn uses java.awt and bufferedimage classes that is not supported in google app engine

2015-04-12 Thread Mario
Adding to Jim's answer, you could use Google Cloud Managed VMs 
https://cloud.google.com/appengine/docs/managed-vms/ that allow you more 
flexibility including to be able to run the AWT library like in this example 
https://github.com/GoogleCloudPlatform/appengine-java-vm-guestbook-extras.

If you'd need even more flexibility you could use custom runtimes 
https://cloud.google.com/appengine/docs/managed-vms/#custom_runtimes for 
your Managed VMs.

On Sunday, April 12, 2015 at 9:20:42 PM UTC+2, Jim wrote:

 We've made limited use of POI on GAE, but as you say the classes that use 
 the java.awt package will not work.  We just need to read/write Excel and 
 Word documents for which it works fine.

 Have you looked at Google Computer Engine?  I imagine you can get the full 
 POI library to work there (you get a complete virtual machine much like AWS 
 EC2 or Azure Virtual Machines).



 On Saturday, April 11, 2015 at 9:46:05 PM UTC-5, Abhishek Jaiswal wrote:

 I am creating a google app engine project which aim is to convert 
 ppt/pptx file slides to images and store these images in blobstore, i am 
 using apache POI XMLSlideShow class to read slides, since the converion 
 uses java.awt package which is not supported in app engine, searched a lot 
 even not found in stackoverflow, thinking of to migrate to windows azure.



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/1270a3d2-3242-4532-a09b-eb86dd3f39c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Mutiple fetches on GAE causing invalid handle

2015-03-03 Thread Mario
Hello Leonardo,

I'd suggest you to write this technical trouble-shooting question in 
Stackoverflow http://stackoverflow.com/. There are two main reasons for 
this:


   1. There are more users there that could help you.
   2. Once your question is answered, it would be easier to find in the 
   future by other users.

Thanks.

Mario

Google Cloud Platform Support

On Tuesday, March 3, 2015 at 12:45:24 PM UTC+1, Leonardo Pinheiro Ferrari 
wrote:

 I'm having trouble with GAE when doing several *SYNCHRONOUS* requests 
 with the same query parameters.

 My query:

 QueryMovimentacao q = 
 ofy().query(Movimentacao.class).ancestor(ANCESTOR_KEY);
 q.filter(codStatus =, MyEnum.ENVIADO);
 q = q.order(datMovRegistrada).limit(1);
 return q.get();

 After some calls I'm getting this error:

 Caused by: java.lang.IllegalArgumentException: invalid handle: 
 5736689025196469674
   at 
 com.google.appengine.api.datastore.DatastoreApiHelper.translateError(DatastoreApiHelper.java:45)
   at 
 com.google.appengine.api.datastore.DatastoreApiHelper$AsyncCallWrapper.convertException(DatastoreApiHelper.java:74)
   at 
 com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:96)
   at 
 com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:88)
   at 
 com.google.appengine.api.datastore.FutureHelper.getInternal(FutureHelper.java:75)
   at 
 com.google.appengine.api.datastore.FutureHelper.quietGet(FutureHelper.java:35)
   at 
 com.google.appengine.api.datastore.BaseQueryResultsSource.getIndexList(BaseQueryResultsSource.java:152)
   at 
 com.google.appengine.api.datastore.BaseQueryResultsSource.loadMoreEntities(BaseQueryResultsSource.java:181)
   at 
 com.google.appengine.api.datastore.BaseQueryResultsSource.loadMoreEntities(BaseQueryResultsSource.java:164)
   at 
 com.google.appengine.api.datastore.QueryResultIteratorImpl.ensureLoaded(QueryResultIteratorImpl.java:147)
   at 
 com.google.appengine.api.datastore.QueryResultIteratorImpl.hasNext(QueryResultIteratorImpl.java:64)
   at 
 com.googlecode.objectify.util.TranslatingIterator.hasNext(TranslatingIterator.java:29)
   at com.googlecode.objectify.impl.QueryImpl.get(QueryImpl.java:389)
   at 
 br.com.sulamerica.susis.mecsas.web.model.repositorio.MovimentacaoRepositoryImpl.getMovimentacaoSincronia(MovimentacaoRepositoryImpl.java:153)
   at 
 br.com.sulamerica.susis.mecsas.web.service.ManutencaoMovimentacaoServiceImpl.retornaMovimentacaoFila(ManutencaoMovimentacaoServiceImpl.java:1532)
   at 
 br.com.sulamerica.susis.mecsas.web.controller.TaskQueueController.recuperaMovimentacao(TaskQueueController.java:126)

 Aby thoughts why this is happening ?

 I'm using Objectify 3.1.

 Thanks !



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/8c808fb4-3d3d-49fd-b475-dc274112a7dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: RECOVER ODK AGGREGATE PASSWORD

2015-02-19 Thread Mario
Hello Christine,

We recommend you to ask this question in Stackoverflow 
http://stackoverflow.com/ because you'll get more members to answer it 
there. Furthermore, the answer will be easier to find if someone will need 
it in the future.

Mario C.
Google Cloud Platform Support

On Thursday, February 19, 2015 at 1:23:53 PM UTC+1, Christine Laetitia 
wrote:

 Please help.I have just successfully deployed my odk server using google 
 app engine.I however cannot log in into the aggregate as I do not renember 
 the password.How can I recover the password please ?I do not want to create 
  a new application instead?

 Thank you.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/95eef70a-f6ac-4c3e-a1c8-ac33b3958b19%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] How to setup a GAE managed VM

2015-02-16 Thread Mario
Hello Deepak,

I'd ask you to post this question in Stackoverflow.com. Thus, it will be 
seen by many developers that will be able to provide the most accurate 
answer to it. Furthermore, it will be easier to find it in the future, when 
another user has a similar question.

Thanks in advance.

Regards,

Mario C.
Google Cloud Platform.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/837bcf44-2bee-4600-8b9d-ee0896d01e20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: NoseGAE not fit for testing?

2015-02-16 Thread Mario
Hi John,

There a full thread about this in GitHub 
https://github.com/Trii/NoseGAE/issues/6. I believe that's the best place 
to follow this conversation. Please have a look at it.

Kind regards,

Mario C.
Google Cloud Platform.

On Wednesday, February 11, 2015 at 5:09:24 AM UTC+1, John Louis Del Rosario 
wrote:

 From the NoseGAE readme: 

 Due to changes in the sandboxing mechanisms in dev_appserver2, it isn't 
 possible for NoseGAE to simulate the deployed environment any longer. The 
 sandboxing feature had to be removed since there is no longer any way to 
 toggle it between noses own internal workings.

 This means that certain tests may pass locally but the code in question 
 will fail in production due to restricted modules and functions. As of now 
 there is no workaround but pull requests are welcome!

 That sounds like a pretty big deal? Doesn't the limitation defeat the 
 purpose of testing? What exactly are the restricted modules and functions 
 mentioned?

 I posted here instead of opening an issue on Github to start a discussion 
 on whether we should be concerned (we've been using NoseGAE from the 
 start), and what alternatives can we use if it is cause for concern.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/707b890e-7743-49a0-991d-bef0da431416%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: unable to generate cloud endpoint client library - 500 Internal Server Error

2015-02-16 Thread Mario
Hello Pravin,

It's better that you ask this question in Stackoverflow.com because there, 
more people will see the question increasing the chances of getting quickly 
a correct answer. Furthermore, it will be easier for other people to look 
for an answer when having similar issues.

Kind regards,

Mario C.
Cloud Platform Support.

On Monday, February 9, 2015 at 9:56:55 AM UTC+1, pravin wrote:

 I'm receiving this error message when trying to generate cloud endpoint 
 client library. 

 eclipse.buildId=v21.0.1-543035
 java.version=1.6.0_25
 java.vendor=Sun Microsystems Inc.
 BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
 Framework arguments:  -product com.android.ide.eclipse.adt.package.product 
 -product com.android.ide.eclipse.adt.package.product -product 
 com.android.ide.eclipse.adt.package.product
 Command-line arguments:  -os win32 -ws win32 -arch x86 -product 
 com.android.ide.eclipse.adt.package.product -product 
 com.android.ide.eclipse.adt.package.product -data C:\07-02-2015 workspace 
 -product com.android.ide.eclipse.adt.package.product

 Error
 Mon Feb 09 14:17:48 IST 2015
 Unexpected Exception

 java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at 
 com.google.gdt.eclipse.appengine.swarm.wizards.helpers.SwarmApiCreator.createClientLibFromApiConfig(SwarmApiCreator.java:104)
 at 
 com.google.gdt.eclipse.appengine.swarm.wizards.helpers.SwarmApiCreator.createSwarmApi(SwarmApiCreator.java:212)
 at 
 com.google.gdt.eclipse.appengine.swarm.wizards.helpers.SwarmServiceCreator.create(SwarmServiceCreator.java:475)
 at 
 com.google.gdt.eclipse.appengine.swarm.wizards.GenerateSwarmApiAction$1.run(GenerateSwarmApiAction.java:84)
 at 
 org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
 at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
 at 
 org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
 at 
 com.google.gdt.eclipse.appengine.swarm.wizards.GenerateSwarmApiAction.run(GenerateSwarmApiAction.java:80)
 at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
 at 
 org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
 at 
 org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
 at 
 org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
 at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
 at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
 at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
 at 
 org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1029)
 at 
 org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
 at 
 org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923)
 at 
 org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
 at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
 at 
 org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
 at 
 org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
 at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
 at 
 org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
 at 
 org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
 at 
 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
 at 
 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
 at 
 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
 at 
 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
 at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
 at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
 Caused by: 
 com.google.appengine.repackaged.com.google.api.client.http.HttpResponseException:
  
 500 Internal Server Error
 at 
 com.google.appengine.repackaged.com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1050

[google-appengine] Re: Fetch URL problem nullpointerexception

2012-10-13 Thread Mario Buonomo
WOW thank you very much ;)

It's work, this is a very strange bug..

Mario

Il giorno venerdì 12 ottobre 2012 18:29:01 UTC+2, Vinny P ha scritto:

 Are you using Java 7? If so, you need to downgrade to Java 6. This is a 
 known bug (you can see a similar stacktrace from Oracle: 
 http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7145592 the only 
 workaround listed is to use Java 6). 

 If I recall correctly, App Engine only supports Java 5  6, not 7.

 If you're not using Java 7, you'll have to post more of your code. Or 
 deploy your app to App Engine production and see if the problem fixes 
 itself; you may have an issue with your local dev environment.

 -Vinny P

 On Friday, October 12, 2012 10:37:10 AM UTC-5, Mario Buonomo wrote:

 Hi, I've a problem with fetch URL using appengine.. 

 the problem is on url.openStream() (nullpointerexception) but url is not 
 null

 this is my code:

  try {
 URL url = new URL(site);
 BufferedReader reader = new BufferedReader(new 
 InputStreamReader(url.openStream()));
 String line;
 while ((line = reader.readLine()) != null) {  
 }
 reader.close();
 } catch (MalformedURLException e) {
 } catch (Exception e) {
 }

  the error is:
 java.lang.NullPointerException
 at java.util.Collections.addAll(Unknown Source)
 at sun.security.ssl.AbstractTrustManagerWrapper.init(Unknown Source)
 at sun.security.ssl.SSLContextImpl.chooseTrustManager(Unknown Source)
 at sun.security.ssl.SSLContextImpl.engineInit(Unknown Source)
 at javax.net.ssl.SSLContext.init(Unknown Source)
 at 
 com.google.appengine.api.urlfetch.dev.LocalURLFetchService.createNonvalidatingScheme(LocalURLFetchService.java:241)
 at 
 com.google.appengine.api.urlfetch.dev.LocalURLFetchService.createHttpClient(LocalURLFetchService.java:263)
 at 
 com.google.appengine.api.urlfetch.dev.LocalURLFetchService.getNonValidatingClient(LocalURLFetchService.java:508)
 at 
 com.google.appengine.api.urlfetch.dev.LocalURLFetchService.access$100(LocalURLFetchService.java:82)
 at 
 com.google.appengine.api.urlfetch.dev.LocalURLFetchService$7.run(LocalURLFetchService.java:422)
 at 
 com.google.appengine.api.urlfetch.dev.LocalURLFetchService$7.run(LocalURLFetchService.java:409)
 at java.security.AccessController.doPrivileged(Native Method)
 at 
 com.google.appengine.api.urlfetch.dev.LocalURLFetchService.doPrivilegedExecute(LocalURLFetchService.java:409)
 at 
 com.google.appengine.api.urlfetch.dev.LocalURLFetchService.fetch(LocalURLFetchService.java:377)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at 
 com.google.appengine.tools.development.ApiProxyLocalImpl$AsyncApiCall.callInternal(ApiProxyLocalImpl.java:527)
 at 
 com.google.appengine.tools.development.ApiProxyLocalImpl$AsyncApiCall.call(ApiProxyLocalImpl.java:481)
 at 
 com.google.appengine.tools.development.ApiProxyLocalImpl$AsyncApiCall.call(ApiProxyLocalImpl.java:458)
 at java.util.concurrent.Executors$PrivilegedCallable$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.util.concurrent.Executors$PrivilegedCallable.call(Unknown Source)
 at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
 at java.util.concurrent.FutureTask.run(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)

 the same in a simple java app work fine..

 I had test in local 
 can you help me?



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/OHdPNmb11BIJ.
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] Fetch URL problem

2012-10-12 Thread Mario Buonomo
Hi, I've a problem with fetch URL using appengine.. this is my code:

 try {
URL url = new URL(http://www.example.com/atom.xml;);
BufferedReader reader = new BufferedReader(new 
InputStreamReader(url.openStream()));
String line;

while ((line = reader.readLine()) != null) {
// ...
}
reader.close();

} catch (MalformedURLException e) {
// ...
} catch (Exception e) {
// ...
}

 the error is:
java.lang.NullPointerException
at java.util.Collections.addAll(Unknown Source)
at sun.security.ssl.AbstractTrustManagerWrapper.init(Unknown Source)
at sun.security.ssl.SSLContextImpl.chooseTrustManager(Unknown Source)
at sun.security.ssl.SSLContextImpl.engineInit(Unknown Source)
at javax.net.ssl.SSLContext.init(Unknown Source)
at 
com.google.appengine.api.urlfetch.dev.LocalURLFetchService.createNonvalidatingScheme(LocalURLFetchService.java:241)
at 
com.google.appengine.api.urlfetch.dev.LocalURLFetchService.createHttpClient(LocalURLFetchService.java:263)
at 
com.google.appengine.api.urlfetch.dev.LocalURLFetchService.getNonValidatingClient(LocalURLFetchService.java:508)
at 
com.google.appengine.api.urlfetch.dev.LocalURLFetchService.access$100(LocalURLFetchService.java:82)
at 
com.google.appengine.api.urlfetch.dev.LocalURLFetchService$7.run(LocalURLFetchService.java:422)
at 
com.google.appengine.api.urlfetch.dev.LocalURLFetchService$7.run(LocalURLFetchService.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at 
com.google.appengine.api.urlfetch.dev.LocalURLFetchService.doPrivilegedExecute(LocalURLFetchService.java:409)
at 
com.google.appengine.api.urlfetch.dev.LocalURLFetchService.fetch(LocalURLFetchService.java:377)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at 
com.google.appengine.tools.development.ApiProxyLocalImpl$AsyncApiCall.callInternal(ApiProxyLocalImpl.java:527)
at 
com.google.appengine.tools.development.ApiProxyLocalImpl$AsyncApiCall.call(ApiProxyLocalImpl.java:481)
at 
com.google.appengine.tools.development.ApiProxyLocalImpl$AsyncApiCall.call(ApiProxyLocalImpl.java:458)
at java.util.concurrent.Executors$PrivilegedCallable$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.concurrent.Executors$PrivilegedCallable.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

the same in a simple java app work fine..

I had test in local 
can you help me?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/ZzVJrZyzRj0J.
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] Fetch URL problem nullpointerexception

2012-10-12 Thread Mario Buonomo
Hi, I've a problem with fetch URL using appengine.. 

the problem is on url.openStream() (nullpointerexception) but url is not 
null

this is my code:

 try {
URL url = new URL(site);
BufferedReader reader = new BufferedReader(new 
InputStreamReader(url.openStream()));
String line;
while ((line = reader.readLine()) != null) {  
}
reader.close();
} catch (MalformedURLException e) {
} catch (Exception e) {
}

 the error is:
java.lang.NullPointerException
at java.util.Collections.addAll(Unknown Source)
at sun.security.ssl.AbstractTrustManagerWrapper.init(Unknown Source)
at sun.security.ssl.SSLContextImpl.chooseTrustManager(Unknown Source)
at sun.security.ssl.SSLContextImpl.engineInit(Unknown Source)
at javax.net.ssl.SSLContext.init(Unknown Source)
at 
com.google.appengine.api.urlfetch.dev.LocalURLFetchService.createNonvalidatingScheme(LocalURLFetchService.java:241)
at 
com.google.appengine.api.urlfetch.dev.LocalURLFetchService.createHttpClient(LocalURLFetchService.java:263)
at 
com.google.appengine.api.urlfetch.dev.LocalURLFetchService.getNonValidatingClient(LocalURLFetchService.java:508)
at 
com.google.appengine.api.urlfetch.dev.LocalURLFetchService.access$100(LocalURLFetchService.java:82)
at 
com.google.appengine.api.urlfetch.dev.LocalURLFetchService$7.run(LocalURLFetchService.java:422)
at 
com.google.appengine.api.urlfetch.dev.LocalURLFetchService$7.run(LocalURLFetchService.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at 
com.google.appengine.api.urlfetch.dev.LocalURLFetchService.doPrivilegedExecute(LocalURLFetchService.java:409)
at 
com.google.appengine.api.urlfetch.dev.LocalURLFetchService.fetch(LocalURLFetchService.java:377)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at 
com.google.appengine.tools.development.ApiProxyLocalImpl$AsyncApiCall.callInternal(ApiProxyLocalImpl.java:527)
at 
com.google.appengine.tools.development.ApiProxyLocalImpl$AsyncApiCall.call(ApiProxyLocalImpl.java:481)
at 
com.google.appengine.tools.development.ApiProxyLocalImpl$AsyncApiCall.call(ApiProxyLocalImpl.java:458)
at java.util.concurrent.Executors$PrivilegedCallable$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.concurrent.Executors$PrivilegedCallable.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

the same in a simple java app work fine..

I had test in local 
can you help me?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/Zxe8m_zBy0wJ.
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 Docs and AppEngine: NoClassDefFoundError... why?

2012-05-23 Thread Mario Renato Uriarte Amaya
Hi patmoore,

I have the same problem

https://groups.google.com/forum/?fromgroups#!topic/google-contacts-api/mvh9xOk13KQ
 

Did you find any solution ?

Thks

El miércoles, 23 de septiembre de 2009 14:53:07 UTC-5, patmoore escribió:

 Hi there --

 I am running into one of those problems that makes you feel very stupid.

 I have an java application that works just fine when running using the 
 Google WebApp plugin on Eclipse 3.5. I have the 1.2.5 version. 

 Great! ready to upload! Except that I get NoClassDefErrors when I try to 
 run the application on AppEngine

 Uncaught exception from servlet
 java.lang.NoClassDefFoundError: Could not initialize class 
 com.google.gdata.client.http.GoogleGDataRequest


   at 
 com.google.gdata.client.http.GoogleGDataRequest$Factory.createRequest(GoogleGDataRequest.java:73)
   at 
 com.google.gdata.client.http.HttpGDataRequest$Factory.getRequest(HttpGDataRequest.java:162)
   at com.google.gdata.client.Service.createRequest(Service.java:697)


   at 
 com.google.gdata.client.GoogleService.createRequest(GoogleService.java:525)
   at com.google.gdata.client.Service.createFeedRequest(Service.java:1074)
   at com.google.gdata.client.Service.getFeed(Service.java:915)


   at com.google.gdata.client.GoogleService.getFeed(GoogleService.java:631)
   at com.google.gdata.client.Service.getFeed(Service.java:935)


 I suspect that there might be a underling issue and the real not a missing 
 class ... but there is no information other than this

 Any thoughts ?

 (attached is the war/WEB-INF/lib listing ) 

 -Pat



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/Bzn1Y0D0IPYJ.
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.



[appengine-java] how upload files to google cloud storage

2012-02-01 Thread Mario Andrés Topa
Hi.

I can't upload files to google cloud storage with java. I can upload the 
aplication to google App but I can't create a AppEngineFile. I used the 
example in the google storage api for java but it not work. 

I appreciate your help

thanks

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/4ezaqem-5hcJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[google-appengine] 'The 3000 limit' Guido has change the ticket status from accepted to started

2011-08-16 Thread Mario César

I have goose bumps.

→ http://code.google.com/p/googleappengine/issues/detail?id=4639#c17

-- Mario César

--
You received this message because you are subscribed to the Google Groups 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] I am unable to add an existing appengine app to a google apps Domain, why?

2011-02-22 Thread Mario César
Hello all,

I am having strange problems trying to add a google app engine app to
google apps. I hope someone could give me a hint about solving this.

I would try to be very descriptive, the issues is obscure for me, so I
would give all details:

Using  a gmail account I create an app on googleappengine named
venabolivia later the ownership was given to
marioce...@venabolivia.com an admin account for the domain.

So, I am the owner of the venabolivia app on googleappengine with my
account marioce...@venabolivia.com, also the admin of the domain
venabolivia.com.

When I try to add the google app service with the app to the domain it
raises the error You do not have the permissions necessary to install
this application.

How can it be, If I a owner of the app and admin of the domain?

Trying to add from the domain cpanel or from the appengine dasboard
raises the same error.

Any ideas?

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



[google-appengine] Re: I am unable to add an existing appengine app to a google apps Domain, why?

2011-02-22 Thread Mario César
Thank you Brandon,

But, it doesn't work I even clear all the cache and start from scratch
with no cookies and sign in with just the google app admin account.

I just get the error You do not have the permissions necessary to
install this application.

I think the problem was create the app with a gmail account, I create
apps with the google app admin account like venabolivia-testing, and I
can add this with no problems, and not the first I create
'venabolivia' ... This is so obscure to me, Why something so simple as
change owners is not working, specially for that google dashboard
shows me as owner ! if I am owner why I don't have
permission??? ... :'(

I wan to keep the name of the app, so it's frustating. I Think I would
have to delete the app and create again with the google app admin
account. I don't know ...


On 22 feb, 11:34, branflake2267 branflake2...@gmail.com wrote:
 Hi,
 I had the same problem when I added a domain to my project. I signed out of
 my gmail accounts I think to get it to work.. The google sign in process
 gets confused with account signed in, at least thats what I thought.

 Try signing out of the accounts except for google app engine dashboard.

 Brandon Donnelsonhttp://gwt-examples.googlecode.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] Using Google App Engine Queues service with Django

2011-01-26 Thread Mario César
Hello all,

I am trying to use Google App Engine queues API, and I am having
problems with this. It seems that in some part of the process the CSRF
it's not working or it's getting problems with the api.

as I understand the api executes the task calling the url and making
and http request in background.

The complete url is the API is calling is →
http://localhost.localdomain:8000/admin/cooking/recipe/36/chefworker/

When it raises this exception:

Traceback (most recent call last):
  File /home/mariocesar/Proyectos/Cooking/cooking/django/core/
handlers/base.py, line 100, in get_response
response = callback(request, *callback_args,
**callback_kwargs)
  File /home/mariocesar/Proyectos/Cooking/cooking/django/views/
decorators/csrf.py, line 24, in wrapped_view
resp.csrf_exempt = True
AttributeError: 'NoneType' object has no attribute 'csrf_exempt'

So, the csrf middleware, the cookie, some data or the response itself
is missing from the request that the GAE api makes to execute the task
in the background.

How to solve this without disabling CSRF on Django? however, it's
posible to have views for workers using  djangoappengine at all?

Down are the models.py and admin.py files I am using.

**models.py**

from django.db import models

class Recipe(models.Model):
name = models.CharField(max_length=140)
description = models.TextField()
cooking_time = models.PositiveIntegerField()
status = models.CharField(max_length=40)

def __unicode__(self):
return self.name

def cookthis(self):
import time
self.status = 'The chef is cooking this recipe'
self.save()
time.sleep(obj.cooking_time)
self.status = 'It\'s done ! the recipe is ready to serve'
self.save()

**admin.py**

import logging

from django.contrib import admin, messages
from django.http import HttpResponse
from django.utils.functional import update_wrapper
from django.contrib.admin.util import unquote
from django.shortcuts import get_object_or_404, render_to_response
from django import template
from django.core.urlresolvers import reverse
from google.appengine.api import taskqueue
from google.appengine.api.taskqueue import TaskAlreadyExistsError

from cooking.models import Recipe
from django.views.decorators.csrf import csrf_exempt

class AdminRecipe(admin.ModelAdmin):
def get_urls(self):
from django.conf.urls.defaults import patterns, url

def wrap(view):
def wrapper(*args, **kwargs):
return self.admin_site.admin_view(view)(*args,
**kwargs)
return update_wrapper(wrapper, view)

info = self.model._meta.app_label,
self.model._meta.module_name

urlpatterns = super(AdminRecipe, self).get_urls()
myurls = patterns('',
url(r'^(.+)/cook/$',
wrap(self.cook_view),
name='%s_%s_chefworker' % info),
url(r'^(.+)/chefworker/$',
wrap(self.chefworker_worker),
name='%s_%s_chefworker' % info),
)
return myurls + urlpatterns

def cook_view(self, request, object_id, extra_context=None):
obj = get_object_or_404(Recipe, pk=unquote(object_id))
if request.POST:
try:
taskqueue.add(
name=recipie-%s % obj.id,
url=reverse('admin:cooking_recipe_chefworker',
args=(obj.id,))
)
messages.add_message(request, messages.INFO, 'Chef
is cooking the recipe.')
except TaskAlreadyExistsError:
messages.add_message(request, messages.ERROR,
'chef is already cooking that recipe.')

context_instance = template.RequestContext(request,
current_app=self.admin_site.name)
return render_to_response(admin/cooking/recipe/
cook_view.html, {'object': obj}, context_instance=context_instance)

#TODO: Add csrf token on form
@csrf_exempt
def chefworker_worker(self, request, object_id,
extra_context=None):
import time

if request.POST:
obj = get_object_or_404(Recipe, pk=unquote(object_id))
obj.cookthis()

return HttpResponse('done')

admin.site.register(Recipe, AdminRecipe)


A VERY IMPORTANT NOTE:
Was hard to debug this error, cause the dev_appserver logger was just
raising 403 errors, no other info; so, I have to patch the file google/
appengine/api/taskqueue/taskqueue_stub.py line 574 and add
logging.info('response --- \n%s' % result) to get the output of the
exceptions.

I would appreciate any help

Best Regards

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group,