[prev in list] [next in list] [prev in thread] [next in thread]
List: zope3-dev
Subject: Re: [Zope3-dev] Security proxied container id's
From: Stephan Richter <srichter () cosmos ! phy ! tufts ! edu>
Date: 2005-05-26 12:40:18
Message-ID: 200505260840.18231.srichter () cosmos ! phy ! tufts ! edu
[Download RAW message or body]
On Thursday 26 May 2005 07:30, Dmitry Vasiliev wrote:
> Then I've made some security declarations and all working just fine but
> items names displayed like '<security proxied ... instance at ...>'.
>
> Is this reasonable/safe to apply attached patch or maybe I can reimplement
> my container in some other way?
First, you could declare your ReverseOrderedName to be a rock, like the
unicode type is. Then it will never get proxied.
Another approach would be to make a container implementation that ensures the
correct order of the items. However, I would extend the container interface
to have a method called:
def getBlogEntriesInOrder():
...
that returns the entries in the desired order. If you think that the content
type should not worry about this order (i.e. it is presentation-specific),
then you could always have a view that sorts the items.
Regards,
Stephan
--
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
_______________________________________________
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/zope3-dev%40progressive-comp.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic