archgenxml support for versioning?

3 messages Options
Embed this post
Permalink
asielick () archgenxml support for versioning?
Reply Threaded More More options
Print post
Permalink
Is there a way to enable versioning support for a new content type using archgenxml?  Currently I have to manually enable it in portal_diff and under Types in Plone's "Site Setup".  Would be nice to be able to do that using a tagged value when generating my content type through archgenxml.  Anyone know if this already exists?  I haven't been able to find it in any of the docs.

Thanks,
Alex
Vincent Fretin () Re: archgenxml support for versioning?
Reply Threaded More More options
Print post
Permalink
Hi,

AFAIK this functionality doesn't exist in archgenxml.
You can write the profiles/default/diff_tool.xml manually through:

<?xml version="1.0"?>
<object>
 <difftypes purge="False">
  <type portal_type="MyContentType">
   <field name="any" difftype="Compound Diff for AT types"/>
  </type>
 </difftypes>
</object>

I set purge="False" here to not flush existing configuration, but I'm
not sure, please test.

Regards
--
Vincent Fretin


On Wed, May 27, 2009 at 1:56 AM, asielick <[hidden email]> wrote:

>
> Is there a way to enable versioning support for a new content type using
> archgenxml?  Currently I have to manually enable it in portal_diff and under
> Types in Plone's "Site Setup".  Would be nice to be able to do that using a
> tagged value when generating my content type through archgenxml.  Anyone
> know if this already exists?  I haven't been able to find it in any of the
> docs.
>
> Thanks,
> Alex
> --
> View this message in context: http://n2.nabble.com/archgenxml-support-for-versioning--tp2978139p2978139.html
> Sent from the Archetypes mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals. Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, &
> iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
> _______________________________________________
> Archetypes-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/archetypes-users
>

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Archetypes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/archetypes-users
asielick () Re: archgenxml support for versioning?
Reply Threaded More More options
Print post
Permalink
Thanks, Vincent.  I'll try that.  

Anyone know how to do the same for Plone's "Type Settings" under Site Setup?

Alex



Vincent Fretin wrote:
Hi,

AFAIK this functionality doesn't exist in archgenxml.
You can write the profiles/default/diff_tool.xml manually through:

<?xml version="1.0"?>

 <difftypes purge="False">
  <type portal_type="MyContentType">
   <field name="any" difftype="Compound Diff for AT types"/>
  </type>
 </difftypes>


I set purge="False" here to not flush existing configuration, but I'm
not sure, please test.

Regards
--
Vincent Fretin


On Wed, May 27, 2009 at 1:56 AM, asielick <alex.sielicki@gmail.com> wrote:
>
> Is there a way to enable versioning support for a new content type using
> archgenxml?  Currently I have to manually enable it in portal_diff and under
> Types in Plone's "Site Setup".  Would be nice to be able to do that using a
> tagged value when generating my content type through archgenxml.  Anyone
> know if this already exists?  I haven't been able to find it in any of the
> docs.
>
> Thanks,
> Alex
> --
> View this message in context: http://n2.nabble.com/archgenxml-support-for-versioning--tp2978139p2978139.html
> Sent from the Archetypes mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals. Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, &
> iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
> _______________________________________________
> Archetypes-users mailing list
> Archetypes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/archetypes-users
>

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Archetypes-users mailing list
Archetypes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/archetypes-users