From ac718c77c3d2b90c87f4f0b369eedff5884a2326 Mon Sep 17 00:00:00 2001 From: Joachim Krebs Date: Wed, 29 Dec 2010 20:57:00 +0000 Subject: Removed self arguments from new ISession method signatures. --- CHANGES.txt | 3 +++ pyramid/interfaces.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index e7ecad31a..71c55fd1f 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -9,6 +9,9 @@ Bug Fixes Instead of trying to resolve the view, if it cannot, it will now just print ````. +- The `self` argument was included in new methods of the ISession interface + signature. + Documentation ------------- diff --git a/pyramid/interfaces.py b/pyramid/interfaces.py index 32359ca94..d21976209 100644 --- a/pyramid/interfaces.py +++ b/pyramid/interfaces.py @@ -480,11 +480,11 @@ class ISession(Interface): :meth:`pyramid.interfaces.ISesssion.flash` """ - def new_csrf_token(self): + def new_csrf_token(): """ Create and set into the session a new, random cross-site request forgery protection token. Return the token. It will be a string.""" - def get_csrf_token(self): + def get_csrf_token(): """ Get the CSRF token previously added to the session via ``new_csrf_token``, and return the token. If no CSRF token exists, the value returned will be ``None``. -- cgit v1.2.3