Yes schemas are currently not inherited from the "extended" type. That's a bug.

Florent

On 5 Oct 2007, at 15:08, Yuri Nadestin wrote:

Just an idea. Does your document type "bma" include "uid" schema?

Check your core type extension:

  <extension target="org.nuxeo.ecm.core.schema.TypeService"
point="doctype">
    <doctype name="bma" extends="Document">
      <schema name="common"/>
      <schema name="file"/>
      <schema name="dublincore"/>
      <schema name="bma"/>
      <schema name="uid" />
      <facet name="Downloadable"/>
      <facet name="Versionable"/>
      <facet name="Publishable"/>
    </doctype>
  </extension>

I have a feeling that schemas are not inherited.
Keep in mind that if you change core type definition, then you need to
force update the database schema.

Yuri Nadestin


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of hydogen
Sent: Wednesday, October 03, 2007 12:13 PM
To: [email protected]
Subject: Re: [Ecm] How to create versionable for new document type?

I applied those rules and incrementation options display correctly but
It's show "Document Versioning 00:00" not "Document Versioning Current
version 01.00"

versioningrules-contrib.xml

<?xml version="1.0"?>

<component name="org.nuxeo.project.bma.versioning.rules">
<!-- Default versioning rules -->
<extension
target="org.nuxeo.ecm.platform.versioning.service.VersioningService"
point="rules">

<versioningRuleWF name="bmaWFRule" workflowStateInitial="assigned"
workflowStateFinal="inprogress" action="inc_minor">
</versioningRuleWF>

<versioningRuleEdit name="bmaEditRuleReview" action="query_workflow"
lifecycleState="review">

</versioningRuleEdit>

<versioningRuleEdit name="bmaEditRuleProject" action="ask_user"
lifecycleState="project">
<option value="no_inc" default="true" />
<option value="inc_minor" />
<option value="inc_major" />
</versioningRuleEdit>

<versioningRuleEdit name="bmaEditRuleAnyState" action="ask_user"
lifecycleState="*">
<includeDocType>bma</includeDocType>
<option value="no_inc" default="true" />
<option value="inc_minor" />
<option value="inc_major" />
</versioningRuleEdit>

<versioningRuleAuto name="bmaAutoRule" action="inc_minor"
lifecycleState="*">
</versioningRuleAuto>

</extension>
</component>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm


--
Florent Guillaume, Director of R&D, Nuxeo
Open Source Enterprise Content Management (ECM)
http://www.nuxeo.com   http://www.nuxeo.org   +33 1 40 33 79 87



_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to