from PLC.SliceAttributes import SliceAttribute, SliceAttributes
from PLC.Slices import Slice, Slices
-import xmlrpclib
-from PLC.PyCurl import PyCurlTransport
-from PLC.GPG import gpg_sign
-
class Peer(Row):
"""
Stores the list of peering PLCs in the peers table.
Connect to this peer via XML-RPC.
"""
+ import xmlrpclib
+ from PLC.PyCurl import PyCurlTransport
self.server = xmlrpclib.ServerProxy(self['peer_url'],
PyCurlTransport(self['peer_url'], self['cacert']),
allow_none = 1, **kwds)
"""
def wrapper(*args, **kwds):
+ from PLC.GPG import gpg_sign
signature = gpg_sign(methodname, args,
self.api.config.PLC_ROOT_GPG_KEY,
self.api.config.PLC_ROOT_GPG_KEY_PUB)