[Checkins] SVN: grokui.admin/trunk/src/grokui/admin/view.py Rollback r97558.
Uli Fouquet
uli at gnufix.de
Fri Mar 6 13:10:03 EST 2009
Log message for revision 97599:
Rollback r97558.
Changed:
U grokui.admin/trunk/src/grokui/admin/view.py
-=-
Modified: grokui.admin/trunk/src/grokui/admin/view.py
===================================================================
--- grokui.admin/trunk/src/grokui/admin/view.py 2009-03-06 18:08:45 UTC (rev 97598)
+++ grokui.admin/trunk/src/grokui/admin/view.py 2009-03-06 18:10:03 UTC (rev 97599)
@@ -56,7 +56,6 @@
from zope.app.security.interfaces import IUnauthenticatedPrincipal
from zope.exceptions import DuplicationError
from zope.proxy import removeAllProxies
-from zope.security.management import getInteraction
from zope.tal.taldefs import attrEscape
from ZODB.FileStorage.FileStorage import FileStorageError
@@ -405,24 +404,12 @@
class Index(GAIAView):
- """A redirector to the real frontpage.
+ """A redirector to the real frontpage."""
- If a user is not authenticated, we redirect to the
- login form. This avoids raising of Unauthorized exceptions, if
- the debugger is used.
- """
-
grok.name('index.html') # The root folder is not a grok.Model
+ grok.require('grok.ManageApplications')
def update(self):
- interaction = getInteraction()
- if not interaction.checkPermission('grok.ManageApplications',
- self.context):
- # If the user is has no proper permissions we redirect to
- # the login form, which pops up a basic-auth by default.
- self.redirect(
- 'login.html?nextURL=%s' % self.url())
- return
apps = zope.component.getAllUtilitiesRegisteredFor(
grok.interfaces.IApplication)
self.applications = ("%s.%s" % (x.__module__, x.__name__)
More information about the Checkins
mailing list