[appengine-java] Class XXX has collection field x and this has no mapping in the table for the element class YYY owner field y

2010-08-18 Thread cghersi
Hi to everybody, I'm new to JDO and Google App Engine, and I'm facing a show-stopper problem right now. I've got two classes, TPUser and TPContact, and TPUser has a list of TPContacts. Here there are the code snippets: @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable =

[appengine-java] Facebook API: Invalid uri contanining localhost

2010-08-18 Thread cghersi
Hi, I'm trying to connect to Facebook API, and to get the access token. I'm able to retrieve the code parameter following the instructions in: http://developers.facebook.com/docs/authentication/ but when I want to exchange this code with the access token, I find a strange behaviour: in my

[appengine-java] Re: Facebook API: Invalid uri contanining localhost

2010-08-18 Thread cghersi
Guys, I solved it myself. The problem was in the code parameter, that must be encoded before fetching the URI. so the right code is: String redirUrl = https://graph.facebook.com/oauth/access_token? client_id= + fbAPIKey + redirect_uri= +

[appengine-java] Facebook API Integration

2010-08-18 Thread Ahmed Shoeib
hi all , i want a simple application explain how to integrate facebook api with my app engine application best regards, ahmed shoeib java developer -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email

Re: [appengine-java] SDK 1.3.6 released!

2010-08-18 Thread Gleidson G Moura
Ok! good! 2010/8/17 Ikai L (Google) ika...@google.com: Hey guys, This is just a heads up that App Engine SDK version 1.3.6 is officially released! Read more about it here: http://googleappengine.blogspot.com/2010/08/multi-tenancy-support-high-performance_17.html Release notes for Java are

[appengine-java] presentation about GAE

2010-08-18 Thread Ahmed Shoeib
hi all , i want a presentation about google app engine how to make application , how to deploy it , how to manage the application best regards, ahmed shoeib java developer -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to

[appengine-java] Re: Any ETA for a backup/restore facility?

2010-08-18 Thread luka
Hi John, The project http://code.google.com/p/remote-datastore/ No longer compiles, since Google newest SDK removed the following classes/interfaces: com.google.appengine.tools.development.ApiProxyLocalFactory com.google.appengine.tools.development.LocalServerEnvironment Can you workaround

[appengine-java] Re: SDK 1.3.6 released!

2010-08-18 Thread dflorey
Are there plans to implement faster count() that does not grow with the result set size or is this not possible due to the nature of the datastore? On Aug 18, 2:34 pm, Gleidson G Moura gleidson.gmo...@gmail.com wrote: Ok! good! 2010/8/17 Ikai L (Google) ika...@google.com: Hey guys,

[appengine-java] The class java.lang.String is not persistable.

2010-08-18 Thread rsutaria
Hello, I am just starting off with the Google App Engine and am trying to understand its datastore and how to use JDO (I am new to JDO too). I am trying to make a String persistent as follows: @Persistent private String inputName; At run time I am getting this error:

[appengine-java] Re: The class java.lang.String is not persistable.

2010-08-18 Thread Stephen
It sounds to me like your Class is missing some things. Make sure you have the line below right above your class declaration: @PersistenceCapable(identityType = IdentityType.APPLICATION) public class AuditEntry { On Aug 18, 2:04 am, rsutaria rsuta...@gmail.com wrote: Hello, I am just

Re: [appengine-java] Re: SDK 1.3.6 released!

2010-08-18 Thread Ikai L (Google)
It's not possible, you'll have to traverse the index no matter what. I advise counting either offline or on write if this is possible. With very large numbers, the 90% use case is that you want an approximation. There may be techniques for approximating (similar to Google Search or Gmail), but

[appengine-java] countEntities() does not return more than 1000

2010-08-18 Thread Yasuo Higa
Hi all, According to appengine SDK 1.3.6 release notes, results of datastore count() queries and offsets for all datastore queries are no longer capped at 1000. I guess datastore count() means PreparedQuery#countEntities(). But PreparedQuery#countEntities() does not seem to return more than

[appengine-java] Changing the visible url path for the welcome page of my app engine hosted page

2010-08-18 Thread culov
I'm using Google Apps to manage my domain and GAE Java for hosting. Because I need a way to differentiate distinct cities for my app, I initially decided to use subdomains to do this. Now, however, I've realized that this has detrimental effects when it comes to SEO because google treats

[google-appengine] Re: How to write a C# client to access google app engine?

2010-08-18 Thread Vassili
I do understand how browsers work:) Unfortunately the request sent by the web browser is quite hidden by Google App Engine plugin in all the html/java script unfriendly looking files it creates for you. I even do not know the name of the parameter of this default google app engine project. What I

[google-appengine] Re: How to write a C# client to access google app engine?

2010-08-18 Thread bFlood
here's a decent example of how to use C# to authenticate using Google ClientLogin. There enough code in there to see how you would GET/POST against HTTP endpoints as well http://dalelane.co.uk/blog/?p=894 we use C# (but any language would do) for our client libraries and bulkloader and its been

[google-appengine] Re: Can't access my Datastore Viewer

2010-08-18 Thread magnum
Thanks Ikai, Is there a way to see edit the bogus entities through datastore viewer? On 13 Aug, 18:55, Ikai L (Google) ika...@google.com wrote: You won't be able to avoid the CPU time. It costs CPU time to delete entities. On Thu, Aug 12, 2010 at 12:29 PM, magnum

Re: [google-appengine] Federated login with User.user_id() or User.federated_identity()

2010-08-18 Thread Jeff Schwartz
On 8/15/10, Ben Wilber benwil...@gmail.com wrote: Hello, I am using federated login for authentication. So far everything is working and I can successfully auth against gmail, blogspot, launchpad etc. The question I have is whether I should be using the User.federated_identity or

Re: [google-appengine] Does GAE cache code compiled with builtin compile() function?

2010-08-18 Thread Nick Johnson (Google)
Hi, The Python implementation is in most respects the same as CPython. Thus, it doesn't cache calls to compile unless CPython does, which, to the best of my knowledge, it doesn't. -Nick Johnson On Tue, Aug 17, 2010 at 8:58 PM, HGF herbert.fisc...@gmail.com wrote: Hi, Does GAE cache compiled

Re: [google-appengine] Does ReplyTo email address need to be a developer?

2010-08-18 Thread Nick Johnson (Google)
Hi Jason, The restrictions for the Python runtime are the same: the sender address must be either the address of an administrator, the address of a logged in user, or a valid address for that app to receive email on. -Nick Johnson On Mon, Aug 16, 2010 at 11:33 PM, Jason C

Re: [google-appengine] Does ReplyTo email address need to be a developer?

2010-08-18 Thread Jody Belka
Hi Nick, You meean ReplyTo address there, not sender address, right? Jody On 18 August 2010 13:08, Nick Johnson (Google) nick.john...@google.comwrote: Hi Jason, The restrictions for the Python runtime are the same: the sender address must be either the address of an administrator, the

Re: [google-appengine] Does ReplyTo email address need to be a developer?

2010-08-18 Thread Nick Johnson (Google)
Hi Jody, On Wed, Aug 18, 2010 at 1:28 PM, Jody Belka j...@jj79.org wrote: Hi Nick, You meean ReplyTo address there, not sender address, right? I believe the same restrictions apply to both. -Nick Jody On 18 August 2010 13:08, Nick Johnson (Google) nick.john...@google.comwrote: Hi

Re: [google-appengine] The relation between megacycles and cpu used

2010-08-18 Thread Nick Johnson (Google)
Hi, It sounds like you're accounting for CPU megacycles, but not API CPU megacycles. You also need to call quota.get_request_api_cpu_usage(). -Nick Johnson On Tue, Aug 17, 2010 at 7:38 AM, MyElasticEye sarp.er...@gmail.com wrote: Hi, I have been trying to optimize the App Engine application

Re: [google-appengine] What is datastore_v3?

2010-08-18 Thread Nick Johnson (Google)
Hi, datastore_v3 is the name of the backend service that processes requests to the App Engine datastore. It's not explicitly documented, as it's an implementation detail. -Nick Johnson On Tue, Aug 17, 2010 at 12:30 PM, IvyTang ivytang0...@gmail.com wrote: now i'm studying the data transfer

Re: [google-appengine] Does ReplyTo email address need to be a developer?

2010-08-18 Thread Joshua Smith
You can have Reply To be anybody. I often use that trick to work around the sender-must-be-a-developer rule. On Aug 18, 2010, at 8:29 AM, Nick Johnson (Google) wrote: Hi Jody, On Wed, Aug 18, 2010 at 1:28 PM, Jody Belka j...@jj79.org wrote: Hi Nick, You meean ReplyTo address there, not

[google-appengine] Re: Does ReplyTo email address need to be a developer?

2010-08-18 Thread Niklasro(.appspot)
Dear guys, could you elaborate or point to an example where these are different so that we can understand: *admin address *valid address for that app to receive email on With many thanks for teaching and helping us here (Nick Rosencrantz) -- You received this message because you are subscribed

Re: [google-appengine] Re: Can't access my Datastore Viewer

2010-08-18 Thread Eli Jones
Just use the remote_api to get and examine the bad entities. If you know the bad characters.. just strip them out or replace them with a dummy character and re-put the entities to the datastore. On Wed, Aug 18, 2010 at 6:53 AM, magnum p.magnow...@gmail.com wrote: Thanks Ikai, Is there a way

[google-appengine] Issues writing a resource (image) to the response stream

2010-08-18 Thread JavierH
Hi ! I was trying to upload images and showing them exactly in the way it's described in http://code.google.com/appengine/kb/java.html#fileforms It seems like it works fine for small images, but when they are bigger, i.e. 100 K, it hangs when doing the write of the response and after a while it

[google-appengine] Is there a way a plugin development happens in google app engine.

2010-08-18 Thread Chandrashekar
For example, if you want to add a commnity page to your webpage , you can use phpbb to add it to your site. and in wordpress you have lot of pluggins which you can use. Is there a way you can write/add pluggins to your app engine project. Like i am planning to create a question and answer

[google-appengine] GQL - Delete entries by ID

2010-08-18 Thread TZ
Hi. I want to recode my python webapplication script because it should run on the Google App Engine. Before I used SQL but now I must rewrite my database queries in GQL/ Datastore by Google. I have problems to delete database entries. I want delete entries by ID but it doesn't work. My db class:

[google-appengine] XMPP: Adding anyth...@app-id.appspotchat.com to the contacts list fails

2010-08-18 Thread Emiliano Heyns
Hi, Adding app...@appspot.com yields an immediate positive reply (contact added), but anyth...@app-id.appspotchat.com doesn't. Must my GAE app send out the invite? I'd rather have the user inititate. -- You received this message because you are subscribed to the Google Groups Google App Engine

[google-appengine] Looking For: A “demo” web web -based application that uses web services

2010-08-18 Thread Steve Engle
Looking For: A “demo” web web-based application that uses web services Greetings – I am using GAE to experiment with various software techniques to capture and analyze the messages being exchanged between web services, web services that together would form a cloud hosted web application. One of

Re: [google-appengine] Looking For: A “demo” web web-based application that uses web services

2010-08-18 Thread rudolf michael
Well when using web services in java, i am using GroovyWS http://groovy.codehaus.org/GroovyWS http://groovy.codehaus.org/GroovyWSthis is a dynamic language that has the option to load web services on the fly and i guess that you only need to include the jar in your project so you can use it on GAE

Re: [google-appengine] Is there a way a plugin development happens in google app engine.

2010-08-18 Thread Herbert Fischer
The only way to do this is uploading files using GAE SDK. I'm working in a different way, but using DB and I don't know if this will have good performance. On Tue, Aug 17, 2010 at 23:32, Chandrashekar chandrashekar.vijayar...@gmail.com wrote: For example, if you want to add a commnity page

Re: [google-appengine] GQL - Delete entries by ID

2010-08-18 Thread Jeff Schwartz
I don't use Python but... key ids are unique within entity groups so unless your entities are in entity groups you'd only have one with an id of 20. On Wed, Aug 18, 2010 at 8:33 AM, TZ zam...@googlemail.com wrote: Hi. I want to recode my python webapplication script because it should run on

Re: [google-appengine] Issues writing a resource (image) to the response stream

2010-08-18 Thread Jeff Schwartz
some server-side and client-side code might help On Tue, Aug 17, 2010 at 8:13 PM, JavierH javierh...@gmail.com wrote: Hi ! I was trying to upload images and showing them exactly in the way it's described in http://code.google.com/appengine/kb/java.html#fileforms It seems like it works fine

[google-appengine] Re: Does ReplyTo email address need to be a developer?

2010-08-18 Thread PK
Per RFC 2822 E-mails have two fields: From and Reply-To. Both these fields are exposed in Python's mail.EmailMessage as sender and reply_to attributes. In my hands on experience with GAE Python these two fields can be different. The sender MUST be an app administrator or a logged in user but the

Re: [google-appengine] GQL - Delete entries by ID

2010-08-18 Thread Eli Jones
If you want to get something by it's ID, you'd probably want to use get_by_id(): http://code.google.com/appengine/docs/python/datastore/modelclass.html#Model_get_by_id http://code.google.com/appengine/docs/python/datastore/modelclass.html#Model_get_by_idwhere you could give it a single ID.. or a

[google-appengine] Re: SDK 1.3.6 released!

2010-08-18 Thread Spines
Thank you App Engine Team! I had been struggling with how I would get a decent solution for displaying lots of thumbnail images on one page, and with this release and the getServingUrl function, it seems like my problems are solved! On Aug 17, 2:19 pm, Ikai L (Google) ika...@google.com wrote:

[google-appengine] Login Dialog - invalid XML Syntax

2010-08-18 Thread brianl
On the dev server the login dialog page sometimes fails to appear. Seeing a invalid XML Syntax error message that points to this code... input type='text' name='email' id='email'value='t...@example.com' Please fix this issue. -- You received this message because you are subscribed to the

[google-appengine] Re: Login Dialog - invalid XML Syntax

2010-08-18 Thread brianl
Think it appears when protected static resources. On Aug 18, 11:46 am, brianl licht...@gmail.com wrote: On the dev server the login dialog page sometimes fails to appear. Seeing a invalid XML Syntax error message that points to this code...  input type='text' name='email'

[google-appengine] Re: Login Dialog - invalid XML Syntax

2010-08-18 Thread brianl
This issue is appearing in production environment as well. On Aug 18, 12:02 pm, brianl licht...@gmail.com wrote: Think it appears when protected static resources. On Aug 18, 11:46 am, brianl licht...@gmail.com wrote: On the dev server the login dialog page sometimes fails to appear.

[google-appengine] Re: Does ReplyTo email address need to be a developer?

2010-08-18 Thread VladS
While we on the subject of sender address does anybody have an understanding when outgoing E-mils are stored in Sent Mail folder of account that is sending E-mails? When I send e-mails from my gmail account the messages are in Sent Mail But what happens when sending account is Google Apps

[google-appengine] Re: Login Dialog - invalid XML Syntax

2010-08-18 Thread brianl
The static resource being protected is a javascript file. On Aug 18, 12:29 pm, brianl licht...@gmail.com wrote: This issue is appearing in production environment as well. On Aug 18, 12:02 pm, brianl licht...@gmail.com wrote: Think it appears when protected static resources. On Aug 18,

[google-appengine] blob_info.key()

2010-08-18 Thread Massimiliano
Hi, can someone help me with this? class UploadHandler(blobstore_handlers.BlobstoreUploadHandler): def post(self): upload_files = self.get_uploads('foto') blob_info = upload_files[0] foto = FOTO.all() foto.fotokey = blob_info.key() foto.put() self.redirect('/foto') Why it's not working? (It

[google-appengine] Security exception using the new getServingUrl capabilities on dev server

2010-08-18 Thread Spines
getServingUrl works fine, returning a url of http://localhost:8080/_ah/img/sxO56aAM_qVlARX4ym61bQ, but when i navigate my browser to that url i get a security exception: any ideas how to fix this, or is it a dev server bug? Aug 18, 2010 8:14:45 PM com.google.apphosting.utils.jetty.JettyLogger

[google-appengine] Re: GQL - Delete entries by ID

2010-08-18 Thread Geoffrey Spear
On Aug 18, 8:33 am, TZ zam...@googlemail.com wrote: The column ID is generated and filled with consecutive numbers automatically. True? No. IDs aren't consecutive, and they're not in a column; the ID is a part of the Key, not a property of the datastore entity (strictly speaking, your actual

Re: [google-appengine] Chart/Finance software for purchase/develpment

2010-08-18 Thread Ikai L (Google)
No, this isn't the best place to post these questions, as they're not App Engine related, they're general web development related. There's the Google Visualizations API, which does some of the things you need: http://code.google.com/apis/visualization/documentation/gallery.html In the past,

[google-appengine] Re: Login Dialog - invalid XML Syntax

2010-08-18 Thread brianl
Gotta protected the static resource, javascript file, with a html file first. On Aug 18, 12:31 pm, brianl licht...@gmail.com wrote: The static resource being protected is a javascript file. On Aug 18, 12:29 pm, brianl licht...@gmail.com wrote: This issue is appearing in production

[google-appengine] Re: Does ReplyTo email address need to be a developer?

2010-08-18 Thread Jason C
For sure the Python Mail API does not raise an exception when using a ReplyTo that is not a developer, etc. However, I _think_ it does raise an exception for the From field. What we have been seeing is intermittent delivery (recently) when using a ReplyTo that is not a developer, etc. We are

[google-appengine] Recursive Task with try catch DeadlineExceededException

2010-08-18 Thread alon
Hey, I need to keep a task running and monitoring twitter stream api. Is it possible to initiate a task that does try catch DeadlineExceededException task.add the same task again? so basically the task will always rerun itself over and over and over indefinitely? i dont mind it ending after

[google-appengine] Re: The relation between megacycles and cpu used

2010-08-18 Thread MyElasticEye
To be honest, I don't know the differene btw the API CPU cycles and the CPU cycles. On Aug 18, 3:27 pm, Nick Johnson (Google) nick.john...@google.com wrote: Hi, It sounds like you're accounting for CPU megacycles, but not API CPU megacycles. You also need to call

[google-appengine] Re: Recursive Task with try catch DeadlineExceededException

2010-08-18 Thread MyElasticEye
Why don't you just add that task to a queue and if it fails, it will automatically re-execute itself and run again in a few minutes. On Aug 19, 12:00 am, alon alon.car...@gmail.com wrote: Hey, I need to keep a task running and monitoring twitter stream api. Is it possible to initiate a task

Re: [google-appengine] Re: Recursive Task with try catch DeadlineExceededException

2010-08-18 Thread Alon Carmel
thats what im asking. can i re-instate recursively a task every time it fails dues making the task run forever? - Cheers, def AlonCarmel(request) import simplejson as json contact = {} contant['email'] = 'a...@aloncarmel.me' contact['twitter'] = '@aloncarmel'

[google-appengine] Re: Logging Console in Mac Launcher

2010-08-18 Thread John Gardner
Know what would be better? A pause button. With ajax requests going and lots of logging, the console is pretty unusable; you can't even copy/paste unless you are inhumanly fast. On Aug 17, 7:56 pm, Matt H matt2...@gmail.com wrote: Yup. I 3 this. On Aug 17, 11:37 pm, Jason C

Re: [google-appengine] Re: Recursive Task with try catch DeadlineExceededException

2010-08-18 Thread Eli Jones
There are a number of ways you can do it. You could create a task that does an amount of work that takes well under 30 seconds to run.. and whenever it completes, it just adds itself back to the taskqueue. Or, as you mention, just make it so that your task just keeps running until the

[google-appengine] Re: How to write a C# client to access google app engine?

2010-08-18 Thread Vassili
Thanks for the link. So is it so hidden? Has anyone been able to decode the Webservice beyond the default project created with the Eclipse plugin? -- 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] HtmlUnit 2.8 on GAE - Anyone tried it?

2010-08-18 Thread Matt H
According to the release notes for HtmlUnit 2.8, it now works on GAE. Has anyone been able to get it working? -- 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-appeng...@googlegroups.com. To

[google-appengine] Re: How do I deauthenticate myself from the command prompt deployment script?

2010-08-18 Thread Albert
Hi! You can delete the .appcfg_cookies (and maybe the .appcfg_nag) files in your user folder. I think this are the files that are locally stored to authenticate you (until they expire). If you're on Vista (I am), it's found in C:\Users\Owner. I hope that helps. Albert On Aug 18, 11:19 am,

[google-appengine] Re: How to write a C# client to access google app engine?

2010-08-18 Thread Vassili
OK guys and gals, I got it! If you also use google app engine plugin for Eclipse, read on since there is a hack I have not found anywhere else out there. Here is the answer in C#: WebRequest request = WebRequest.Create(http:// 1.latest.myapp.appspot.com/appname/greet);

[google-appengine] Re: How to write a C# client to access google app engine?

2010-08-18 Thread Spines
I'm not sure what you're talking about with respect to decoding the Webservice, but my application uses a c# client to access it. Here is the c# code where it accesses it: HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url); req.Method = GET; req.KeepAlive = false; using (var respstream

[google-appengine] Re: How to write a C# client to access google app engine?

2010-08-18 Thread Vassili
My post is regarding Google App Engine Plug-in for Eclipse. I am working with the default project there (which is using a POST, not a GET, as in you case). Did you create your application using that plug-in? If not, then we are talking about different things. -- You received this message because

[google-appengine] Re: Security exception using the new getServingUrl capabilities on dev server

2010-08-18 Thread Francisco Ceruti
I have the same problem. Works fine when uploaded, the problem is on deve server. On Aug 18, 4:17 pm, Spines kwste...@gmail.com wrote: getServingUrl works fine, returning a url ofhttp://localhost:8080/_ah/img/sxO56aAM_qVlARX4ym61bQ, but when i navigate my browser to that url i get a security