Ejemplo n.º 1
0
 def remove(self, app, junk):
     self._removeMenu('Database')
     self._removeMenu('DBSrvInst')
     ZenPackBase.remove(self, app, junk)
     OperatingSystem._relations = tuple([x for x in OperatingSystem._relations if x[0] not in ('softwaredatabases','softwaredbsrvinstances')])
     for d in self.dmd.Devices.getSubDevices():
         d.os.buildRelations()
Ejemplo n.º 2
0
    def remove(self, app, leaveObjects=False):
        # Delete only suborganizer /Storage/Qsan
        if hasattr(app.zport.dmd.Devices, 'Storage') and \
            hasattr(app.zport.dmd.Devices.Storage, 'Qsan'):
                app.zport.dmd.Devices.manage_deleteOrganizer('/Storage/Qsan')

        ZenPackBase.remove(self, app, leaveObjects)
Ejemplo n.º 3
0
    def remove(self, app, leaveObjects=False):
        """
        Remove the ZenPack from Zenoss
        """
        # NB: As of Zenoss 2.2, this function now takes three arguments.
        ZenPackBase.remove(self, app, leaveObjects)
        zpm = app.zport.ZenPortletManager
        zpm.unregister_portlet('BBCAppPortlet')
        zpm.unregister_portlet('BBCDevicesPortlet')
        zpm.unregister_portlet('ZDaemonsPorlet')
        #self._unregisterDaemon()

        # restore original template for editCollection
        template = os.path.join(os.environ['ZENHOME'], 'Products', "ZenModel",
                                "skins", "zenmodel", "editCollection.pt")
        backup = os.path.join(os.environ['ZENHOME'], 'Products', "ZenModel",
                              "skins", "zenmodel", "editCollection.backup")
        try:
            if os.access(template, os.F_OK) and os.access(backup, os.F_OK):
                for attempts in range(3):
                    try:
                        os.rename(backup, template)
                        break
                    except:
                        time.sleep(1)
        except Exception, e:
            sys.stdout.write(
                "Failed to restore editCollection.pt from backup: %s" % e)
            pass
Ejemplo n.º 4
0
 def remove(self, app, leaveObjects=False):
     for dcp in self.dcProperties.keys():
         try:
             dc = app.zport.dmd.Devices.getOrganizer(dcp)
             dc._delProperty('zCollectorPlugins')
         except: continue
     ZenPackBase.remove(self, app, leaveObjects)
Ejemplo n.º 5
0
 def remove(self, app, junk):
     ZenPackBase.remove(self, app, junk)
     if hasattr(self.dmd.zenMenus, "Database"):
         self.dmd.zenMenus._delObject("Database")
     OperatingSystem._relations = tuple([x for x in OperatingSystem._relations if x[0] != "softwaredatabases"])
     for d in self.dmd.Devices.getSubDevices():
         d.os.buildRelations()
 def remove(self, app, leaveObjects=False):
     try:
         co = app.zport.dmd.Devices.getOrganizer('Server/OpenBSD')
         co._delProperty('zCollectorPlugins')
     except KeyError:
         pass
     ZenPackBase.remove(self, app, leaveObjects)
Ejemplo n.º 7
0
 def remove(self, app, junk):
     ZenPackBase.remove(self, app, junk)
     OperatingSystem._relations = tuple(
         [x for x in OperatingSystem._relations
         if x[0] not in ['lldplinks', ]])
     for d in self.dmd.Devices.getSubDevices():
         d.os.buildRelations()
 def remove(self, app, junk):
     self._cleanupOurPlugins(app.zport.dmd)
     ZenPackBase.remove(self, app, junk)
     DeviceHW._relations = tuple(
         [x for x in DeviceHW._relations if x[0] not in [
             'smartes',
         ]])
     self._buildRelations()
Ejemplo n.º 9
0
 def remove(self, app, leaveObjects=False ):
     """
     Remove the ZenPack from Zenoss
     """
     # NB: As of Zenoss 2.2, this function now takes three arguments.
     ZenPackBase.remove(self, app, leaveObjects)
     zpm = app.zport.ZenPortletManager
     zpm.unregister_portlet('myDeviceIssuesPortlet')
 def remove(self, app, leaveObjects=False):
     for dcp in self.dcProperties.keys():
         try:
             dc = app.zport.dmd.Devices.getOrganizer(dcp)
             dc._delProperty('zCollectorPlugins')
         except:
             continue
     ZenPackBase.remove(self, app, leaveObjects)
 def remove(self, app, leaveObjects=False):
     self.replaceString(zenPath('bin/zenoss'), '	C="$C zenrender"',
                        '	#C="$C zenrender"')
     if os.path.exists(zenPath('etc/DAEMONS_TXT_ONLY')) and os.path.exists(
             zenPath('etc/daemons.txt')):
         self.replaceString(zenPath('etc/daemons.txt'), 'zenrender', '')
     self.removeMenuItems(app.zport.dmd)
     ZenPackBase.remove(self, app, leaveObjects)
Ejemplo n.º 12
0
 def remove(self, app, leaveObjects=False):
     """
     Remove the ZenPack from Zenoss
     """
     # NB: As of Zenoss 2.2, this function now takes three arguments.
     ZenPackBase.remove(self, app, leaveObjects)
     zpm = app.zport.ZenPortletManager
     zpm.unregister_portlet('FavoriteReportsPortlet')
Ejemplo n.º 13
0
 def remove(self, app, junk):
     ZenPackBase.remove(self, app, junk)
     DeviceHW._relations = tuple([
         x for x in DeviceHW._relations
         if x[0] not in ['memorymodules', 'logicaldisks']
     ])
     for d in self.dmd.Devices.getSubDevices():
         d.hw.buildRelations()
Ejemplo n.º 14
0
 def remove(self, app, junk):
     ZenPackBase.remove(self, app, junk)
     OperatingSystem._relations = tuple([
         x for x in OperatingSystem._relations if x[0] not in [
             'lldplinks',
         ]
     ])
     for d in self.dmd.Devices.getSubDevices():
         d.os.buildRelations()
 def remove(self, app, leaveObjects=False):
     pct = app.zport.dmd.Monitors.rrdTemplates.PerformanceConf
     for gdn, dpn, stacked, format in self._gdmap:
         gd = getattr(pct.graphDefs, gdn, None)
         if not gd: continue
         gd.manage_deleteGraphPoints(['zenperfsql'])
     if hasattr(pct.datasources, 'zenperfsql'):
         pct.manage_deleteRRDDataSources(['zenperfsql'])
     ZenPackBase.remove(self, app, leaveObjects)
Ejemplo n.º 16
0
 def remove(self, app, leaveObjects=False):
     pct = app.zport.dmd.Monitors.rrdTemplates.PerformanceConf
     for gdn, dpn, stacked, format in self._gdmap:
         gd = getattr(pct.graphDefs, gdn, None)
         if not gd: continue
         gd.manage_deleteGraphPoints(['zenperfsql'])
     if hasattr(pct.datasources, 'zenperfsql'):
         pct.manage_deleteRRDDataSources(['zenperfsql'])
     ZenPackBase.remove(self, app, leaveObjects)
 def remove(self, app, junk):
     ZenPackBase.remove(self, app, junk)
     if hasattr(self.dmd.Reports, 'Device Reports'):
         devReports = self.dmd.Reports['Device Reports']
         if hasattr(devReports, 'Snmp Reports'):
             devReports._delObject('Snmp Reports')
     OperatingSystem._relations = tuple([x for x in OperatingSystem._relations if x[0] not in ['snmpCommand']])
     for d in self.dmd.Devices.getSubDevices():
         d.os.buildRelations()
Ejemplo n.º 18
0
 def remove(self, app, leaveObjects=False):
     if not leaveObjects:
         log.info(
             'Removing icon from $ZENHOME/Products/ZenWidgets/skins/zenui/img/icons'
         )
         os.system('rm -f %s' %
                   (zenPath('Products/ZenWidgets/skins/zenui/img/icons',
                            'server-vmware.png')))
     ZenPackBase.remove(self, app, leaveObjects)
Ejemplo n.º 19
0
 def remove(self, app, junk):
     self._removeMenu('Database')
     self._removeMenu('DBSrvInst')
     ZenPackBase.remove(self, app, junk)
     OperatingSystem._relations = tuple([
         x for x in OperatingSystem._relations
         if x[0] not in ('softwaredatabases', 'softwaredbsrvinstances')
     ])
     for d in self.dmd.Devices.getSubDevices():
         d.os.buildRelations()
Ejemplo n.º 20
0
 def remove(self, app, junk):
     ZenPackBase.remove(self, app, junk)
     OperatingSystem._relations = tuple([
         x for x in OperatingSystem._relations if x[0] not in [
             'diskstat', 'dnslookup', 'apachestatus', 'commandstatus',
             'webservice', 'pingstatus', 'subagentshell'
         ]
     ])
     for d in self.dmd.Devices.getSubDevices():
         d.os.buildRelations()
Ejemplo n.º 21
0
    def remove( self, app, leaveObjects=False):
    #
    # On ZenPack remove, delete role ZenOperator 
    #
        self.removeZenOperatorRole(app.zport)
    #
    # Remove ZenCommon role
    #
        self.removeZenCommonRole(app.zport)

        ZenPackBase.remove( self, app, leaveObjects=False )
Ejemplo n.º 22
0
 def remove(self, app, leaveObjects=False):
     dc = app.zport.dmd.Devices.getOrganizer('Network/Router/Cisco')
     cpl = list(getattr(dc, 'zCollectorPlugins'))
     for plugin in self.newplugins:
         if plugin in cpl: cpl.remove(plugin)
     dc.zCollectorPlugins = list(cpl)
     ZenPackBase.remove(self, app, leaveObjects)
     if hasattr(self.dmd.Reports, 'Device Reports'):
         devReports = self.dmd.Reports['Device Reports']
         if hasattr(devReports, 'Cisco Reports'):
             devReports._delObject('Cisco Reports')
Ejemplo n.º 23
0
 def remove(self, app, leaveObjects=False):
     dc = app.zport.dmd.Devices.getOrganizer('Network/Router/Cisco')
     cpl = list(getattr(dc, 'zCollectorPlugins'))
     for plugin in self.newplugins:
         if plugin in cpl: cpl.remove(plugin)
     dc.zCollectorPlugins = list(cpl)
     ZenPackBase.remove(self, app, leaveObjects)
     if hasattr(self.dmd.Reports, 'Device Reports'):
         devReports = self.dmd.Reports['Device Reports']
         if hasattr(devReports, 'Cisco Reports'):
             devReports._delObject('Cisco Reports')
Ejemplo n.º 24
0
 def remove(self, app, junk):
     """
     Delete the top-level menu.
     """
     ZenPackBase.remove(self, app, junk)
     if hasattr(self.dmd.zenMenus, 'MessageQueues'):
         self.dmd.zenMenus._delObject('MessageQueues')
     OperatingSystem._relations = tuple(
         [x for x in OperatingSystem._relations if x[0] != 'msmq'])
     for d in self.dmd.Devices.getSubDevices():
         d.os.buildRelations()
Ejemplo n.º 25
0
 def remove(self, app, junk):
     """
     Delete the top-level menu.
     """
     ZenPackBase.remove(self, app, junk)
     if hasattr(self.dmd.zenMenus, 'MessageQueues'):
         self.dmd.zenMenus._delObject('MessageQueues')
     OperatingSystem._relations = tuple([x for x in
                                         OperatingSystem._relations if x[0]
                                         != 'msmq'])
     for d in self.dmd.Devices.getSubDevices():
         d.os.buildRelations()
Ejemplo n.º 26
0
 def remove(self, app, leaveObjects=False):
     for dcp in self.dcProperties.keys():
         try:
             dc = app.zport.dmd.Devices.getOrganizer(dcp)
             dc._delProperty('zCollectorPlugins')
             dc._delProperty('zPythonClass')
             dc._delProperty('zSnmpMonitorIgnore')
         except: continue
     ZenPackBase.remove(self, app, leaveObjects)
     if hasattr(self.dmd.Reports, 'Device Reports'):
         devReports = self.dmd.Reports['Device Reports']
         if hasattr(devReports, 'SMI-S Reports'):
             devReports._delObject('SMI-S Reports')
Ejemplo n.º 27
0
 def remove(self, app, leaveObjects=False):
     """
     Remove the collector plugins.
     """
     ZenPackBase.remove(self, app, leaveObjects)
     if not leaveObjects:
         try:
             # Using findChild here to avoid finding /Server/Linux
             # accidentally via acquisition.
             linux = app.dmd.findChild('Devices/Server/SSH/Linux')
             linux.zCollectorPlugins = []
         except AttributeError:
             # No /Server/SSH/Linux device class to remove.
             pass
 def remove(self, app, leaveObjects=False):
     """
     Remove the collector plugins.
     """
     ZenPackBase.remove(self, app, leaveObjects)
     if not leaveObjects:
         try:
             # Using findChild here to avoid finding /Server/Linux
             # accidentally via acquisition.
             linux = app.dmd.findChild('Devices/Server/SSH/Linux')
             linux.zCollectorPlugins = []
         except AttributeError:
             # No /Server/SSH/Linux device class to remove.
             pass
Ejemplo n.º 29
0
 def remove(self, app, leaveObjects=False):
     for dcp in self.dcProperties.keys():
         try:
             dc = app.zport.dmd.Devices.getOrganizer(dcp)
             dc._delProperty('zCollectorPlugins')
             dc._delProperty('zPythonClass')
             dc._delProperty('zSnmpMonitorIgnore')
             dc._delProperty('zWbemMonitorIgnore')
         except:
             continue
     ZenPackBase.remove(self, app, leaveObjects)
     if hasattr(self.dmd.Reports, 'Device Reports'):
         devReports = self.dmd.Reports['Device Reports']
         if hasattr(devReports, 'HP EVA Reports'):
             devReports._delObject('HP EVA Reports')
Ejemplo n.º 30
0
    def remove(self, app, leaveObjects=False):

        # Remove the symlink to the bot daemon
        cdSymLink = zenPath('bin', 'xmppBot')
        if os.path.exists(cdSymLink):
            os.remove(cdSymLink)

        # call parent zenpack uninstall function
        ZenPackBase.remove(self, app, leaveObjects)

        # remove JabberID user propery
        for user in self.dmd.ZenUsers.getAllUserSettings():
            if user.hasProperty('JabberId'):
                user.manage_delProperty('JabberId')
        transaction.commit()
Ejemplo n.º 31
0
    def remove(self, app, leaveObjects=False):

        # Remove the symlink to the bot daemon
        cdSymLink = zenPath('bin', 'xmppBot')
        if os.path.exists(cdSymLink):
            os.remove(cdSymLink)

        # call parent zenpack uninstall function
        ZenPackBase.remove(self, app, leaveObjects)

        # remove JabberID user propery
        for user in self.dmd.ZenUsers.getAllUserSettings():
            if user.hasProperty('JabberId'):
                user.manage_delProperty('JabberId')
        transaction.commit()
Ejemplo n.º 32
0
    def remove(self, app, leaveObjects=False):
        """
        Remove the collector plugins.
        """
        ZenPackBase.remove(self, app, leaveObjects)
        mandriva = findMandriva(app.dmd)
        if not leaveObjects:
            newlist = []
            for plugin in mandriva.zCollectorPlugins:
                if plugin == "zenoss.cmd.linux.mandriva_rpm":
                    pass
                elif plugin == "zenoss.cmd.linux.mandriva_uname_a":
                    newlist.append("zenoss.cmd.uname_a")
                else:
                    newlist.append(plugin)

            mandriva.zCollectorPlugins = newlist
Ejemplo n.º 33
0
    def remove(self, app, leaveObjects=False):
        """
        Remove the collector plugins.
        """
        ZenPackBase.remove(self, app, leaveObjects)
        ubuntu = findUbuntu(app.dmd)
        if not leaveObjects:
            newlist=[]
            for plugin in ubuntu.zCollectorPlugins:
                if plugin == "zenoss.cmd.linux.ubuntu_aptitude":
                    pass
                elif plugin == "zenoss.cmd.linux.ubuntu_uname_a":
                    newlist.append("zenoss.cmd.uname_a")
                else:
                    newlist.append(plugin)

            ubuntu.zCollectorPlugins = newlist
Ejemplo n.º 34
0
    def remove(self, app, leaveObjects=False):
        """
        Remove the collector plugins.
        """
        ZenPackBase.remove(self, app, leaveObjects)
        mandriva = findMandriva(app.dmd)
        if not leaveObjects:
            newlist=[]
            for plugin in mandriva.zCollectorPlugins:
                if plugin == "zenoss.cmd.linux.mandriva_rpm":
                    pass
                elif plugin == "zenoss.cmd.linux.mandriva_uname_a":
                    newlist.append("zenoss.cmd.uname_a")
                else:
                    newlist.append(plugin)

            mandriva.zCollectorPlugins = newlist
Ejemplo n.º 35
0
    def remove(self, app, leaveObjects=False):
        """
        Remove the collector plugins.
        """
        ZenPackBase.remove(self, app, leaveObjects)
        gentoo = findGentoo(app.dmd)
        if not leaveObjects:
            newlist = []
            for plugin in gentoo.zCollectorPlugins:
                if plugin == "zenoss.cmd.linux.eix":
                    pass
                elif plugin == "zenoss.cmd.linux.gentoo_uname_a":
                    newlist.append("zenoss.cmd.uname_a")
                else:
                    newlist.append(plugin)

            gentoo.zCollectorPlugins = newlist
Ejemplo n.º 36
0
    def remove(self, app, leaveObjects=False):
        """
        Remove the collector plugins.
        """
        ZenPackBase.remove(self, app, leaveObjects)
        gentoo = findGentoo(app.dmd)
        if not leaveObjects:
            newlist=[]
            for plugin in gentoo.zCollectorPlugins:
                if plugin == "zenoss.cmd.linux.eix":
                    pass
                elif plugin == "zenoss.cmd.linux.gentoo_uname_a":
                    newlist.append("zenoss.cmd.uname_a")
                else:
                    newlist.append(plugin)


            gentoo.zCollectorPlugins = newlist
Ejemplo n.º 37
0
    def remove(self, app, leaveObjects=False):
        ZenPackBase.remove(self, app, leaveObjects=False)

        OperatingSystem._relations = tuple([x for x in OperatingSystem._relations if x[0] not in ['rancidrevs']])
        for d in self.dmd.Devices.getSubDevices():
            d.os.buildRelations()

        if not leaveObjects:
            ## remove the rancid path entirely
            if os.path.exists(self.base_path):
                shutil.rmtree(self.base_path)

            ## remove .cloginrc file
            if os.path.exists(os.path.join(self.homedir_path, ".cloginrc")):
                os.remove(os.path.join(self.homedir_path, ".cloginrc"))
                
            # create a symlink for libexec/zenrancid-cvs.sh
            self.removeFile('libexec/zenrancid-cvs.sh')
Ejemplo n.º 38
0
 def remove(self, app, leaveObjects=False):
     for dcp in self.dcProperties.keys():
         try:
             dc = app.zport.dmd.Devices.getOrganizer(dcp)
             dc._delProperty('zCollectorPlugins')
         except: continue
     ZenPackBase.remove(self, app, leaveObjects)
     DeviceHW._relations = tuple([x for x in DeviceHW._relations \
             if x[0] not in ['chassis', 'physicalmemorymodules']])
     OperatingSystem._relations=tuple(
         [x for x in OperatingSystem._relations if x[0] not in [
             'storagepools',
             'storagevolumes',
             'redundancysets',
             'replicationgroups',
             ]])
     for d in self.dmd.Devices.getSubDevices():
         d.hw.buildRelations()
         d.os.buildRelations()
 def remove(self, app, leaveObjects=False):
     #FIXME Check for deletation all objects from database before module will be removed 
     log.warn( "cbCiscoQOS remove start, leaveObjects set to %s", leaveObjects)
     #If remove module completly, before delete cbServicePolicy and all Dother
     if not leaveObjects:
         for dev in self.dmd.Devices.getSubDevices():
             self.rmcbServicePolicy(dev)
     #Remove installed Plugin in time instalation
     dc = app.zport.dmd.Devices.getOrganizer('Network/Router/Cisco')
     cpl = list(getattr(dc, 'zCollectorPlugins'))
     for plugin in self.newplugins:
         if plugin in cpl: cpl.remove(plugin)
     dc.zCollectorPlugins = list(cpl)
     ZenPackBase.remove(self, app, leaveObjects)
     
     IpInterface._relations = tuple([x for x in IpInterface._relations if x[0] not in ['cbServicePolicy']])
     for dev in self.dmd.Devices.getSubDevices():
         for int in dev.os.interfaces():
             log.warn("remove: for interface %s buildRelations()", int.viewName())
             int.buildRelations()
Ejemplo n.º 40
0
    def remove(self, app, leaveObjects=False):
        ZenPackBase.remove(self, app, leaveObjects=False)

        OperatingSystem._relations = tuple([
            x for x in OperatingSystem._relations
            if x[0] not in ['rancidrevs']
        ])
        for d in self.dmd.Devices.getSubDevices():
            d.os.buildRelations()

        if not leaveObjects:
            ## remove the rancid path entirely
            if os.path.exists(self.base_path):
                shutil.rmtree(self.base_path)

            ## remove .cloginrc file
            if os.path.exists(os.path.join(self.homedir_path, ".cloginrc")):
                os.remove(os.path.join(self.homedir_path, ".cloginrc"))

            # create a symlink for libexec/zenrancid-cvs.sh
            self.removeFile('libexec/zenrancid-cvs.sh')
Ejemplo n.º 41
0
 def remove(self, app, leaveObjects=False):
     self.modifyPlugins(app.zport.dmd.Devices.Printer.Laser, "remove")
     #ZenPackBase.remove(app, leaveObjects)
     ZenPackBase.remove(self, app)
Ejemplo n.º 42
0
    def remove(self, app, junk):
        ZenPackBase.remove(self, app, junk)
        if hasattr(self.dmd.Reports, 'Device Reports'):
            devReports = self.dmd.Reports['Device Reports']
	    if hasattr(devReports, 'HP ProLiant Reports'):
                devReports._delObject('HP ProLiant Reports')
Ejemplo n.º 43
0
 def remove(self, app, junk):
     ZenPackBase.remove(self, app, junk)
     DeviceHW._relations = tuple([x for x in DeviceHW._relations if x[0] not in ['memorymodules', 'logicaldisks']])
     for d in self.dmd.Devices.getSubDevices():
         d.hw.buildRelations()
 def remove(self, app, leaveObjects=False):
     self.replaceString(zenPath('bin/zenoss'),'	C="$C zenrender"','	#C="$C zenrender"')
     if os.path.exists(zenPath('etc/DAEMONS_TXT_ONLY')) and os.path.exists(zenPath('etc/daemons.txt')):
         self.replaceString(zenPath('etc/daemons.txt'),'zenrender','')
     self.removeMenuItems(app.zport.dmd)
     ZenPackBase.remove(self, app, leaveObjects)
Ejemplo n.º 45
0
 def remove(self, app, leaveObjects=False):
     self.cleanupOurPlugins(app.zport.dmd)
     ZenPackBase.remove(self, app, leaveObjects)
Ejemplo n.º 46
0
 def remove(self, app, leaveObjects=False):
     ZenPackBase.remove(self, app, leaveObjects)
Ejemplo n.º 47
0
 def remove(self, app, leaveObjects=False):
     """
     Remove the ZenPack from Zenoss
     """
     # NB: As of Zenoss 2.2, this function now takes three arguments.
     ZenPackBase.remove(self, app, leaveObjects)
Ejemplo n.º 48
0
 def remove(self, app, leaveObjects=False):
     ZenPackBase.remove(self, app, leaveObjects)
     zpm = app.zport.ZenPortletManager
     zpm.unregister_portlet('ShowGraphPortlet')
Ejemplo n.º 49
0
 def remove(self, app, leaveObjects=False):
     ZenPackBase.remove(self, app, leaveObjects)
     zpm = app.zport.ZenPortletManager
     zpm.unregister_portlet('OAControlPortlet')
Ejemplo n.º 50
0
 def remove(self, app, leaveObjects=False):
     ZenPackBase.remove(self, app, leaveObjects)
     zpm = app.zport.ZenPortletManager
     zpm.unregister_portlet('oaInsightWebapp')
Ejemplo n.º 51
0
 def remove(self, app, leaveObjects=False):
     self.dmd.zport.__delattr__("eval_expired")
     self.modifyLoginForm('onload="')
     ZenPackBase.remove(self, app, leaveObjects)
Ejemplo n.º 52
0
 def remove(self, app, junk):
     self._cleanupOurPlugins(app.zport.dmd)
     ZenPackBase.remove(self, app, junk)
     DeviceHW._relations = tuple([x for x in DeviceHW._relations if x[0] not in ['iostates',]])
     self._buildRelations()
 def remove(self, app, leaveObjects=False):
     self.removeMenuItems(app.zport.dmd)
     ZenPackBase.remove(self, app, leaveObjects)
Ejemplo n.º 54
0
 def remove(self, app, leaveObjects=False):
     self.removeMenuItems(app.zport.dmd)
     ZenPackBase.remove(self, app, leaveObjects)
Ejemplo n.º 55
0
def remove(self, app):
    ZenPackBase.remove(self, app) 
    zpm = app.zport.ZenPortletManager
    zpm.unregister_portlet('ReportListPortlet')
Ejemplo n.º 56
0
 def remove(self, app, leaveObjects):
     ZenPackBase.remove(self, app, leaveObjects)
     zpm = app.zport.ZenPortletManager
     zpm.unregister_portlet('OpenLayersMapPortlet')
Ejemplo n.º 57
0
 def remove(self, app, leaveObjects=False):
     Device._relations = tuple(
         [x for x in Device._relations if x[0] != 'msmqqueues'])
     self.rebuildRelations(app.zport.dmd)
     ZenPackBase.remove(self, app, leaveObjects)
Ejemplo n.º 58
0
 def remove(self, app, leaveObjects=False):
     self.cleanupOurPlugins(app.zport.dmd)
     ZenPackBase.remove(self, app, leaveObjects)