[google-appengine] Re: How can I edit Entity by query use key.id?

2009-01-12 Thread buck
book = Books.get(Key(self.request.get('id'))) book.name = self.request.get(name) ... --~--~-~--~~~---~--~~ 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] Re: External database dump

2009-01-12 Thread Greg Temchenko
I don't think you can use bulk uploader for your purposes but you can just investigate how it works. However yes, you can update records. Just use the same key name for updated records. On Jan 11, 9:23 pm, gabon nuthink...@googlemail.com wrote: Well, Bulk Data Uploader seems definitely very

[google-appengine] Re: How to upload APP through an *proxy server with basic authentication* .

2009-01-12 Thread ramu
No replies yet... On Jan 11, 5:45 am, ramu rslet...@gmail.com wrote: Dear Google App Engine Developer , I am halfway completing my real app but can't get a way to upload this basic learning hello world app. Please Help Me. I am ataching the error logs as screen shoot. Thanks in advance.

[google-appengine] phone number wont verify

2009-01-12 Thread computero71
cant point my cname to *appspot or ghs.google wants to verify phone number then says already used to verify ? man ill tell ya was working fine for 1 evening the next morning wont hit --~--~-~--~~~---~--~~ You received this message because you are

[google-appengine] Re: How to upload APP through an *proxy server with basic authentication* .

2009-01-12 Thread Alexander Kojevnikov
Try replacing SET HTTP_PROXY = 202:141:80:22:3128 with SET HTTP_PROXY=http://202.141.80.22:3128; On Jan 12, 10:59 pm, ramu rslet...@gmail.com wrote: No replies yet... On Jan 11, 5:45 am, ramu rslet...@gmail.com wrote: Dear Google App Engine Developer , I am halfway completing my

[google-appengine] Re: Creating a short unique URL for an entity

2009-01-12 Thread Jesse Grosjean
You could use the id instead of the key, key().id, then you can get it back with just DocModel.get_by_id(id) You should be able to go straight to the doc without the parent account id /doc/12345 I'm not sure you can guarantee id uniqueness across your whole data store, but it should be

[google-appengine] Multiple WSGI apps

2009-01-12 Thread arnie
Hi all Using Google App Engine SDK with default port setting of 8080. I have two WSGI applications [App1 and App2 both are web services with no UI related code in them]. App1 is running on default port 8080. Can dev server listens for multiple web applications on same port? If no, then what other

[google-appengine] Re: Multiple WSGI apps

2009-01-12 Thread djidjadji
Why not select the two different Apps with your app.yaml file - url: /app1/.* script: App1.py - url: /app2/.* script: App2.py Or you can put both handlers in one py file and select the one you need with class

[google-appengine] Re: Creating a short unique URL for an entity

2009-01-12 Thread Anthony
http://groups.google.com/group/google-appengine/browse_thread/thread/517a9ad5edd263d2/67a5160882462463?lnk=gstq=are+ids+unique#67a5160882462463 http://code.google.com/appengine/docs/datastore/keysandentitygroups.html#Entity_Groups_Ancestors_and_Paths Looks like they are unique for a given kind

[google-appengine] Possible workaround for datastore timeouts

2009-01-12 Thread bowman.jos...@gmail.com
I've added issue 982: http://code.google.com/p/googleappengine/issues/detail?id=982 as an issue to include a possible workaround for the datastore timeouts. Here's the text of the issue: From what I can tell, it's not a case of if you're going to get datastore timeouts on puts, but when. My

[google-appengine] Re: why java

2009-01-12 Thread Raffaele Castagno
On Dec 31 2008, 5:04 pm, Aramaki ciber...@gmail.com wrote: - The comunity interest in implementingjavawill give you so much advantage or it is because you do no want to learn python For me, the same reason I prefer groovy over other dynamic languages: I know java. I have a java background, I

[google-appengine] typical scenario

2009-01-12 Thread arnie
Hi all I have three folders BusinessList Conversion DB First two folders contains one WSGI app [no UI] each. The last folder contains a datta model [2 tables with 1- to Many relationship] Each WSGI app accesses the data model in DB folder. My problem is that If I place the data model file in DB

[google-appengine] Re: Global Time Synchronisation Guarantees

2009-01-12 Thread Cesium
Marzia  in this thread has already said they dont offer any guarantees. Is Marzia a primary source? I'm still unsure how knowing that (say) it shouldnt deviate more than 10 seconds is actully going to help. What will you do with that figure? I'd compare the stated maximum uncertainty

[google-appengine] Re: typical scenario

2009-01-12 Thread Gipsy Gopinathan
I guess you can use the import statement in the other directories to access anything from DB floder lets say if you have models.py in DB folder contains your data model classes then in the other directories you can access it by from DB import models On Mon, Jan 12, 2009 at 9:09 AM,

[google-appengine] Re: typical scenario

2009-01-12 Thread Alexander Kojevnikov
Try adding an empty __init__.py file into your DB folder. This marks the DB folder as a 'package' and allows you to import modules from it. More info at: http://www.python.org/doc/2.5.2/tut/node8.html On Jan 13, 2:09 am, arnie parvez...@rediffmail.com wrote: Hi all I have three folders

[google-appengine] Re: Global Time Synchronisation Guarantees

2009-01-12 Thread Tony Arkles
On Jan 12, 9:18 am, Cesium cesiumpic...@gmail.com wrote: Marzia  in this thread has already said they dont offer any guarantees. Is Marzia a primary source? Yes, Marzia is part of the app engine team. --~--~-~--~~~---~--~~ You received this message because

[google-appengine] Re: Announcing: System Status Dashboard, Quota Details Page, and a Preview of Billing

2009-01-12 Thread Geoffrey Spear
The quota is 864 memcache API calls/day, and http://code.google.com/appengine/docs/quotas.html#Memcache doesn't list it as adjustable which seems to be an indication that you won't be able to purchase more. On Jan 11, 8:34 pm, altden alt...@gmail.com wrote: What about memcache? I could not

[google-appengine] Verification - what format will be accepted

2009-01-12 Thread bannerdyne
Hi, I am using a supported carrier in Australia. I cannot get my mobile number to be accepted. The message I get is: There were errors: * Mobile Number or Username Is there a special format I need to use? This is the format I am using. Any help would be appreciated. 61 000 000

[google-appengine] Re: How to upload APP through an *proxy server with basic authentication* .

2009-01-12 Thread Jan Hesko-Kołodziński
Have you change application name in app.yaml? 2009/1/12 ramu rslet...@gmail.com No replies yet... On Jan 11, 5:45 am, ramu rslet...@gmail.com wrote: Dear Google App Engine Developer , I am halfway completing my real app but can't get a way to upload this basic learning hello world

[google-appengine] Phone number verification error - Australia

2009-01-12 Thread bannerdyne
Hi, I am using a supported Australian carrier but am getting the following error when I try to verify. There were errors: * Mobile Number or Username I am using the following format 61 000 000. I have tried removing spaces, adding + symbol. Can you please tell me what the format for an

[google-appengine] Re: user login URLs in html/javascript

2009-01-12 Thread Geoffrey Spear
On Jan 11, 10:56 pm, thebrianschott schott.br...@gmail.com wrote: Gipsy, It is a consequence of my chosen design, to allow both clients and organizers to enter the app via the same door. This way the organizers can identify themselves before they enter the app so that they need not be

[google-appengine] Re: versions share db?

2009-01-12 Thread Roman
That means that there cannot be a change in the models definitions between versions. v2 of an app is presumably for testing, so the data there need not be preserved. If the data in v1 needs to be preserved after the switch to v2 one can always dump and restore the db. On Jan 11, 10:01 pm,

[google-appengine] Re: Global Time Synchronisation Guarantees

2009-01-12 Thread Cesium
Marzia  in this thread has already said they dont offer any guarantees. Is Marzia a primary source? Yes, Marzia is part of the app engine team. I'm hosed. Cesium --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[google-appengine] Re: Global Time Synchronisation Guarantees

2009-01-12 Thread Brett Slatkin
On Mon, Jan 12, 2009 at 9:59 AM, Cesium cesiumpic...@gmail.com wrote: Marzia in this thread has already said they dont offer any guarantees. Is Marzia a primary source? Yes, Marzia is part of the app engine team. I'm hosed. Cesium, What algorithm are you trying to implement that

[google-appengine] Re: External database dump

2009-01-12 Thread gabon
This HandleEntity looks very cool! thanks a lot, chr On Jan 12, 9:05 am, djidjadji djidja...@gmail.com wrote: You can implement your own HandleEntity() class MyLoader(bulkload.Loader):   def HandleEntity(self, entityNew): - look for an entity with the same primary key - if found      

[google-appengine] Re: user login URLs in html/javascript

2009-01-12 Thread thebrianschott
Geoffrey, It is not my desire to hardcode the urls, but I don't know how not to; my programming skills are limited. Or maybe I have not understood the suggests given here by you folks about how to do it in a way that is not hardcoded. The path a user takes in my application depends on whether

[google-appengine] Can Two Applications handshake info?

2009-01-12 Thread Krishna Gollapudi
Hello, I am trying to built a supply chain with two applications,say one application takes in the information from the user and the other application deals with one raw material. Suppose these two applications are hosted in google app engine,will they be able to exchange data? regards,

[google-appengine] Re: Update just one (or few) files

2009-01-12 Thread Marzia Niccolai
Hi, At this time, appcfg.py will update any file that has changed since the last update. There is now way to specify only a subset of files to update. -Marzia On Sat, Jan 10, 2009 at 10:06 AM, Nefarious mike...@gmail.com wrote: So, I want to update just one file on production GAE, however,

[google-appengine] Re: Global Time Synchronisation Guarantees

2009-01-12 Thread Cesium
What algorithm are you trying to implement that requires synchronized clocks? To my knowledge it's a pretty well-known best-practice to never rely on clocks being the same across a distributed system. Some algorithms can take advantage of closely correlated clocks, but I believe they never

[google-appengine] Re: Can Two Applications handshake info?

2009-01-12 Thread Jonk
On 12 tammi, 21:18, Krishna Gollapudi gnkchaita...@gmail.com wrote:    I am trying to built a supply chain with two applications,say one application takes in the information from the user and the other application deals with one raw material.   Suppose these two applications are hosted in

[google-appengine] What is the fastest way to check if an item is in the datastore?

2009-01-12 Thread SM
I have a simple model like this: class MyModel(db.Model): prop = db.StringProperty() active = db.BooleanProperty(default=False) Given an input string, s, I'd like to know if it is in the datastore. Would this be the best way to check? if MyModel.gql(WHERE prop = :1 AND active = True,

[google-appengine] Re: Can not delete entity using Data Viewer and a GQL query.

2009-01-12 Thread Marzia Niccolai
Hi, If you reply with your app id I can look in to it directly. If you can find the data in the dataviewer, however, you can get the key string (from the data's URL) and call db.delete() directly on that key in your application (if, for instance, you included something like shell with your

[google-appengine] Re: Update just one (or few) files

2009-01-12 Thread Ryan W
Version control becomes essential for maintaining app engine apps. With Subversion, for instance, you can tag your repository whenever you deploy, then keep working along the trunk. If you want to make a change to the current production app, check out the tag, make the change and deploy again.

[google-appengine] Re: Unsupported type in GQL query with IN clause

2009-01-12 Thread Paul
Am i doing something crazy or should i report this as a bug? On Jan 9, 6:45 pm, Paul pwid...@gmail.com wrote: I have a GQL query that works fine when theres only one Merchant Entity, but fails as below when theres more than 1, any ideas? merchantList= [e.key() for e in

[google-appengine] Re: Unsupported type in GQL query with IN clause

2009-01-12 Thread Marzia Niccolai
Hi, What is the model definition for Item? -Marzia On Mon, Jan 12, 2009 at 2:58 PM, Paul pwid...@gmail.com wrote: Am i doing something crazy or should i report this as a bug? On Jan 9, 6:45 pm, Paul pwid...@gmail.com wrote: I have a GQL query that works fine when theres only one Merchant

[google-appengine] Re: I need help~

2009-01-12 Thread Marzia Niccolai
Hi, execfile is a builtin Python function, so it seems like there is something amiss with your python installation. What version of Python are you using? Does it run, and can you use built-in functions, from the command line interpreter? What is your PYTHONPATH? -Marzia On Fri, Jan 9, 2009

[google-appengine] Re: Verification - what format will be accepted

2009-01-12 Thread Alexander Kojevnikov
This format worked for me: +61 4xx xxx xxx It looks like you are including a leading '0' after the country code, try removing it. See also this thread: http://is.gd/fBro On Jan 12, 10:02 pm, bannerdyne derek.new...@bannerdyne.com wrote: Hi, I am using a supported carrier in Australia. I

[google-appengine] Re: Phone number verification error - Australia

2009-01-12 Thread Alexander Kojevnikov
See http://is.gd/fBsX On Jan 12, 11:58 pm, bannerdyne derek.new...@bannerdyne.com wrote: Hi, I am using a supported Australian carrier but am getting the following error when I try to verify. There were errors: * Mobile Number or Username I am using the following format 61 000 000.

[google-appengine] Re: The Chinese SDK version is 1.1.0 ,WHY?

2009-01-12 Thread Marzia Niccolai
Hi, We are working on making sure all of the SDK download links in our translated documentation get updated when a new SDK is released. However, the latest SDK is always available from our codesite project: http://code.google.com/p/googleappengine -Marzia On Sat, Jan 10, 2009 at 8:15 PM,

[google-appengine] Re: What is the fastest way to check if an item is in the datastore?

2009-01-12 Thread Alexander Kojevnikov
Is there a faster/better way? Do I need to do anything with indexes to make this query better? You can replace fetch(1) with get(), which is essentially the same. Other than that, if you know your entity's id/key_name, it's slightly faster to fetch it using get_by_id() or get_by_key_name().

[google-appengine] Retrieving latest revision of a document

2009-01-12 Thread Ecir Hana
Hello, what is the preferred way of retrieving the latest revision of a document? (The 'name' doesn't change across the revisions.) 1: class Document(db.Model): name = db.StringProperty() revision = db.IntegerProperty() content = db.TextProperty() latest = Document.all().filter('name =',

[google-appengine] Re: Retrieving latest revision of a document

2009-01-12 Thread Alexander Kojevnikov
The first variant is faster while the second one requires less maintenance if you rename your documents a lot. Both will do the job. I'd use the first, de-normalised model unless you normally have a lot of revisions per document, modify the common document meta-data quite often, and the

[google-appengine] Re: Unsupported type in GQL query with IN clause

2009-01-12 Thread Paul
Hi Marzia, heres everything i could think of that might be relevent: [Edit Item - ImgItem]: ImgItem.gql('WHERE style = :style and merchant in :merchants ORDER BY __key__',style=theStyle,merchants=merchantList) class Item(BaseModel): name = db.StringProperty() cumulative_avg =

[google-appengine] Re: Retrieving latest revision of a document

2009-01-12 Thread Ecir Hana
Ok, I'll go with the first model. Thanks for the reply! On Jan 13, 12:53 am, Alexander Kojevnikov alexan...@kojevnikov.com wrote: The first variant is faster while the second one requires less maintenance if you rename your documents a lot. Both will do the job. I'd use the first,

[google-appengine] ifequal and filters, not working

2009-01-12 Thread Elvis
Wery strange! I try to use ifequal with filters and it dosent work i search around web and found this is a normal but in october ive write very similar code and it working! i lost my working code and now try to rewite in appengine i cant use {% with ... %} because it dosent exists what you

[google-appengine] Re: user login URLs in html/javascript

2009-01-12 Thread djidjadji
Do you use (Django) templates? If not start using them, separate the function (code) from the presentation (html) Read the GAE example http://code.google.com/appengine/docs/gettingstarted/templates.html There they show you how to use the users.create_logout_url() users.create_login_url()

[google-appengine] Re: What is the fastest way to check if an item is in the datastore?

2009-01-12 Thread Dan Sanderson
If you don't need the entity, count(1) would be faster than fetch(1) or get(). -- Dan On Mon, Jan 12, 2009 at 12:54 PM, SM sanja...@gmail.com wrote: I have a simple model like this: class MyModel(db.Model): prop = db.StringProperty() active = db.BooleanProperty(default=False) Given an

[google-appengine] Re: Global Time Synchronisation Guarantees

2009-01-12 Thread djidjadji
You have no knowledge when your request is executed on the server. Launching a new interpreter takes time, the server is busy processing other requests. If the time of the data is important you should take a time measurement at the sensor and send it as part of the request 2009/1/12 Cesium

[google-appengine] Re: Verification - what format will be accepted

2009-01-12 Thread bannerdyne
Hi Alexander, thanks for your reply. I'll try this. Sorry about the multiple posts - a computer glitch. cheers On Jan 13, 10:25 am, Alexander Kojevnikov alexan...@kojevnikov.com wrote: This format worked for me: +61 4xx xxx xxx It looks like you are including a leading '0' after the

[google-appengine] Re: Format for Australian verification? Getting error.

2009-01-12 Thread bannerdyne
Sorry about the multiple posts - i had a computer glitch causing me to post several times. Please delete this one if required. On Jan 13, 12:15 am, bannerdyne derek.new...@bannerdyne.com wrote: Hi, I am using a supported Australian carrier but am getting the following error when I try to

[google-appengine] Re: What is the fastest way to check if an item is in the datastore?

2009-01-12 Thread SM
Thank you to everyone for the responses. If I understand correctly, for my exampe I should use if MyModel.gql(WHERE prop = :1 AND active = True, s).count(1): print Found else: print Not found On Jan 12, 5:52 pm, ryan ryanb+appeng...@google.com wrote: +1 to the responses. just to

[google-appengine] Re: What is the fastest way to check if an item is in the datastore?

2009-01-12 Thread kang
you get it On Tue, Jan 13, 2009 at 10:30 AM, SM sanja...@gmail.com wrote: Thank you to everyone for the responses. If I understand correctly, for my exampe I should use if MyModel.gql(WHERE prop = :1 AND active = True, s).count(1): print Found else: print Not found On Jan 12, 5:52

[google-appengine] Unable to delete Indices

2009-01-12 Thread Gipsy
How can I delete my unwanted indices ?. I've tried appcfg.py vacuum_indexes and it said everything deleted successfully. But dashboard still says that i am exceeding indices count quota. And the indices are in Building status. Please help.

[google-appengine] how to connect two pc?

2009-01-12 Thread jasmine infenta
FOR OUR PROJECT,WE NEED TO CONNECT TWO PC USING A LAN CABLE AND FROM ONE PC,WE SHD BE ABLE TO ACCESS THE FILES STORED ON THE OTHER PC WITHOUT USING IPADDRESS. IS IT POSSIBLE? IF SO HOW?PLEASE DO REPLY US.. --~--~-~--~~~---~--~~ You received this message because