1.1 --- a/WebStack/Generic.py Fri Jun 20 22:20:19 2008 +0200
1.2 +++ b/WebStack/Generic.py Thu Jan 29 23:42:25 2004 +0000
1.3 @@ -2,6 +2,17 @@
1.4
1.5 """
1.6 Generic Web framework interfaces.
1.7 +The WebStack architecture consists of the following layers:
1.8 +
1.9 + * Framework - The underlying Web framework implementation.
1.10 + * Adapter - Code operating under the particular framework which creates
1.11 + WebStack abstractions and issues them to the application.
1.12 + * Resources - Units of functionality operating within the hosted Web
1.13 + application.
1.14 +
1.15 +Resources can act as both content producers within an application and as request
1.16 +dispatchers to other resources; in the latter role, they may be referred to as
1.17 +directors.
1.18 """
1.19
1.20 class ContentType:
1.21 @@ -163,6 +174,13 @@
1.22
1.23 "A generic resource interface."
1.24
1.25 - pass
1.26 + def respond(self, trans):
1.27 +
1.28 + """
1.29 + An application-specific method which performs activities on the basis of
1.30 + the transaction object 'trans'.
1.31 + """
1.32 +
1.33 + raise NotImplementedError, "respond"
1.34
1.35 # vim: tabstop=4 expandtab shiftwidth=4