<metal:globaldefine define-macro="defines"
      tal:define="
        global utool nocall:here/portal_url;
        global portal utool/getPortalObject;
        global portal_object nocall:portal;
        global portal_url utool;
        global mtool nocall:portal/portal_membership;
        global gtool nocall:portal/portal_groups | nothing;
        global gdtool nocall:portal/portal_groupdata | nothing;
        global atool nocall:portal/portal_actions;
        global aitool nocall:portal/portal_actionicons | nothing;
        global putils nocall:portal/plone_utils;
        global wtool nocall:portal/portal_workflow;
        global ifacetool nocall:portal/portal_interface | nothing;
        global portal_title portal_object/Title;
        global object_title here/Title;
        global member mtool/getAuthenticatedMember;
        global checkPermission nocall:mtool/checkPermission;
        global membersfolder mtool/getMembersFolder;
        global isAnon mtool/isAnonymousUser;
        global actions python: portal.portal_actions.listFilteredActionsFor(here);
        global keyed_actions python: portal.keyFilteredActions(actions);
        global user_actions actions/user;
        global workflow_actions actions/workflow;
        global folder_actions actions/folder;
        global global_actions actions/global;
        global portal_tabs actions/portal_tabs|nothing;
        global wf_state python:wtool.getInfoFor(here,'review_state',None);
        global portal_properties portal/portal_properties;
        global site_properties portal_properties/site_properties;
        global ztu modules/ZTUtils;
        global actions options/actions|actions;
        global wf_actions workflow_actions;
        global isFolder python:here.getTypeInfo().getId() in site_properties.use_folder_tabs;
        global template_id options/template_id | template/getId | nothing;
        global slots_mapping options/slots_mapping|here/prepare_slots|nothing;
        global Iterator python:modules['Products.CMFPlone'].IndexIterator;
        global tabindex python:Iterator(pos=30000);
        global here_url here/absolute_url;
        global sl slots_mapping/left;
        global sr slots_mapping/right;
        global hidecolumns python:here.hide_columns(sl,sr);
        global default_language site_properties/default_language|nothing;
        global allowed_types here/getAllowedTypes;
        global is_editable python:here.showEditableBorder(template_id=template_id, allowed_types=allowed_types, actions=actions );
        global current_page_url request/VIRTUAL_URL|string:${request/SERVER_URL}${request/PATH_TRANSLATED};
        global lockable python:hasattr(here, 'wl_isLocked');
		global isLocked python:lockable and here.wl_isLocked();" />
