[appengine-java] Announcing: Programming Google App Engine, 2nd Edition Rough Cuts

2011-08-19 Thread Dan Sanderson
Greetings all - I'm pleased to announce that *Programming Google App Engine, 2nd Edition* is now available through O'Reilly Media's early-access Rough Cuts program: http://oreilly.com/catalog/0636920017547 Book blog announcement:

[google-appengine] Announcing: Programming Google App Engine, 2nd Edition Rough Cuts

2011-08-19 Thread Dan Sanderson
Greetings all - I'm pleased to announce that *Programming Google App Engine, 2nd Edition* is now available through O'Reilly Media's early-access Rough Cuts program: http://oreilly.com/catalog/0636920017547 Book blog announcement:

[google-appengine] App Engine O'Reilly ebook $9.99 today only

2010-09-22 Thread Dan Sanderson
Hi all - My book, Programming Google App Engine, is O'Reilly's EBook Deal of the Day for September 22. For the next 24 hours, you can buy the ebook edition of PGAE from O'Reilly's website for only $9.99 (73% off!). Use the code DDPGA during checkout. http://oreilly.com/catalog/9780596522728/

[appengine-java] Programming Google App Engine book and code samples now available

2010-01-25 Thread Dan Sanderson
Greetings App Engine developers - The book *Programming Google App Engine*, written by yours truly and published by O'Reilly Media, is now available in bookstores everywhere. The book covers everything from the datastore to task queues, using both Java and Python.

[google-appengine] Programming Google App Engine book and code samples now available

2010-01-25 Thread Dan Sanderson
Greetings App Engine developers - The book *Programming Google App Engine*, written by yours truly and published by O'Reilly Media, is now available in bookstores everywhere. The book covers everything from the datastore to task queues, using both Java and Python.

[google-appengine] Downloadable documentation for App Engine updated

2009-04-22 Thread Dan Sanderson
Hi all - The downloadable documentation for App Engine has been updated with the latest revision. This Zip archive of all of the docs includes all App Engine for Java documentation, App Engine for Python up to today's 1.2.1 release, and all FAQs and articles.

[google-appengine] Re: Are you a human ?

2009-04-20 Thread Dan Sanderson
Hi Tom - Can you explain what you mean by a large database put? Are you using the bulk uploader tool? The error message you quoted is printed by appcfg when it gets a certain error from the Google Accounts system. This error can be caused by several things, including multiple unsuccessful login

[google-appengine] Re: Cron Schedule Format parsing error

2009-04-17 Thread Dan Sanderson
at 12:44 PM, Dan Sanderson dansander...@google.com wrote: My apologies for the frustration. I'll get the docs fixed. (There is a pending fix that makes the example work, but it didn't get out in time for launch.) *hangs head in shame* -- Dan On Tue

[google-appengine] Re: GAE Java: Conflicting Information on Threading Network

2009-04-09 Thread Dan Sanderson
The URL fetch interface uses a scalable service to fetch URLs, not direct network connections. The Java runtime supports using the URLConnection interface to use this service. There's probably a reason why the thread-related classes are on the whitelist, though I don't know what it is. Spawning

[google-appengine] Re: Using both Python and Java

2009-04-08 Thread Dan Sanderson
On Wed, Apr 8, 2009 at 7:27 AM, J jlin.li...@gmail.com wrote: I'm fairly new to web development and AppEngine. I'm wondering if it's possible to use both Python and Java in AppEngine. Certain modules would be written in Python and other are written in Java. Why or why not? An application can

[google-appengine] Re: On which technology is the datasotre for Java AppEngine based?

2009-04-08 Thread Dan Sanderson
The App Engine datastore is a distributed schemaless object store, with support for index-based queries and local transactions. It is built on BigTable, a major component of Google's storage infrastructure. Full support for SQL is unlikely to happen in the near future, as is full support for

[google-appengine] Re: Will Google support a relational database in the future?

2009-04-08 Thread Dan Sanderson
Some of the same problems can be solved in different ways. For instance, aggregate data can often be calculated at write time, obviating the need for an expensive aggregate runtime query involving millions of records and hundreds of machines. The tricky bit is implementing the different

[google-appengine] Re: Will Google support a relational database in the future?

2009-04-08 Thread Dan Sanderson
to Google App Engine are using relational databases in the daily job... Like Andrew said it's a issue of barrier. PS: I will look into the index documentation to see if it can help me with aggregate data. Cheers, Marcel On 8 apr, 21:40, Dan Sanderson dansander...@google.com wrote

[google-appengine] Re: Dynamically scheduled Cron Jobs?

2009-04-08 Thread Dan Sanderson
You can't change an app's cron config dynamically. However, you can write your own process that is invoked by cron on a regular basis and decides what to do on each invocation based on application data. -- Dan On Wed, Apr 8, 2009 at 2:57 PM, Michael Bailey yogurte...@gmail.com wrote: From

[google-appengine] Re: 308K CSV file cost 20% GAE data space!

2009-04-05 Thread Dan Sanderson
Specifically, a query with multiple equality filters on a single list property requires an (exploding) custom index with the property repeated in multiple columns if and only if the query also uses inequality filters or sort orders on other properties. If a query uses nothing but equality filters

[google-appengine] Re: A question for Jaiku's developers, if they're watching..

2009-03-16 Thread Dan Sanderson
The XMPP support mentioned on the roadmap does not include BOSH. -- Dan On Sun, Mar 15, 2009 at 6:14 PM, David Wilson d...@botanicus.net wrote: 2009/3/15 thuan nunob...@gmail.com: I know the topic is more about microblogging services than xmpp, but by chance, have somebody achieved to

[google-appengine] Re: doc files suddenly missing from google apps domain

2009-03-16 Thread Dan Sanderson
Hi James - Please contact Google Apps support for this issue: http://www.google.com/support/a/?hl=en The google-appengine group is for App Engine issues and discussions. Thanks! -- Dan On Sat, Mar 14, 2009 at 4:51 AM, Legacy FamilyTree legacyfamilyt...@shaw.ca wrote: Hi guys, This one

[google-appengine] Re: remote_api documentation's example, batching on __key__ without ordering?

2009-03-16 Thread Dan Sanderson
__key__ is the default ordering when no other filters or sort orders are requested. (In general, __key__ is the last ordering applied after all other orders.) -- Dan On Fri, Mar 13, 2009 at 8:37 PM, Simo Salminen ssalm...@gmail.com wrote: Hi. In

[google-appengine] Re: Realease versions

2009-03-16 Thread Dan Sanderson
You can actually use any string for the version identifier. So yes, you can use floats. -- Dan On Mon, Mar 16, 2009 at 1:36 PM, Ronn Ross ronn.r...@gmail.com wrote: Can you on use integers for version numbers? For example 1,2, and 3, or can you uses floats e.g. 1.1,1.2,1.3?thanks

[google-appengine] Re: ### What is the best way for paginating a list of records? ###

2009-03-11 Thread Dan Sanderson
http://code.google.com/appengine/articles/paging.html -- Dan On Wed, Mar 11, 2009 at 2:00 PM, Let Delete My Apps davide.rogn...@gmail.com wrote: What is the best way for paginating a list of records? See 30. Object pagination http://www.djangoproject.com/documentation/models/pagination/

[google-appengine] Re: What happened to minor version numbers?

2009-03-02 Thread Dan Sanderson
Hi Bender - Yes, that paragraph needs to be updated. A long time ago the Admin Console displayed the number of times a given major version was uploaded as a minor version number. (And that last sentence should read, Only the latest *minor* version is retained for each major version.) As for

[google-appengine] Re: Billing Questions

2009-02-27 Thread Dan Sanderson
Ross is correct. You only pay for what you use. If your app doesn't go over the free quotas, you pay nothing, regardless of how you set your maximum daily budget. When you set your budget for the first time, you go through the Google Checkout process to authorize the maximum budget. This

[google-appengine] Re: indexes for expando objects

2009-02-20 Thread Dan Sanderson
On Fri, Feb 20, 2009 at 12:13 PM, pedepy paul.ro...@gmail.com wrote: Hi .. I just stumbed upon a NeedIndexError. I understand why it happens, but I dont quite understand the 'motivations' behind it. If the development server can just generate indexes for queries as I make them, why would

[google-appengine] Re: GAE Team, How does the import cache work? How do we reduce custom django overhead?

2009-02-13 Thread Dan Sanderson
. Instead, the first instance should use that extra CPU to do things, such as import, that subsequent instances will/might need. On Feb 9, 11:03 am, Dan Sanderson dansander...@google.com wrote: I can answer of couple of these: On Mon, Feb 9, 2009 at 9:29 AM, Mike Wesner m...@konsole.net

[google-appengine] Re: About new Limits

2009-02-13 Thread Dan Sanderson
On Fri, Feb 13, 2009 at 6:11 PM, Will vocalster@gmail.com wrote: Is the limit on datastore entry to be lifted soon, or will be around for a while? Is it possible now for a user to upload a 10MB file and save into 10 datastore entries? It is possible for the user to upload a 10MB file,

[google-appengine] Re: bulk loader/uploader typo

2009-02-12 Thread Dan Sanderson
Thanks, I'll fix it. -- Dan On Thu, Feb 12, 2009 at 7:41 AM, Joe Blau josephb...@gmail.com wrote: http://code.google.com/appengine/docs/python/tools/uploadingdata.html On OSX, the command in /usr/local/bin is called bulkloader.py, but in the docs under the sections Uploading the Data to App

[google-appengine] Re: GAE Team, How does the import cache work? How do we reduce custom django overhead?

2009-02-10 Thread Dan Sanderson
and generally the right thing to do. But products like your app-engine-patch are the real story for frameworks. -- Dan On Tue, Feb 10, 2009 at 5:09 AM, Waldemar Kornewald wkornew...@gmail.comwrote: Hi Dan, On Feb 10, 5:05 am, Dan Sanderson dansander...@google.com wrote: As for bundling Django, we

[google-appengine] Re: SDK version 1.1.9 Released

2009-02-10 Thread Dan Sanderson
=445 Are you working on this? We need to set/unset HTTP-referer to connect to remote APIs as Delicious or Twitter. Thanks. On Feb 10, 7:52 am, Dan Sanderson dansander...@google.com wrote: Correct, all of the functionality and restrictions of the URL Fetch service apply to the httplib

[google-appengine] Re: Clarification

2009-02-09 Thread Dan Sanderson
On Mon, Feb 9, 2009 at 5:17 AM, arnie parvez...@rediffmail.com wrote: I would like to become clear about this: I have registered an app on appspot.com that is consuming a datastore table [created within the app]. The GAE allows for creating 10 applications, so i created another with version

[google-appengine] Re: Roadmap update and XMMP

2009-02-09 Thread Dan Sanderson
XMPP support will not take the form of long running processes. XMPP connections will be maintained by servers that relay incoming messages to the app's XMPP handlers, each of which will execute just like an HTTP request handler. There will also be an API for sending XMPP messages from the app,

[google-appengine] Re: GAE Team, How does the import cache work? How do we reduce custom django overhead?

2009-02-09 Thread Dan Sanderson
I can answer of couple of these: On Mon, Feb 9, 2009 at 9:29 AM, Mike Wesner m...@konsole.net wrote: 1. How does the import cache work exactly? I have read docs but still am left with questions on how exactly it works. If we have a main.py with our main() method in it... are all the imports

[google-appengine] Re: SDK version 1.1.9 Released

2009-02-09 Thread Dan Sanderson
On Mon, Feb 9, 2009 at 6:37 PM, Barry Hunter barrybhun...@googlemail.com wrote: Looks exciting! But how do we try out the bulk client? The 'here' in the blog post, points to the same page :( The bulk loader docs are here: http://code.google.com/appengine/docs/python/tools/uploadingdata.html

[google-appengine] Re: Roadmap update and XMMP

2009-02-09 Thread Dan Sanderson
is not very useful, but client-side BOSH support would be great. On Feb 9, 7:56 pm, Dan Sanderson dansander...@google.com wrote: XMPP support will not take the form of long running processes. XMPP connections will be maintained by servers that relay incoming messages to the app's XMPP handlers

[google-appengine] Re: SDK version 1.1.9 Released

2009-02-09 Thread Dan Sanderson
Correct, all of the functionality and restrictions of the URL Fetch service apply to the httplib interfaces. -- Dan On Mon, Feb 9, 2009 at 6:33 PM, gesteves gfeste...@gmail.com wrote: Quick question: The docs state that You can use the Python standard libraries urllib, urllib2 or httplib to

[google-appengine] Re: How do I select * from entity where 'foreignkey' = blah

2009-02-09 Thread Dan Sanderson
I'm not sure I understand your example. The way you set it up here, select * from Location where birthplace = whatever returns a set of Location objects, each of which has a property with the key of a Person entity that you're looking for. You can access each Person object simply by referencing

[google-appengine] Re: availibity of gcc

2009-02-03 Thread Dan Sanderson
No. -- Dan On Tue, Feb 3, 2009 at 1:47 AM, minorproject...@gmail.com minorproject...@gmail.com wrote: Is gcc available in the server provided by the appengine? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[google-appengine] Re: Any way to set domain for version of my app?

2009-01-21 Thread Dan Sanderson
There's no way to assign a subdomain to a specific version of an app. The most practical solution to host a beta version like this is to install both versions of your software within the same app, and control the difference with URL path mapping. You could create a second app, associate it with

[google-appengine] Re: dev_appserver.py missing after an GAE update

2009-01-20 Thread Dan Sanderson
Start the GoogleAppEngineLauncher application. It will re-create the symlinks. (Annoying, I know. I believe the issue has to do with the permissions the updater has when it runs.) -- Dan On Tue, Jan 20, 2009 at 1:43 PM, pjesi vidarsv...@gmail.com wrote: Hi GAE was automatically updated

[google-appengine] Re: how to do GqlQuery since OR is not supported

2009-01-18 Thread Dan Sanderson
You should be able to use the prefix match technique on a StringListProperty. Your searchname query does not need a custom index, so the dev server doesn't define one in index.yaml. Every property for a kind gets an automatic index of just that property's values for entities of that kind. A

[google-appengine] Re: Canwe share?

2009-01-16 Thread Dan Sanderson
On Thu, Jan 15, 2009 at 2:06 AM, arnie parvez...@rediffmail.com wrote: Can we share same datastore tables [2 tables with 1-to many relationships] between more than one wsgi applications on GAE? If your question is about sharing a datastore between 2 App Engine applications, such as

[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: Very urgent

2009-01-09 Thread Dan Sanderson
You're on the right track. A web service works very similarly to a web application, except instead of serving UI to a browser, it uses a protocol based on HTTP that describes the structure of requests and responses that make up the interaction between the client and the service. You can use a

[google-appengine] Re: typo in docs

2009-01-09 Thread Dan Sanderson
Thanks, I'll fix it. -- Dan On Fri, Jan 9, 2009 at 11:11 AM, adelevie adele...@gmail.com wrote: http://code.google.com/appengine/docs/appcfgpy.html towards the bottom it says appcfy.py where it should be appcfg.py. I didn't know where else to post this.

[google-appengine] Re: Is the Datastore just too slow for 100+ returned records?

2009-01-08 Thread Dan Sanderson
If you only need some of the properties for the query that needs 100+ results, you'll need to create a separate set of entities with just those properties, and query those. Similarly, if you want the query to return just the keys, you'll need entities containing the properties that are the

[google-appengine] Re: Is the Datastore just too slow for 100+ returned records?

2009-01-08 Thread Dan Sanderson
There is currently no way to retrieve only parts of entities, nor just keys, from the datastore in response to queries. There's no way to dig out the keys either: the datastore returns the full entities in response to queries, there is no intermediate app-side step that fetches entities for keys.

[google-appengine] Re: Is the Datastore just too slow for 100+ returned records?

2009-01-08 Thread Dan Sanderson
On Thu, Jan 8, 2009 at 3:35 PM, Tzakie gwood...@comexton.com wrote: Thanks very much for your time guys. No problem, happy to help. When you call: CategoryRows = db.GqlQuery(QueryString) It's fast. It's the loop where you try and access the returned entities that is slow. Doesn't it

[google-appengine] Re: Beginner Question - About using App Engine

2009-01-08 Thread Dan Sanderson
Yup, you can definitely use App Engine to create web services like you describe. A networked backend for an Android app is a great use of App Engine. -- Dan On Thu, Jan 8, 2009 at 2:56 PM, mscwd01 mscw...@gmail.com wrote: I have taken a look around the App Engine documentation but havent

[google-appengine] Re: Is the Datastore just too slow for 100+ returned records?

2009-01-08 Thread Dan Sanderson
Repeating a couple of things I mentioned to Greg in email, for the list discussion: A single-server SQL database with low load and tables with rows numbering in the thousands can do lots of cool things with that data in a reasonable amount of time. But many of the features of a SQL query engine

[google-appengine] Re: Quick query - Powered by appengine logo

2008-12-30 Thread Dan Sanderson
There is no requirement to mention Google App Engine in your App Engine application. -- Dan On Tue, Dec 30, 2008 at 5:17 PM, Gareth Nelson gar...@garethnelson.comwrote: Is this a requirement to place on the site or can one simply put some text or not mention app engine at all?

[google-appengine] Re: zipimport support for .pyc files: is it an official feature of standard Python?

2008-12-22 Thread Dan Sanderson
, be careful to include all .py files so that your zips will work both in dev and on App Engine. -- Dan On Mon, Dec 22, 2008 at 3:27 PM, Alexander Konovalenko alex...@gmail.comwrote: The Using Django 1.0 on App Engine with Zipimport article by Dan Sanderson [1] calls the support for .pyc files

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

2008-12-21 Thread Dan Sanderson
On Sat, Dec 20, 2008 at 11:06 PM, Thomas Johansson prenc...@gmail.comwrote: Speaking of the billing, perhaps you can elaborate on the other quotas in place, like sending emails, urlfetch and so forth? The best sources of info on the quotas right now are the Quotas section of the Admin

[google-appengine] Re: GqlQuery bind method - is it safe to share the same query instance between requests?

2008-12-20 Thread Dan Sanderson
The advantage of caching GqlQuery objects between requests is that it saves on having to compile the GQL for future requests. By storing it in a global and binding new values prior to calling, it gets compiled on the first request for the web server instance, and uses the pre-compiled version on

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

2008-12-20 Thread Dan Sanderson
We haven't yet announced information that answers your question directly. If you haven't seen it, check out the billing sneak peak we snuck in to the last blog entry: http://googleappengine.blogspot.com/2008/12/system-status-dashboard-quota-details.html#sneakpeak Of course, you'll see the whole

[google-appengine] Re: Understanding how the mail api works.

2008-12-17 Thread Dan Sanderson
App Engine apps cannot receive email directly. You'd need a third-party email-to-HTTP relay, or just direct users to your website to enter their contact information. -- Dan On Wed, Dec 17, 2008 at 5:25 AM, Nora noorhanab...@yahoo.co.uk wrote: Hello, I have developed a 'Contact us' form that

[google-appengine] Re: Prevent redirect in fetch()

2008-12-17 Thread Dan Sanderson
http://code.google.com/appengine/docs/urlfetch/fetchfunction.html follow_redirects=False -- Dan On Tue, Dec 16, 2008 at 9:26 PM, Soybean ducson.ngu...@gmail.com wrote: The documentation notes that you can prevent a redirect (hopefully this means ignoring a 302) with an argument, but the

[google-appengine] Re: Inconsistent behaviour when if __name__ == '__main__' missing

2008-12-16 Thread Dan Sanderson
Good catch! I'll make sure the docs address this case, in both samples and descriptions. Thanks! -- Dan On Mon, Dec 15, 2008 at 10:49 AM, Jeff S j...@google.com wrote: Thank you for pointing this out. It seems like most code snippets do include the if __name__ == '__main__' but I did find

[google-appengine] Re: Why not allow developers of libraries to upload them?

2008-12-05 Thread Dan Sanderson
On Thu, Dec 4, 2008 at 6:46 PM, Amir Michail [EMAIL PROTECTED] wrote: Instead of asking GAE developers to upload libraries they need, why not ask the developers of the libraries to upload versions that work with GAE? It's important for an app owner to control which version of each dependency

[google-appengine] Re: how do I delete files that I have uploaded

2008-12-04 Thread Dan Sanderson
, you'd delete a version of the application. See the Versions section of the Admin Console. If you want to delete a file from the current version, simply delete it locally, then re-upload the app. You don't need the Admin Console for that. -- Dan On Dec 3, 1:07 am, Dan Sanderson [EMAIL

[google-appengine] Re: how do I delete files that I have uploaded

2008-12-02 Thread Dan Sanderson
If you remove the file from your local development directory then upload the app using the same version parameter in the app.yaml file, the file will be deleted from App Engine. If the file is in a different version of the app and the version is no longer the default version, you can delete the

[google-appengine] Re: How To Communicate Between App Engines

2008-12-01 Thread Dan Sanderson
) 641-1280 -http://higherefficiency.net/ -http://changeroundup.com/ -http://flipbitsnotburgers.blogspot.com/ -http://andrew.badera.us/ - Google me:http://www.google.com/search?q=andrew+badera On Sun, Nov 30, 2008 at 12:09 AM, Dan Sanderson [EMAIL PROTECTED] wrote: Roberto

[google-appengine] Programming Google App Engine, website for the book now available

2008-12-01 Thread Dan Sanderson
Hi all - Some of you have noticed that Programming Google App Engine, a new book to be published by O'Reilly Media in 2009, is now available through O'Reilly's Rough Cuts program. Rough Cuts gives you early access to electronic drafts of the book as it is being written, and can optionally

[google-appengine] Re: How To Communicate Between App Engines

2008-11-29 Thread Dan Sanderson
Roberto is correct. Using multiple applications in concert to subvert the quota system is a violation of the terms of service. http://code.google.com/appengine/terms.html 7.2. You may not ... attempt to disable or circumvent any security mechanisms used by the Service or any Application... --

[google-appengine] Re: Wrong Ordering Of Query!

2008-11-29 Thread Dan Sanderson
On Sat, Nov 29, 2008 at 3:24 PM, Alexander Kojevnikov [EMAIL PROTECTED] wrote: That should never be the case. If the index wasn't fully updated, it should serve you an old version of both the index and the data. If something else happens, it is definitely a bug, so you should file a

[google-appengine] Re: Connecting your own domain name via Google Apps

2008-11-25 Thread Dan Sanderson
Hi Amir - On Tue, Nov 25, 2008 at 6:15 PM, Amir Michail [EMAIL PROTECTED] wrote: When signing up, is there a chance that the application will be rejected? No, you can set up your app right away, there is no approval process. Your app must comply with the Terms of Service:

[google-appengine] Re: Connecting your own domain name via Google Apps

2008-11-25 Thread Dan Sanderson
On Tue, Nov 25, 2008 at 8:52 PM, Amir Michail [EMAIL PROTECTED] wrote: If so, should I get some traffic first before signing up? No need! Just sign up and start building. I was referring to the sign up for Google Apps, not the Google app engine. There's no approval process there?

[google-appengine] Re: Join us for App Engine Chat Time

2008-11-19 Thread Dan Sanderson
This is happening right now: irc.freenode.net #appengine See you there! -- Dan On Tue, Nov 18, 2008 at 1:49 PM, Marzia Niccolai [EMAIL PROTECTED] wrote: Hi, A reminder that we will have App Engine Chat Time tomorrow, November 19th from 9-10AM PST. Hope to see some of you there!

[google-appengine] Re: App engine on mac eclipse

2008-11-10 Thread Dan Sanderson
The SDK is inside the Launcher application bundle: /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/dev_appserver.py

[google-appengine] Re: appcfg.py .xaml files (silverlight) mimtype issue

2008-11-07 Thread Dan Sanderson
You can specify the MIME type manually with the mime_type option in app.yaml. For example: - url: /silverlight/(.*\.xaml) static_files: silverlight/\1 mime_type: application/xaml+xml (I didn't test this, so let me know how it goes. :) ) -- Dan On Fri, Nov 7, 2008 at 4:41 AM, Neo42 [EMAIL

[google-appengine] Re: Crappiest Product from Google

2008-11-04 Thread Dan Sanderson
On Mon, Nov 3, 2008 at 11:42 PM, Kannaiyan [EMAIL PROTECTED] wrote: As a software developer I would allow users to reuse the same code. I won't make million copies of the same code. (If used by millions of people). If Python does not allow such sharing model, then the language is a total

[google-appengine] Re: Crappiest Product from Google

2008-11-04 Thread Dan Sanderson
On Tue, Nov 4, 2008 at 9:48 AM, Kannaiyan [EMAIL PROTECTED] wrote: We need to have a smart way of maintaining versions. What if Google Upgrades the version of Python Intrepreter to a higher version when the code is written for lower version? Runtime environments are versioned, and you

[google-appengine] Re: Getting total count from datastore

2008-11-03 Thread Dan Sanderson
See also the docs on fetch(limit, offset): http://code.google.com/appengine/docs/datastore/queryclass.html#Query_fetch In particular: The query has performance characteristics that correspond linearly with the offset amount plus the limit. -- Dan On Sun, Nov 2, 2008 at 8:23 PM, David Symonds

[google-appengine] Re: Pure Python .egg files?

2008-10-30 Thread Dan Sanderson
dev_appserver.py ? Regards -- Brad. On 30/10/2008, Dan Sanderson [EMAIL PROTECTED] wrote: Do you have __init__.py files in your google/ and google/protobuf/ directories? That's how Python knows those directories are packages that contain modules

[google-appengine] Re: A minor mistake in doc of Datastore API

2008-10-29 Thread Dan Sanderson
Good catch! You're right, the code sample does not match the description. The intent was for the new object to be created with a key name based on account_id. I'll fix it. Thanks! -- Dan On Wed, Oct 29, 2008 at 2:17 AM, an0 [EMAIL PROTECTED] wrote:

[google-appengine] Re: Django + GAE

2008-10-29 Thread Dan Sanderson
I'd recommend Django 1.0 along with the Helper or something similar. You could use Django without the Helper if you accommodate some of the import technicalities, the Helper just makes it easier. This article discusses using Django without the Helper (though I'm not sure if the article works out

[google-appengine] Re: Use cases for Memcache using the client vs. the functions?

2008-10-27 Thread Dan Sanderson
The object interface is intended to be similar to the Python interface to Danga Interactive's Memcache. The equivalent functions are for convenience, since the object doesn't need to maintain state, like a connection to a particular Memcache server. No other differences that I'm aware of. -- Dan

[google-appengine] Re: Complete Newb Question

2008-10-27 Thread Dan Sanderson
You shouldn't need cgi.escape(), either: class MainPage(webapp.RequestHandler): def get(self): data = self.request.get('123xyz') self.response.headers['Content-Type'] = 'text/plain' self.response.out.write('Hello world! ' + data) http://localhost:8080/?123xyz=blah%20blah -- Dan On

[google-appengine] Re: Inconsistency in documented semantics of transactions.

2008-10-22 Thread Dan Sanderson
On Wed, Oct 22, 2008 at 5:28 PM, Ian MacLarty [EMAIL PROTECTED]wrote: ... However the article http://code.google.com/appengine/articles/transaction_isolation.html gives the impression that the transaction isolation level is read committed. That would imply that another concurrent transaction

[google-appengine] Re: is there a way to tell the deployer to ignore some directories and/or files?

2008-10-22 Thread Dan Sanderson
Check out the skip_files configuration directive: http://code.google.com/appengine/docs/configuringanapp.html#Skipping_Files -- Dan On Wed, Oct 22, 2008 at 7:54 PM, Mariano Benitez [EMAIL PROTECTED] wrote: I've moved my data directory inside the app gae/trunk/data. I've marked it ignored for

[google-appengine] Re: Reg. HelloWorld! Tutorial: Problems Running an Error-Free Guestbook Application

2008-10-20 Thread Dan Sanderson
What errors are you getting? -- Dan On Mon, Oct 20, 2008 at 11:17 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Running Python Launcher Version 2.5.1 Google App Engine SDK release: 1.1.5 on Mac OS X Version 10.4.11 First time user, so far the tutorial is easy to follow. I get to Using