Sorry, that last class should be:
class CustomResponse(TGResponse):
"""TG users can make their own application-specific
Respons logic. For example to make sure that some attribute
always exists. Or to implement some protocol.
If a user would want to prevent 'tg_flash' or other TG
logic to be present in the response, she should inherit
from Respons.
>>> result = CustomResponse()
>>> result.message
>>> result.message = 'nederhoed'
>>> result.message
'nederhoed'
>>> result.code
0
"""
def __init__(self):
"""Initialize application specific data """
TGResponse.__init__(self)
self.message = None
self.code = 0
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---