[Zope] Adding CookieUserFolder Programmatically

Zahid Malik z.malik@ic.ac.uk
Wed, 6 Mar 2002 17:54:25 +0000


Hope someone can help:

I'm trying to add a CookieUserFolder programmatically either with dtml
or python and I'm no expert!

I'm using Zope 2.5.1b1. After looking through all the source for CUF
I still can't create a CUF. Just for testing I've created an external method
which does this: 

from Products.CookieUserFolder.CookieUserFolder import manage_addCookieUserFolder

def zcreate( self ):
        manage_addCookieUserFolder( self )
	

This does do something but unfortunately it locks me out of the folder
that I create a CUF into and therefore I can't tell what happened.

Also I don't know how to add/edit/delete CUF users in python or dtml
which I really need to do.

Any help very very gratefully received.

Thanks

Zahid

-- 
--------------------------------------------------------------------
Dr Zahid Malik				Tel: +44 (0) 20 7594 6336
Research Fellow				Fax: +44 (0) 20 7581 4419
Dept. of Electrical Eng.		Email: 
Imperial College			http://infoeng.ee.ic.ac.uk/~malikz
Exhibition Road				
London  SW7 2BT