# HG changeset patch # User paulb # Date 1124390390 0 # Node ID 9cda909b55fecffb65ae1f41ac4d4402ceda9f8b # Parent 87e93f9ccc7ad1436c13a7caed3b5da2d092d3cc [project @ 2005-08-18 18:39:47 by paulb] Added automatic session directory creation in WebStack.Helpers.Session. diff -r 87e93f9ccc7a -r 9cda909b55fe README.txt --- a/README.txt Tue Aug 16 17:54:33 2005 +0000 +++ b/README.txt Thu Aug 18 18:39:50 2005 +0000 @@ -56,6 +56,8 @@ ------------------------------------------------- Added Debian package support. +Added automatic session directory creation for the WebStack sessions +implementation. New in WebStack 0.10 (Changes since WebStack 0.9) ------------------------------------------------- diff -r 87e93f9ccc7a -r 9cda909b55fe WebStack/Helpers/Session.py --- a/WebStack/Helpers/Session.py Tue Aug 16 17:54:33 2005 +0000 +++ b/WebStack/Helpers/Session.py Thu Aug 18 18:39:50 2005 +0000 @@ -57,6 +57,11 @@ self.store_filename, self.edit_filename = None, None self.to_expire = None + # Attempt to create a session directory if it does not exist. + + if not os.path.exists(self.session_directory): + os.mkdir(self.session_directory) + def close(self): "Close the store, tidying up files and filenames."