I'v use authkit and sqlalchemy with mysql
When I try to change template of signin screen (written in
http://pylonsbook.com/alpha1/simplesite_part_3 Styling the Sign In
Screen) I have following error
TypeError: not all arguments converted during string formatting
/lib/auth.py
def render_signin():
result = render('/derived/account/signin.html').encode('utf-8')
result = result.replace('%', '%%').replace('FORM_ACTION', '%s')
return result
/controller/account.py
class AccountController(BaseController):
def signin(self):
if not request.environ.get('REMOTE_USER'):
abort(401)
else:
return render('/derived/account/signedin.html')
def signinagain(self):
request.environ['paste.auth_tkt.logout_user']()
return render('/derived/account/signin.html').replace('%s',
h.url_for('signin'))
What's wrong?
Thanks, Alexy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---