This file is indexed.

/usr/share/pyshared/z3c/macro/interfaces.py is in python-z3c.macro 1.4.2-0ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
##############################################################################
#
# Copyright (c) 2005 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""
$Id: interfaces.py 72084 2007-01-18 01:02:26Z rogerineichen $
"""

from zope.tales import interfaces
from zope.pagetemplate.interfaces import IPageTemplate


class IMacroTemplate(IPageTemplate):
    """A macro template."""


class IMacroExpression(interfaces.ITALESExpression):
    """Return the HTML content of the named provider.

    To call a macro from a page template use the the following syntax::

      <metal:block use-macro="macro:macroname">
        <metal:block fill-slot="slotname">
          this content get rendered in the defined slot of the macro
        <\metal:block>
      <\metal:block>

      or

      <metal:block use-macro="macro:macroname">
        this content get replaced by the defined macro
      </metal:block>

    The ``macro:`` TALES expression calles a named adapter adapting 
    (context, request) or (context, request, view), depending on the usage
    of the view attribute in the macro directive. A macro provides the 
    interface IMacroTemplate.
    """