File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -58,21 +58,6 @@ def construct_came_from(environ):
58
58
came_from += '?' + qstr
59
59
return came_from
60
60
61
-
62
- def cgi_field_storage_to_dict (field_storage ):
63
- """Get a plain dictionary, rather than the '.value' system used by the
64
- cgi module."""
65
-
66
- params = {}
67
- for key in field_storage .keys ():
68
- try :
69
- params [key ] = field_storage [key ].value
70
- except AttributeError :
71
- if isinstance (field_storage [key ], basestring ):
72
- params [key ] = field_storage [key ]
73
-
74
- return params
75
-
76
61
def exception_trace (tag , exc , log ):
77
62
message = traceback .format_exception (* sys .exc_info ())
78
63
log .error ("[%s] ExcList: %s" % (tag , "" .join (message ),))
@@ -530,7 +515,7 @@ def identify(self, environ):
530
515
return {}
531
516
else :
532
517
session_info = self ._eval_authn_response (
533
- environ , cgi_field_storage_to_dict ( post ) ,
518
+ environ , post ,
534
519
binding = binding )
535
520
except Exception , err :
536
521
environ ["s2repoze.saml_error" ] = err
You can’t perform that action at this time.
0 commit comments