21 Aug
2000
21 Aug
'00
5:06 p.m.
Chris Withers wrote:
Squishdot uses an intSet called 'thread' to store some information. Items in this intSet are used in several DTML methods, for example:
<A HREF="<dtml-var site_url >/<dtml-var expr="thread[0]"
/index_html#<dtml-var id >">Return to main thread</A>
Now, in Zope 2.2 this throws an unauthorized error as show in the PS.
I've solved this now by adding a method to SquishSite: def getThread(self, index): """A nasty hack since intSet's became protected in Zope 2.2.0""" return self.thread[index] This is nasty 'cos it means everyone with old Squish Sites will haveto change them :( Anyone got anything better? cheers, Chris