Commit e24e9c24 authored by Romain Courteaud's avatar Romain Courteaud

Some forms are called directly on the ERP5 Site, which does not have the getPortalObject method.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19568 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 50fe0035
......@@ -55,7 +55,7 @@
xmlns:metal="http://xml.zope.org/namespaces/metal"\n
xmlns:i18n="http://xml.zope.org/namespaces/i18n">\n
<tal:block metal:define-macro="edit_link">\n
<a disabled="disabled" tal:condition="python: hasattr(object, \'meta_type\')"\n
<a disabled="disabled" tal:condition="python: (getattr(object, \'meta_type\', None) is not None) and (getattr(object, \'getPortalObject\', None) is not None)"\n
tal:attributes="href python: \'%s/manage_main\' % (\'/\'.join(object.getPhysicalPath()[len(object.getPortalObject().getPhysicalPath()):])) # XXX: quick hack to get path;\n
title info;"><img tal:attributes="src python: \'%s/images/%s\' % (portal_path, image);\n
alt info;" /></a>\n
......
494
\ No newline at end of file
496
\ No newline at end of file
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