|
1
|
|
|
# -*- coding: utf-8 -*- |
|
2
|
|
|
# |
|
3
|
|
|
# This file is part of SENAITE.CORE. |
|
4
|
|
|
# |
|
5
|
|
|
# SENAITE.CORE is free software: you can redistribute it and/or modify it |
|
6
|
|
|
# under the terms of the GNU General Public License as published by the |
|
7
|
|
|
# Free Software Foundation, version 2. |
|
8
|
|
|
# |
|
9
|
|
|
# This program is distributed in the hope that it will be useful, but |
|
10
|
|
|
# WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
12
|
|
|
# General Public License for more details. |
|
13
|
|
|
# |
|
14
|
|
|
# You should have received a copy of the GNU General Public License along |
|
15
|
|
|
# with this program; if not, write to the Free Software Foundation, Inc., |
|
16
|
|
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
|
17
|
|
|
# |
|
18
|
|
|
# Copyright 2018-2025 by it's authors. |
|
19
|
|
|
# Some rights reserved, see README and LICENSE. |
|
20
|
|
|
|
|
21
|
|
|
from bika.lims import senaiteMessageFactory as _ |
|
22
|
|
|
from plone.dexterity.browser.edit import DefaultEditView |
|
23
|
|
|
|
|
24
|
|
|
|
|
25
|
|
|
class SetupEditView(DefaultEditView): |
|
26
|
|
|
"""Custom edit view for SENAITE Setup |
|
27
|
|
|
""" |
|
28
|
|
|
|
|
29
|
|
|
def __init__(self, context, request): |
|
30
|
|
|
super(SetupEditView, self).__init__(context, request) |
|
31
|
|
|
self.context = context |
|
32
|
|
|
self.request = request |
|
33
|
|
|
|
|
34
|
|
|
@property |
|
35
|
|
|
def label(self): |
|
36
|
|
|
"""Override to show 'SENAITE Setup' instead of 'Edit SENAITE Setup' |
|
37
|
|
|
""" |
|
38
|
|
|
return _(u"SENAITE Setup") |
|
39
|
|
|
|