[Zope] String as path?
Dieter Maurer
dieter@handshake.de
Fri, 17 Jan 2003 21:58:54 +0100
Gerald D. Anderson wrote at 2003-1-17 08:28 -0600:
> Good morning (to those of you in my general part of the world). I have
> a question I haven't been able to find the answer to in any
> documentation. I'm creating a little script that will create 'Folder'
> items for user to put stuff in. I need to be able to set the "path"
> dynamically. What I have is:
>
> context.web.users.usertitle.manage_addFolder(courseNumber, courseTitle)
You are interested in "Computed attribute access".
You use "getattr" for this.
More information:
<http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html>
Dieter