You are here: Home Members jhb old blog entries SkinnedFolderFun
Personal tools

SkinnedFolderFun

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):

Document Actions