Can I *modify* Folder schema with archetypes.schemaextender?

2 messages Options
Embed this post
Permalink
Diego Municio () Can I *modify* Folder schema with archetypes.schemaextender?
Reply Threaded More More options
Print post
Permalink
Hi all,

I want to modify the write_permission of the field "Exclude from Navigation" in Folder content type. I wonder if I could do it with archetypes.schemaextender (although I know that this is a schema-modification not a schema-extension). The other way is monkey patching Folder Type, isn't it? (I don't want to create another content type subclassing Folder).

Any ideas?

Thanks in advance.



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users
ajung () Re: Can I *modify* Folder schema with archetypes.schemaextender?
Reply Threaded More More options
Print post
Permalink
As you might read from the documentation: yes.
ISchemaModifier is your friend.

-aj

Diego Municio wrote:
Hi all,

I want to modify the write_permission of the field "Exclude from Navigation"
in Folder content type. I wonder if I could do it with
archetypes.schemaextender (although I know that this is a
schema-modification not a schema-extension). The other way is monkey
patching Folder Type, isn't it? (I don't want to create another content type
subclassing Folder).

Any ideas?

Thanks in advance.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Plone-Users mailing list
Plone-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plone-users