From 321fbb571cb448f481551f1bad578e3a138f81ad Mon Sep 17 00:00:00 2001 From: Valery Febvre Date: Fri, 9 Apr 2004 16:36:52 +0000 Subject: *** empty log message *** --- python/examples/test.py | 2 +- python/generator_lasso_strings.py | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'python') diff --git a/python/examples/test.py b/python/examples/test.py index b5bf8816..d3df943d 100755 --- a/python/examples/test.py +++ b/python/examples/test.py @@ -14,7 +14,7 @@ req = lasso.AuthnRequest("providerid.com", "3", ["test"], None, - lasso.LibAuthnContextComparisonExact, # None + lasso.libAuthnContextComparisonExact, # None "encoded_RelayState", # None 0, None, diff --git a/python/generator_lasso_strings.py b/python/generator_lasso_strings.py index e00afdfd..f177910a 100755 --- a/python/generator_lasso_strings.py +++ b/python/generator_lasso_strings.py @@ -24,7 +24,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -import re, sys +import re, sys, string MATCH_BLANK = re.compile(r'^\s*\n$') MATCH_COMMENT = re.compile(r'^[ /]+(?P.*)\n$') @@ -66,8 +66,10 @@ line = fd_in.readline() while line: match = MATCH_CONST.search(line) if match: - fd_out.write("%s = %s\n" % (match.group('name')[5:], - match.group('value')[:-1])) + name = match.group('name')[5:] + name = string.lower(name[0]) + name[1:] + value = match.group('value')[:-1] + fd_out.write("%s = %s\n" % (name, value)) else: match = MATCH_COMMENT.search(line) if match: -- cgit