Source code for cioxml2.managers.cioset.panel_cioset

"""Panel for cioset management."""

from os.path import join, dirname

from ...lib.i18n import _
from ..xml.panel_xml import PanelXml


# =============================================================================
class PanelCioset(PanelXml):
    """Class to manage cioset panel.

    See: :class:`chrysalio.lib.panel.Panel`
    """

    uid = 'cioset'
    label = _('Assembly')
    template = 'cioxml2:Templates/panel_cioset.pt'
    css = ('/cioxml2/css/panel_cioset.css',)
    javascripts = ('/cioxml2/js/cioset.js',)
    can_reopen = True
    need_lock = True
    call_button = _('Modify the assembly')
    xsl = join(dirname(__file__), 'Xsl', 'cioset_panel.xsl')