diff options
| author | Joachim Krebs <joachim@jkrebs.com> | 2010-12-29 20:57:00 +0000 |
|---|---|---|
| committer | Joachim Krebs <joachim@jkrebs.com> | 2010-12-29 20:57:00 +0000 |
| commit | ac718c77c3d2b90c87f4f0b369eedff5884a2326 (patch) | |
| tree | a1245118cd429a87b0e20a6eb2296744f828834c | |
| parent | 581a401c26047a6cddb6521393de4030ce0a962a (diff) | |
| download | pyramid-ac718c77c3d2b90c87f4f0b369eedff5884a2326.tar.gz pyramid-ac718c77c3d2b90c87f4f0b369eedff5884a2326.tar.bz2 pyramid-ac718c77c3d2b90c87f4f0b369eedff5884a2326.zip | |
Removed self arguments from new ISession method signatures.
| -rw-r--r-- | CHANGES.txt | 3 | ||||
| -rw-r--r-- | 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 ``<unknown>``. +- 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``. |
