/usr/lib/python3/dist-packages/trytond/ir/ui/calendar.rng is in tryton-server 4.6.3-2.
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 | <?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0">
<define name="calendar">
<element name="calendar">
<ref name="attlist.calendar"/>
<zeroOrMore>
<ref name="field"/>
</zeroOrMore>
</element>
</define>
<define name="attlist.calendar" combine="interleave">
<attribute name="dtstart"/>
</define>
<define name="attlist.calendar" combine="interleave">
<optional>
<attribute name="dtend"/>
</optional>
</define>
<define name="attlist.calendar" combine="interleave">
<optional>
<attribute name="mode">
<choice>
<value>week</value>
<value>month</value>
</choice>
</attribute>
</optional>
</define>
<define name="attlist.calendar" combine="interleave">
<optional>
<attribute name="color" a:defaultValue="black"/>
</optional>
</define>
<define name="attlist.calendar" combine="interleave">
<optional>
<attribute name="background_color" a:defaultValue="lightblue"/>
</optional>
</define>
<define name="field">
<element name="field">
<ref name="attlist.field"/>
<empty/>
</element>
</define>
<define name="attlist.field" combine="interleave">
<attribute name="name"/>
</define>
<define name="data">
<element name="data">
<ref name="attlist.data"/>
<zeroOrMore>
<ref name="xpath"/>
</zeroOrMore>
</element>
</define>
<define name="attlist.data" combine="interleave">
<empty/>
</define>
<define name="xpath">
<element name="xpath">
<ref name="attlist.xpath"/>
<zeroOrMore>
<choice>
<ref name="field"/>
<ref name="calendar"/>
</choice>
</zeroOrMore>
</element>
</define>
<define name="attlist.xpath" combine="interleave">
<attribute name="expr"/>
</define>
<define name="attlist.xpath" combine="interleave">
<optional>
<attribute name="position" a:defaultValue="inside">
<choice>
<value>inside</value>
<value>replace</value>
<value>replace_attributes</value>
<value>after</value>
<value>before</value>
</choice>
</attribute>
</optional>
</define>
<start>
<choice>
<ref name="data"/>
<ref name="calendar"/>
</choice>
</start>
</grammar>
|