[Zope-CVS] CVS: Products/Ape/lib/apelib/zope2 - baseconf.xml:1.1.2.1
Shane Hathaway
shane@zope.com
Wed, 25 Jun 2003 00:06:47 -0400
Update of /cvs-repository/Products/Ape/lib/apelib/zope2
In directory cvs.zope.org:/tmp/cvs-serv25818
Added Files:
Tag: ape-newconf-branch
baseconf.xml
Log Message:
idea for configuration XML
=== Added File Products/Ape/lib/apelib/zope2/baseconf.xml ===
<?xml version="1.0"?>
<configuration>
<mapper name="zope2" class="Persistent.PersistentMapping">
<serializer name="root_items"
factory="apelib.zodb3.serializers.BasicPersistentMapping" />
<serializer name="roll_call" factory="apelib.zodb3.serializers.RollCall" />
<classifier factory="apelib.zope2.classifier.MetaTypeClassifier" />
</mapper>
<mapper name="base" class="abstract">
<serializer name="id" factory="apelib.zope2.ofsserial.IdAttribute" />
<serializer name="modtime"
factory="apelib.zodb3.serializers.ModTimeAttribute" />
<serializer name="security"
factory="apelib.zope2.security.SecurityAttributes" />
<serializer name="remainder" final="true"
factory="apelib.zodb3.serializers.RemainingState" />
</mapper>
<mapper name="base_p" class="abstract" extends="base" parent="zope2">
<serializer name="properties"
factory="apelib.zope2.ofsserial.OFSProperties" />
</mapper>
<serializer name="folder_items" factory="apelib.zope2.ofsserial.FolderItems" />
<serializer name="optional_properties"
factory="apelib.zope2.ofsserial.OFSProperties">
<optional-default><param type="list"></param></optional-default>
</serializer>
<mapper name="OFS.Folder.Folder" extends="base_p" parent="zope2">
<serializer name="items" use="folder_items" />
<use-for classification="directory" />
</mapper>
<mapper name="OFS.Image.File" extends="base_p" parent="zope2">
<serializer name="data" factory="apelib.zope2.ofsserial.FileData" />
<use-for classification="file" />
<classifier-option name="set_content_type" value="true" />
</mapper>
<mapper name="OFS.Image.Image" extends="OFS.Image.File" parent="zope2">
<use-for extensions=".gif .jpg .jpeg .png" />
</mapper>
<mapper name="Products.PageTemplates.ZopePageTemplate.ZopePageTemplate"
extends="base_p" parent="zope2">
<serializer name="text" factory="apelib.core.serializers.StringDataAttribute">
<param type="str">_text</param>
</serializer>
<use-for extensions=".html .htm .zpt .pt" />
</mapper>
<mapper name="OFS.DTMLMethod.DTMLMethod" extends="base" parent="zope2">
<serializer name="text" factory="apelib.core.serializers.StringDataAttribute">
<param type="str">raw</param>
</serializer>
<use-for extensions=".dtml" />
</mapper>
<mapper name="OFS.DTMLMethod.DTMLDocument"
extends="OFS.DTMLMethod.DTMLMethod" parent="zope2">
<serializer name="properties" disabled="true" />
</mapper>
<mapper name="Products.ZSQLMethods.SQL.SQL" extends="base" parent="zope2">
<serializer name="properties"
factory="apelib.zope2.scripts.ZSQLMethodPropertiesSerializer" />
<serializer name="text"
factory="apelib.zope2.scripts.ZSQLMethodSerializer" />
<use-for extensions=".sql" />
</mapper>
<mapper name="Products.PythonScripts.PythonScript.PythonScript"
extends="base" parent="zope2">
<serializer name="body"
factory="apelib.zope2.scripts.PythonScriptSerializer" />
<use-for extensions=".py" />
</mapper>
<mapper name="AccessControl.User.UserFolder" extends="base" parent="zope2">
<serializer name="data"
factory="apelib.zope2.security.UserFolderSerializer" />
</mapper>
<mapper name="anyfolder" class="unknown" extends="base" parent="zope2">
<serializer name="properties" use="optional_properties" />
<serializer name="items" use="folder_items" />
<use-for classification="folderish_object" />
</mapper>
<mapper name="anyfile" class="unknown" extends="base" parent="zope2">
<serializer name="properties" use="optional_properties" />
<use-for classification="fileish_object" />
</mapper>
<mapper name="OFS.Application.Application" extends="base_p" parent="zope2">
<serializer name="items" use="folder_items" />
</mapper>
<mapper name="anyfile">
<use-for class="Products.CMFCore.SkinsTool.SkinsTool" />
<use-for class="App.ApplicationManager.ApplicationManager" />
</mapper>
</configuration>