[Erp5-report] r8999 - /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem...
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Aug 2 17:48:36 CEST 2006
Author: jerome
Date: Wed Aug 2 17:48:33 2006
New Revision: 8999
URL: http://svn.erp5.org?rev=8999&view=rev
Log:
acquire Base_getSourceVisibility from the context, not the object, because it might be a method on which you cannot acquire the script (eg. ExternalMethod)
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/developper_shortcut_render.xml
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/developper_shortcut_render.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/developper_shortcut_render.xml?rev=8999&r1=8998&r2=8999&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/developper_shortcut_render.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/developper_shortcut_render.xml Wed Aug 2 17:48:33 2006
@@ -73,7 +73,7 @@
-->\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
More information about the Erp5-report
mailing list