From 74060ed54c5cdedaab98af41239d67808054a22b Mon Sep 17 00:00:00 2001 From: zmsdev Date: Sun, 1 Nov 2020 15:18:20 +0000 Subject: [PATCH] ZMSIndex: reindex missing nodes (UniBE) svn path=/ZMS/branches/zms4/; revision=5922 --- .../import/com.zms.foundation-4.0.0.metaobj.xml | 7 ++++--- Products/zms/import/default.metacmd.xml | 4 ++-- Products/zms/standard.py | 1 + Products/zms/zpt/ZMSObject/input_fields.zpt | 17 ++++++++++++++--- 4 files changed, 21 insertions(+), 8 deletions(-) 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