This file is indexed.

/usr/share/pyshared/zope/html/field.py is in python-zope.html 2.2.0-0ubuntu8.

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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
##############################################################################
#
# Copyright (c) 2007 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.
#
##############################################################################
"""Interfaces and fields for HTML/XHTML documents.

"""
__docformat__ = "reStructuredText"

import zope.interface
import zope.schema
import zope.schema.interfaces


class IHtmlTextField(zope.schema.interfaces.IText):
    """Text that contains HTML markup.

    This is an abstract interface.  Only the concrete derived
    interfaces should be used for actual field definitions.

    """


class IHtmlDocumentField(IHtmlTextField):
    """HTML document field.

    This is for fields that represent complete HTML documents,
    including the document head as well as the body.

    """


class IHtmlFragmentField(IHtmlTextField):
    """HTML fragment field.

    This is for fields that represent pieces of HTML that can be
    composed to create complete documents.  This field implies no
    specifics about what portion of an HTML document is represented,
    but it must be internally well-formed.

    """


class IXhtmlTextField(zope.schema.interfaces.IText):
    """Text that contains XHTML markup.

    This is an abstract interface.  Only the concrete derived
    interfaces should be used for actual field definitions.

    """


class IXhtmlDocumentField(IXhtmlTextField):
    """XHTML document field.

    This is for fields that represent complete XHTML documents,
    including the document head as well as the body.

    """


class IXhtmlFragmentField(IXhtmlTextField):
    """XHTML fragment field.

    This is for fields that represent pieces of XHTML that can be
    composed to create complete documents.  This field implies no
    specifics about what portion of an HTML document is represented,
    but it must be internally well-formed.

    """


class HtmlDocument(zope.schema.Text):

    zope.interface.implements(IHtmlDocumentField)


class HtmlFragment(zope.schema.Text):

    zope.interface.implements(IHtmlFragmentField)


class XhtmlDocument(zope.schema.Text):

    zope.interface.implements(IXhtmlDocumentField)


class XhtmlFragment(zope.schema.Text):

    zope.interface.implements(IXhtmlFragmentField)