[Zope] Python get LocalFS objects in subfolder

Michael Bleijerveld michael at bleijerveld.nl
Tue Aug 12 16:15:40 EDT 2003


Hi all,

I am trying to get the fileValues in a LocalFS subfolder with the name admin
but the following statements don't work.

from AccessControl import getSecurityManager
user = getSecurityManager().getUser()
username = user.getUserName()

return 'container.%s.fileValues()' % username

The result is container.admin.fileValues() but is has to be [<LocalFile
instance at 018A0210>, <LocalFile instance at 0189F720>].

Anyone suggestions ?

Thanks in advance.

Michael Bleijerveld





More information about the Zope mailing list