[754] | 1 | <configure |
---|
| 2 | xmlns="http://namespaces.zope.org/zope" |
---|
| 3 | xmlns:five="http://namespaces.zope.org/five" |
---|
| 4 | xmlns:genericsetup="http://namespaces.zope.org/genericsetup" |
---|
| 5 | xmlns:cmf="http://namespaces.zope.org/cmf" |
---|
| 6 | i18n_domain="quintagroup.mobileextender"> |
---|
| 7 | |
---|
| 8 | <!-- File System Directory Views registration --> |
---|
| 9 | <cmf:registerDirectory |
---|
| 10 | name="" |
---|
| 11 | directory="skins" |
---|
| 12 | recursive="True" |
---|
| 13 | /> |
---|
| 14 | |
---|
| 15 | <!-- five:registerPackage package="." initialize=".initialize" / --> |
---|
| 16 | |
---|
| 17 | <!-- -*- extra stuff goes here -*- --> |
---|
| 18 | <!-- extend [ATDocument] portal type with mobile_content field --> |
---|
| 19 | <include package="archetypes.schemaextender" /> |
---|
| 20 | <include package=".browser" /> |
---|
| 21 | <adapter |
---|
| 22 | for="Products.ATContentTypes.interface.IATDocument" |
---|
| 23 | provides="archetypes.schemaextender.interfaces.ISchemaExtender" |
---|
| 24 | factory=".adapters.MobileExtender" |
---|
| 25 | /> |
---|
| 26 | <adapter |
---|
| 27 | for="Products.ATContentTypes.interface.IATEvent" |
---|
| 28 | provides="archetypes.schemaextender.interfaces.ISchemaExtender" |
---|
| 29 | factory=".adapters.MobileExtender" |
---|
| 30 | /> |
---|
| 31 | <adapter |
---|
| 32 | for="Products.Archetypes.interfaces.IBaseFolder" |
---|
| 33 | provides="archetypes.schemaextender.interfaces.ISchemaExtender" |
---|
| 34 | factory=".adapters.MobileExtender" |
---|
| 35 | /> |
---|
| 36 | |
---|
| 37 | <interface |
---|
| 38 | interface=".interfaces.IMobile" |
---|
| 39 | /> |
---|
| 40 | |
---|
| 41 | <!-- Register the installation GenericSetup extension profile --> |
---|
| 42 | <genericsetup:registerProfile |
---|
| 43 | name="default" |
---|
| 44 | title="Mobile Extender" |
---|
| 45 | directory="profiles/default" |
---|
| 46 | description="" |
---|
| 47 | provides="Products.GenericSetup.interfaces.EXTENSION" |
---|
| 48 | /> |
---|
| 49 | |
---|
[776] | 50 | <subscriber |
---|
| 51 | for="Products.ATContentTypes.interface.IATContentType |
---|
| 52 | Products.Archetypes.interfaces.IObjectInitializedEvent" |
---|
| 53 | handler=".handlers.markAsMobile" |
---|
| 54 | /> |
---|
| 55 | |
---|
| 56 | <subscriber |
---|
| 57 | for="Products.ATContentTypes.interface.IATContentType |
---|
| 58 | Products.Archetypes.interfaces.IObjectEditedEvent" |
---|
| 59 | handler=".handlers.markAsMobile" |
---|
| 60 | /> |
---|
| 61 | |
---|
[754] | 62 | </configure> |
---|