[Zope] add[Folder, DTML Document]

Bill Scherer scherbi@bam.com
Fri, 14 Jan 2000 14:56:25 -0500


This is a multi-part message in MIME format.
--------------263E78ADE63AC2ABCBC2F193
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I've written a simple index_html method that allows me to subvert Zope's
folders to create a url directory.  the method iterates through
objectValues(['Folder', 'DTML Document']).  If the object has a property
'url', it displays it as a link, otherwise, it's a folder and is
displayed as a link to move into that folder.  It's simple and works
well.

My problem is that I'd like to simplify adding links and folders.  For
now, I've been using the management interface to do so.  I'd like to
build my own.  I was able to create an addFolder method, and it worked
fine except that it returned me to the management view of the folder,
instead of the standard public view of the folder.  I would like to
create an addDTMLDocument method, but I couldn't figure out how to do so
while also adding a property (url = "http://xxx.yyy.zzz", etc).

Any help is appreciated, and I can upload what I have to my zope.org
folder if that would help.

Thanks,

Bill Scherer


--------------263E78ADE63AC2ABCBC2F193
Content-Type: text/x-vcard; charset=us-ascii;
 name="scherbi.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Bill Scherer
Content-Disposition: attachment;
 filename="scherbi.vcf"

begin:vcard 
n:Scherer;William
x-mozilla-html:TRUE
org:Bell Atlantic Mobile
version:2.1
email;internet:scherbi@ampeg.corp.bam.com
title:Sr. Member of Applications Staff
x-mozilla-cpt:;0
fn:Scherer, William
end:vcard

--------------263E78ADE63AC2ABCBC2F193--