1.1 --- a/WebStack/Helpers/Request.py Fri Mar 20 22:45:11 2009 +0100
1.2 +++ b/WebStack/Helpers/Request.py Sat Mar 21 00:34:24 2009 +0100
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Request helper classes.
1.6
1.7 -Copyright (C) 2004, 2005, 2006, 2007, 2008 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This library is free software; you can redistribute it and/or
1.11 modify it under the terms of the GNU Lesser General Public
1.12 @@ -277,7 +277,8 @@
1.13 elif name == "filename":
1.14 try:
1.15 content_disposition = self.headers["Content-Disposition"]
1.16 - return content_disposition.filename
1.17 + # NOTE: Always seem to need to remove quotes.
1.18 + return content_disposition.filename[1:-1]
1.19 except (KeyError, AttributeError):
1.20 return None
1.21
2.1 --- a/WebStack/Repositories/Directory.py Fri Mar 20 22:45:11 2009 +0100
2.2 +++ b/WebStack/Repositories/Directory.py Sat Mar 21 00:34:24 2009 +0100
2.3 @@ -3,7 +3,7 @@
2.4 """
2.5 Directory repositories for WebStack.
2.6
2.7 -Copyright (C) 2005, 2006, 2007 Paul Boddie <paul@boddie.org.uk>
2.8 +Copyright (C) 2005, 2006, 2007, 2009 Paul Boddie <paul@boddie.org.uk>
2.9
2.10 This library is free software; you can redistribute it and/or
2.11 modify it under the terms of the GNU Lesser General Public
2.12 @@ -73,6 +73,12 @@
2.13 else:
2.14 self.fsencoding = fsencoding or 'ascii'
2.15
2.16 + def rollback(self):
2.17 +
2.18 + "A method used by the StoreSelector."
2.19 +
2.20 + pass
2.21 +
2.22 def _convert_name(self, name):
2.23
2.24 "Convert the given 'name' to a plain string in the filesystem encoding."