[google-appengine] Re: My app is live.
I like it! The site design is simple and easy to use. (On my screen resolution it also looks a little bit empty, you might consider adding something like 'most resent' or 'most popular' lists to flesh it out a bit) Some more nitpicks: It would be nice if there was a stop / pause button for the songs so those with a slow connection can wait for it to finish downloading before they start listening to it. Being able to download the songs would be nice but it could also make visitors less likely to come back. Some younger people (at least younger than me) might not be able to recognize that as a cassette tape = ) On Oct 26, 11:36 am, Jarred Bishop [EMAIL PROTECTED] wrote: http://www.hypetape.com Let me know what you think. If you like it, vote for it here:http://appgallery.appspot.com/about_app?app_id=agphcHBnYWxsZXJ5chQLEg... 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] can you help me?
Hi,when I upload the file to server,the command display error after August 8, 2008 . Is Google App Engine not run in china?but I can explorer the site (http://appengine.google.com/ ) by firefox with tor. Can you help me? Can I upload file with tor? Thanks, -fishks L:\temp\google_appengine\googleappengine-read-onlypython appcfg.py update ..\. .\google app project\gwork Loaded authentication cookies from C:\Documents and Settings \fish/.appcfg_cook ies Scanning files on local disk. Initiating update. 2008-10-26 08:33:18,592 ERROR appcfg.py:1334 An unexpected error occurred. Abort ing. Traceback (most recent call last): File appcfg.py, line 55, in module execfile(script_path, globals()) File L:\temp\google_appengine\googleappengine-read-only\google \appengine\tool s\appcfg.py, line 1943, in module main(sys.argv) File L:\temp\google_appengine\googleappengine-read-only\google \appengine\tool s\appcfg.py, line 1936, in main AppCfgApp(argv).Run() File L:\temp\google_appengine\googleappengine-read-only\google \appengine\tool s\appcfg.py, line 1521, in Run self.action.function(self) File L:\temp\google_appengine\googleappengine-read-only\google \appengine\tool s\appcfg.py, line 1733, in Update lambda path: open(os.path.join(basepath, path), rb)) File L:\temp\google_appengine\googleappengine-read-only\google \appengine\tool s\appcfg.py, line 1313, in DoUpload missing_files = self.Begin() File L:\temp\google_appengine\googleappengine-read-only\google \appengine\tool s\appcfg.py, line 1174, in Begin version=self.version, payload=self.config.ToYAML()) File L:\temp\google_appengine\googleappengine-read-only\google \appengine\tool s\appcfg.py, line 296, in Send f = self.opener.open(req) File E:\Program Files\Python25\lib\urllib2.py, line 374, in open response = self._open(req, data) File E:\Program Files\Python25\lib\urllib2.py, line 392, in _open '_open', req) File E:\Program Files\Python25\lib\urllib2.py, line 353, in _call_chain result = func(*args) File E:\Program Files\Python25\lib\urllib2.py, line 1100, in http_open return self.do_open(httplib.HTTPConnection, req) File E:\Program Files\Python25\lib\urllib2.py, line 1075, in do_open raise URLError(err) urllib2.URLError: urlopen error (10054, 'Connection reset by peer') --~--~-~--~~~---~--~~ 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: Please don't repeat GWT's mistake!
On Oct 21, 3:59 pm, Peter Recore [EMAIL PROTECTED] wrote: I don't think mistake is the right word there. I'm not an expert on Java Compilers and JVMs, but I'll go out on a limb here and risk embarrassing myself - my gut feeling is that Java is much easier to compile into javascript than random bytecode is. GWT makes aggressive optimizations based on information it can infer from java semantics. If GWT had to generalize to work with any possible bytecode, I doubt the resulting javascript could be as efficient. I work on the GWT compiler, and I agree with your conclusion but not with the reason. The issue is more the combination of: - the output format is an expression language with general nesting, while bytecode is more like a three-address intermediate representation (IR) - current JS vm's have terrible optimization, though that is changing - output size is very important for GWT, which isn't changing It would be bad to emit code that looks like this: var t1, t2, t3; t1 = bar; t2 = foo(t1); t3 = baz; return t2 + t3; You really want to emit this, instead, which is both shorter and, on a non-optimizing JS VM, faster: return foo(bar) + baz; If GWT took bytecode as input, then it would need to be able to transform code that looks like the former into code that looks like the latter. This has advantages other than being able to take bytecode as input, so it might be worth looking into. However, it would take a significant amount of work -- a man-month perhaps -- to add this transformation to the compiler, and thus far there have always been competing features that seem more important. The reason given so far in this thread is that bytecode would be bad for optimization. That's actually the opposite of the truth. A bytecode-like three-address IR would be really convenient for optimization, because it makes the control flow explicit. With the current tree-like IR, the compiler's optimizers have to do some really tricky reasoning about control flow around an expression. Just look at the two examples above. In the first example, control flows from the first statement to the last, one after the other. In the second, control flow hops all over the place, forward and backward. By the way, for Scala in particular, I don't think going through bytecode is the best way. It would be better to work out a new intermediate format that is like Java source, but that does not have the silly restrictions that Java has that GWT does not need. For example, that intermediate format should have an equivalent to multi- expressions (that is, C's or JavaScript's comma operator, or Scala's block expressions). Scala could easily generate it, and GWT could easily take it as input. Such a format might be useful for other projects, too. It would have the flexibility of bytecode while retaining nested expressions. Lex Spoon PS -- I'm not in this group; I was simply pointed at the thread --~--~-~--~~~---~--~~ 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] Using Model.get_or_insert to create unique values for entities
Hello everybody, I needed to store some information about my users (I don't need to use Google accounts) and created a model called FbUser, each entity in the model is a fbuser and each fbuser has a unique user uid, a field I call 'uid'. A uid can't appear more than once in the datastore but it could eventually change for a user, so it's not inmutable. It can't be used directly as a key_name because it always starts with a number, in fact is always a ten digit number. I want to make sure that I only store unique uid's in the datastore so I thought about Model.get_or_insert: http://code.google.com/appengine/docs/datastore/modelclass.html#Model_get_or_insert and found this suggestion by Dado (thanks a lot for it): http://groups.google.com/group/google-appengine/browse_thread/thread/9f956ebcc39dd80f/bf5bf1edd53a4410?lnk=gstq=Model.get_or_insert#bf5bf1edd53a4410 I implemented it for my case like this: class FbUser(db.Model): You can then call FbUser.get_or_insert_by_uid('foo') and get back an FbUser instance with that unique identifier (it gets created if it does not yet exists).Model.get_or_insert is automatically wrapped in a transaction uid = db.StringProperty(required=True) @staticmethod def get_or_insert_by_uid(uid): # prefix with unique identifier to qualify and avoid beginning with digits, which datastore does not accept key_name = 'uid:'+uid return FbUser.get_or_insert(key_name, uid=uid) And then I can 'get or create' a fbuser with uid '123' using this: FbUser.get_or_insert_by_uid('123') I've tested and it works but I want to be sure if this is the right way of doing it. What do you think? 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Complete Newb Question
You can retrieve URL parameters from the request object like this: # e.g. www.mysite.com/?my_parameter=hello%20world class MainPage(webapp.RequestHandler): def get(self): my_parameter = '' for param in self.request.query.split(''): if param.startswith('my_parameter'): my_parameter = param.split('=')[1] On 25 Okt., 07:40, fishfin [EMAIL PROTECTED] wrote: I'm coming over from php and am trying to figure out how to do something. In php you can put data in the user's address bar (index.php? data=somedata) and then get it from the address bar really easily (you just use $_GET and $_REQUEST), so I was wondering what the equivalent is in python? --~--~-~--~~~---~--~~ 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: Complete Newb Question
Ok, I don't think I'm being very clear = ) Say a user visits my website with this address bar: https://www.mywebsite.com/index.htm?data=123xyz I would like to place the '123xyz' into a variable so that I can access it whenever I want to. I think that loell's code does that except that I can't figure out how to get the value of 'data.' After using this: (and importing cgi and google.appengine.ext.webapp) class MainPage(webapp.RequestHandler): def get(self): data = cgi.escape(self.request.get('data')) I've tried: print data print MainPage.data print MainPage.self.data etc. I can't figure out how to access the '123xyz' from the url. I get the same error message every time: name 'data' is not defined On Oct 25, 4:35 pm, Hakayati [EMAIL PROTECTED] wrote: You can retrieve URL parameters from the request object like this: # e.g.www.mysite.com/?my_parameter=hello%20world class MainPage(webapp.RequestHandler): def get(self): my_parameter = '' for param in self.request.query.split(''): if param.startswith('my_parameter'): my_parameter = param.split('=')[1] On 25 Okt., 07:40, fishfin [EMAIL PROTECTED] wrote: I'm coming over from php and am trying to figure out how to do something. In php you can put data in the user's address bar (index.php? data=somedata) and then get it from the address bar really easily (you just use $_GET and $_REQUEST), so I was wondering what the equivalent is in python? --~--~-~--~~~---~--~~ 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] [GWT] Google Web Toolkit Documentation
Hi All, I built an archive of the Google Web Toolkit documentation to keep on your computer and read while not connected to the Internet. I'm reading the Terms and Conditions http://code.google.com/webtoolkit/terms.html Can I share here this archive? --~--~-~--~~~---~--~~ 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] Could not import strftime from datetime
Very simple problem: from datetime import strftime gives me this error ImportError at / cannot import name strftime Request Method: GET Request URL: http://localhost:8080/ Exception Type: ImportError Exception Value: cannot import name strftime Exception Location: /Applications/GoogleAppEngineLauncher.app/ Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/ google_appengine/google/appengine/tools/dev_appserver.py in LoadModuleRestricted, line 1281 How is it possible? Giacecco --~--~-~--~~~---~--~~ 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: Could not import strftime from datetime
from datetime import strftime Traceback (most recent call last): File stdin, line 1, in module ImportError: cannot import name strftime On Oct 26, 3:00 pm, Giacecco [EMAIL PROTECTED] wrote: Very simple problem: from datetime import strftime gives me this error ImportError at / cannot import name strftime Request Method: GET Request URL: http://localhost:8080/ Exception Type: ImportError Exception Value: cannot import name strftime Exception Location: /Applications/GoogleAppEngineLauncher.app/ Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/ google_appengine/google/appengine/tools/dev_appserver.py in LoadModuleRestricted, line 1281 How is it possible? Giacecco --~--~-~--~~~---~--~~ 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: Could not import strftime from datetime
dir(datetime.datetime) ['__add__', '__class__', '__delattr__', '__doc__', '__eq__', '__ge__', '__getatt ribute__', '__gt__', '__hash__', '__init__', '__le__', '__lt__', '__ne__', '__ne w__', '__radd__', '__reduce__', '__reduce_ex__', '__repr__', '__rsub__', '__seta ttr__', '__str__', '__sub__', 'astimezone', 'combine', 'ctime', 'date', 'day', ' dst', 'fromordinal', 'fromtimestamp', 'hour', 'isocalendar', 'isoformat', 'isowe ekday', 'max', 'microsecond', 'min', 'minute', 'month', 'now', 'replace', 'resol ution', 'second', 'strftime', 'strptime', 'time', 'timetuple', 'timetz', 'today' , 'toordinal', 'tzinfo', 'tzname', 'utcfromtimestamp', 'utcnow', 'utcoffset', 'u tctimetuple', 'weekday', 'year'] On Oct 26, 3:06 pm, RIAgallery [EMAIL PROTECTED] wrote: import datetime dir(datetime) ['MAXYEAR', 'MINYEAR', '__doc__', '__name__', 'date', 'datetime', 'datetime_CAPI', 'time', 'timedelta', 'tzinfo'] On Oct 26, 3:04 pm, RIAgallery [EMAIL PROTECTED] wrote: from datetime import strftime Traceback (most recent call last): File stdin, line 1, in module ImportError: cannot import name strftime On Oct 26, 3:00 pm, Giacecco [EMAIL PROTECTED] wrote: Very simple problem: from datetime import strftime gives me this error ImportError at / cannot import name strftime Request Method: GET Request URL: http://localhost:8080/ Exception Type: ImportError Exception Value: cannot import name strftime Exception Location: /Applications/GoogleAppEngineLauncher.app/ Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/ google_appengine/google/appengine/tools/dev_appserver.py in LoadModuleRestricted, line 1281 How is it possible? Giacecco --~--~-~--~~~---~--~~ 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] App Deployment
Will it be possible in the near future to deploy more than 10 app per account? is this on your list? --~--~-~--~~~---~--~~ 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] getting back the uploaded .py files
hello friends, is there any way to get back the python (or some other) files that we upload to app engine as part of our application. I just uploaded the app and shift-deleted one important python file :( thanks for help ravinder thakur --~--~-~--~~~---~--~~ 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: getting back the uploaded .py files
maybe the most asked question. And sorry : there is no solution. Next time, you should add this project to your app.yaml http://www.manatlan.com/blog/zipme___download_sources_of_your_gae_website__as_a_zip_file On 26 oct, 17:45, रवींदर ठाकुर (ravinder thakur) [EMAIL PROTECTED] wrote: hello friends, is there any way to get back the python (or some other) files that we upload to app engine as part of our application. I just uploaded the app and shift-deleted one important python file :( thanks for help ravinder thakur --~--~-~--~~~---~--~~ 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] appengine-utilities is now gaeutilities
appengine-utilities is now gaeutilities and 1.0 has been officially released. http://gaeutilities.appspot.com/ 1.0 is 1.0rc4 with no changes except for the demo site html and css. There's no need to download it if you are already using 1.0rc4. Development on 1.1 is starting. Planned features include An admin interface for managing different utilities. You'll be able to see how many sessions and cache entries you have for example. Cron. A utility to allow scheduled tasks. Firewall: A utility to help prevent denial of service attacks against your applications. More info to come as these new utilities are released. --~--~-~--~~~---~--~~ 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] appengine is very frustrating
We have a fairly substantial app running which works well maybe 85% of the time. The other 15% we get random timeouts or errors in areas that work just fine most of the time. Just when we think it's stable it has periods of breaking down. For example right now it's behaving really badly. Going to http://www.guessasketch.com/whois/ should show all the people and games running on our server. Right now it just times out. This prevents people from playing our game. Are others experiancing random instability? I'm seriously considering going to a normal socket based server, unfortunatly that would be a big rewrite. If there was some assurance that this is getting cleared up soon I would feel better but I do see tickets out there with similar issues and what seems to be very little action to address the problems. Any thoughts or words if encouragement to stuck with appendine? Thanks. D --~--~-~--~~~---~--~~ 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: Index stuck on building...
Back to normal now. Developers should be able to delete stuck indexes, though. On Oct 25, 2:31 pm, Gadi [EMAIL PROTECTED] wrote: One of the indexes in my app has been stuck on building for a long time. Vacuum_indexes doesn't work on it. There are some threads describing this problem and several voodoo- like solutions... Any new REAL solution to this problem ?? I really need this index, help much appreciated ! (app:hms) --~--~-~--~~~---~--~~ 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: can you help me?
On Oct 25, 8:53 pm, fish [EMAIL PROTECTED] wrote: Hi,when I upload the file to server,the command display error after August 8, 2008 . Is Google App Engine not run in china?but I can explorer the site (http://appengine.google.com/) by firefox with tor. Can you help me? Can I upload file with tor? Sounds like the Chinese content filter (ie, the Great Firewall of China) may be filtering it. tor comes with a 'torify' script which may allow you to upload. --~--~-~--~~~---~--~~ 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] Query max results clarification
I am reading on the chapter Executing the Query and Accessing Results [1]: [quote] The datastore returns a maximum of 1000 results in response to a query, regardless of the limit and offset used to fetch the results. The 1000 results includes any that are skipped using an offset, so a query with more than 1000 results using an offset of 100 will return 900 results. [/quote] So, if the result set matching the given criteria has more than 1000 results, you'll never be able to access anything over the 1000th row (even if you are specifying a 1000 offset). [1] http://code.google.com/appengine/docs/datastore/creatinggettinganddeletingdata.html --~--~-~--~~~---~--~~ 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: Query max results clarification
You can but you must use a field of the object that you can sort on. Then you can use a filter() on the query to get the objects beyond the first 1000. If you fetch 1000 records, process 999, and use the sort field value of record 1000 as a starting value for your next query.filter('field = :1', record[999].field) statement 2008/10/27 Alex Popescu [EMAIL PROTECTED]: I am reading on the chapter Executing the Query and Accessing Results [1]: [quote] The datastore returns a maximum of 1000 results in response to a query, regardless of the limit and offset used to fetch the results. The 1000 results includes any that are skipped using an offset, so a query with more than 1000 results using an offset of 100 will return 900 results. [/quote] So, if the result set matching the given criteria has more than 1000 results, you'll never be able to access anything over the 1000th row (even if you are specifying a 1000 offset). [1] http://code.google.com/appengine/docs/datastore/creatinggettinganddeletingdata.html --~--~-~--~~~---~--~~ 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: appengine is very frustrating
That's discouraging to hear :\ At the moment this is what i'm seeing: Traceback (most recent call last): File /base/python_lib/versions/1/google/appengine/ext/webapp/ __init__.py, line 499, in __call__ handler.get(*groups) File /base/data/home/apps/gas/1.998/serverhttp.py, line 1487, in get msg = self.html() AttributeError: 'WhoIsHandler' object has no attribute 'html' On Oct 26, 12:07 pm, Daniel [EMAIL PROTECTED] wrote: We have a fairly substantial app running which works well maybe 85% of the time. The other 15% we get random timeouts or errors in areas that work just fine most of the time. Just when we think it's stable it has periods of breaking down. For example right now it's behaving really badly. Going tohttp://www.guessasketch.com/whois/should show all the people and games running on our server. Right now it just times out. This prevents people from playing our game. Are others experiancing random instability? I'm seriously considering going to a normal socket based server, unfortunatly that would be a big rewrite. If there was some assurance that this is getting cleared up soon I would feel better but I do see tickets out there with similar issues and what seems to be very little action to address the problems. Any thoughts or words if encouragement to stuck with appendine? Thanks. D --~--~-~--~~~---~--~~ 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: What's the relationship between danga.com memcached and Memcache?
On Oct 25, 7:32 pm, Casey Dwyer [EMAIL PROTECTED] wrote: Brad who created memcached works for Google now, including on Perl App Engine, so there's surely a connection there. Here's his Google Groups profile if you want to shoot him a personal message or post this to one of his groups: http://groups.google.com/groups/profile?enc_user=tB9Pbw4AAACsDAM5OK1c... Coolio -- thanks Casey. Cheers, pr3d4t0r http://www.istheserverup.com http://www.teslatestament.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-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: Could not import strftime from datetime
On Oct 26, 7:00 am, Giacecco [EMAIL PROTECTED] wrote: Very simple problem: from datetime import strftime gives me this error ImportError at / cannot import name strftime Giacecco: It's working fine on some code I have here, that uses strftime() directly on a datetime property: from google.appengine.ext import db from owner import Owner class Bookmark(db.Model): description = db.StringProperty() favIcon = db.LinkProperty() locator = db.LinkProperty() timeStamp = db.DateTimeProperty(auto_now_add = True) title = db.StringProperty() owner = db.ReferenceProperty(Owner, collection_name = 'bookmarks') # snip @property def dateTimeText(self): return self.timeStamp.strftime(%Y.%m.%d) That method call is available in the underlying datetime object without having to import anything. I hope this helps and cheers, pr3d4t0r http://www.istheserverup.com http://www.teslatestament.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-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] Configuring subdomains on a django App Engine application
I'm a bit confused on how I can configure subdomains on an app engine app (I intend on using django, if that changes anything). Say I purchase the domain www.example.com, how do I get the subdomain test.example.com to redirect to where I want it to go on my applicaiton? Is that purely in the urls.py? Or is that somethign else? ps I'm really lost on this, so you may have to give me step by step directions =) --~--~-~--~~~---~--~~ 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 keep user data when redirected to login?
Hi all, I have a page that users can view without being logged in. It has a form on it with several inputs. But I want users to be logged in before I accept save this form information. If users aren't logged in, I redirect to the login screen using create_login_url() but I lose the form data they were submitting in the process. Is there a recommended best practice to handle this? Newb --~--~-~--~~~---~--~~ 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: Problem locating the html template for the template.render() call.
I had the same problem. I tried to remove - url: /static static_dir: staticDir in app.yaml, and it worked. I think you don't need to let *.html be static. Maybe you can handle *.html by py. --~--~-~--~~~---~--~~ 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 to keep user data when redirected to login?
On Oct 26, 9:00 pm, newb [EMAIL PROTECTED] wrote: I have a page that users can view without being logged in. It has a form on it with several inputs. But I want users to be logged in before I accept save this form information. If users aren't logged in, I redirect to the login screen using create_login_url() but I lose the form data they were submitting in the process. Is there a recommended best practice to handle this? Here is an idea: 1. Create a unique ID for your page and embed it in a form as a hidden input. 2. In your event handler for the form, persist that ID and any additional information, then redirect to the login page. You can persist to Memcache or a cookie; you don't want to persist this to the Datastore because until the user logs on this is still throw-away data. 3. Upon successful login and redirection back to your page/event handler, check if Memcache has a copy of the data keyed on the page ID, recover it, and continue processing as desired. That's one way of doing it; another one might be to use a cookie with a 24-hour (or one hour, or six, or any other sensible value) expiration. Your handlers check for this cookie before processing input and react accordingly. Of the two, I like Memcache better but either will work and give you a level of ephimeral persistence required for completing this action. Cheers, pr3d4t0r http://www.internet.lu http://www.teslatestament.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-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 -~--~~~~--~~--~--~---