diff options
author | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2013-05-19 01:14:46 +0200 |
---|---|---|
committer | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2013-05-20 19:35:16 +0200 |
commit | d6c3375a781efd13a185b67e0f084c460c1e3cc6 (patch) | |
tree | 25fce9ce18b08bb219091bfe55f0b1043ba9b504 /mediagoblin/plugins | |
parent | 1b6a2b85e11b18a6cdb69f23b6100f803ba7ac5b (diff) | |
download | mediagoblin-d6c3375a781efd13a185b67e0f084c460c1e3cc6.tar.lz mediagoblin-d6c3375a781efd13a185b67e0f084c460c1e3cc6.tar.xz mediagoblin-d6c3375a781efd13a185b67e0f084c460c1e3cc6.zip |
A bit of pep8 and small typo fix.
Diffstat (limited to 'mediagoblin/plugins')
-rw-r--r-- | mediagoblin/plugins/piwigo/tools.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/plugins/piwigo/tools.py b/mediagoblin/plugins/piwigo/tools.py index 400be615..f060e9f8 100644 --- a/mediagoblin/plugins/piwigo/tools.py +++ b/mediagoblin/plugins/piwigo/tools.py @@ -113,7 +113,7 @@ def check_form(form): if not form.validate(): _log.error("form validation failed for form %r", form) for f in form: - if len(f.error): + if len(f.errors): _log.error("Errors for %s: %r", f.name, f.errors) raise BadRequest() dump = [] @@ -140,7 +140,7 @@ class PWGSession(object): self.in_pwg_session = True return self - def __exit__(self, *args): + def __exit__(self, *args): # Restore state self.request.session = self.old_session self.request.user = self.old_user |