/usr/lib/python2.7/dist-packages/zope/configuration/tests/schema.zcml is in python-zope.configuration 4.0.3-3.
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 | <configure xmlns="http://namespaces.zope.org/zope"
xmlns:meta="http://namespaces.zope.org/meta"
xmlns:schema="http://sample.namespaces.zope.org/schema"
>
<meta:groupingDirective
name="schema"
namespace="http://sample.namespaces.zope.org/schema"
schema=".nested.ISchemaInfo"
handler=".nested.Schema"
>
Define a schema
Use field directives (e.g. text and int directives) to define
the schema fields.
</meta:groupingDirective>
<meta:directive
name="text"
namespace="http://sample.namespaces.zope.org/schema"
usedIn=".nested.ISchema"
schema=".nested.ITextInfo"
handler=".nested.textField"
>
Define a text field
</meta:directive>
<meta:directive
name="int"
namespace="http://sample.namespaces.zope.org/schema"
usedIn=".nested.ISchema"
schema=".nested.IIntInfo"
handler=".nested.intField"
>
Define an integer field
</meta:directive>
<schema:schema name="I1" id="zope.configuration.tests.nested.I1">
Sample interface I1
<schema:text name="a" min_length="1">
A
Blah blah
</schema:text>
<schema:int name="b" min="1" max="10">
B
Not feeling very creative
</schema:int>
</schema:schema>
<schema:schema name="I2" id="zope.configuration.tests.nested.I2">
Sample interface I2
<schema:text name="x">X</schema:text>
<schema:text name="y" min_length="1" />
</schema:schema>
</configure>
|