summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpython/examples/test.py2
-rwxr-xr-xpython/generator_lasso_strings.py8
2 files changed, 6 insertions, 4 deletions
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<text>.*)\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: