git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
trimmed useless imports, unstarred all imports
[sfa.git]
/
sfa
/
methods
/
GetTicket.py
diff --git
a/sfa/methods/GetTicket.py
b/sfa/methods/GetTicket.py
index
812fb08
..
1469693
100644
(file)
--- a/
sfa/methods/GetTicket.py
+++ b/
sfa/methods/GetTicket.py
@@
-1,15
+1,10
@@
-### $Id: get_ticket.py 17732 2010-04-19 21:10:45Z tmack $
-### $URL: https://svn.planet-lab.org/svn/sfa/trunk/sfa/methods/get_ticket.py $
-import time
-from sfa.util.faults import *
from sfa.util.xrn import urn_to_hrn
from sfa.util.method import Method
from sfa.util.parameter import Parameter, Mixed
from sfa.util.xrn import urn_to_hrn
from sfa.util.method import Method
from sfa.util.parameter import Parameter, Mixed
-from sfa.trust.auth import Auth
-from sfa.util.config import Config
-from sfa.trust.credential import Credential
from sfa.util.sfatablesRuntime import run_sfatables
from sfa.util.sfatablesRuntime import run_sfatables
+from sfa.trust.credential import Credential
+
class GetTicket(Method):
"""
Retrieve a ticket. This operation is currently implemented on PLC
class GetTicket(Method):
"""
Retrieve a ticket. This operation is currently implemented on PLC
@@
-37,7
+32,7
@@
class GetTicket(Method):
Parameter(type([]), "List of user information")
]
Parameter(type([]), "List of user information")
]
- returns = Parameter(str, "String represen
e
ation of a ticket object")
+ returns = Parameter(str, "String represen
t
ation of a ticket object")
def call(self, xrn, creds, rspec, users):
hrn, type = urn_to_hrn(xrn)
def call(self, xrn, creds, rspec, users):
hrn, type = urn_to_hrn(xrn)
@@
-50,7
+45,7
@@
class GetTicket(Method):
manager = self.api.get_interface_manager()
manager = self.api.get_interface_manager()
- # flter rspec through sfatables
+ # f
i
lter rspec through sfatables
if self.api.interface in ['aggregate']:
chain_name = 'OUTGOING'
elif self.api.interface in ['slicemgr']:
if self.api.interface in ['aggregate']:
chain_name = 'OUTGOING'
elif self.api.interface in ['slicemgr']: