diff options
author | Emmanuel Raviart <eraviart@entrouvert.com> | 2004-08-02 17:26:28 +0000 |
---|---|---|
committer | Emmanuel Raviart <eraviart@entrouvert.com> | 2004-08-02 17:26:28 +0000 |
commit | efac509926916c022171cef2e04303e645127b0d (patch) | |
tree | 909c6e27046b0d00aa6e1dcd860090ac4dd458a1 /python/examples/user.py | |
parent | cc83fab4cff86d62e6ad0cb9661b0463b7e0464d (diff) | |
download | lasso-efac509926916c022171cef2e04303e645127b0d.tar.gz lasso-efac509926916c022171cef2e04303e645127b0d.tar.xz lasso-efac509926916c022171cef2e04303e645127b0d.zip |
Check that Lasso is inited and shotdown only once.
Lasso Python modules now calls init() at first import (I need this
behaviour, because I have several "import lasso" in Expression and I don't
know which one will be called first and I don't want to do something like:
import lasso
if not lasso.inited:
lasso.init()
).
Diffstat (limited to 'python/examples/user.py')
-rw-r--r-- | python/examples/user.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/python/examples/user.py b/python/examples/user.py index f03761b5..0aa641de 100644 --- a/python/examples/user.py +++ b/python/examples/user.py @@ -4,8 +4,6 @@ import sys sys.path.insert(0, '../') import lasso -lasso.init() - lasso_assertions = """<LassoAssertions><LassoAssertion RemoteProviderID="https://service-provider1:2003/liberty-alliance/metadata"><Assertion AssertionID="1234567890"></Assertion></LassoAssertion><LassoAssertion RemoteProviderID="https://service-provider2:2003/liberty-alliance/metadata"><Assertion AssertionID="1234567890"></Assertion></LassoAssertion><LassoAssertion RemoteProviderID="https://service-provider3:2003/liberty-alliance/metadata"><Assertion AssertionID="1234567890"></Assertion></LassoAssertion></LassoAssertions>""" |