[Product-Developers] Re: Problem with ordering of objects from a new product
Eric Steele
ems174 at psu.edu
Mon Dec 17 16:15:14 UTC 2007
I just wanted to post a follow-up for the benefit of anyone running into
this in the future. It all wound up being caused by undefined/misdefined
meta_types. The moveObjectsByDelta method of OrderedBaseFolder calls
getCMFObjectsSubsetIds and since the objects were returning the wrong
meta_types, it wasn't able to find them. It was a simple, but unobvious
fix. See https://weblion.psu.edu/trac/weblion/ticket/414 for more details.
Eric
cewing wrote:
> 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
More information about the Product-Developers
mailing list