changeset 2451:ac7f57165c9a

merged main
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 20 Jul 2007 22:53:52 +0200
parents 3d08f1cb4429 (current diff) fa3aca6aacd4 (diff)
children 839b360413a9 7131fda5e82d
files
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/userprefs/suid.py	Fri Jul 20 22:53:30 2007 +0200
+++ b/MoinMoin/userprefs/suid.py	Fri Jul 20 22:53:52 2007 +0200
@@ -12,7 +12,9 @@
 from MoinMoin.widget import html
 from MoinMoin.userprefs import UserPrefBase
 
+
 class Settings(UserPrefBase):
+
     def __init__(self, request):
         """ Initialize setuid settings form. """
         UserPrefBase.__init__(self, request)
@@ -33,11 +35,11 @@
         _ = self._
         form = self.request.form
 
-        if form.has_key('cancel'):
+        if 'cancel' in form:
             return
 
-        if (wikiutil.checkTicket(self.request, self.request.form['ticket'][0]) and
-            self.request.request_method == 'POST'):
+        if (wikiutil.checkTicket(self.request, self.request.form['ticket'][0])
+            and self.request.request_method == 'POST'):
             uid = form.get('selected_user', [''])[0]
             if not uid:
                 return _("No user selected")
@@ -55,7 +57,6 @@
         else:
             return None
 
-
     def _user_select(self):
         options = []
         users = user.getUserList(self.request)