[Zope-dev] Deleting objects by the users

Casey Duncan cduncan@kaivo.com
Thu, 22 Mar 2001 07:34:23 -0700


Rik Hoekstra wrote:
> 
> one small correction:
> 
> the line:
>          <dtml-call expr="manage_delObjects(getId())">
> should read:
>          <dtml-call expr="manage_delObjects([getId(),])">
> 
> as the manage_delObjects takes a list as argument
> 
> hth
> 
> Rik

Actually manage_delObjects will take a string argument if it is a single
id. However a list with one item is also acceptable. Although you can
declare a list with the trailing comma, it is not strictly necessary.
That is only necessary for tuples because parens have double meaning in
Python. List brackets are unambiguous.
-- 
| Casey Duncan
| Kaivo, Inc.
| cduncan@kaivo.com
`------------------>