[EMAIL PROTECTED] writes:
> Hallo,
> 'news'is a zclass and when I'm using a hardcoded value for x it's working.
>
> that's the cloning-method:
> ------------------------------
> <dtml-in "objectValues(['news'])">
> <dtml-let x=sequence-item>
>
> <dtml-if "now.isCurrentDay()">
> <dtml- call "manage_clone(_.getitem('x',0),'firstclone', [REQUEST])">
>
> Copied!
> <dtml-else>
> Not needed to clone!!
> </dtml-if>
> </dtml-let>
> </dtml-in>
> ------------------------------
> And the traceback:
> ---------------
> The object one does not support this operation
Whereever you use a name in DTML, the referenced object
is called, if it is callable.
In your case, you use the name "sequence-item" in the "dtml-let".
Apparently, your "news" instances are callable.
If I am right, then "x" is a string (which of cause does not
support cloning).
Try:
<dtml-let x="_.getitem('sequence-item')">
....
</dtml-let>
Dieter
_______________________________________________
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )