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
1
vote
2 answers

How do I save web images to App Engine's blobstore?

I've used this question as a template to solve the same problem, but I'm running into issues when posting. I have these components: HTML form with a textbox for the image URL. This posts to... A handler that takes the posted URL, encodes it, and…
Matt Norris
  • 8,596
  • 14
  • 59
  • 90
1
vote
1 answer

Why would Python give me a "TypeError: argument of type 'UserAgent' is not iterable" in a non-iteration type of operation?

I have a BaseHandler class that subclasses the Tipfy RequestHandler in my AppEngine site. In it, I have setup a "poor man's" browser sniffer for mobile devices with a class attribute (a tuple) containing device names. In a subsequent method, I loop…
tommytwoeyes
  • 483
  • 5
  • 19
1
vote
1 answer

Tipfy wtform fields always render as input type="text"

I cant find examples of templates that use tipfy forms (extended wtforms). For example, If I want to implement birth date I want the "right" html for the user to enter his date of birth. Lets go with an example: this is my form class…
llazzaro
  • 3,970
  • 4
  • 33
  • 47
1
vote
2 answers

App engine datastore query issue

I have a weired problem with couple of queries I am trying to run. I have built a method which returns a tuple of result from the query- def get_activeproducts(): query = Product.gql("WHERE active = True") choices = [] for obj in query: …
1
vote
1 answer

Installing tipfy using pip in a virtualenv

I installed the Google App Engine SDK for Python on OS X using the GoogleAppEngineLauncher-1.4.1.dmg package. I created a Python 2.5 based virtualenv and then installed werkzeug and tipfy as follows: mkvirtualenv -p python2.5 tipfy-sandbox pip…
Matthew Rankin
  • 457,139
  • 39
  • 126
  • 163
1
vote
0 answers

Multiple forms with one page in tipfy

I haven't been able to find an example of using multiple forms on one page (or one Handler) for tipfy. I'm trying to allow users to both answer (form 1) and comment on an item (form 2) from the same page. One approach to doing this in PHP is…
Matt Norris
  • 8,596
  • 14
  • 59
  • 90
1
vote
0 answers

Tipfy How to use secure cookies to store a cookie in google app engine

I'm trying to implement stay signed in options using tipfy though I'mm not allowed to use the default Tipfy mechanism. This is what I have tried so far, secure_cookie_store = [SecureCookieStore()] user_cookie = Cookie.SimpleCookie() …
not 0x12
  • 19,360
  • 22
  • 67
  • 133
1
vote
0 answers

How to save and retrieve a cookie by tipfy

Hi i want to store an object as a secure cookie in tipfy and want to retrieve the object from the tipfy. How to do this? this is what i have done so for . this code segment is inside a handler extends from Request handler class…
Evlikosh Dawark
  • 610
  • 2
  • 11
  • 24
1
vote
1 answer

Session Handling in Chrome and Firefox

I have a problem regarding with session handling in Chrome and Firefox. When in authenticate to a website and I closed it and reopen the home page in Firefox it shows my name . But when I do the same thing in chrome it didnt show my name . it shows…
Evlikosh Dawark
  • 610
  • 2
  • 11
  • 24
0
votes
1 answer

ImportError: cannot import name cached_property

I am trying to set up Tipfy extensions on a Python/Google App Engine project that I've been brought in on. I have followed all the instructions for running bootstrap.py and then bin/buildout. Everything seems to have worked but now when I try to…
velojason
  • 3
  • 1
  • 2
0
votes
2 answers

Wring file retrieved using Blobstore

I have form upload and handler which allows download uploaded files from blobstore. The problem is when I click Download button of any related-field it downloads the same file every time. I.e. I've uploaded 3 files (1.txt, 2.txt, 3.txt) and it…
VladG
  • 1
0
votes
1 answer

Access user's OpenID info in templates on Google app engine (tipfy)

I'm using the OpenID authentication that's built into Google app engine and trying to make the currently signed in user's information automatically available in templates. Doing it manually might be something like: from google.appengine.api import…
codebyren
  • 690
  • 6
  • 10
0
votes
2 answers

How to configure the flex crossdomain.xml in tipfy

I would like to know how to configure the flex crossdomain.xml in tipfy with the Google app engine skd. Please advice. Thanks. Edit: Tipfy is a framework using in Gae. I would like to know: where I can place the crossdomain.xml, in the root or…
michael
  • 1,160
  • 7
  • 19
0
votes
1 answer

How do I use Tipfy and wsgi_intercept together for testing?

I'm creating an API using Tipfy. I have an existing suite that tests some methods I will expose via URL, but what I'd like to do is see exactly how these functions will work once they're exposed. I'd like to test the URL params directly, for…
Matt Norris
  • 8,596
  • 14
  • 59
  • 90
0
votes
2 answers

How do I store a fetched entity in memcache for App Engine?

Because each new request in App Engine creates a new Handler, the entity I'd like to alter and put (using POST) has to be retrieved again. This seems wasteful, since I've populated the form with the information from GET a moment earlier. How do I…
Matt Norris
  • 8,596
  • 14
  • 59
  • 90