diff options
| author | Valery Febvre <vfebvre at easter-eggs.com> | 2004-04-09 16:36:52 +0000 |
|---|---|---|
| committer | Valery Febvre <vfebvre at easter-eggs.com> | 2004-04-09 16:36:52 +0000 |
| commit | 321fbb571cb448f481551f1bad578e3a138f81ad (patch) | |
| tree | 21425ca8c5f69f7af17c43f0a124bd5c184f214b /python | |
| parent | 8ef9025c8f4b8eda9c2726f08af14eee5c48d3ee (diff) | |
| download | lasso-321fbb571cb448f481551f1bad578e3a138f81ad.tar.gz lasso-321fbb571cb448f481551f1bad578e3a138f81ad.tar.xz lasso-321fbb571cb448f481551f1bad578e3a138f81ad.zip | |
*** empty log message ***
Diffstat (limited to 'python')
| -rwxr-xr-x | python/examples/test.py | 2 | ||||
| -rwxr-xr-x | python/generator_lasso_strings.py | 8 |
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: |
