[google-appengine] Re: sdk 1.1.9 on Ubuntu wants logging_console_header.html
I installed yaml via apt-get install python-yaml. Now the error message is : File "/opt/google_appengine/google/appengine/tools/dev_appserver.py", line 3110, in SetupTemplates header = open(os.path.join(template_dir, HEADER_TEMPLATE)).read() IOError: [Errno 2] No such file or 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 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): > > File "/opt/google_appengine/dev_appserver.py", line 60, in > > run_file(__file__, globals()) > > File "/opt/google_appengine/dev_appserver.py", line 57, in run_file > > execfile(script_path, globals_) > > File "/opt/google_appengine/google/appengine/tools/ > > dev_appserver_main.py", line 463, in > > sys.exit(main(sys.argv)) > > File "/opt/google_appengine/google/appengine/tools/ > > dev_appserver_main.py", line 385, in main > > SetGlobals() > > File "/opt/google_appengine/google/appengine/tools/ > > dev_appserver_main.py", line 81, in SetGlobals > > from google.appengine.tools import appcfg > > File "/opt/google_appengine/google/appengine/tools/appcfg.py", line > > 47, in > > import yaml > > ImportError: No module named yaml > > > ... when I try to run. If I restore 1.1.8 (by renaming), everything > > is O.K. > > > Should I look around for a module named yaml? --~--~-~--~~~---~--~~ 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 google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: sdk 1.1.9 on Ubuntu wants yaml, 1.1.8 didn't
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): > File "/opt/google_appengine/dev_appserver.py", line 60, in > run_file(__file__, globals()) > File "/opt/google_appengine/dev_appserver.py", line 57, in run_file > execfile(script_path, globals_) > File "/opt/google_appengine/google/appengine/tools/ > dev_appserver_main.py", line 463, in > sys.exit(main(sys.argv)) > File "/opt/google_appengine/google/appengine/tools/ > dev_appserver_main.py", line 385, in main > SetGlobals() > File "/opt/google_appengine/google/appengine/tools/ > dev_appserver_main.py", line 81, in SetGlobals > from google.appengine.tools import appcfg > File "/opt/google_appengine/google/appengine/tools/appcfg.py", line > 47, in > import yaml > ImportError: No module named yaml > > ... when I try to run. If I restore 1.1.8 (by renaming), everything > is O.K. > > Should I look around for a module named yaml? --~--~-~--~~~---~--~~ 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 google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] sdk 1.1.9 on Ubuntu wants yaml, 1.1.8 didn't
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_appserver.py", line 57, in run_file execfile(script_path, globals_) File "/opt/google_appengine/google/appengine/tools/ dev_appserver_main.py", line 463, in sys.exit(main(sys.argv)) File "/opt/google_appengine/google/appengine/tools/ dev_appserver_main.py", line 385, in main SetGlobals() File "/opt/google_appengine/google/appengine/tools/ dev_appserver_main.py", line 81, in SetGlobals from google.appengine.tools import appcfg File "/opt/google_appengine/google/appengine/tools/appcfg.py", line 47, in import yaml ImportError: No module named yaml ... when I try to run. If I restore 1.1.8 (by renaming), everything is O.K. Should I look around for a module named yaml? --~--~-~--~~~---~--~~ 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 google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: How to append to BlobProperty
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. On Jan 23, 11:20 am, Will wrote: > Hi all, > > I'd like to append a byte string to a db.BlobProperty, but can't figure out > how. For example, > Any ideas? Thanks in advance. > > Will --~--~-~--~~~---~--~~ 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 google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Base class ReferenceProperty initialization with PolyModel
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.com/Doc?id=dcth2fgx_288hp5n89f8 --~--~-~--~~~---~--~~ 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 google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Hello,I´m new with App Engine
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 give you a new error message. Example for Linux: The directory: ~/work/helloworld contains app.yaml and helloworld.py Make ~/work your current directory Invoke appcfg.py -- should work, or at least give you a new error message. Good luck! On Jan 17, 2:17 pm, "v.beh...@googlemail.com" wrote: > Hello,I´m new with App Engine and I can´t upload my developments. > I always tap: appcfg.py update helloworld/ > but there`s only an error massage:Usage: appcfg.py [options] update > > appcfg.py: > error: Not a directory: helloworld/ > > Is anyone able to help me,please? > > Thank you 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 google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: import google.appengine.ext.db.polymodel : No module named polymodel
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 it a withdrawn feature? --~--~-~--~~~---~--~~ 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 google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] import google.appengine.ext.db.polymodel : No module named polymodel
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.ImportError and the message "No module named polymodel" The simlar program ... 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 it a withdrawn feature? --~--~-~--~~~---~--~~ 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 google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Store model as different name to class?
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 post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: How to do Composition with Datastore API?
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: > > http://code.google.com/appengine/docs/datastore/typesandpropertyclass... > > despite the name, it simply stores two floats internally, which you > can use for anything you want. it's not inherently limited to > geographical points. --~--~-~--~~~---~--~~ 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] How to do Composition with Datastore API?
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; Square to have the members "topleft" and "width", which is a point and an integer; Rectangle to have "topleft" and "bottomright" which is two points; and so forth. How should this family of classes be implemented? It would be possible to use ReferenceProperty, for example ... class Circle(db.Model): center = db.ReferenceProperty(Point) radius = db.IntegerProperty() ... but I imagine there would be severe performance consequences. It would also be possible to use inheritance , for example ... class Circle(Point): radius = db.IntegerProperty() ... but that woud confuse IsA and HasA relationships and be a mess for classes with more than one Point. With the ReferenceProperty implementation in the current API, Circle.get() fetches the Point data, but Circle.put() [in my tests] does not update the Point data. If the Point data in a Circle object is changed, I must [in my tests] invoke Point.put(). Is there another way? --~--~-~--~~~---~--~~ 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: Background image not showing in Firefox when accessed through dev_appserver
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 snip here is my stylesheet: snip div#one { background-image: url('/images/one.jpeg') } div#two { background-image: url('/images/two.jpeg') } div#three { background-image: url('/images/three.jpeg') } div#four { background-image: url('/images/four.jpeg') } div.imgrow div { width: 192px; height: 256px; float: left; } div.imgrow { width: 800px; height: 280px; } div#footer { clear: both; } snip Here is my template, index.html: snip http://www.w3.org/TR/html4/strict.dtd";> css background images one two three four Ta-daa! snip Here is my handler: snip import os from google.appengine.ext.webapp import template from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app class MainPage(webapp.RequestHandler): def get(self): template_values = { } path = os.path.join(os.path.dirname(__file__), 'index.html') self.response.out.write(template.render(path, template_values)) application = webapp.WSGIApplication( [ ('/', MainPage), ], debug=True) def main(): run_wsgi_app(application) if __name__ == "__main__": main() snip Does this work for you? On Nov 12, 1:20 pm, aunindo <[EMAIL PROTECTED]> wrote: > Hi, > > In html template, I have some background images through inline css in > the table tag. > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---