[CMF-checkins] CVS: CMF/CMFDefault - Link.py:1.20.4.3
Tres Seaver
tseaver@zope.com
Fri, 2 Aug 2002 14:23:56 -0400
Update of /cvs-repository/CMF/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv15711/CMFDefault
Modified Files:
Tag: CMF-1_3-branch
Link.py
Log Message:
- Rip out redundant code (Collector #18).
=== CMF/CMFDefault/Link.py 1.20.4.2 => 1.20.4.3 ===
+ '?manage_tabs_message=Link+updated'
)
- security.declareProtected( CMFCorePermissions.ModifyPortalContent
- , 'manage_edit' )
- manage_edit = DTMLFile( 'zmi_editLink', _dtmldir )
-
- security.declareProtected( CMFCorePermissions.ModifyPortalContent
- , 'manage_editLink' )
- def manage_editLink( self, remote_url, REQUEST=None ):
- """
- Update the Link via the ZMI.
- """
- self._edit( remote_url )
- if REQUEST is not None:
- REQUEST['RESPONSE'].redirect( self.absolute_url()
- + '/manage_edit'
- + '?manage_tabs_message=Link+updated'
- )
-
security.declarePrivate( '_edit' )
def _edit( self, remote_url ):
"""