Skip to content. | Skip to navigation

Personal tools

Navigation

You are here: Home / Members / jhb / old blog entries / SkinnedFolderFun

SkinnedFolderFun

by Jörg Baach last modified Apr 05, 2006 05:20 PM
How to have security for files in the filesystem with Skinned Folder / FileSystemsite

Problem:

I have files in the Filesystem, using the Filesystem Directory View from
the standalone Skins Product (or SkinnedFolder, or 1.x Versions of
FileSystemSite). The problem is that the security declarations in
.metadata files for Scripts (or other stuff) gets completely ignored.

Solution:

Thanks to CMF 2.0, where they fixed it, its quite easy.

In FSMetadata.py, change line 113 from

return (acquire, roles)

to

return (int(acquire), roles)


so that the area reads:


acquire, roles = data.split(':')

roles = [r.strip() for r in roles.split(',') if r.strip()]

return (int(acquire), roles)


def _getSectionDict(self, cfg, section, parser=None):

Add comment

You can add a comment by filling out the form below. Plain text formatting.

Question: What is 42 minus 19?
Your answer: