Skip to content

Commit

Permalink
line length/readability
Browse files Browse the repository at this point in the history
  • Loading branch information
jensens committed Dec 19, 2016
1 parent d7b51fe commit 3747b59
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
7 changes: 6 additions & 1 deletion plone/app/iterate/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,12 @@ def __init__(self, context):

@property
def available(self):
return bool(getSecurityManager().checkPermission(AddPortalContent, aq_parent(aq_inner(self.context))))
return bool(
getSecurityManager().checkPermission(
AddPortalContent,
aq_parent(aq_inner(self.context))
)
)

def __call__(self):
if not self.available:
Expand Down
8 changes: 5 additions & 3 deletions plone/app/iterate/relation.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,11 @@ def checkin(self, baseline, wc, refs, storage):

wc_ref_container = getattr(wc, atconf.REFERENCE_ANNOTATION)

# references aren't globally addable w/ associated perm which default copysupport
# wants to check, temporarily monkey around the issue.
def _verifyObjectPaste(*args, **kw): pass
# references aren't globally addable w/ associated perm which default
# copysupport wants to check, temporarily monkey around the issue.
def _verifyObjectPaste(*args, **kw):
pass

wc_ref_container._verifyObjectPaste = _verifyObjectPaste
try:
wc_ref_container.manage_pasteObjects(clipboard)
Expand Down
1 change: 1 addition & 0 deletions plone/app/iterate/tests/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class RichFolder(ATFolder):
schema = RichFolderSchema
portal_type = 'RichFolder'


registerATCT(RichFolder, 'plone.app.iterate')


Expand Down

0 comments on commit 3747b59

Please sign in to comment.