Hello,
I'm working on a very simple product (Plone 3.1.7) that sub-classes
a standard Archetype content type. This new type must be treated like the
File type and /view must be added to its URL by default. To do so, I have
a profiles/default/propertiestool.xml file that contains the following lines:
<object name="portal_properties" meta_type="Plone Properties Tool">
<object name="site_properties" meta_type="Plone Property Sheet">
<property name="typesUseViewActionInListings" type="lines" purge="False">
<element value="myType"/>
</property>
</object>
</object>
This works fine and just adds "myType" to the list of types in the
"typesUseViewActionInListings" list.
I would like to have a clean uninstall for this type. The only way to
get back to the orinal list of type for this property is to create
an uninstall profile with profiles/uninstall/propertiestool.xml that
contains:
<object name="portal_properties" meta_type="Plone Properties Tool">
<object name="site_properties" meta_type="Plone Property Sheet">
<property name="typesUseViewActionInListings" type="lines" purge="True">
<element value="Image"/>
<element value="File"/>
</property>
</object>
</object>
Which hard-codes what should be the original content for the
"typesUseViewActionInListings" list.
Is there a way to remove a line from this list and avoid the
hard-coded list of "what-was-there-before"?
Francois.
--
Francois BARRIERE ATMEL
Zone Industrielle
Tel: (33) 0 442 53 61 98 13106 ROUSSET
E-Mail: [email protected] FRANCE
---------------------------------
Everyone knows that debugging is twice as hard as writing a program
in the first place. So if you're as clever as you can be when you write it,
how will you ever debug it? (Brian Kernighan)
---------------------------------
--
View this message in context:
http://n2.nabble.com/GenericSetup%2C-uninstall-and-propertiestool-object-tp2455956p2455956.html
Sent from the Product Developers mailing list archive at Nabble.com.
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers