[google-appengine] Re: Background image not showing in Firefox when accessed through dev_appserver

2008-11-13 Thread TLH
I cannot reproduce your results. I am using Firefox 3.0.3 on Ubuntu. Here is my app.yaml: snip application: cssurl version: 1 api_version: 1 runtime: python handlers: - url: /stylesheets static_dir: stylesheets - url: /images static_dir: images - url: /.* script: cssurl.py -

[google-appengine] How to do Composition with Datastore API?

2008-12-03 Thread TLH
Consider the case where we have two (or more) properties that appear in a number of classes, such as a Point class: class Point(db.Model): x = db.IntegerProperty() y = db.IntegerProperty() I want a Circle class to have the members "center" and "radius," which is a point and an integer; Squar

[google-appengine] Re: How to do Composition with Datastore API?

2008-12-04 Thread TLH
The only reason I needed a Point property was for an economical example case :-) On Dec 3, 7:26 pm, ryan <[EMAIL PROTECTED]> wrote: > david's right, that article does describe how to extend db.Property. > if all you need is a point property, though, you should consider using > GeoPtProperty: > >

[google-appengine] Re: Store model as different name to class?

2008-12-28 Thread TLH
Is that the same as ... class NewTest(Test): pass ... ? On Dec 27, 12:20 pm, yejun wrote: > NewTest=type('NewTest',(Test,),{}) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To pos

[google-appengine] import google.appengine.ext.db.polymodel : No module named polymodel

2009-01-17 Thread TLH
According to the documentation (http://code.google.com/appengine/docs/ python/datastore/polymodelclass.html), there should be a PolyModel class in google.appengine.ext.db.polymodel. However, the program ... from google.appengine.ext.db import polymodel ... fails at runtime with an exceptions.Im

[google-appengine] Re: import google.appengine.ext.db.polymodel : No module named polymodel

2009-01-17 Thread TLH
Installing 1.1.8 SDK eliminated the problem. On Jan 17, 4:36 pm, TLH wrote: > > import google.appengine.ext.db.polymodel > > ... fails in the same way, which is comforting I suppose. > > I have tried both the Linux and Mac SDKs.  Is this unavailable on the > SDK?  Is i

[google-appengine] Re: Hello,I´m new with App Engine

2009-01-18 Thread TLH
Is your project in a directory named helloworld? Are you invoking appcfg.py from the directory `above` your application? Example for Windows: The directory: C:\work\helloworld\ contains app.yaml and helloworld.py Make C:\work your current directory Invoke appcfg.py -- should work, or a least

[google-appengine] Base class ReferenceProperty initialization with PolyModel

2009-01-18 Thread TLH
A post from Septermber 11th asks about ReferenceProperty members of base classes: http://groups.google.com/group/google-appengine/browse_thread/thread/3b8bc13e4a859ade The new PolyModel appears to solve the problem. I put an example of working code into a Google Doc here: http://docs.google.co

[google-appengine] Re: How to append to BlobProperty

2009-01-27 Thread TLH
from google.appengine.ext import db class Foo(db.Model): b = db.BlobProperty() def butWhy(self, s): self.b = self.b + s f = Foo( b = "Append to a Blob?" ) f.butWhy(" You can, but why?") print f.b # "Append to a Blob? You can, but why?" I suspect you should be using a Text property

[google-appengine] sdk 1.1.9 on Ubuntu wants yaml, 1.1.8 didn't

2009-02-10 Thread TLH
After installing 1.1.9 on Ubuntu 8.04 by renaming 1.1.8 to google_appengine.old and unziping the distribution to /opt, I get ... Traceback (most recent call last): File "/opt/google_appengine/dev_appserver.py", line 60, in run_file(__file__, globals()) File "/opt/google_appengine/dev_app

[google-appengine] Re: sdk 1.1.9 on Ubuntu wants yaml, 1.1.8 didn't

2009-02-10 Thread TLH
Hmm, looks like SCRIPT_DIR became script_dir in a few places. On Feb 10, 8:21 pm, TLH wrote: > After installing 1.1.9 on Ubuntu 8.04 by renaming 1.1.8 to > google_appengine.old and unziping the distribution to /opt, I get ... > > Traceback (most recent call last): &g

[google-appengine] Re: sdk 1.1.9 on Ubuntu wants logging_console_header.html

2009-02-10 Thread TLH
directory: '/opt/google_appengine/ templates/logging_console_header.html' and sure enough, there is no such file or directory. There is both file and directory in the 1.1.8 distribution. Something is going on. On Feb 10, 8:33 pm, TLH wrote: > Hmm, looks like SCRIPT_DIR became scr