Am 04.07.2008 um 07:37 schrieb Christian Theune:
On Fri, 2008-07-04 at 02:10 +0300, Marius Gedminas wrote:
On Tue, Jun 24, 2008 at 01:39:28PM +0200, Christian Theune wrote:
I can explicitly make the URL use '@@viewname' and bypass the
but I don't like the @@s in the URL. I wonder whether adding
the KeyError would be reasonable.
I think not. At least it should not convert Unauthorized into
If I can access a location (say, http://localhost/container/item)
I'm logged in, then if I try that as an anonymous user, I should
authentication dialog rather than a 404 Not Found page.
Actually, in my case its, when logged in I can use:
When not logged in, I get an Unauthorized, although when accessing
I can go ahead as anonymous.
IMHO the code merging the namespaces should be more careful about
IMHO the ItemTraverser should not lookup the view by itself, but
delegate to the 'view' traverser, somethind like:
def publishTraverse(self, request, name):
return namespaceLookup('view', name, self.context,
raise NotFound(self.context, name, request)
Zope-Dev maillist - Zope-Dev@zope.org
** No cross posts or HTML encoding! **
(Related lists -