Questions tagged [tipfy]

tipfy is a small but powerful framework made specifically for Google App Engine.

tipfy is a small but powerful framework made specifically for Google App Engine. It is a lot like webapp but offers a bunch of features and goodies that webapp misses: i18n, sessions, own authentication, flash messages and more. Everything in a modular, lightweight way, tuned for App Engine. You use only what you need, when you need.

48 questions
2
votes
2 answers

Accessing unknown query arguments in Python

I'm using Jinja2 to generate a form with a variable number of inputs, labelled input_1, input_2, etc. Using Google App Engine (python), I'm then trying to access the values of these inputs in my request handler using…
Cerzi
  • 768
  • 5
  • 19
2
votes
1 answer

Not a valid choice: Can't select ReferenceProperty value at SelectField wtform

i try to use ReferenceProperty at form for create/edit Entry but nothing happen. i have: class Type(db.Model): name = db.StringProperty() class Entry(db.Model): type = db.ReferenceProperty(Type, required=False) class…
Sergey Lyapustin
  • 1,917
  • 17
  • 27
2
votes
0 answers

unittest with @login_required decorator

I use tipfy & gae for my project. I write unittests, and I to be confronted with a question: How I can test the handler which has @login_required decorator? class TestHandler(unittest.TestCase): def setUp(self): self.app =…
olebedev
  • 21
  • 3
2
votes
1 answer

Getting 404 error following Tipfy's Hello World tutorial

I'm sure I am missing something embarrassingly obvious here, but as I am following Tipfy's Hello World tutorial, I'm getting nothing but Werkzeug's 404 page whenever I try to load one of the URLs defined in my urls.py file (in…
tommytwoeyes
  • 483
  • 5
  • 19
2
votes
1 answer

With Python, GAE and Tipfy, unable to pass a db.key as parameter for image retrieval

Ok, so I'm playing around with tipfy, making a simple photo-gallery. I have a working solution using webbapp, this is my template, browse.htm, which stays the same in both examples: {% for pic in photo_list %} python
Pedro
  • 474
  • 1
  • 3
  • 11
2
votes
2 answers

Tipfy: "NotFound: 404" when accessing multi-auth example locally

I am using the Tipfy framework ( tipfy.org ) on the Google App Engine. I would like to extend the multi-auth example ( http://tipfy-auth.appspot.com/ ). To try the example, I installed Tipfy. The *hello_world* app is accessible through the browser…
ideaboxer
  • 3,863
  • 8
  • 43
  • 62
2
votes
0 answers

multi-auth with tipfy on App Engine

I'm working with the tipfy framework (tipfy.org) on app engine and am having some real problems. I've been trying to get an extention "auth-extention" to work all night. It allows users to sign in via facebook/twitter/openid etc.. The extention can…
user547107
  • 21
  • 1
2
votes
2 answers

Use a ListProperty or custom tuple property in App Engine?

I'm developing an application with Google App Engine and stumbled across the following scenario, which can perhaps be described as "MVP-lite". When modeling many-to-many relationships, the standard property to use is the ListProperty. Most likely,…
Matt Norris
  • 8,596
  • 14
  • 59
  • 90
2
votes
2 answers

Catch-all routing using Tipfy

Using tipfy, how does one express a catch-all route in urls.py if more specific routes do not match? Tipfy uses Werkzeug-like routing, so there's this (in urls.py): def get_rules(app): rules = [ Rule('/', endpoint='any',…
2
votes
1 answer

How do I make a tipfy app accept own-auth, OpenID, and more?

Tipfy's user-authentication tutorial advertises its unified system that accepts all of Google, own-auth, OpenID, OAuth, and Facebook authentication; but the examples so far show exclusively Google auth and exclusively own-auth. How do I make the…
Greg Bacon
  • 134,834
  • 32
  • 188
  • 245
2
votes
3 answers

Getting HTTP GET variables using Tipfy

I'm currently playing around with tipfy on Google's Appengine and just recently ran into a problem: I can't for the life of me find any documentation on how to use GET variables in my application, I've tried sifting through both tipfy and Werkzeug's…
Steve Gattuso
  • 7,644
  • 10
  • 44
  • 59
1
vote
1 answer

Handle browser's Back and Next buttons after logout Python

After log out from my app, I have redirected the user to the log in page. At the log in page, when someone click back or next buttons of the browser, I want to redirect him to the login page as same as gmail or facebook. So I tried to clear cache…
chinthakad
  • 939
  • 2
  • 16
  • 31
1
vote
1 answer

How to call to a python handler from jquery ajax?

How to call to a python handler from jquery ajax? can any one give me an example?
not 0x12
  • 19,360
  • 22
  • 67
  • 133
1
vote
1 answer

Python/Tipfy/Jinja2: ImportError: No module named ext.jinja2

Aloha, having some spare time and trying out python on app engine as it is much more flexible than java, I wanted to use Tipfy as my webapp framework. My problem ist, that, whenever I try to import something like jinja2, I get: from tipfy.ext.jinja2…
Jannick
  • 2,094
  • 3
  • 17
  • 21
1
vote
2 answers

Calculating unique elements from huge list in Google App Engine

I got a web widget with 15,000,000 hits/months and I log every session. When I want to generate a report I'd like to know how many unique IP there are. In normal SQL that would be easy as I'd just do a: SELECT COUNT(*) FROM (SELECT DISTINCT IP FROM…
Nixarn
  • 1,526
  • 2
  • 15
  • 27