def fileOpen(self): """will open a filehandle to the specific object """ objId = self.context.getObjectId() utilNagios = zapi.getUtility(IAdmUtilGeneratorNagios, '') self.fileName = utilNagios.pathConfigData + u'/Hosts/%s.cfg' % objId ParentGenNagios.fileOpen(self)
def fileOpen(self): """will open a filehandle to the specific object """ objId = self.context.getObjectId() self.fileName = u'/opt/nagios/etc/ict_ok/Services/%s.cfg' % objId ParentGenNagios.fileOpen(self)