changeset 266:1fb19804a4b9

removed some debug code imported from: moin--main--1.5--patch-269
author Thomas Waldmann <tw@waldmann-edv.de>
date Fri, 02 Dec 2005 10:19:45 +0000
parents 2cbc7dc436d7
children 0dbc8b79a810
files MoinMoin/user.py MoinMoin/userform.py
diffstat 2 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/user.py	Fri Dec 02 00:39:02 2005 +0000
+++ b/MoinMoin/user.py	Fri Dec 02 10:19:45 2005 +0000
@@ -214,9 +214,6 @@
         self.auth_username = auth_username
         self.auth_method = kw.get('auth_method', 'internal')
         self.auth_attribs = kw.get('auth_attribs', ())
-        if self.auth_method == 'internal':
-            import sys, traceback
-            traceback.print_stack(limit=4, file=sys.stderr)
                                        
         # create some vars automatically
         for tuple in self._cfg.user_form_fields:
@@ -228,7 +225,7 @@
             self.name = name
         elif auth_username: # this is needed for user_autocreate
             self.name = auth_username
-            
+
         # create checkbox fields (with default 0)
         for key, label in self._cfg.user_checkbox_fields:
             setattr(self, key, self._cfg.user_checkbox_defaults.get(key, 0))
--- a/MoinMoin/userform.py	Fri Dec 02 00:39:02 2005 +0000
+++ b/MoinMoin/userform.py	Fri Dec 02 10:19:45 2005 +0000
@@ -351,7 +351,7 @@
             theuser.save()            
             self.request.user = theuser
 
-            if 1: # theuser.auth_method == 'moin_cookie': # XXX
+            if theuser.auth_method == 'moin_cookie':
                 self.request.setCookie()
 
             result = _("User preferences saved!")