Skip to content

Commit

Permalink
reduced line length
Browse files Browse the repository at this point in the history
  • Loading branch information
drfho committed Apr 14, 2021
1 parent 77a2e22 commit 0e301a9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Products/PluggableAuthService/PluggableAuthService.py
Expand Up @@ -942,10 +942,12 @@ def all_meta_types(self):
import Products
allowed_types = tuple(MultiPlugins) + (RAMCacheManager.meta_type,)

meta_types = [x for x in Products.meta_types if x['name'] in allowed_types]

meta_types = [ x for x in Products.meta_types
if x['name'] in allowed_types ]

for mt in meta_types:
want_modal = getattr(mt.get('instance', None), 'zmi_show_add_dialog', True)
want_modal = getattr(mt.get('instance', None),
'zmi_show_add_dialog', True)
mt['zmi_show_add_dialog'] = 'modal' if want_modal else ''

return meta_types
Expand Down

0 comments on commit 0e301a9

Please sign in to comment.