Skip to content

Commit

Permalink
- make flake8 happy
Browse files Browse the repository at this point in the history
  • Loading branch information
dataflake authored and pbauer committed May 17, 2019
1 parent da43d92 commit 55413e6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/OFS/ObjectManager.py
Expand Up @@ -769,8 +769,8 @@ def manage_FTPlist(self, REQUEST):

files.sort()

if not (hasattr(self, 'isTopLevelPrincipiaApplicationObject') and
self.isTopLevelPrincipiaApplicationObject):
if not (hasattr(self, 'isTopLevelPrincipiaApplicationObject')
and self.isTopLevelPrincipiaApplicationObject):
files.insert(0, ('..', aq_parent(self)))
files.insert(0, ('.', self))
for k, v in files:
Expand All @@ -795,8 +795,9 @@ def manage_FTPstat(self, REQUEST):
mode = 0o0040000
from AccessControl.User import nobody
# check to see if we are acquiring our objectValues or not
if not (len(REQUEST.PARENTS) > 1 and
self.objectValues() == REQUEST.PARENTS[1].objectValues()):
parents = REQUEST.PARENTS
if not (len(parents) > 1
and self.objectValues() == parents.objectValues()):
try:
if getSecurityManager().validate(
None, self, 'manage_FTPlist', self.manage_FTPlist):
Expand Down

0 comments on commit 55413e6

Please sign in to comment.