from osmclient.sol005 import user as usermodule
from osmclient.sol005 import role
from osmclient.sol005 import pdud
from osmclient.sol005 import user as usermodule
from osmclient.sol005 import role
from osmclient.sol005 import pdud
self.user = usermodule.User(self._http_client, client=self)
self.role = role.Role(self._http_client, client=self)
self.pdu = pdud.Pdu(self._http_client, client=self)
self.user = usermodule.User(self._http_client, client=self)
self.role = role.Role(self._http_client, client=self)
self.pdu = pdud.Pdu(self._http_client, client=self)
'''
self.vca = vca.Vca(http_client, client=self, **kwargs)
self.utils = utils.Utils(http_client, **kwargs)
'''
def get_token(self):
'''
self.vca = vca.Vca(http_client, client=self, **kwargs)
self.utils = utils.Utils(http_client, **kwargs)
'''
def get_token(self):
if self._token is None:
postfields_dict = {'username': self._user,
'password': self._password,
if self._token is None:
postfields_dict = {'username': self._user,
'password': self._password,
http_header = ['{}: {}'.format(key, val)
for (key, val) in list(self._headers.items())]
self._http_client.set_http_header(http_header)
http_header = ['{}: {}'.format(key, val)
for (key, val) in list(self._headers.items())]
self._http_client.set_http_header(http_header)