That is, a way to check that a user is not authenticated in order to
restrict access to a login form?
I understand that I can do redirects in the view or remove elements in the
template depending on whether there is a user set, just wondering if there
is a way to do it at the route config level.
Append user object to request object.
from pyramid.decorator import reify
from pyramid.request import Request
from pyramid.security import unauthenticated_userid
class RequestWithUserAttribute(Request):
@reify
def user(self):
userid = unauthenticated_userid(self)
if userid
I am running Pylons on my locally machine using Paste server. In my
configuration file I have set the following:
use = egg:Paste#http
host = 127.0.0.1
port = 5000
ssl_pem = *
This works for the main page (https://localhost:5000/), however, when I do
any redirect to another page, the page drops
Hi
Tornado is ready for py3.
I checked out running pyramid py3 on tornado.
https://gist.github.com/1244224
--
aod...@gmail.com
Sent with Sparrow (http://www.sparrowmailapp.com)
日付:2011年9月26日月曜日、時刻:10:07、差出人:Rick Harding:
On Mon, 26 Sep 2011, Sebastien Douche wrote:
On Mon, Sep 26,
On Mon, Sep 26, 2011 at 1:36 PM, Benjamin Sims benjamins...@gmail.comwrote:
That is, a way to check that a user is not authenticated in order to
restrict access to a login form?
Restricting access is done via Pyramid's use of ACLs (mapping a user's
principals to permissions). This means that