Geoff wrote:
>You could write your own abort() method. This is completely untested, but
>you could try something like this. Add this code to your SitePage class:
>
>class AbortTransaction(Exception): pass
>
>class SitePage(Page):
> ...
> def abort(self):
> raise AbortTransaction
>
> def _respond(self):
> try:
> Page._respond(self)
> except AbortTransaction:
> pass
Seems to work once the errors are corrected (you forgot to pass in the
transaction). The method should be:
class SitePage(Page):
...
def abort(self):
raise AbortTransaction
def _respond(self, transaction):
try:
Page._respond(self, transaction)
except AbortTransaction:
pass
...Edmund.
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss