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
-
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
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:
>
>
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
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
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
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
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
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
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
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
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
12 matches
Mail list logo