Back to index

plone3  3.1.7
renderBase.py
Go to the documentation of this file.
00001 # returns correct base href
00002 
00003 from AccessControl import Unauthorized
00004 
00005 # when accessing via WEBDAV you're not allowed to access aq_explicit
00006 try:
00007     if getattr(context.aq_explicit, 'isPrincipiaFolderish', 0):
00008         return context.absolute_url()+'/'
00009     else:
00010         return context.absolute_url()
00011 except (Unauthorized, 'Unauthorized'):
00012     pass