Problems with Coding differences to do same stuff...
Hello all: 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> titulo,subtitulo and resumen come from a form that calls itself upon validating the submit button value. Of course folders company and noticias DO exist. This instead works: <dtml-call "company.noticias.manage_addDTMLDocument(titulo,subtitulo,texto)"> <dtml-with "company.noticias"> <dtml-in objectValues> <dtml-in propertyValues> <dtml-if "id() == _[titulo]"> <dtml-with id> <dtml-call "propertysheets.manage_addProperty('link',resumen,'text')" > </dtml-with> </dtml-if> This is the hard way of doing it, I believe. What is wrong with the first sample of code ? As said before, something about permissions is wrong on the first case and the 2nd one works even nothing related to security has been changed. Both pieces of code live in the same form. Any help would be appreciated. Thanks in advance. Ed.
participants (1)
-
Felipe E. Barousse Boué