Example #1
0
	def _on_load(self, s):
		PluginInstance._on_load(self, s)

		self._categories = []
		self._panels = []
		self.switch = ui.SwitchContainer()

		log.info('CorePlugin', 'Started instance')
Example #2
0
	def _on_load(self, s):
		PluginInstance._on_load(self, s)

		c = ui.Category()
		c.text = 'Backup'
		c.description = 'Configure Ajenti backup'
		c.icon = 'plug/ajentibackup;icon'
		self.category_item = c
		self.build_panel()
		log.info('AjentiBackupPlugin', 'Started instance')
Example #3
0
	def _on_load(self, s):
		PluginInstance._on_load(self, s)

		c = ui.Category()
		c.text = 'Power'
		c.description = 'Reboot and shutdown'
		c.icon = 'plug/powermgmt;icon'
		self.category_item = c
		self.build_panel()
		log.info('PowerMgmtplugin', 'Started instance')
Example #4
0
	def _on_load(self, s):
		PluginInstance._on_load(self, s)

		c = ui.Category()
		c.text = 'Apache'
		c.description = 'Configure httpd'
		c.icon = 'plug/apache;icon'
		self.category_item = c

		self.build_panel()
		log.info('ApachePlugin', 'Started instance')
Example #5
0
	def _on_load(self, s):
		PluginInstance._on_load(self, s)

		c = ui.Category()
		c.text = 'Services'
		c.description = 'Manage initscripts'
		c.icon = 'plug/services;icon'
		self.category_item = c
		self.svcs = Services()
		self.build_panel()
		log.info('ServicesPlugin', 'Started instance')
Example #6
0
File: 30-log.py Project: DmZ/ajenti
	def _on_load(self, s): 
		PluginInstance._on_load(self, s)

		c = ui.Category()
		c.text = 'Log'
		c.description = '/var/log/ viewer'
		c.icon = 'plug/log;icon'
		self.category_item = c 

		self.build_panel()	
	
		log.info('LogPlugin', 'Started instance') 
Example #7
0
	def _on_load(self, s):
		PluginInstance._on_load(self, s)

		c = ui.Category()
		c.text = 'Network'
		c.description = 'Configure adapters'
		c.icon = 'plug/network;icon'
		self.category_item = c

		self.build_panel()
		self.interfaces = InterfacesFile()
		self.DNS = DNSFile()
		log.info('NetworkPlugin', 'Started instance')
Example #8
0
	def _on_load(self, s):
		PluginInstance._on_load(self, s)

		c = ui.Category()
		c.text = 'Dashboard'
		c.description = 'Server status'
		c.icon = 'plug/dashboard;icon'
		self.category_item = c

		self.build_panel()

		log.info('DashboardPlugin', 'Started instance')
		return
Example #9
0
    def _on_load(self, s):  # The session controller instance is passed to this method
        PluginInstance._on_load(self, s)

        # Build a category switcher for Ajenti
        c = ui.Category()
        c.text = "Beeper"
        c.description = "Beep-beep-beep!"
        c.icon = "plug/beeper;icon"  # This means that image is stored in plugins/beeper/icon.png
        self.category_item = (
            c
        )  # The category_item property will be later examined by Core plugin. If it isn't None, the new Category will be added to the UI

        self.build_panel()

        # Make use of /etc/ajenti/beeper.conf
        self.Beeps = BeepingProfiles()
        log.info(
            "BeeperPlugin", "Started instance"
        )  # Available methods are log.info, log.warn, log.err. The first parameter is 'sender' name, the second is string being logged