diff options
author | Nicolas Clapies <nclapies@entrouvert.com> | 2004-07-26 23:45:58 +0000 |
---|---|---|
committer | Nicolas Clapies <nclapies@entrouvert.com> | 2004-07-26 23:45:58 +0000 |
commit | 73fd0e85c53a11df3267ca7946e25530f8f6be8d (patch) | |
tree | 33e4661f6d27366b62d9a25ee2f4d70d56062b13 /python/examples/user.py | |
parent | db051a1a73684708d47ede1acefdaeff0cf99120 (diff) | |
download | lasso-73fd0e85c53a11df3267ca7946e25530f8f6be8d.tar.gz lasso-73fd0e85c53a11df3267ca7946e25530f8f6be8d.tar.xz lasso-73fd0e85c53a11df3267ca7946e25530f8f6be8d.zip |
fix a bug in python binding user_add_assertion : give obj of python assertion, add a copy of assertion in lasso_add_assertion ( not sure, but assertion should be copied )
Diffstat (limited to 'python/examples/user.py')
-rw-r--r-- | python/examples/user.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/python/examples/user.py b/python/examples/user.py index 6fd5de1a..f03761b5 100644 --- a/python/examples/user.py +++ b/python/examples/user.py @@ -34,8 +34,16 @@ print "Dump of user environ :" print user.dump() user2 = lasso.User.new_from_dump(user.dump()); +print 'user2 dump 1' +print user2.dump() assertion = lasso.Assertion("http://nowhere.com", "CD8CS7C6CS6CD6C6SC6SSDC6CS6D") + +print 'user dump 1' +print user.dump() + user.add_assertion("https://service-provider1:2003/liberty-alliance/metadata", assertion) +print user.dump() + user.destroy() |