def __init__(self, name=None): if name is None: name = 'journald' TCPService.__init__(self, name) # the remote request marshaller self.marshaller = None self._counter = 0 return
def _init(self): TCPService._init(self) # register the routine that stores counter when we exit import atexit atexit.register(self._storeGeneratorParameters) # prime the counter self.initialize() return
def _configure(self): TCPService._configure(self) self.tid = self.inventory.tid self.date = self.inventory.date self.locator = self.inventory.locator self.marshaller = self.inventory.marshaller if self.inventory.configfile is not None: self.configfile = self.inventory.configfile return
def generateClientConfiguration(self, registry): import pyre.parsing.locators locator = pyre.parsing.locators.simple('service') # get the inheriter settings TCPService.generateClientConfiguration(self, registry) # record the marshaller key # FIXME: generalize this to other picklers, like idd and ipa self.marshaller.generateClientConfiguration(registry) return
def __init__(self, name=None): if name is None: name = "ipa" TCPService.__init__(self, name) # the user manager self.userManager = None # private data self._tickets = {} return
def generateClientConfiguration(self, registry): """update the given registry node with sufficient information to grant access to clients""" import pyre.parsing.locators locator = pyre.parsing.locators.simple('service') # get the inherited settings TCPService.generateClientConfiguration(self, registry) # record the marshaller name registry.setProperty('marshaller', self.marshaller.name, locator) # get the marshaller to record his configuration marshaller = registry.getNode(self.marshaller.name) self.marshaller.generateClientConfiguration(marshaller) return
def __init__(self, name=None): if name is None: name = 'idd' TCPService.__init__(self, name) self.tid = 0 self.date = "" # the filename that holds the persistent copy of the locator generators self.configfile = self.name + '-config.pml' # the codec for record locators self.locator = None # private data self._reload = True return
def _configure(self): TCPService._configure(self) self.marshaller = self.inventory.marshaller self.userManager = self.inventory.userManager return