diff --git a/Products/zms/import/com.zms.foundation-4.0.0.metaobj.xml b/Products/zms/import/com.zms.foundation-4.0.0.metaobj.xml index d3c0aff4a..5e44d4f13 100644 --- a/Products/zms/import/com.zms.foundation-4.0.0.metaobj.xml +++ b/Products/zms/import/com.zms.foundation-4.0.0.metaobj.xml @@ -1855,8 +1855,9 @@ return '' -0; - imgspecial python:zmscontext.attr('img_attrs_spec')"> + imgspecial python:standard.pystr(zmscontext.attr('img_attrs_spec'));"> ]]> - False + 0 @@ -289,7 +289,7 @@ invalid syntax (PythonExpr, line 1) in expression u"python:[[x,here.display_type ]]> - False + 0 diff --git a/Products/zms/standard.py b/Products/zms/standard.py index d9e125532..b6bcbe63b 100644 --- a/Products/zms/standard.py +++ b/Products/zms/standard.py @@ -759,6 +759,7 @@ def set_session_value(context, key, value): return value +security.declarePublic('triggerEvent') def triggerEvent(context, *args, **kwargs): """ Hook for trigger of custom event (if there is one) diff --git a/Products/zms/zpt/ZMSObject/input_fields.zpt b/Products/zms/zpt/ZMSObject/input_fields.zpt index 14899176b..455cc8bc8 100644 --- a/Products/zms/zpt/ZMSObject/input_fields.zpt +++ b/Products/zms/zpt/ZMSObject/input_fields.zpt @@ -1,5 +1,7 @@ - %i Objects, %i Bytes, unique-id + tal:define=" + cataloged python:here.getLinkObj('{$%s}'%here.get_uid()) is not None;" + tal:attributes=" + onclick python:'$ZMI.CopyToClipboard(\'{$%s}\')'%(here.get_uid()); + class python:' '.join(['get_uid']+[['text-danger'],[]][cataloged]);"> + + + + + + unique-id