We've been busy customising Squishdot, and we are currently looking at the emails sent out to posters of articles. As it stands, Squishdot sends an email to the poster when a reply to their message has been posted (assuming that they have enabled the option in the AddPosting form to receive such email notifications). At the foot of the email is a link to an option to turn off notifications for further messages relating to the reply. However, what we want is for an option to turn off the notification for replies to the original message, not the replies. <dtml-var absolute_url> is for the reply. How can we tell it to do this for the original message? We tried <dtml_var aq_parent.absolute_url> and that came up with an 'unslicable object' error. Thanks in advance,
Hi Rich, Firtsup, posting in HTML is a bad idea, I almost didn't get your message. It's only 'cos I'm tweaking my procmail rules that the message ended up in a folder rather than being bounced ;-)
At the foot of the email is a link to an option to turn off notifications for further messages relating to the reply.
Hmmm... I don't think that was the intention :-S Can anyone else backup this observation? I wonder if it's maybe this issue: http://sourceforge.net/tracker/?func=detail&aid=454783&group_id=1083&atid=10...
However, what we want is for an option to turn off the notification for replies to the original message, not the replies.
I think _that_ was the intention...
<dtml-var absolute_url> is for the reply. How can we tell it to do this for the original message? We tried <dtml_var aq_parent.absolute_url> and that came up with an 'unslicable object' error.
Can you post the rest of the error and the traceback (please not in HTML!) cheers, Chris PS: I'll follow up on any replies to this _only_ on the Squishdot list...
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.
participants (2)
-
Chris Withers -
Richard Hewison