Skip to content

Commit

Permalink
Add icons for all TTW installable types.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz authored and dwt committed May 17, 2018
1 parent 7cbd07a commit 07eff7e
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 3 deletions.
4 changes: 4 additions & 0 deletions buildout.cfg
Expand Up @@ -23,6 +23,10 @@ sources-dir = develop
auto-checkout =
js.bootstrap
zmi.icons
Persistence
AccessControl
Products.BTreeFolder2
Products.ZCatalog

[testenv]
PYTHONHASHSEED = random
Expand Down
6 changes: 3 additions & 3 deletions sources.cfg
Expand Up @@ -4,7 +4,7 @@ github_push = git@github.com:zopefoundation

[sources]
# Zope-specific
AccessControl = git ${remotes:github}/AccessControl pushurl=${remotes:github_push}/AccessControl branch=master
AccessControl = git ${remotes:github}/AccessControl pushurl=${remotes:github_push}/AccessControl branch=zmi-bootstrap
Acquisition = git ${remotes:github}/Acquisition pushurl=${remotes:github_push}/Acquisition
AuthEncoding = git ${remotes:github}/AuthEncoding pushurl=${remotes:github_push}/AuthEncoding
DateTime = git ${remotes:github}/DateTime pushurl=${remotes:github_push}/DateTime
Expand All @@ -23,9 +23,9 @@ js.bootstrap = git https://github.com/gocept/js.bootstrap4.git branch=bootstrap4
# Optional dependencies
five.localsitemanager = git ${remotes:github}/five.localsitemanager pushurl=${remotes:github_push}/five.localsitemanager
Missing = git ${remotes:github}/Missing pushurl=${remotes:github_push}/Missing
Products.BTreeFolder2 = git ${remotes:github}/Products.BTreeFolder2 pushurl=${remotes:github_push}/Products.BTreeFolder2
Products.BTreeFolder2 = git ${remotes:github}/Products.BTreeFolder2 pushurl=${remotes:github_push}/Products.BTreeFolder2 branch=zmi-bootstrap
Products.MailHost = git ${remotes:github}/Products.MailHost pushurl=${remotes:github_push}/Products.MailHost
Products.ZCatalog = git ${remotes:github}/Products.ZCatalog pushurl=${remotes:github_push}/Products.ZCatalog
Products.ZCatalog = git ${remotes:github}/Products.ZCatalog pushurl=${remotes:github_push}/Products.ZCatalog branch=zmi-bootstrap
Products.ZCTextIndex = git ${remotes:github}/Products.ZCTextIndex pushurl=${remotes:github_push}/Products.ZCTextIndex
Record = git ${remotes:github}/Record pushurl=${remotes:github_push}/Record
ZServer = git ${remotes:github}/ZServer pushurl=${remotes:github_push}/ZServer
Expand Down
1 change: 1 addition & 0 deletions src/OFS/DTMLDocument.py
Expand Up @@ -39,6 +39,7 @@ class DTMLDocument(PropertyManager, DTMLMethod):
""" DocumentTemplate.HTML objects whose 'self' is the DTML object.
"""
meta_type = 'DTML Document'
zmi_icon = 'icon-doc'

manage_options = DTMLMethod.manage_options

Expand Down
1 change: 1 addition & 0 deletions src/OFS/DTMLMethod.py
Expand Up @@ -62,6 +62,7 @@ class DTMLMethod(RestrictedDTML,
""" DocumentTemplate.HTML objects that act as methods of their containers.
"""
meta_type = 'DTML Method'
zmi_icon = 'icon-numbers'
_proxy_roles = ()
index_html = None # Prevent accidental acquisition
_cache_namespace_keys = ()
Expand Down
2 changes: 2 additions & 0 deletions src/OFS/Image.py
Expand Up @@ -97,6 +97,7 @@ class File(Persistent, Implicit, PropertyManager,
"""A File object is a content object for arbitrary files."""

meta_type = 'File'
zmi_icon = 'icon-file'

security = ClassSecurityInfo()
security.declareObjectProtected(View)
Expand Down Expand Up @@ -797,6 +798,7 @@ class Image(File):
renders an HTML 'IMG' tag.
"""
meta_type = 'Image'
zmi_icon = 'icon-image'

security = ClassSecurityInfo()
security.declareObjectProtected(View)
Expand Down
1 change: 1 addition & 0 deletions src/OFS/OrderedFolder.py
Expand Up @@ -41,6 +41,7 @@ class OrderedFolder(OrderSupport, Folder):
""" Extends the default Folder by order support.
"""
meta_type = 'Folder (Ordered)'
zmi_icon = 'icon-folder2'

manage_options = (
OrderSupport.manage_options +
Expand Down
1 change: 1 addition & 0 deletions src/Products/PageTemplates/ZopePageTemplate.py
Expand Up @@ -75,6 +75,7 @@ class ZopePageTemplate(Script, PageTemplate, Cacheable,
"Zope wrapper for Page Template using TAL, TALES, and METAL"

meta_type = 'Page Template'
zmi_icon = 'icon-markup'
output_encoding = 'utf-8' # provide default for old instances

__code__ = FuncCode((), 0)
Expand Down
1 change: 1 addition & 0 deletions src/Products/SiteAccess/VirtualHostMonster.py
Expand Up @@ -22,6 +22,7 @@ class VirtualHostMonster(Persistent, Item, Implicit):
"""

meta_type = 'Virtual Host Monster'
zmi_icon = 'icon-monster'
priority = 25

id = 'virtual_hosting'
Expand Down

0 comments on commit 07eff7e

Please sign in to comment.