Tagged Questions
3
votes
0answers
289 views
Please review my use case solution
I use python 2.7, google app engine, jinja2, wtforms, webapp2 and babel for my web app. The use case is "password reset" and the framework I use is webapp2 and I generate a tokenized one-time link by ...
3
votes
3answers
180 views
please suggest optimization
i took the python class at google code today. And this is what i made for the problem where they ask you to build a word counter.
Please take a look and suggest any improvements that can be done.
...
3
votes
1answer
80 views
Please help me review some regexes for google app engine
My app is growing from small to medium and I'm adding functions that should get reviewed.
My routing is
routes = [
(r'/', CyberFazeHandler),
(r'/vi/(eyes|mouth|nose)', ...
1
vote
1answer
205 views
Can you review my i18n/Jinja2/python code?
I'm learning to Jinja2 and what's important in this case isn't speed but i18n translations and functionality. With python 2.7 Jinja2 and not django seems to preferred way to go so I'm rewriting much ...
2
votes
1answer
203 views
HTML editor for google app engine
Please review this simple code. When I review it I decide to rewrite so that it doesn't write to a template but instead directly to output since thw whole html is fetched from the data layer. I used ...
1
vote
0answers
145 views
Help with performance issue
I have a performance issue that I suspect comes from using geomodel with proxomity fetch.
I'm getting red numbers in the logs:
2011-09-28 19:39:58.583 /li?lat=22.49&lon=79.02 200 13919ms ...
1
vote
1answer
144 views
Is the next thing to do change O(n) to more efficient?
I had an efficiency problem like I thought and I didn't have the best solution:
http://stackoverflow.com/questions/7552604/should-i-merge-images-in-memory-py-or-in-view-html
My solution was O(n) and ...
2
votes
1answer
158 views
How to further modularize this file to make it more convenient and more readable?
Background is this question and to create something like cragislist or olx.com i.e. classifieds advertisement webapp / site and I've basically solved the problem and had a mess of unstructured code ...
0
votes
1answer
138 views
Iteration and memcache for selected categorized random elements?
The following code is a quick implementation since I only needed 3 random images sorted by category (a random eyes image, a random nose image and a random mouth image and then combine them)
...
4
votes
3answers
302 views
Can you recommend what to prioritize when rewriting this class?
I feel a need to rewrite a rather large python class that "does its job" but it looks somewhat terrible since it was pasted together while learning python and the platform google app engine. It works ...