summaryrefslogtreecommitdiff
path: root/cherrypy/lib
diff options
context:
space:
mode:
authorRobert Brewer <fumanchu@aminus.org>2005-07-14 17:07:56 +0000
committerRobert Brewer <fumanchu@aminus.org>2005-07-14 17:07:56 +0000
commit2ecc10fd7ffd18592f549a29333ead15ae61a32f (patch)
tree8f55bb543cf74be0dee641b25f7e556d2720e952 /cherrypy/lib
parent8f6c4a4a18efdbf4f1fc21c05c7288e303431552 (diff)
downloadcherrypy-git-2ecc10fd7ffd18592f549a29333ead15ae61a32f.tar.gz
Fixes for ticket #226.
Diffstat (limited to 'cherrypy/lib')
-rw-r--r--cherrypy/lib/cptools.py8
-rw-r--r--cherrypy/lib/csauthenticate.py4
2 files changed, 6 insertions, 6 deletions
diff --git a/cherrypy/lib/cptools.py b/cherrypy/lib/cptools.py
index 6875ced7..b38b4289 100644
--- a/cherrypy/lib/cptools.py
+++ b/cherrypy/lib/cptools.py
@@ -29,8 +29,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""
Just a few convenient functions and classes
"""
-
-import cherrypy
+
+import cherrypy
import inspect
@@ -103,8 +103,8 @@ class PositionalParametersAware(object):
if len(args) == 0:
args = ("index",)
if hasattr( self, args[ 0 ] ):
- return getattr( self, args[ 0 ] )( *args[ 1: ], **kwargs )
- else:
+ return getattr( self, args[ 0 ] )( *args[ 1: ], **kwargs )
+ else:
raise cherrypy.NotFound, cherrypy.request.path
default.exposed = True
\ No newline at end of file
diff --git a/cherrypy/lib/csauthenticate.py b/cherrypy/lib/csauthenticate.py
index 63a7b569..233f3184 100644
--- a/cherrypy/lib/csauthenticate.py
+++ b/cherrypy/lib/csauthenticate.py
@@ -117,8 +117,8 @@ class CSAuthenticate(Aspect):
def doLogout(self):
try:
- sessionId = request.simpleCookie[self.sessionIdCookieName].value
- del request.sessionMap[sessionId]
+ sessionId = cherrypy.request.simpleCookie[self.sessionIdCookieName].value
+ del cherrypy.request.sessionMap[sessionId]
except: pass
cherrypy.response.simpleCookie[self.sessionIdCookieName] = ""