equal
deleted
inserted
replaced
|
1 # |
|
2 # Copyright (c) 2015-2021 Thierry Florac <tflorac AT ulthar.net> |
|
3 # All Rights Reserved. |
|
4 # |
|
5 # This software is subject to the provisions of the Zope Public License, |
|
6 # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. |
|
7 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED |
|
8 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
|
9 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS |
|
10 # FOR A PARTICULAR PURPOSE. |
|
11 # |
|
12 |
|
13 """PyAMS_*** module |
|
14 |
|
15 """ |
|
16 |
|
17 __docformat__ = 'restructuredtext' |
|
18 |
|
19 from pyams_utils.adapter import ContextRequestViewAdapter |
|
20 from pyams_zmi.form import AdminDialogEditForm |
|
21 |
|
22 |
|
23 class DialogEditFormFormManager(ContextRequestViewAdapter): |
|
24 """Form manager base class""" |
|
25 |
|
26 def getFields(self): |
|
27 raise NotImplementedError |
|
28 |
|
29 def update(self): |
|
30 AdminDialogEditForm.update(self.view) |
|
31 |
|
32 def updateWidgets(self, prefix=None): |
|
33 AdminDialogEditForm.updateWidgets(self.view, prefix) |
|
34 |
|
35 def updateActions(self): |
|
36 AdminDialogEditForm.updateActions(self.view) |
|
37 |
|
38 def updateGroups(self): |
|
39 AdminDialogEditForm.updateGroups(self.view) |