move login form (NodeView) to cco.member; + helper methods in NodeView
This commit is contained in:
parent
babb222868
commit
bd33c28d08
2 changed files with 7 additions and 4 deletions
|
@ -34,10 +34,10 @@
|
||||||
|
|
||||||
<!-- login/logout -->
|
<!-- login/logout -->
|
||||||
|
|
||||||
<page for="loops.interfaces.INode"
|
<!--<page for="loops.interfaces.INode"
|
||||||
name="login.html"
|
name="login.html"
|
||||||
class="loops.browser.auth.LoginForm"
|
class="loops.browser.auth.LoginForm"
|
||||||
permission="zope.View" />
|
permission="zope.View" />-->
|
||||||
|
|
||||||
<page for="loops.interfaces.INode"
|
<page for="loops.interfaces.INode"
|
||||||
name="logout.html"
|
name="logout.html"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# Copyright (c) 2013 Helmut Merz helmutm@cy55.de
|
# Copyright (c) 2015 Helmut Merz helmutm@cy55.de
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
@ -422,8 +422,11 @@ class NodeView(BaseView):
|
||||||
@Lazy
|
@Lazy
|
||||||
def logoutUrl(self):
|
def logoutUrl(self):
|
||||||
nextUrl = urllib.urlencode(dict(nextUrl=self.menu.url))
|
nextUrl = urllib.urlencode(dict(nextUrl=self.menu.url))
|
||||||
return 'logout.html?' + nextUrl
|
return '%s/logout.html?%s' % (self.menu.url, nextUrl)
|
||||||
|
|
||||||
|
@Lazy
|
||||||
|
def authenticationMethod(self):
|
||||||
|
return self.viewAnnotations.get('auth_method') or 'standard'
|
||||||
|
|
||||||
# virtual target support
|
# virtual target support
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue