-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup: PEP8 et al., security/zca via decorators, ...
- Loading branch information
Showing
14 changed files
with
293 additions
and
225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,33 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# $Id$ | ||
|
||
from Products.CMFCore import utils as cmf_utils | ||
from Products.CMFCore.permissions import AddPortalContent | ||
from Products.CMFCore.permissions import AddPortalFolders | ||
from Products.CMFDynamicViewFTI.fti import DynamicViewTypeInformation | ||
from Products.CMFDynamicViewFTI import content_for_tests | ||
|
||
from Products.CMFDynamicViewFTI.fti import DynamicViewTypeInformation | ||
|
||
|
||
def initialize(context): | ||
# (DynamicViewTypeInformation factory is created from ZCML) | ||
cmf_utils.registerIcon( | ||
DynamicViewTypeInformation, 'images/typeinfo.gif', globals() | ||
DynamicViewTypeInformation, | ||
'images/typeinfo.gif', | ||
globals() | ||
) | ||
|
||
context.registerClass( | ||
content_for_tests.DynFolder, | ||
permission=AddPortalFolders, | ||
constructors=(('addDynFolder', | ||
content_for_tests.addDynFolder), | ||
), | ||
constructors=( | ||
('addDynFolder', content_for_tests.addDynFolder), | ||
), | ||
icon='images/typeinfo.gif' | ||
) | ||
) | ||
|
||
context.registerClass( | ||
content_for_tests.DynDocument, | ||
permission=AddPortalContent, | ||
constructors=(('addDynDocument', | ||
content_for_tests.addDynDocument), | ||
), | ||
constructors=( | ||
('addDynDocument', content_for_tests.addDynDocument), | ||
), | ||
icon='images/typeinfo.gif' | ||
) | ||
return | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.