Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Carlos Ramos Carreño
erp5
Commits
2535e831
Commit
2535e831
authored
Jul 07, 2023
by
Yusei Tahara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
product: Set Zope4 ZMI icon for Folder, ZMySQLDA, Localizer.
parent
dc9ffa12
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
product/ERP5Type/Core/Folder.py
product/ERP5Type/Core/Folder.py
+4
-0
product/Localizer/Localizer.py
product/Localizer/Localizer.py
+4
-1
product/ZMySQLDA/DA.py
product/ZMySQLDA/DA.py
+4
-0
No files found.
product/ERP5Type/Core/Folder.py
View file @
2535e831
...
...
@@ -56,6 +56,7 @@ from Products.ERP5Type.Utils import sortValueList
from
Products.ERP5Type
import
Permissions
from
Products.ERP5Type.Globals
import
InitializeClass
from
Products.ERP5Type.Accessor
import
Base
as
BaseAccessor
from
Products.ERP5Type
import
IS_ZOPE2
try
:
from
Products.CMFCore.CMFBTreeFolder
import
CMFBTreeFolder
except
ImportError
:
...
...
@@ -718,6 +719,9 @@ class Folder(FolderMixIn, CopyContainer, ObjectManager, Base, OFSFolder2, CMFBTr
portal_type
=
'Folder'
add_permission
=
Permissions
.
AddPortalContent
if
not
IS_ZOPE2
:
zmi_icon
=
'far fa-folder'
# Overload _properties define in OFS/Folder
# _properties=({'id':'title', 'type': 'string','mode':'wd'},)
# because it conflicts with title accessor generation
...
...
product/Localizer/Localizer.py
View file @
2535e831
...
...
@@ -38,7 +38,7 @@ from .MessageCatalog import MessageCatalog, to_unicode
from
.utils
import
lang_negotiator
from
.LanguageManager
import
LanguageManager
from
Products.ERP5Type
import
IS_ZOPE2
# Constructors
manage_addLocalizerForm
=
LocalDTMLFile
(
'ui/Localizer_add'
,
globals
())
...
...
@@ -63,6 +63,9 @@ class Localizer(LanguageManager, Folder):
id
=
'Localizer'
if
not
IS_ZOPE2
:
zmi_icon
=
'fas fa-language'
_properties
=
({
'id'
:
'title'
,
'type'
:
'string'
},
{
'id'
:
'accept_methods'
,
'type'
:
'tokens'
},
{
'id'
:
'user_defined_languages'
,
'type'
:
'lines'
},)
...
...
product/ZMySQLDA/DA.py
View file @
2535e831
...
...
@@ -101,6 +101,7 @@ from DateTime import DateTime
from
.
import
DABase
from
.db
import
DB
,
DeferredDB
from
AccessControl
import
ClassSecurityInfo
from
Products.ERP5Type
import
IS_ZOPE2
SHARED_DC_ZRDB_LOCATION
=
os
.
path
.
dirname
(
Shared
.
DC
.
ZRDB
.
__file__
)
...
...
@@ -140,6 +141,9 @@ class Connection(DABase.Connection):
connect_on_load
=
False
if
not
IS_ZOPE2
:
zmi_icon
=
'fas fa-database'
def
factory
(
self
):
return
DB
security
.
declarePrivate
(
'manage_beforeDelete'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment