[google-appengine] Re: live debugging is horribly implemented
You should also see the exception info in the log if it wasn't handled at all. On Aug 28, 3:58 pm, Alexander Kojevnikov [EMAIL PROTECTED] wrote: Do you use the logging module?http://code.google.com/appengine/docs/python/logging.html You can try/except your code like this: try: code_that_can_fail() except: logging.error('your_message', exc_info=sys.exc_info()) You will then see the full exception information, including the stack trace in the admin console / logs. On Aug 28, 2:31 pm, Killarny [EMAIL PROTECTED] wrote: It is very frustrating that the dev_appserver will validate and run code that does not run on the live server. Even more frustrating is that the live server doesn't provide a way to view python traceback to determine what the actual problem is. Does anyone know of a technique that I can use to debug my live server, other than trial and error updates? I'm getting a mysterious 500 server error with my code, but the code runs perfectly under dev_appserver! Frustrated, Killarny --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Logs are counted in the Storage Quota ?
Today my app jumps from 0.5 to 5MB without new entities. But i've added a lot of debug info in the log. I'd like to know if the logs are counted in the storage quota ? and how long the logs are keeped before beeing deleted. Thank you Regards. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: When is GAE going to support Django 1.0?
On Aug 27, 5:22 pm, Damien Hou [EMAIL PROTECTED] wrote: Thanks, Matt. I'll try the latest helper with the coming 1.0. I've been using appengine patch for my django projects. Not sure what the patcher guys' plan is, though. Our plan is to support 1.0 when it's released (in the repository we're now compatible with trunk). Also, if no django folder is found in common or the project root folder the one from the SDK will be used instead (preparing for Google to add Django 1.0). Apart from that, you can see a very minimalistic roadmap in the release notes: http://code.google.com/p/app-engine-patch/wiki/ReleaseNotes Bye, Waldemar Kornewald --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Having doubts about AppEngine
On Aug 28, 12:27 pm, Filip [EMAIL PROTECTED] wrote: But most worrying to me is the Google Quota system. When Google does metrics on the uptime of their service, they should not count the uptime of their service, but the availability of their service to me, that is what matters to me. In particular, it is totally unacceptable that a GAE-based site becomes unreachable for minutes, let alone for hours or better parts of the day. Clearly, attacks should be avoided by denying traffic when it ramps up suspiciously fast, but bringing down the customer's site all together is out of the question. It's not a customer's site. You're not Google's customer until you start paying them, and when you start paying them the quotas won't bring down your site because you'll be paying them for the usage over the quota. Instead of comparing their free preview service to S3, try comparing it to any other free hosting service out there. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] user objects different based on email case?
Hi everyone, quick question. class Tests(webapp.RequestHandler): def get(self): user1 = users.User(email=[EMAIL PROTECTED]) user2 = users.User(email=[EMAIL PROTECTED]) if user1 == user2: self.response.out.write(users are the same) else: self.response.out.write(users are different) The result is that users are different -- I'm surprised by that. Shouldn't they be the same? Especially savraj and Savraj both point to my valid google account? I can work around this issue but according to the API documentation I would assume that user1 and user2 are equal. Thanks for your help! -Savraj --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] UserProperty() behavior [ [EMAIL PROTECTED] vs [EMAIL PROTECTED] ]
We are extracting the crux of the problem from a large system, under development. Problem : db.UserProperty() behavior with [EMAIL PROTECTED] Vs [EMAIL PROTECTED] Data model :Class Visitor : name = db.UserProperty() ... ... Assignment : user = users.GetCurrentUser() Datastore : visitor = Visitor() visitor.name = user visitor.put() Case 1: A user signs in with : [EMAIL PROTECTED] observation :visitor.name stores ( only user.nickname() ) Case 2:A user signs in with: [EMAIL PROTECTED] obsrevation : visitor.name stores [EMAIL PROTECTED] Subsequent search by : q=gqlQuery( Select * from Visitor WHERE name = :1 , user ) Observation : when signed in with yahoo id q gets the correct instance while signed with gmail is q gets None What mistake were we making ? In SDK : The observation is the same, excepting it allows sign in with and fetches the record. After hosting : [EMAIL PROTECTED] / just x makes no difference ; q gets none. We solved the problem by storing user.email() in an EmailProperty() and subsequently matching it with user.email() in the select statements. But we are not happy with this, as we see expert directives for not storing email addresses. Any help ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Having doubts about AppEngine
We don't have the option of paying Google yet, but I think most of us plan to become paying customers later. What's worrying to me is not the quota system per se, which makes sense for a free service, but the way people are reporting that they seem to be exceeding quota far more rapidly than appears justified by their usage. This seems to imply a potential of unexpectedly high charges, once we become paying customers. On 8/28/08, Wooble [EMAIL PROTECTED] wrote: On Aug 28, 12:27 pm, Filip [EMAIL PROTECTED] wrote: But most worrying to me is the Google Quota system. When Google does metrics on the uptime of their service, they should not count the uptime of their service, but the availability of their service to me, that is what matters to me. In particular, it is totally unacceptable that a GAE-based site becomes unreachable for minutes, let alone for hours or better parts of the day. Clearly, attacks should be avoided by denying traffic when it ramps up suspiciously fast, but bringing down the customer's site all together is out of the question. It's not a customer's site. You're not Google's customer until you start paying them, and when you start paying them the quotas won't bring down your site because you'll be paying them for the usage over the quota. Instead of comparing their free preview service to S3, try comparing it to any other free hosting service out there. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Image reflection effect
Has anyone tried to produce the reflection effect using the current images API? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: javascriptrun - server-side JavaScript
Can you give an overview on how this is supposed to work ? The example just shows how to create some HTML with Javascript, but can one write the whole MVC thingy in JS using our framework ? And once the JS is parsed, what happens then ? Do you create Python source code or do you somehow manage to inject the logic into a running app ! btw. I once started myself to write a JS framework running on a non-JS platform (http://erlyjs.googlecode.com) regards Roberto On Aug 28, 3:39 pm, Davide Rognoni [EMAIL PROTECTED] wrote: javascriptrun allows you to build web applications by server-side JavaScript. This idea is inspired to Netscape and based on SpiderMonkey. javascriptrun: One syntax for client and server. http://pyoohtml.appspot.com/javascriptrun --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: how to upload/download CSV file on Google App Engine
Downloading Data From GAE Using Pickle http://groups.google.com/group/google-appengine/browse_thread/thread/b480610aa0eddfac/84e3606f3e8e1f0e?lnk=gstq=davide+rognoni+pickle#84e3606f3e8e1f0e On Aug 28, 5:05 am, VV [EMAIL PROTECTED] wrote: Hi, I'm new for Python and Google App Engine, So may I ask a very simple or very stupid question ; ( I'm trying to upload a table from a csv file , store to google data store and show this table on the web. then in another page, I need compose the query result to a table and also this table can be downloaded in csv format. is anybody can share the code for the above scenarios? thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: GQL Query issue
José, Many different workarounds are available, depending on your circumstances. The simplest (not ideal) thing to do would be to run two queries and then take the intersection of the two results, i.e.: q1 = Model.gql(WHERE prop1 :1, number1) q2 = Model.gql(WHERE prop2 :1, number2) batch1 = q1.fetch(1000) batch2 = q2.fetch(1000) result = [] for entity in batch1: if entity in batch2: result.append(entity) return result If you give us a little more context, maybe people who have similar situations can share with you how they have dealt with the limitation. In my case, I had to change the way I store my data so that I can get the right results with only one inequality operator per query (but name equality operators). Nevin On Aug 28, 12:07 pm, fdezjose [EMAIL PROTECTED] wrote: Hello! I'm new in the App Engine world and I've run into an issue that's driving me crazy. I need to compare two properties (ex. propertyA 4 AND propertyB 8) But by doing that I've discovered that only one property per query may have inequality filters... Any suggestion or workaround to be able to accomplish this task? Thanks! José Luis --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: weird db bug for any ReferenceProperty if it's named entity
Jeff, it's issue 673 in the bug tracker. Cheers, Alex On Aug 29, 8:38 am, Jeff S (Google) [EMAIL PROTECTED] wrote: Great catch Alexander, I'll make sure that this gets added to the documentation. Cheers, Jeff --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: how to upload/download CSV file on Google App Engine
Just set up a page which formats the data as CSV - you'll need to modify the headers so your browser knows it isn't HTML. Then provide a form to upload your modifed data, and write it back to the datastore. On Aug 29, 2:05 pm, VV [EMAIL PROTECTED] wrote: Thanks for your guys guidance. but it's not to use the buIk upload procedure. I should explain more about my project. the first is to edit a table more easier . for example: customer product price CSTM_A PDT_A 1,000.00 CSTM_A PDT_B 2,000.00 CSTM_A PDT_C 1,000.00 CSTM_B PDT_A 1,050.00 CSTM_C PDT_C 950.00 So if I can download/upload this table, then it will more easy for me to edit it through the excel. but I don't know how to set up the download/upload procedure for it ; ( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Encoding character. How to search/store strings with non-ascii chars?
Hi all, I have a problem to get data that uses non ascii characters such as º,ª,á,é,í,ó,ú... I will explain how do I store and try to retrieve the data: On top of the python source file I have: # -*- coding: utf-8 -*- The form input: input type=text name=title value= / Processing the form: def post... ... category.title = self.request.get(title) ... category.put() I fill the form with a category with title Fórmula 1 I fill the form with a category with title Baloncesto (basket) Trying to find the category by title ctmp = Category.gql(WHERE title = :1,Fórmula 1).get() if ctmp is None: self.response.out.write(Enjuto says: I cannot find tilded words :_() else: self.response.out.write(Pataliebre! I found it) Searching Fórmula 1 is always None, but searching Baloncesto works fine. Somebody knows how do I have to store and retrieve data that has no ascii chars? Thank you in advance. Juan. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---