Commit ed2df14b authored by Jérome Perrin's avatar Jérome Perrin

acquire Base_getSourceVisibility from the context, not the object, because it...

acquire Base_getSourceVisibility from the context, not the object, because it might be a method on which you cannot acquire the script (eg. ExternalMethod)



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8999 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dc72ff47
......@@ -73,7 +73,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
-->\n
</tal:block>\n
<tal:block metal:define-macro="edit_link">\n
<a tal:condition="python: hasattr(object, \'meta_type\') and object.Base_getSourceVisibility()"\n
<a tal:condition="python: hasattr(object, \'meta_type\') and context.Base_getSourceVisibility(object)"\n
tal:attributes="href python: \'%s/%s\' % (\'/\'.join(object.getPhysicalPath()[len(object.getPortalObject().getPhysicalPath()):]), manage) # XXX: quick hack to get path;\n
title info;"><img tal:attributes="src python: \'images/%s\' % (image, );\n
alt info;"/></a>\n
......
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