From 7f2a05c364e3a76da746bfd2b68eee3f28bed04d Mon Sep 17 00:00:00 2001 From: Matt Wright Date: Wed, 20 Jun 2012 16:35:36 -0400 Subject: [PATCH] Try and fix an issue with python 2.5 --- example/app.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/example/app.py b/example/app.py index ee2e38e..74fc172 100644 --- a/example/app.py +++ b/example/app.py @@ -30,9 +30,14 @@ def create_users(): ('joe@lp.com', 'password', ['editor'], True), ('jill@lp.com', 'password', ['author'], True), ('tiya@lp.com', 'password', [], False)): - current_app.security.datastore.create_user( - email=u[0], password=u[1], roles=u[2], active=u[3], - authentication_token='123abc') + current_app.security.datastore.create_user(**{ + 'email': u[0], + 'password': u[1], + 'roles': u[2], + 'active': u[3], + 'authentication_token': + '123abc' + }) def populate_data():