[Zope-Coders] Re: [ANN] Proposed Features for Zope 2.7: OrderedObjectManager
Shane Hathaway
shane@zope.com
Tue, 03 Dec 2002 18:18:50 -0500
Yuppie wrote:
> Hi Shane!
>
>
> Shane Hathaway wrote:
>
>> Wouldn't this work be better applied to Zope 3 instead of Zope 2?
>
>
> Why? People need it right now. And they do crazy things like
> cut&paste-in-place and double-renaming because they don't have this API!
Because in Zope 3 you'd be able to do it right. In Zope 2 you can hope
for nothing better than a terrible hack.
> The last time I saw the wheel reinvented is this product with own
> ordering API: <http://www.zope.org/Members/gregweb/CMFCollection>
Sometimes it's good that the same code be written more than once. You
call it reinventing the wheel, but I call it perfecting the technique. :-)
>> I don't understand what you're saying about BTreeFolder2.
>> BTreeFolder2 does not use _objects.
>
>
> That's what I wanted to say. Default Folders use _objects. This way we
> can test for BTreeFolder2 and disable move methods.
BTreeFolder2 already overrides manage_main, so AFAICT you wouldn't have
to change anything.
>
>> Why is it necessary to add sort key cookies to the ZMI at the same
>> time? I suggest that is entirely different proposal.
>
>
> Well, this could be a different proposal. It's included in this proposal
> because using the move methods needs position sorting selected. (Showing
> move up/down buttons with other sortings is just confusing.)
> But we didn't want to change the default sorting.
What's wrong with telling people who want ordered folders that they
should use the OrderedFolder product? If it has bugs, let's just fix
the bugs. :-)
Shane