Is PARENTS deprecated in favor of something else? -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Chris Withers Sent: Tuesday, September 24, 2002 6:55 AM To: lsh@wo.cz Cc: AM; Zope Subject: Re: [Zope] breadcrumbs ques Jaroslav Lukesh wrote:
Hi, try pure DTML solution, what works with virtual webs too:
<dtml-in "PARENTS[:-1]" skip_unauthorized
PARENTS is depreated. cheers, Chris _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
no, PARENTS is absolutely not deprecated. chris just likes to make blanket statements like that... if you read HISTORY.txt it mentions PARENTS in a single context: for user validation purposes the new REQUEST.PUBLISHED is preferred over pulling the published object out of REQUEST.PARENTS. jens On Tuesday, Sep 24, 2002, at 09:05 US/Eastern, abg@comco-inc.com wrote:
Is PARENTS deprecated in favor of something else?
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Chris Withers Sent: Tuesday, September 24, 2002 6:55 AM To: lsh@wo.cz Cc: AM; Zope Subject: Re: [Zope] breadcrumbs ques
Jaroslav Lukesh wrote:
Hi, try pure DTML solution, what works with virtual webs too:
<dtml-in "PARENTS[:-1]" skip_unauthorized
PARENTS is depreated.
cheers,
Chris
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
SO are REQUEST.PARENTS and REQUEST.PUBLISHED interchangeable then at least in this context... TIA AM Jens Vagelpohl wrote:
no, PARENTS is absolutely not deprecated. chris just likes to make blanket statements like that...
if you read HISTORY.txt it mentions PARENTS in a single context: for user validation purposes the new REQUEST.PUBLISHED is preferred over pulling the published object out of REQUEST.PARENTS.
jens
On Tuesday, Sep 24, 2002, at 09:05 US/Eastern, abg@comco-inc.com wrote:
Is PARENTS deprecated in favor of something else?
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Chris Withers Sent: Tuesday, September 24, 2002 6:55 AM To: lsh@wo.cz Cc: AM; Zope Subject: Re: [Zope] breadcrumbs ques
Jaroslav Lukesh wrote:
Hi, try pure DTML solution, what works with virtual webs too:
<dtml-in "PARENTS[:-1]" skip_unauthorized
PARENTS is depreated.
cheers,
Chris
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-- ================================================================== Aseem Mohanty Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 ================================================================== "I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ==================================================================
REQUEST.PARENTS is something totally different than REQUEST.PUBLISHED. PUBLISHED is the currently published object. PARENTS is a sequence of objects that represent the traversed objects from the currently published object all the way to the zope root. jens On Tuesday, Sep 24, 2002, at 11:42 US/Eastern, AM wrote:
SO are REQUEST.PARENTS and REQUEST.PUBLISHED interchangeable then at least in this context... TIA AM
Jens Vagelpohl wrote:
no, PARENTS is absolutely not deprecated. chris just likes to make blanket statements like that...
if you read HISTORY.txt it mentions PARENTS in a single context: for user validation purposes the new REQUEST.PUBLISHED is preferred over pulling the published object out of REQUEST.PARENTS.
jens
On Tuesday, Sep 24, 2002, at 09:05 US/Eastern, abg@comco-inc.com wrote:
Is PARENTS deprecated in favor of something else?
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Chris Withers Sent: Tuesday, September 24, 2002 6:55 AM To: lsh@wo.cz Cc: AM; Zope Subject: Re: [Zope] breadcrumbs ques
Jaroslav Lukesh wrote:
Hi, try pure DTML solution, what works with virtual webs too:
<dtml-in "PARENTS[:-1]" skip_unauthorized
PARENTS is depreated.
cheers,
Chris
Jens Vagelpohl wrote:
no, PARENTS is absolutely not deprecated. chris just likes to make blanket statements like that...
Of course, and I can never back them up ;-) Dieter obviously read the same stuff I did: http://lists.zope.org/pipermail/zpt/2001-December/002635.html ...maybe you could ask him where? And of course there's the point you make:
if you read HISTORY.txt it mentions PARENTS in a single context: for user validation purposes the new REQUEST.PUBLISHED is preferred over pulling the published object out of REQUEST.PARENTS. ...why was this change made if there was nothing wrong with PARENTS?
Now that said, I agree with you that there's not much documentation on _why_ it was deprecated (if it was), and I can't find the discussions around the time when I remember it being deprecated(if it was) (my memory tells me the discussions were over a year ago...), which is a shame. Still, I have memories of REQUEST.steps, REQUEST.PARENTS and various Virtual Hosting discussions around the same time, so maybe you can research further and prove me wrong, since you seem to take pleasure from that. cheers, Chris
have you ever grepped through zope's core to look how often it is used? i don't really care about discussion threads from over a year ago that have gone by and never come back, i look at CHANGES.txt, HISTORY.txt and the usage patterns in current code. i think that's a pretty accurate picture whether something is deprecated or not. jens On Tuesday, Sep 24, 2002, at 12:03 US/Eastern, Chris Withers wrote:
Jens Vagelpohl wrote:
no, PARENTS is absolutely not deprecated. chris just likes to make blanket statements like that...
Of course, and I can never back them up ;-)
Dieter obviously read the same stuff I did: http://lists.zope.org/pipermail/zpt/2001-December/002635.html ...maybe you could ask him where?
And of course there's the point you make:
if you read HISTORY.txt it mentions PARENTS in a single context: for user validation purposes the new REQUEST.PUBLISHED is preferred over pulling the published object out of REQUEST.PARENTS. ...why was this change made if there was nothing wrong with PARENTS?
Now that said, I agree with you that there's not much documentation on _why_ it was deprecated (if it was), and I can't find the discussions around the time when I remember it being deprecated(if it was) (my memory tells me the discussions were over a year ago...), which is a shame.
Still, I have memories of REQUEST.steps, REQUEST.PARENTS and various Virtual Hosting discussions around the same time, so maybe you can research further and prove me wrong, since you seem to take pleasure from that.
cheers,
Chris
Jens Vagelpohl <jens@ZOPE.COM> wrote:
have you ever grepped through zope's core to look how often it is used? i don't really care about discussion threads from over a year ago that have gone by and never come back, i look at CHANGES.txt, HISTORY.txt and the usage patterns in current code. i think that's a pretty accurate picture whether something is deprecated or not.
Frankly the base Zope 2 code is really not a reference on good usage, style, cleanliness or deprecation status... There's a huge amount of cruft there :-) OTOH I don't have any opinion on whether or not PARENTS is deprecated. Florent -- Florent Guillaume, Nuxeo (Paris, France) +33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com
i'm not saying anything about the status or beauty of code in the zope2 core. all i am saying is that PARENTS is used all over the place and taking it out would probably require some major work. so for me, combined with the fact that there is no definite statement anywhere about its deprecation, that means PARENTS is not deprecated. pretty simple, eh? jens On Tuesday, Sep 24, 2002, at 18:11 US/Eastern, Florent Guillaume wrote:
Jens Vagelpohl <jens@ZOPE.COM> wrote:
have you ever grepped through zope's core to look how often it is used? i don't really care about discussion threads from over a year ago that have gone by and never come back, i look at CHANGES.txt, HISTORY.txt and the usage patterns in current code. i think that's a pretty accurate picture whether something is deprecated or not.
Frankly the base Zope 2 code is really not a reference on good usage, style, cleanliness or deprecation status... There's a huge amount of cruft there :-)
OTOH I don't have any opinion on whether or not PARENTS is deprecated.
Florent
participants (5)
-
abg@comco-inc.com -
AM -
Chris Withers -
Florent Guillaume -
Jens Vagelpohl