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.
begin:vcard 
n:Barousse Boué;Felipe E.
tel;fax:+(52)5247-0272
tel;work:+(52)5247-0272
x-mozilla-html:FALSE
url:http://www.piensa.com/
org:Bufete Consultor de Mexico - Piensa Systems;Supercomputer Cluster Systems group
version:2.1
email;internet:[EMAIL PROTECTED]
title:CEO, Director General
note:Tel: +(52)5247-0272
adr;quoted-printable:;;Ap. CAP Polanco 336=0D=0ACol. Anzures;Mexico City;D.F.;11550;Mexico
x-mozilla-cpt:;-27680
fn:Felipe E. Barousse Boué
end:vcard

Reply via email to