Re: [google-appengine] Re: App Engine For Business
According to the FAQ, per user really means per intranet user here: You can also use App Engine for Business to build external applications. We’re still working out the details on pricing so stay tuned (but don’t worry, you won't have to pay per user!). http://code.google.com/appengine/kb/business.html It seems to be more like a special version of App Engine intended for (not only) internal use by Google Apps customers. If this is right, it sounds good. If it were to introduce some artificial segmentation and the regular App Engine were to become some strip-down limited version of App Engine for Business, it wouldn't sound good at all. But this would be a bad move, and it seems Google is more in the mood for good moves at the moment ( VP8 :) ). On May 20, 2010 4:40 AM, Shinichi Nakanishi stouton...@gmail.com wrote: Yes, if it was Google Apps, it would make sense. But for App Engine, I don't think per user registered in the Apps domain thing works. For instance, what if you do not register your domain but use your-subdomain.appspot.com? Is it $0 and still be able to use features like Hosted SQL? So, I have no idea what per user here means. Shinichi On Wed, May 19, 2010 at 18:39, Geoffrey Spear geoffsp...@gmail.com wrote: On May 19, 6:00 p... -- 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-appeng...@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.
Re: [google-appengine] Re: Why i don't use Google App Engine... and don't recomend it to you
I also recommend bitbucket. There is a free plan that lets you create one private repository, and the cheapest paid plan is only 5$ (5 private repositories). The free plan even offers all the features of paid plans except support for CNAMEs. You can of course also just clone your repositories to another computer or something like dropbox. Best Regards, Jesaja Everling On Sun, Feb 14, 2010 at 6:08 PM, Stephen sdea...@gmail.com wrote: On Feb 14, 10:54 am, Danny Tuppeny da...@tuppeny.com wrote: There have always been two things that stopped me using Git/Github. I do like Git (I use GitX on my Mac for iPhone stuff, and it's great). 1. I already use Google Code for some open source stuff (eg.http://google-wave-notifier.googlecode.com/) and it'd be nice to keep them together. 2. Last time I checked, there didn't seem to be any native Windows support, and the clients sucked (though this might've improved since). I'm not sure why Google chose to use Mercurial over Git, but I was going to check it out. Not being able to host my private projects alongside the open source ones is a PITA though. Bitbucket: It's like guthub, but for Mercurial. They have a free, private plan. (I haven't personally tried this). http://bitbucket.org/plans/ Most of them (eg. my blog), I don't care about being browsable, I just think it's cluttering Google Code with personal crap if I was to put it up there :( If you're just concerned about backing up private repositories then you could always export and either email it to yourself or upload to Google Docs. The export format is highly compressed (more so than the Git export format) so unless you are tracking a lot of large binaries this will be manageable for a reasonably large project. If you are collaborating with another person then you can export changesets at the end of the day and email them to each other. The email functionality is built right into Git and Mercurial. This itself if a form of backup. Last time I checked, there didn't seem to be any native Windows support, and the clients sucked Mercurial works great on Windows. -- 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-appeng...@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. -- 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-appeng...@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.
Re: [google-appengine] Re: how large data can i use in App Caching and how long will it be cached?
The way I understand it, everything that is defined inside the main() function in the handler is also not cached. Thus you can still have your handler script cached, and have request-specific objects evaluated for each new request. Best Regards, Jesaja Everling On Sat, Feb 13, 2010 at 6:52 PM, dburns drrnb...@gmail.com wrote: In Python at least, GAE looks for a function called main() to enable app caching. Simply rename main() to something else. On Feb 13, 6:41 am, Eric Ka Ka Ng ngk...@gmail.com wrote: is it possible to 'disable' the app caching behavior? - eric On 12 February 2010 17:48, saintthor saintt...@gmail.com wrote: see the demo in this page:http://code.google.com/intl/en/appengine/ docs/python/runtime.html#App_Caching ### mymodule.py counter = 0 def increment(): global counter counter += 1 return counter ### myhandler.py import mymodule print Content-Type: text/plain print print My number: + str(mymodule.increment()) do you mean if the site has not accessed for some minutes, counter will be reset to 0? On 2月12日, 下午4时24分, Tim Hoffman zutes...@gmail.com wrote: App caching could last as little as a few minutes if your site is not used. In addition if multiple instances are run then only one instance will have the counter with the correct value. You should store your obj in the datastore and cache it in memcache. module level caching is really only useful for cacheable things for each instance, for example compiled templates. T On Feb 12, 3:34 pm, saintthor saintt...@gmail.com wrote: ### mymodule.py counter = LargeObj() ### myhandler.py import mymodule print Content-Type: text/plain print print My number: + str(mymodule.counter) if sizeof counter is greater than 1M, can it work? if there is no request for days, will counter still be cached? -- 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-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-appengine?hl=en. -- 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-appeng...@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. -- 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-appeng...@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.
Re: [google-appengine] Is redeployment possible?
Hi Rajalakshmi, just deploy again. For example, execute appcfg.py update . in the project directory. Or if you develop with Java, use the mechanism in Eclipse to deploy your project. It will automatically update all your files on the production server. Best Regards, Jesaja Everling On Thu, Feb 11, 2010 at 11:34 AM, Rajalakshmi Subramanian raji.sm...@gmail.com wrote: I created one web application in eclipse and successfully deployed it on google app engine. Then i do some modification in my program. How to do changes in the deployed application. Is their any option for redeployment? -- 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-appeng...@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. -- 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-appeng...@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.
Re: [google-appengine] Re: help with array
This should also work: list(set(a) set(b) set(c)) You can get the intersection of tags with . Best Regards, Jesaja Everling On Fri, Jan 29, 2010 at 1:26 AM, johnP j...@thinkwave.com wrote: One possibility: a,b,c,= [1,2,3,4,5], [4,5,6,7,8], [4,5,99,88,77] res = list(set([i for i in (a+b+c) if (a+b+c).count(i) 1])) print res [4, 5] johnP On Jan 28, 2:48 pm, Robert Kluin robert.kl...@gmail.com wrote: You might want to look at the set type in the standard library. Robert On Thu, Jan 28, 2010 at 2:41 PM, Adam adam.crossl...@gmail.com wrote: You might want to ask this over on comp.lang.python, as this is a Python-specific question. It is not really related to AppEngine. On Jan 28, 2:28 pm, alf alberto@gmail.com wrote: I forgotted to say. in more than 2 list. thanks On Jan 28, 8:03 pm, alf alberto@gmail.com wrote: we have two arrays a=[a,b,c,d,e] b=[x,c,e,w] I would like get a arry with only common value ej. res=[c,e] how can do it many tanks -- 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-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-appengine?hl=en. -- 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-appeng...@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. -- 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-appeng...@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.
Re: [google-appengine] www.winebythebar.com going to sites instead of appengine suddenly
Hello Thomas, AFAIK the www subdomain of a domain managed by Google Apps is by default associated with Google sites. This seems to be the cause of your problem. You have to enable the sites service and to remove the www subdomain to change this and associate the www subdomain with your app. Maybe this helps. No idea why it worked before and changed. Best Regards, Jesaja Everling On Sun, Dec 27, 2009 at 4:22 PM, Thomas McKay - www.winebythebar.com thomasfmc...@gmail.com wrote: I'm not sure where I should be asking for help for this. I've started a thread here: http://www.google.com/support/forum/p/Google+Apps/thread?tid=0b3a59520d9a980ehl=en My site, which has been working for over a year (and is both the server side of an Android app as well as my company website) has suddenly started redirecting www.winebythebar.com to http://sites.google.com/a/winebythebar.com/www/ . The likely start date is 26th Dec. Please help! My site, www.winebythebar.com, not being directed to sites instead of appengine suddenly T. McKay Level 1 9:52 AM Domain Name: http://www.winebythebar.com Edition: Affected Username/s: Issue Description: Visiting www.winebythebar.com now redirects to http://sites.google.com/a/winebythebar.com/www/ instead of hitting the appengine python. This site has been working for over a year (it is the server side of an Android app, besides being my company website). I have not changed any settings in cpanel in months. Any suggestions would be very welcome! Steps to Reproduce (if applicable): All replies T. McKay Level 1 9:54 AM Edit On cpanel I have two addresses mapped to my appengine app: www.winebythebar.com and incoming.winebythebar.com. incoming reaches the site correctly but www does not any more. Help! T. McKay Level 1 10:12 AM Edit Looking at this link http://groups.google.com/group/google-appengine/web/deleting-existing-www-mapping-from-google-apps but I don't have a mapping for www, only 'home' T. McKay Level 1 10:17 AM Edit In fact, trying to add 'www' as the above link describes in order to then delete it says that www is already in use. -- 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-appeng...@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. -- 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-appeng...@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.
Re: [google-appengine] GAE tools poll
I use Eclipse with Pydev. I second Adams request for a graphical designer. Not absolutely necessary, but a nice tool in my opinion. Best Regards, Jesaja Everling On Thu, Dec 17, 2009 at 4:41 PM, Joshua Smith joshuaesm...@charter.net wrote: Python / Emacs. (When I write Java, I also use Emacs. I'm one of those IDE-haters. I'm probably not very representative of your target audience.) No particular tool deficiency comes to mind. On Dec 17, 2009, at 9:56 AM, Andrey Tarantsov wrote: 1) IDEs / editors: Are you Java guys using Eclipse or IDEA or something else? Are you Python guys using PyDev, another IDE, Vim/ Emacs or a regular text editor? -- 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-appeng...@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. -- 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-appeng...@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.
Re: [google-appengine] Java or Python; Which should I recommend to others who are very sensitive to costs?
Maybe the people asking if it's possible to run Jython on App Engine were on to something, after all! ;) I also think choosing the toolkit that works best for the task at hand is more important. Furthermore I'm confident the App Engine team will speed up the Python runtime further; maybe that's part of what Unladen Swallow is meant for. A very interesting observation, though! Best Regards, Jesaja Everling On Tue, Dec 15, 2009 at 7:34 PM, Michael Langford michael.langf...@gmail.com wrote: If your app exceeds free quota, this deference can impact total amount of costs significantly. As can the difference in price/productivity between the two languages as far as total cost of development goes. The incremental costs on appengine between the two technologies are dwarfed by the productivity differences between them for most project's I'd imagine. I'd say if you're charging clients the same amount to develop an app in Java as you are in Python, you're vastly overcharging for the python or undercharging for the java (baring language specific libraries available for one platform and not on the other). For a huge number of programs, the difference in development time between a higher level language and a lower level language is never recouped by increased runtime in the faster, lower level language. For many apps, even java developers are faster writing python than java (Although they all seem to go for Ruby instead). --Michael On Tue, Dec 15, 2009 at 1:02 PM, Takashi Matsuo matsuo.taka...@gmail.com wrote: Hello, Today I noticed that App Engine Java environment became much faster then before. The spin up cost is about 700cpu_ms with the simplest servlet. Additionally, when it comes to serving with a hot instance, the cost reduces to 0-2cpu_ms, while python environment takes about 5-7cpu_ms even with the simplest handler. To make it simple here, lets say Java takes 1cpu_ms while Python takes 6cpu_ms for serving very simple page. How many requests can they serve with 1 cpu hour? Java: 360 requests/1 cpu hour Python: 60 requests/1 cpu hour This is a big deference; 6 times! If your app exceeds free quota, this deference can impact total amount of costs significantly. I'm a big Python fan and I have believed that appengine Python runtime is superior to Java runtime, so I've been trying to persuade others to use Python rather than Java for now. Having said that, today it turns out for me that Java runtime is much more cost effective than Python runtime in some cases, so should I recommend others to use Apppengine Java if they are very sensitive to cpu costs? I'd appreciate if anyone could share one's thoughts/experiences on this. TIA -- Takashi Matsuo Kay's daddy -- 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-appeng...@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. -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com -- 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-appeng...@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. -- 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-appeng...@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.
Re: [google-appengine] Is it possible to deploy Wave server on GAE ( will it be wihin free limits)
I have the feeling that Nick uses more than his 100% time to help users and to improve App Engine. All of this is/will be open source, so why don't you try porting it yourself? :) On Tue, Dec 8, 2009 at 4:48 PM, Joshua Smith joshuaesm...@charter.net wrote: Perhaps you should port it, Nick! Use some of that 20% time! :) On Dec 8, 2009, at 10:43 AM, Nick Johnson (Google) wrote: Hi, The prototype Wave server is not an App Engine app, so it can't be deployed on App Engine. -Nick Johnson On Sun, Dec 6, 2009 at 7:00 AM, saurabh sagarwal1...@gmail.com wrote: Hi , I am trying o make an application based on wave server functionality ( I dont want to use the Wave GUI ) just the wave server functionality of realtime collobration. But as fo now the no of wave users is very less and i cant ask my users to join google wave so I am thinking of deploying the wave server myself and iuse it as a backend. I want to know If I can deploy the wave server on GAE server , Has anybody tried it Thanks Saurabh -- 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-appeng...@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. -- Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 -- 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-appeng...@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. -- 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-appeng...@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. -- 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-appeng...@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.
Re: [google-appengine] Cloud
Hi Joe, I don't know what you mean with cloud exactly, but you can have different version of the same up use different languages: http://googleappengine.blogspot.com/2009/06/10-things-you-probably-didnt-know-about.html Something that's less known is that the different app versions don't even have to have the same runtime! It's perfectly fine to have one version of an app using the Java runtime and another version of the same app using the Python runtime. So I would say the answer is yes. In this case both languages can even access the same datastore. Best Regards, Jesaja Everling On Thu, Nov 12, 2009 at 4:39 AM, JoeM joe.mansig...@gmail.com wrote: Do appengine Python applications and appengine Java applications access the same cloud ? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~--- -- 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-appeng...@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=.
[google-appengine] Re: What is the equivalent way of doing it in django?
Hi! In Django, you define a function that handles the request (the view in django notation), and supply it with a request object. This request object contains all your GET and POST data. So instead of defining a class, you would define a function that handles the request. def myview(request): ... #handle the request here ip_address = request.META['REMOTE_ADDR'] ... render_to_response(template.html, {ip_address: ip_address}) render_to_response is a shortcut that renders a html-template and replaces variables you have defined there with the content of the variables you pass as a dictionary to the function. What you said about the url-configuration and the views is correct. If you open a URL that is served by Django, Django tries to find a matching entry in a file called urls.py. In this file, you specify which request handler (view) is supposed to handle the request. The request is then passed to that function, and the view has to return a response object, which is then further handled by the Django framework. Django works very different from webapp, so I don't think you can easily reuse a class that you have defined for webapp. I suggest to have a look at the official Django tutorials: http://docs.djangoproject.com/en/dev/intro/tutorial01/#intro-tutorial01 If you want to use Django on App Engine, I recommend to have a look at the sample project that is provided by app-engine-patch: http://code.google.com/p/app-engine-patch/ This way, you can see Django on App Engine in action and have a look at the source code to see how it works. I don't know if I have answered your question, it was a bit general... Best Regards, Jesaja Everling On Fri, Jan 30, 2009 at 1:54 PM, arnie parvez...@rediffmail.com wrote: Using webapp framework, I have created a class for handling the GET request: class myclass(webapp.RequestHandler) def get(self): if i instead use the django then how the same class will be modified to use django framework? Though I have seen that django looks urls.py for requested urls and then refers views.py for matching views. So how can i use a class imyclass to handle the same? Correct me wherever appropriate as i have not used django before Thanks Arnie --~--~-~--~~~---~--~~ 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: What is the equivalent way of doing it in django?
You are welcome! Setting the Content-Type header works a little different in Django. You can either specify it when you construct a HttpResponse object ourself: from django.http import HttpResponse def myview(request): response = HttpResponse(content_type=text/xml) return response When using the render_to_response shortcut, you cannot use the content_type-keyword, you have to use mimetype instead (don't know why exactly, the Django docs say that content_type is only an alias for mimetype). render_to_response(template.html, {ip_address: ip_address}, mimetype=text/xml) You can also set the content_type header later, however, this looks a bit cryptic: from django.shortcuts import render_to_response def myview(request): ip_address = request.META['REMOTE_ADDR'] response = render_to_response(template.html, {ip_address: ip_address}) response._headers['content-type'] = ('Content-Type', 'text/xml') return response As you see, the Django people seem to want you rather using the constructor! ;) Jesaja On Fri, Jan 30, 2009 at 4:46 PM, arnie parvez...@rediffmail.com wrote: Thanks a lot for your detailed reply Earlier I have created a class that implements webapp.RequestHandler for handling the GET request. The def get(self) is returning a simple xml as a response. There I have set the content type as self.response.headers['Content-Type'] = 'text/xml' and subsequntly generated the xml. Will this xml generating code will work on django web app or I need to change it? I will also look at the django sample suggested by you Thanks once again arnie --~--~-~--~~~---~--~~ 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: use stored string key to get an entity
Hi Shay! Did you try to use ReferenceProperty? transaction = db.ReferenceProperty(Transaction) Best Regards, Jesaja Everling On Mon, Dec 22, 2008 at 11:09 PM, Shay Ben Dov shay.ben...@gmail.com wrote: Hi this is the issue I have a Transaction model I do: transaction=Transaction() transaction.put() tr_key = str(transaction.key()) I want to store it in a second mode class Tag(db.Model): transaction = db.Key(encoded=None) tag = db.StringProperty(required=True) user = db.UserProperty(required=True) I do: tag = Tag(transaction=tr_key,) tag.put() later on in the application I retrieve the tag entity and I want to get the transaction back I do: tr_key = tag.transaction transaction = Transaction.get(tr_key) and I get an error message: BadKeyError: Key datastore_types.Key.from_path(_app=u'') is not complete. Every help or example is very appreciated. Thanks, Shay --~--~-~--~~~---~--~~ 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: form.as_p
Hi, I think you mean {{form.first_name.label}} and {{form.first_name}} ?! On Sun, Dec 21, 2008 at 7:28 PM, Thomas thomas.pels...@googlemail.com wrote: Hi yinDojo, I'm not sure, if I understood your problem. You have a template like this - lets call it index.html --- html body form action= method=post {{form.as_p }} input type=submit name=create value=Create /form /body /html --- Right?? Then your models.py has to look like this: --- import os from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app from google.appengine.ext.webapp import template class MainHandler(webapp.RequestHandler): def get(self): template_values = { 'form.as_p' : 'input type=text name=first_nameinput type=text name=last_name' } path = os.path.join(os.path.dirname(__file__), './index.html') self.response.out.write(template.render(path, template_values)) def main(): run_wsgi_app(webapp.WSGIApplication([('/', MainHandler)], debug=True)) if __name__ == '__main__': main() -- Per self.response.out.write(template.render(path, template_values)) you take a file path to the template file and a dictionary of values, and return the rendered text. Take a look to http://www.djangoproject.com/documentation/0.96/templates/ --~--~-~--~~~---~--~~ 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: App name error ...
Hi! This is due to the fact that App Engine apps share the gmail namespace. That means that if you already have a gmail-account registered, you cannot register an app with the same name. For example, I couldn't register jeverling. Best Regards, Jesaja Everling On Thu, Dec 18, 2008 at 8:52 PM, Webweave webwe...@gmail.com wrote: When I try to create my app name with my company name (AccuWeaver), it tells me An App or Google Account already exists with that name. Now how is that possible, when that is my company name, and I'm the only one with rights to that name ? How do I find out who is using my company name where it impacts Google App Engine ? --~--~-~--~~~---~--~~ 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: App name error ...
Sorry, it seems that I misunderstood the way appspot shares the gmail namespace. I just tried, and was able to register an app jeverling. So it seems there is another problem. Either someone has already registered the application, or something else. Can't help you with this. On Thu, Dec 18, 2008 at 11:48 PM, Webweave webwe...@gmail.com wrote: So there's somebody out there using my company name as a gmail account On Dec 18, 11:59 am, Jesaja Everling jeverl...@gmail.com wrote: Hi! This is due to the fact that App Engine apps share the gmail namespace. That means that if you already have a gmail-account registered, you cannot register an app with the same name. For example, I couldn't register jeverling. Best Regards, Jesaja Everling On Thu, Dec 18, 2008 at 8:52 PM, Webweave webwe...@gmail.com wrote: When I try to create my app name with my company name (AccuWeaver), it tells me An App or Google Account already exists with that name. Now how is that possible, when that is my company name, and I'm the only one with rights to that name ? How do I find out who is using my company name where it impacts Google App Engine ? --~--~-~--~~~---~--~~ 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: sendmail program
Hi Nora! I would rather use a smtp-server on the internet. Using the gmail smtp-server is broken at the moment AFAIK, but you can use any other smtp-server that allows sending mails without using TLS. You have to start the dev-server like this: dev_appserver.py --smtp_host=smtp.example.com --smtp_port=25 --smtp_user=ajohnson --smtp_password=k1tt3ns myapp More information can be found here: http://code.google.com/appengine/docs/thedevwebserver.html If sending mail works with the smtp-server you specified when starting dev_appserver, it will also work when your app is deployed. It will automatically use Googles mail-infrastructure then. Getting sendmail to work on Windows might be possible, but I can imagine it will be quite hard. Best Regards, Jesaja Everling On Wed, Dec 17, 2008 at 2:55 PM, Nora noorhanab...@yahoo.co.uk wrote: Hello, I am using GAE sdk on windows, can anyone please advise me on how to get the sendmail program work with GAE? Thanks. --~--~-~--~~~---~--~~ 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: Difficulty Serving Static Image with static_files handler
AFAIK, OSX is not case sensitive, while it is case preserving. One more reason to use linux! :P On Tue, Dec 16, 2008 at 7:09 PM, Dylan Lorimer write2dy...@gmail.com wrote: Yes, as embarrassing as it is, case sensitivity was the problem. This stumped me for literally 3 days! Why would it not be an issue on my Mac, but when deployed to App Engine it became an issue? Wait...I'm guessing it's the Mac's filesystem, right? Anyway, it works now... Cheers, dylan On Dec 15, 10:50 pm, dk davemk...@gmail.com wrote: I'm having the same problem. The strange thing is that I have other static content that serves up just fine. It seems only the images I tried to add today are not found. Let me know if you come up with anything. -dk On Dec 15, 11:31 pm, Dylan Lorimer write2dy...@gmail.com wrote: Hi Marzia - Thanks for your reply. So unfortunately I don't that the order of the app.yaml entries is the culprit. Here's my app.yaml: handlers: - url: /photos/(.*)/(.*\.(gif|png|jpg)) static_files: static/photos/\1/\2 upload: static/photos/(.*)/(.*\.(gif|png|jpg)) - url: /css static_dir: static/css - url: /images static_dir: static/images - url: /js static_dir: static/js - url: /post script: main.py login: admin - url: /.* script: main.py My site is live @http://www.jaceyphotographs.com. You can see the blog entry with missing img, and if you check the source you'll see the img URL that should resolve but isn't. It is possible that my images haven't been uploaded to app engine by the development google app engine launcher? Is there any way to verify that they indeed are on the server? Did I mention that this works perfect on my development app engine server, which is what is making this so frustrating! Cheers, dylan On Dec 15, 1:42 pm, Marzia Niccolai ma...@google.com wrote: Hi Dylan, H, this is confusing because it works perfectly for me. I made a simple application: static - photos - folder - image.jpg - folder2 - image.jpg [different image] With this in my app.yaml: - url: /photos/(.*)/(.*\.(gif|jpg)) static_files: static/photos/\1/\2 upload: static/photos/(.*)/(.*\.(gif|jpg)) And it works perfectly. The only thing I can think of that may not make this work is if you have another handler in your app.yaml that also matches those files and is defined before this one that is causing this issue. So this could 404 if your app.yaml looks like this: -app.yaml- - url: /.* script: main.py - url: /photos/(.*)/(.*\.(gif|jpg)) static_files: static/photos/\1/\2 upload: static/photos/(.*)/(.*\.(gif|jpg)) -end- Because the first handler matches all URLs. Hope this helps, if not, perhaps attach your entire app.yaml file? -Marzia On Sun, Dec 14, 2008 at 12:11 AM, Dylan Lorimer write2dy...@gmail.comwrote: Hi, In my app.yaml I have the following: - url: /photos/(.*)/(.*\.(gif|png|jpg)) static_files: static/photos/\1/\2 upload: static/photos/(.*)/(.*\.(gif|png|jpg)) My application has images that I've uploaded per the following directory structure: application root - static - photos -folder_1/image_1.jpg -folder_1/image_2.jpg -folder_2/image_3.jpg etc etc For the life of me I can't seem to serve these images successfully. Any URL hit to:www.myapp.com/photos/photo_folder_name/image_name.jpg results in a 404 not found. I'm certain this is an issue with my app.yaml static handler but can't figure it out. Any help is SUPER appreciated. It's possible that they are not being uploaded due to an error in the upload directive, but I don't think that's the case. Thanks much. --~--~-~--~~~---~--~~ 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: Django+Appengine vs Appengine
Well, Django doesn't really extend App Engine with more functionality, because you probably could do everything you could do in Django in webapp and vice versa. What are the main advantages of using Django on the AppEngine? Well, if you ask me that would be support from the Django community (at least for Django related problems), a lot of reusable apps that will be easily portable to App Engine (in many cases you only have to port the model definitions, the rest should work), and independence of the App Engine environment. And you can make use of many of the shortcuts that are provided by Django to avoid repititive work. I think the App Engine devs chose to support Django because it is a great and very popular framework, and providing it will attract a lot of people that have experience with Django. In principle, however, every WSGI-compliant framework could be ported to appengine. If I'm informed correctly, Guido van Rossum used Django for his Rietveld project. If you want to get as much Django-Appengine integration as possible, try the app-engine-patch: http://code.google.com/p/app-engine-patch/ It even makes a lot of Django's generic views available in App Engine. Best Regards, Jesaja Everling On Mon, Dec 15, 2008 at 8:58 AM, Bobby bobbysoa...@gmail.com wrote: Group, i'm starting work on an AppEngine site and i was going to use Django (i haven't used it before), i went through the Django docs and i saw lots of useful features but many exist already on the AppEngine, such as database models and forms (through google.appengine.ext.db.djangoforms) - plus the concept of urls and views seems to be easily reproduced in AppEngine without much code. In addition to this i'm seeing that the Django admin site has been replaced by the AppEngine data viewer which isn't as powerful or customizable right now, so i'm not seeing alot of reasons to use the Django framework (other than wanting to). What are the main advantages of using Django on the AppEngine? (i can see at least two disadvantages in having an additional layer and added configuration/maintenance). Was Django made compatible with the AppEngine (through the Appengine Helper for Django) mostly for allowing users to port their existing Django apps over or does it actually extend AppEngine with added functionality? I'm probably missing something, right? Let me know, thanks. --~--~-~--~~~---~--~~ 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: Error: Method Not Allowed
Hi, to be honest, I can't see at the moment why this isn't working. Maybe you want to try using this: greeting.content = self.request.POST['content'] Your version should work just as well, though: greeting.content = self.request.get('content') No idea why it works on your localhost, and not when deployed... Not much help, but I tried! ;) Best Regards, Jesaja Everling On Sat, Dec 6, 2008 at 10:51 AM, flu xius [EMAIL PROTECTED] wrote: This is the code HTML to submit a form in MainPage Class : self.response.out.write( form action=/sign method=post divtextarea name=content rows=3 cols=60/textarea/div divinput type=submit value=Sign Guestbook/div /form /body /html) And that's my other class Guestbook which take values and use the model to insert data : class Guestbook(webapp.RequestHandler): def post(self): greeting = Greeting2() if users.get_current_user(): greeting.author = users.get_current_user() greeting.content = self.request.get('content') greeting.put() self.redirect('/') This project work perfecly in localhost, the method post should be taked by the webapp callback application = webapp.WSGIApplication( [('/', MainPage), ('/logout', Logout), ('/login', Login), ('/sign', Guestbook)], debug=True) Thanx for help ! :) On Sat, Dec 6, 2008 at 4:37 AM, kang [EMAIL PROTECTED] wrote: your code? On Sat, Dec 6, 2008 at 5:12 AM, SebastienDudek [EMAIL PROTECTED] wrote: Hi ! I started a new application inside Google Engine : http://fluxius.appspot.com/ This application is a part of guestbook in documentations. Problem is than I can submit by get methods but with post methods I have this error : Error: Method Not Allowed The request method GET is inappropriate for the URL /sign. To See whats the problem, I used get after the post method and I saw than on /sign url, get is only used. P.S : This project works on localhost ^^! -- Stay hungry,Stay foolish. --~--~-~--~~~---~--~~ 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: How do i can clear Data Base in google server?
Hi Alakat, there are probably better ways, but I always use the Data Viewer in the admin console. http://appspot.com If you check the box on top of the list of entities, it selects all. This is of course not practical for a large number of entities. Best Regards, Jesaja Everling On Tue, Dec 2, 2008 at 10:14 AM, Alakat [EMAIL PROTECTED] wrote: hi everybody. I like know how do clear data base in google server. i know that i can claer my local database if i use the command dev_appserver.py with -c option (--clear_database) but do anybody know this with any command. Thank very much --~--~-~--~~~---~--~~ 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: Embedding VRML
Hi Kieran, I think it should work if you put your *.wrl-files in the static-directory: app.yaml: handlers: - url: /media static_dir: media html: EMBED SRC=/media/cube.wrl Best Regards, Jesaja Everling On Sun, Nov 30, 2008 at 10:57 PM, Kieran [EMAIL PROTECTED] wrote: Hello I am trying to embed some VRML in my HTML using: EMBED SRC=cube.wrl TYPE=model/vrml WIDTH=128 HEIGHT=128 VRML_SPLASHSCREEN=FALSE VRML_DASHBOARD=FALSE VRML_BACKGROUND_COLOR=#CDCDCD CONTEXTMENU=FALSE When i run this with the dev_appserver on localhost:8080 it just displays a black square and no cube image. Any ideas on why this is or on how to embed VRML in HTML? Thnaks! --~--~-~--~~~---~--~~ 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: Get time in milliseconds for later use in javascript
Hi Peter, maybe this helps: http://www.djangosnippets.org/snippets/387/ I have used it before, worked fine. Best Regards, Jesaja Everling On Sun, Nov 30, 2008 at 11:17 PM, Peter [EMAIL PROTECTED] wrote: Hi folks, I want to generate a integer that represents the current date so that I can do var d = new Date(valueFromAppEngine); I'm using django and currently trying this, which of course doesn't work (otherwise I wouldn't be posting this.) {{lastUpdate|date:U}} where lastUpdate = datetime.now() Any tips or thoughts? Cheers, Pete --~--~-~--~~~---~--~~ 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: Is it possible to send emails from App Engine via non Google SMTP?
Hi Moran! If you only want to send email from another sender address, you could create a google account with the email address, and invite this account as a developer for your app. Then you can send email from this sender. Just enter the dashboard for your application (http://appspot.com), then add the desired email address as a developer. You will receive an email with a link to confirm that you want to be a developer for this app. Just click on the confirmation link, and you will be cancreate a google account with your email address as user name in the next step. Don't forget to click the confirmation link one more time once your google account is created. SMTP is not possible, because you can only make http and https connections to port 80 and port 443 respectively. Best Regards, Jesaja Everling On Sat, Nov 29, 2008 at 2:42 AM, David Symonds [EMAIL PROTECTED] wrote: On Fri, Nov 28, 2008 at 2:20 AM, Moran [EMAIL PROTECTED] wrote: I'm new to the App Engine. I need to send emails via a specific SMTP server, using specific sender ( non Gmail user). Is it possible? No. You can only send email from (a) an admin, or (b) the logged in user. It's also not possible to make SMTP connections directly. Dave. --~--~-~--~~~---~--~~ 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: File permission ....
Hello Nora, to be honest, I don't really understand your problem. Did you rename the folder python25 to myFolder? I don't understand what you mean by the system copies the original file saved in 'python25'.? Is the folder python25 still around? What files are inside this folder? Maybe you have still referenced the folder in your app.yaml? I wouldn't name any folder python25, because that's the folder where your python runtime is stored, at least if you have python 2.5 installed (c:\python25). This doesn't have to lead to problems, but it can, because this folder will be in your path... Best Regards, Jesaja Everling On Fri, Nov 28, 2008 at 4:04 PM, Nora [EMAIL PROTECTED] wrote: Hello, I am working on windows. I had some code developed in python in a directory called 'python25'. I have copied this code to a new folder on the google_appengine folder . So, now I have all my updated files on : c:\program files\googles\google_appengine\myFolder The problem is, whenever I want to copy any file in 'myFolder' to the any other folder, the system copies the original file saved in 'python25', not the updated file on google_appengine folder. I don't know why this is happening and whether google_appengine SDK sets certain file permissions when it is installed or what? Please, suggest any clues as this is crucial for my website to be published, otherwise, I won't be able to copy my website files to google server (as the very old version saved on python25 directory will be used!!) Thank you very much. --~--~-~--~~~---~--~~ 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: File permission ....
Hi Nora, the nora.py in c:\python25 will always be used, because it is in your path, and will get imported before your modified file. (import sys; sys.path). I would suggest to just move the file c:\python25\nora.py out of the way, into another folder which is not in your PATH. On Fri, Nov 28, 2008 at 5:39 PM, Nora [EMAIL PROTECTED] wrote: Hello, Well. I have a c:\python25 folder where the python run time is installed. I will give a more precise example, may be this will help. Say I have a file called 'nora.py' saved in the folder c:\python25... so now my file is located in c:\python25\nora.py I started to develope a website, so I created a new folder for my website under c:\program files\google\google_appengine. and named it NoraWebSite. Now I have c:\program files\google\google_appengine \NoraWebSite\ I copied nora.py to c:\program files\google\google_appengine \NoraWebSite\ I will definitly need to do some modifications to nora.py. Now, I have two nora.py files in two different locations and theortically speaking, they contain different data to some extent. The problem is: if I try to copy the modified nora.py to another location, I end up having the first nora.py! It seems that there is an inheritance somehowif I try to copy the child, I end up with the parent file. I hope this is clearer now. Thank you very much. On Nov 28, 4:02 pm, Jesaja Everling [EMAIL PROTECTED] wrote: Hello Nora, to be honest, I don't really understand your problem. Did you rename the folder python25 to myFolder? I don't understand what you mean by the system copies the original file saved in 'python25'.? Is the folder python25 still around? What files are inside this folder? Maybe you have still referenced the folder in your app.yaml? I wouldn't name any folder python25, because that's the folder where your python runtime is stored, at least if you have python 2.5 installed (c:\python25). This doesn't have to lead to problems, but it can, because this folder will be in your path... Best Regards, Jesaja Everling On Fri, Nov 28, 2008 at 4:04 PM, Nora [EMAIL PROTECTED] wrote: Hello, I am working on windows. I had some code developed in python in a directory called 'python25'. I have copied this code to a new folder on the google_appengine folder . So, now I have all my updated files on : c:\program files\googles\google_appengine\myFolder The problem is, whenever I want to copy any file in 'myFolder' to the any other folder, the system copies the original file saved in 'python25', not the updated file on google_appengine folder. I don't know why this is happening and whether google_appengine SDK sets certain file permissions when it is installed or what? Please, suggest any clues as this is crucial for my website to be published, otherwise, I won't be able to copy my website files to google server (as the very old version saved on python25 directory will be used!!) Thank you very much.- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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: File permission ....
Hi Nora, do you mean copying or moving? If I copy c:\python25\nora.py to a temporary folder on the c:\, for example c:\MyWork\nora.py and modify c:\MyWork\nora.py If you want to be sure that the file in the current directory gets used, remove all files that have the same name from directories that are in your PYTHONPATH (import sys; sys.path). If you execute a python module, it's location will be added at the first place into the PYHTONPATH. I'm not entirely sure, but I think that if you have a file with the same name in another directory in your PYTHONPATH (for example 'c:\python25'), it may get used instead of the file that has been loaded into memory earlier. So if you want to be safe, remove your file from the folder c:\python25. You should treat this as a system folder and don't store any files in it. Best Regards, Jesaja On Fri, Nov 28, 2008 at 8:18 PM, Nora [EMAIL PROTECTED] wrote: Hi Jesaja, I have tried what you proposed but it didn't work. Now, I have done some more expermenting and found the following: If I copy c:\python25\nora.py to a temporary folder on the c:\, for example c:\MyWork\nora.py and modify c:\MyWork\nora.py ...then if you copy it anywhere, there is no problem. The problem occurs only if you tend to copy a file from c:\python25 straight to google_appengine. Any clues? Thanks a lot. On Nov 28, 5:16 pm, Jesaja Everling [EMAIL PROTECTED] wrote: Hi Nora, the nora.py in c:\python25 will always be used, because it is in your path, and will get imported before your modified file. (import sys; sys.path). I would suggest to just move the file c:\python25\nora.py out of the way, into another folder which is not in your PATH. On Fri, Nov 28, 2008 at 5:39 PM, Nora [EMAIL PROTECTED] wrote: Hello, Well. I have a c:\python25 folder where the python run time is installed. I will give a more precise example, may be this will help. Say I have a file called 'nora.py' saved in the folder c:\python25... so now my file is located in c:\python25\nora.py I started to develope a website, so I created a new folder for my website under c:\program files\google\google_appengine. and named it NoraWebSite. Now I have c:\program files\google\google_appengine \NoraWebSite\ I copied nora.py to c:\program files\google\google_appengine \NoraWebSite\ I will definitly need to do some modifications to nora.py. Now, I have two nora.py files in two different locations and theortically speaking, they contain different data to some extent. The problem is: if I try to copy the modified nora.py to another location, I end up having the first nora.py! It seems that there is an inheritance somehowif I try to copy the child, I end up with the parent file. I hope this is clearer now. Thank you very much. On Nov 28, 4:02 pm, Jesaja Everling [EMAIL PROTECTED] wrote: Hello Nora, to be honest, I don't really understand your problem. Did you rename the folder python25 to myFolder? I don't understand what you mean by the system copies the original file saved in 'python25'.? Is the folder python25 still around? What files are inside this folder? Maybe you have still referenced the folder in your app.yaml? I wouldn't name any folder python25, because that's the folder where your python runtime is stored, at least if you have python 2.5 installed (c:\python25). This doesn't have to lead to problems, but it can, because this folder will be in your path... Best Regards, Jesaja Everling On Fri, Nov 28, 2008 at 4:04 PM, Nora [EMAIL PROTECTED] wrote: Hello, I am working on windows. I had some code developed in python in a directory called 'python25'. I have copied this code to a new folder on the google_appengine folder . So, now I have all my updated files on : c:\program files\googles\google_appengine\myFolder The problem is, whenever I want to copy any file in 'myFolder' to the any other folder, the system copies the original file saved in 'python25', not the updated file on google_appengine folder. I don't know why this is happening and whether google_appengine SDK sets certain file permissions when it is installed or what? Please, suggest any clues as this is crucial for my website to be published, otherwise, I won't be able to copy my website files to google server (as the very old version saved on python25 directory will be used!!) Thank you very much.- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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: Using field key_name in djangoforms
You are right. I have tried, and it behaves the same way for me. You can work around this issue by passing the key_name as initial data to your form: form = TestForm(instance = entry, initial={'key_name': entry.key().name()}) It seems this is on purpose, the relevant code starts at line 803 in google.appengine.ext.db.djangoforms: if instance is None: instance = opts.model(**converted_data) self.instance = instance else: for name, value in converted_data.iteritems(): if name == 'key_name': continue setattr(instance, name, value) Maybe the field should rather be removed from the form, then. Best Regards, Jesaja Everling On Wed, Nov 26, 2008 at 10:35 AM, Denya [EMAIL PROTECTED] wrote: No, i mean a little bit another thing. When i open page with form and want to edit some data (it means that i create form by passing db entity instance) the input field key_name appears, but it is empty (in db it's not empty) I understand, that i can't edit this. But i want this to be not empty when i show edit form! On Tue, Nov 25, 2008 at 6:47 PM, Jesaja Everling [EMAIL PROTECTED] wrote: Hi Denis! Once you have an entity with a key_name, you cannot change the key_name. That is the reason that the form doesn't use this field when using it to change an entity. If you want to hide it from an editing-form, you can either do so in template logik by passing a variable like change=True, or you can make another form definition that excludes the field. Do I understand you correctly that the key_name field doesn't appear when you are editing an entity? would have to create a separate form for editing On Tue, Nov 25, 2008 at 7:33 AM, Denis Moskalets [EMAIL PROTECTED] wrote: ext/db/djangoforms.py contains interesting description for some class: If you define a form field named 'key_name' it will be treated specially and will be used as the value for the key_name parameter to the Model constructor. This allows you to create instances with named keys. The 'key_name' field will be ignored when updating an instance (although it will still be shown on the form). I've tried this. It's really works, key_name field appears. key_name properly saved into DB. It's really cool! But there only little problem. The 'key_name' field will be ignored when updating an instance (__although it will still be shown on the form__). key_name field doesn't appear at form, when you trying to edit data. I've read SDK code, and really... there nothing about filling key_name by data. In SDK source code, 'key_name' appears only in save() method. Is it really undocumented feature, that doesn't completely realised, or it is bug? -- o L_/ OL This is Schäuble. Copy Schäuble into your signature to help him on his way to Überwachungsstaat. -- o L_/ OL This is Schäuble. Copy Schäuble into your signature to help him on his way to Überwachungsstaat. --~--~-~--~~~---~--~~ 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: declaration precedence in models.py
Hi p0windah! This doesn't work, because in your example you are refering to Foo when you try to create a reference to it in a variable called fluff. However, until this point Python doesn't know anything about Foo, because it is declared later. This is normal, you have to declare variables or other objects before using them. Best Regards, Jesaja Everling On Tue, Nov 25, 2008 at 9:22 AM, p0windah [EMAIL PROTECTED] wrote: I am using Djang0 1.0 with appengine and have bumped up against an odd thing. The order in which models are declared makes a difference. Using the models.py you will get the following error: NameError: name 'Foo' is not defined While swapping Foo with Bar solves this problem, it is not a practical solution when you have numerous models and references scattered across them. So, how are others tackling this problem? #/project/myapp/models.py – this does not work class Bar(db.Model): fluff = db.ReferenceProperty(Foo) class Foo(db.Model): title = db.StringProperty() -- o L_/ OL This is Schäuble. Copy Schäuble into your signature to help him on his way to Überwachungsstaat. --~--~-~--~~~---~--~~ 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: Using field key_name in djangoforms
Hi Denis! Once you have an entity with a key_name, you cannot change the key_name. That is the reason that the form doesn't use this field when using it to change an entity. If you want to hide it from an editing-form, you can either do so in template logik by passing a variable like change=True, or you can make another form definition that excludes the field. Do I understand you correctly that the key_name field doesn't appear when you are editing an entity? Well, than thats probably on purpose. Best Regards, Jesaja Everling would have to create a separate form for editing On Tue, Nov 25, 2008 at 7:33 AM, Denis Moskalets [EMAIL PROTECTED] wrote: ext/db/djangoforms.py contains interesting description for some class: If you define a form field named 'key_name' it will be treated specially and will be used as the value for the key_name parameter to the Model constructor. This allows you to create instances with named keys. The 'key_name' field will be ignored when updating an instance (although it will still be shown on the form). I've tried this. It's really works, key_name field appears. key_name properly saved into DB. It's really cool! But there only little problem. The 'key_name' field will be ignored when updating an instance (__although it will still be shown on the form__). key_name field doesn't appear at form, when you trying to edit data. I've read SDK code, and really... there nothing about filling key_name by data. In SDK source code, 'key_name' appears only in save() method. Is it really undocumented feature, that doesn't completely realised, or it is bug? -- o L_/ OL This is Schäuble. Copy Schäuble into your signature to help him on his way to Überwachungsstaat. --~--~-~--~~~---~--~~ 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: Running asynchronous scripts
Hi Involute, this topic came up here quite a few times already. I'd suggest you do a search on the Google Groups page: http://groups.google.com/group/google-appengine Searching for cron yields a lot of interesting results. You should also have a look at this issue: http://code.google.com/p/googleappengine/issues/detail?id=6 In the comments there are a few workarounds. This kind of functionality is not officially supported by Appengine at the moment, because each process has to be finished after a few seconds. Best Regards, Jesaja Everling On Mon, Nov 24, 2008 at 5:56 PM, Involute [EMAIL PROTECTED] wrote: Can Python scripts on GAE only be run in response to a URL request? Is it possible to get them to run at a particular time of day, e.g.? Involute -- o L_/ OL This is Schäuble. Copy Schäuble into your signature to help him on his way to Überwachungsstaat. --~--~-~--~~~---~--~~ 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: Version Problems
Not us, Google can with their SDK! ;) On Sun, Nov 23, 2008 at 9:03 PM, Faber Fedor [EMAIL PROTECTED] wrote: Waitaminnit! We can do minor versioning?! Every time I put a non-integer value for version in my app.yaml file, I get a regex error. Reading the regex, it looks like it wants only integers for version numbers! On Sun, Nov 23, 2008 at 12:13 AM, David Symonds [EMAIL PROTECTED] wrote: On Sun, Nov 23, 2008 at 2:51 PM, MajorProgamming [EMAIL PROTECTED] wrote: I noticed that the versions of two of my apps are displaying something like the following: 1.329480897355837812. It is very strange because there is no way I did that many revisions, yet somehow, it's up to that number. I think it happened after one of the last scheduled downtimes. I would appreciate if someone could enlighten me... (normally I wouldn't care, but one of those apps has the version placed inside the footer so users can see where we're up to) The minor versioning system has changed -- it's a timestamp now. -- Faber Fedor Cloud Computing New Jersey http://cloudcomputingnj.com -- o L_/ OL This is Schäuble. Copy Schäuble into your signature to help him on his way to Überwachungsstaat. --~--~-~--~~~---~--~~ 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: Destroyed a whole site
Hello Danny, unfortunately, I have no idea how you could get your sources back. I would suggest, however, that you start to use version control especially for projects that you get paid for. It saves you from accidentially deleting files, and lets you revert to prior versions of your sources when you took a bad turn. I don't know about other VCS, but I like Mercurial very much, and there are a few services that let you create a repository on their infrastructure for free. One is, for example bitbucket. Mercurial lets you commit locally any changes you have made, and when you sync to a repository on an independent server from time to time you should be safe from harddrive crashes and similar events. Sorry that I can't help you better... Best Regards, Jesaja Everling On Fri, Nov 21, 2008 at 10:59 AM, oli [EMAIL PROTECTED] wrote: start from scratch, work 10x faster than normal or find some very convincing excuse. On 21 Nov., 02:21, danny [EMAIL PROTECTED] wrote: Hello dear developers, i badly need your help. Yesterday my pc's hard drive got damaged, and i lost all source code of my website, which i was getting paid for the next day. So i found a project called App File Browser, (http://code.google.com/p/appfilesbrowser/) and i thought i could access with it my source'es on my app, so i could download them. at first, i edited index.yaml to another version, so it wouldnt overwrite the half-working site. I accessed it, but it didnt list any of my website's files, so i thought that if i overwrote the version i used for the site development, it would let me pick my files. But i was wrong. EVERYTHING is messed now. my site isnt there, and instead, i see this damn AppFileBrowser. i have to present the site to the buyers in MAX 1-2 days, and i have to find a way to fix this mess! I have no idea how to do it. Can you give me any advice? ( yeah, i now have 10KKK backs up of my pc. ) -- o L_/ OL This is Schäuble. Copy Schäuble into your signature to help him on his way to Überwachungsstaat. --~--~-~--~~~---~--~~ 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: Environment variable DJANGO_SETTINGS_MODULE is undefined
Hi Chris! Did you make sure to first import google.appengine.webapp.template before importing the djangoforms module? Please have a look at this article: http://code.google.com/appengine/articles/djangoforms.html I don't think django.newforms exists in appengine, AFAIK it has been deprecated. Best Regards, Jesaja Everling On 17 Nov., 05:35, Chris [EMAIL PROTECTED] wrote: I'm running a basic webapp install, but where ever my code imports google.appengine.ext.db.djangoforms or django.newforms I'm getting the error Environment variable DJANGO_SETTINGS_MODULE is undefined. Since webapp doesn't using Django's settings, what could be causing this? On 17 Nov., 11:12, Pranny [EMAIL PROTECTED] wrote: Before you import any django libraries, except for those from google.appengine.* you ust specify the Django settings. If you are using a fully Django environment, you should refer tohttp://code.google.com/p/google-app-engine-samples/source/browse/trun... for an idea of what settings should be like. However, i fear that you are not using a fully Django base, so in that case, you can seehttp://thomas.broxrost.com/2008/04/08/django-on-google-app-engine/ for importing Django in GAE. I hope this will solve your problem. Regards, Pranav On Nov 17, 9:35 am, Chris [EMAIL PROTECTED] wrote: I'm running a basic webapp install, but where ever my code imports google.appengine.ext.db.djangoforms or django.newforms I'm getting the error Environment variable DJANGO_SETTINGS_MODULE is undefined. Since webapp doesn't using Django's settings, what could be causing this? --~--~-~--~~~---~--~~ 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: creating a db.Model with a non-existent parent
Hi Andy! I'm not sure, but doesn't the parent argument in this line # parent is a db.Key so why does the next line fail? b1 = B(key_name='andy', parent=parent) has to be an actual entity rather than a key value? The error message seems to suggest so. So you should probably able to achieve what you want by using: b1 = B(key_name='andy', parent=db.get(parent)) Best Regards, Jesaja Everling 2008/11/16 Andy Freeman [EMAIL PROTECTED]: In http://code.google.com/appengine/docs/datastore/keysandentitygroups.html You can create an entity with an ancestor path without first creating the parent entity. To do so, you create a Key for the ancestor using a kind and key name, then use it as the parent of the new entity. All entities with the same root ancestor belong to the same entity group, whether or not the root of the path represents an actual entity. From the Model discussion in http://code.google.com/appengine/docs/datastore/modelclass.html parent The Model instance or Key instance for the entity that is the new entity's parent. class A(db.Model): pass class B(db.Model): pass parent = db.Key.from_path('A', 'hh') # parent is a db.Key so why does the next line fail? b1 = B(key_name='andy', parent=parent) C:\Program Files\Google\google_appengine_1.1.5\google\appengine\ext\db \__init__.py in __init__(self=schema.B object at 0x01AB5970, parent=datastore_types.Key.from_path('A', u'hh', _app=u'imagestew'), key_name='andy', _app=None, **kwds={}) type 'exceptions.TypeError': Expected Model type; received aglpbWFnZXN0ZXdyCQsSAUEiAmhoDA (is Key) args = ('Expected Model type; received aglpbWFnZXN0ZXdyCQsSAUEiAmhoDA (is Key)',) message = 'Expected Model type; received aglpbWFnZXN0ZXdyCQsSAUEiAmhoDA (is Key)' -- o L_/ OL This is Schäuble. Copy Schäuble into your signature to help him on his way to Überwachungsstaat. --~--~-~--~~~---~--~~ 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: Max-age less than specified in app.yaml
Hello Anders, maybe this thread helps? http://groups.google.com/group/google-appengine/browse_thread/thread/bcdacfaac673181a Best Regards, Jesaja Everling 2008/11/14 Anders [EMAIL PROTECTED]: When the expiration attribute is set in the app.yaml file then the Cache-Control header still has a max age of 600 seconds. For example expiration 1 day in app.yaml: - url: /static/images static_dir: static expiration: 1d Will result in the response: Date: Fri, 14 Nov 2008 07:25:34 GMT Expires: Fri, 14 Nov 2008 07:35:34 GMT Cache-Control: public, max-age=600 Content-Type: image/gif Server: Google Frontend Content-Length: 760 Connection: Close Shouldn't the correct max-age for Cache-Control in this case be 86400 (number of seconds in 1 day)? -- o L_/ OL This is Schäuble. Copy Schäuble into your signature to help him on his way to Überwachungsstaat. --~--~-~--~~~---~--~~ 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: sdk download problem
Hi! I didn't have any problems downloading the SDK. Do you maybe use a download manager which may lead to the faulty download? I would try with a different browser, for example Firefox instead of IE or vice versa... Here you can find a zip-package of the SDK, maybe this will work better than the installer package: http://code.google.com/p/googleappengine/downloads/list Best Regards, Jesaja Everling 2008/11/14 lws68825 [EMAIL PROTECTED]: I tried to download the latest appengine sdk 1.1.5. but the download always stopped at the 82% point of the process. Can someone help me? -- o L_/ OL This is Schäuble. Copy Schäuble into your signature to help him on his way to Überwachungsstaat. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---