1.1 --- a/WebStack/Generic.py Mon Aug 16 18:13:45 2004 +0000
1.2 +++ b/WebStack/Generic.py Thu Aug 26 20:37:21 2004 +0000
1.3 @@ -367,6 +367,34 @@
1.4
1.5 raise NotImplementedError, "delete_cookie"
1.6
1.7 + # Session-related methods.
1.8 +
1.9 + def get_session(self, create=1):
1.10 +
1.11 + """
1.12 + A framework-specific method which returns a session corresponding to
1.13 + an identifier supplied in the transaction.
1.14 +
1.15 + If no session has yet been established according to information
1.16 + provided in the transaction then the optional 'create' parameter
1.17 + determines whether a new session will be established.
1.18 +
1.19 + Where no session has been established and where 'create' is set to 0
1.20 + then None is returned. In all other cases, a session object is created
1.21 + (where appropriate) and returned.
1.22 + """
1.23 +
1.24 + raise NotImplementedError, "get_session"
1.25 +
1.26 + def expire_session(self):
1.27 +
1.28 + """
1.29 + A framework-specific method which expires any session established
1.30 + according to information provided in the transaction.
1.31 + """
1.32 +
1.33 + raise NotImplementedError, "expire_session"
1.34 +
1.35 # Application-specific methods.
1.36
1.37 def set_user(self, username):