old_contents: # coding=utf-8
  # ---------------------------------------------------------------------------
  # MDADM plugin for Ajenti, to manage the MD devices.
  #
  #   Copyright (C) 2015 Marc Bertens <m.bertens@pe2mbs.nl>
  #
  # This program is free software: you can redistribute it and/or modify
  # it under the terms of the GNU Affero General Public License as published by
  # the Free Software Foundation, either version 3 of the License, or
  # (at your option) any later version.
  #
  # This program is distributed in the hope that it will be useful,
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  # GNU Affero General Public License for more details.
  #
  # You should have received a copy of the GNU Affero General Public License
  # along with this program. If not, see http://www.gnu.org/licenses/agpl-3.0.html.
  # ---------------------------------------------------------------------------
  #
  __author__ = "Marc Bertens"
  __copyright__ = "Copyright 2015, GNU Affero General Public License"
  __credits__ = ["Marc Bertens"]
  __license__ = "AGPL"
  __version__ = "1.0.0"
  __maintainer__ = "Marc Bertens"
  __email__ = "m.bertens@pe2mbs.nl"
  __status__ = "Alpha"
  
  from ajenti.api import *
  from ajenti.plugins import *
  
  
  info = PluginInfo(
      title='MDADM',
      description='mdadm status display',
      icon='hdd',
      dependencies=[
          PluginDependency('main'),
          BinaryDependency('mdadm'),
          FileDependency('/proc/mdstat'),
      ],
  )
  
  
  def GetVersion():
      return __version__
  
  
  # end def
  
  def GetAuthor():
      return __author__
  
  
  # end def
  
  def GetCopyright():
      return __copyright__
  
  
  # end def
  
  def GetMaintainer():
      return __maintainer__
  
  
  # end def
  
  def GetEmail():
      return __email__
  
  
  # end def
  
  def GetStatus():
      return __status__
  
  
  # end def
  
  def GetPluginVersion(package=None):
      text = "v%s" % ( __version__ )
      if not __status__ in ["Production/Stable", "Mature"]:
          text += " (%s)" % ( __status__ )
      # end if
      return text
  
  
  # end def
  
  def init():
  
  # end def
  
new_contents: # coding=utf-8
  # ---------------------------------------------------------------------------
  # MDADM plugin for Ajenti, to manage the MD devices.
  #
  #   Copyright (C) 2015 Marc Bertens <m.bertens@pe2mbs.nl>
  #
  # This program is free software: you can redistribute it and/or modify
  # it under the terms of the GNU Affero General Public License as published by
  # the Free Software Foundation, either version 3 of the License, or
  # (at your option) any later version.
  #
  # This program is distributed in the hope that it will be useful,
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  # GNU Affero General Public License for more details.
  #
  # You should have received a copy of the GNU Affero General Public License
  # along with this program. If not, see http://www.gnu.org/licenses/agpl-3.0.html.
  # ---------------------------------------------------------------------------
  #
  __author__ = "Marc Bertens"
  __copyright__ = "Copyright 2015, GNU Affero General Public License"
  __credits__ = ["Marc Bertens"]
  __license__ = "AGPL"
  __version__ = "1.0.0"
  __maintainer__ = "Marc Bertens"
  __email__ = "m.bertens@pe2mbs.nl"
  __status__ = "Alpha"
  
  from ajenti.api import *
  from ajenti.plugins import *
  
  
  info = PluginInfo(
      title='MDADM',
      description='mdadm status display',
      icon='hdd',
      dependencies=[
          PluginDependency('main'),
          PluginDependency('uicommon'),
          BinaryDependency('mdadm'),
          FileDependency('/proc/mdstat'),
      ],
  )
  
  
  def GetVersion():
      return __version__
  
  
  # end def
  
  def GetAuthor():
      return __author__
  
  
  # end def
  
  def GetCopyright():
      return __copyright__
  
  
  # end def
  
  def GetMaintainer():
      return __maintainer__
  
  
  # end def
  
  def GetEmail():
      return __email__
  
  
  # end def
  
  def GetStatus():
      return __status__
  
  
  # end def
  
  def GetPluginVersion(package=None):
      text = "v%s" % ( __version__ )
      if not __status__ in ["Production/Stable", "Mature"]:
          text += " (%s)" % ( __status__ )
      # end if
      return text
  
  
  # end def
  
  def init():
      import main
      import api
      import widget
  # end def
  
subject: Fix some mishap in the main.py file