diff options
author | Christoph Helma <helma@in-silico.ch> | 2013-07-16 18:54:25 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2013-07-16 18:54:25 +0200 |
commit | 2feb76632284109b45aba5cdcedf377541acf7ef (patch) | |
tree | b19c3464f07645adca13ae7019785e46cd2cd5c3 | |
parent | 80c1821e3a55b0d9c1ee51537e109dff3bc79423 (diff) |
comments removed
-rw-r--r-- | lib/opentox-client.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/opentox-client.rb b/lib/opentox-client.rb index 8683d0f..7c48d9c 100644 --- a/lib/opentox-client.rb +++ b/lib/opentox-client.rb @@ -53,17 +53,5 @@ FALSE_REGEXP = /^(false|inactive|0|0.0|low tox|deactivating|non-carcinogen|non-m if defined?($aa) and $aa[:uri] OpenTox::RestClientWrapper.subjectid = OpenTox::Authorization.authenticate($aa[:user],$aa[:password]) unauthorized_error "Failed to authenticate user \"#{$aa[:user]}\"." unless OpenTox::Authorization.is_token_valid(OpenTox::RestClientWrapper.subjectid) -#else - #@@subjectid = nil end -=begin -module OpenTox - if defined?($aa) and $aa[:uri] - SUBJECTID = OpenTox::Authorization.authenticate($aa[:user],$aa[:password]) - unauthorized_error "Failed to authenticate user \"#{$aa[:user]}\"." unless OpenTox::Authorization.is_token_valid(SUBJECTID) - else - SUBJECTID = nil - end -end -=end |