> 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

_______________________________________________
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 )

Reply via email to