[Zope] Problems with Coding differences to do same stuff...
boundary="------------EAFFAD5A57052936695E91D7"
Dieter Maurer
dieter@handshake.de
Wed, 19 Jul 2000 23:10:17 +0200 (CEST)
> Trying to do a simple thing as creating a document and then adding a
> property with an DTML method, found that the following code does not
> work, it comes up with a password request (all security settings are at
> defaults):
>
> <dtml-call
> "company.noticias.manage_addDTMLDocument(titulo,subtitulo,texto)">
> <dtml-with "company.noticias._[titulo]">
> <dtml-call
> "propertysheets.manage_addProperty('link',resumen,'text')" >
> </dtml-with>
Try
<dtml-with "_.getattr(company.noticias,_[titulo])">
In DTML, you are not allowed to access any attribute
starting with "_".
And in fact, "_" is not even an attribute of "company.noticias".
Dieter