Commit 72ccd746 authored by Kevin Deldycke's avatar Kevin Deldycke

Revert changes

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9566 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 039e340e
......@@ -383,21 +383,6 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
# We want to use a default property view
manage_propertiesForm = DTMLFile( 'dtml/properties', _dtmldir )
def __call__(self):
"""
This method override PortalContent.__call__() method to get an altenate
default view if we have Web Site in the acquisition path.
If object is called within a Web Site object, try to use 'web_view' action
as default view. Else, use the default 'view' action as returned by the
default __call__ method of Portal Content objects.
"""
rq = self.REQUEST
if hasattr(rq, 'web_site_value') and not (hasattr(rq, 'ignore_layout') or hasattr(rq, 'editable_mode')):
return _getViewFor(self, view='web_view')()
else:
call_method = getattr(PortalContent, '__call__', None)
return call_method(self)
security.declareProtected( Permissions.ModifyPortalContent, 'setTitle' )
def setTitle(self, value):
""" sets the title. (and then reindexObject)"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment