[Zope] Squishdot absolute_url question

Richard Hewison richard.hewison@luton.ac.uk
Tue, 11 Dec 2001 13:36:27 GMT


Apologies for previously posting in HTML. It was unintentional and 
(hopefully) it won't happen again! Anyway, back to our 
problem/question...

The two URLs that are added to the foot of the email are both 
<dtml-var absolute_url>. The only difference is that the second one 
has /cancelNotify at the end.

e.g. http://.../1007634756/1008067432 - takes you to the new reply 
to your message

and http://.../1007634756/1008067432/cancelNotify - cancels 
notifications to replies for the reply (which you wouldn't get anyway 
if it was posted by smeone else).

As it stands, this only notifies you of replies to the reply, not to the 
original message (which, in the above example, is 1007634756). If 
we delete the second number (the 1008067432) then this URL 
does turn off the 'notify me' option for the original message.

We didn't expect the <dtml-var aq_parent.absolute_url> to work 
(we aren't experts at all in Zope, Squishdot etc.). The 'unslicable 
object' error was as follows:

Zope Error
Zope has encountered an error while publishing this resource.

Error Type: TypeError
Error Value: unsliceable object

--------------------------------------------------------------------------------

Troubleshooting Suggestions

The URL may be incorrect. 
The parameters passed to this resource may be incorrect. 
A resource that this resource relies on may be encountering an 
error. For more detailed information about the error, please refer to 
the HTML source for this page. 

If the error persists please contact the site maintainer. Thank you 
for your patience. 

Traceback (innermost last):
  File /opt/Zope-2.4.3/lib/python/ZPublisher/Publish.py, line 223, in
publish_module
  File /opt/Zope-2.4.3/lib/python/ZPublisher/Publish.py, line 187, in
publish
  File /opt/Zope-2.4.3/lib/python/Zope/__init__.py, line 226, in
zpublisher_exception_hook
  File /opt/Zope-2.4.3/lib/python/ZPublisher/Publish.py, line 171, in
publish
  File /opt/Zope-2.4.3/lib/python/ZPublisher/mapply.py, line 160, in
mapply
    (Object: addPosting)
  File /opt/Zope-2.4.3/lib/python/ZPublisher/Publish.py, line 112, in
call_object
    (Object: addPosting)
  File /opt/Zope-2.4.3/lib/python/Products/Squishdot/Posting.py, 
line 252,
in addPosting
  File /opt/Zope-2.4.3/lib/python/Products/Squishdot/Utility.py, line 
186,
in doAddPosting
  File /opt/Zope-2.4.3/lib/python/Products/Squishdot/Posting.py, 
line 230,
in doNotify
  File /opt/Zope-2.4.3/lib/python/Products/Squishdot/SquishSite.py, 
line
894, in sendEmail
    (Object: allstaff)
  File /opt/Zope-2.4.3/lib/python/zLOG.py, line 213, in LOG
  File /opt/Zope-2.4.3/lib/python/ZLogger/ZLogger.py, line 17, in
log_write
  File /opt/Zope-2.4.3/lib/python/ZLogger/stupidFileLogger.py, line 
99, in
__call__
  File /opt/Zope-2.4.3/lib/python/ZLogger/stupidFileLogger.py, line 
171,
in stupid_log_write TypeError: (see above)

We might just be getting a bit confused about how this is all 
supposed to work, so any help is much appreciated!

Richard H.