Le 12 déc. 07 à 19:24, cewing a écrit :
Hi,
I filed this some months ago :
https://dev.plone.org/archetypes/ticket/740
I noticed by the way that there's no unit tests in AT for objects
reordering...
Finally I found a workaround that works in my case. Try to override
"getCMFObjectsSubsetIds" in your class that subclasses
OrderedContainer like here :
https://ingeniweb.svn.sourceforge.net/svnroot/ingeniweb/PloneArticle/
branches/plone3compat/field/innercontentcontainer.py
But dunno if it's the right fix for all cases..
Cheers
--
Gilles Lenfant
INGENIWEB (TM) - SAS 50000 Euros - RC B 438 725 632
17 rue Louise Michel - 92300 Levallois Perret - France
Tel / Fax : 01.78.15.24.00
web : www.ingeniweb.com - « les Services Web Ingénieux »
Greetings,
I am working on a product that adds several new content types. All
the
functionality associated with these types is working reasonably
well, but I
am having an odd problem. When you add an object of one of the
types to an
ordered folder in plone (like, perhaps, the root of the plone
site), it
cannot be moved from its position.
I can drag-and-drop the item to a new position in the folder-
contents view,
but upon leaving that view, the order of the object remains
unchanged, it
returns to where it was before.
I can also click on the up/down arrows in the 'order' column of the
folder-contents view, and the view reloads with the portal message
'Item's
position has changed', but the position has not changed.
Reloading the browser with a cache-dump fails to make any
difference, so the
issue isn't cached views.
All other plone content types, including those added by other products
continue to work as expected, so the problem doesn't appear to be with
ordered folder support in general.
There are no error messages that show up when running in debug mode
or under
zopectl fg. Nothing appears to be failing, it just doesn't work.
Is there some interface or inheritance that a content type has that
allows
it to be ordered? My understanding was that order of objects in an
ordered
folder is a property of the folder, not the objects themselves.
Perhaps I
am wrong.
Any ideas on what might be causing this problem, or how to fix it?
Apologies for cross-posting. I asked this question in plone-users
a few
days ago and have been met with resounding silence.
Cris
--
View this message in context: http://www.nabble.com/Problem-with-
ordering-of-objects-from-a-new-product-tp14300974s20094p14300974.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
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers