[Zope] Problems with Coding differences to do same stuff...
Felipe E. Barousse Boué
fb@piensa.com
Wed, 19 Jul 2000 01:14:22 -0500
This is a multi-part message in MIME format.
--------------EAFFAD5A57052936695E91D7
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
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.
--------------EAFFAD5A57052936695E91D7
Content-Type: text/x-vcard; charset=us-ascii;
name="fb.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Felipe E. Barousse Boué
Content-Disposition: attachment;
filename="fb.vcf"
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:fbarousse@piensa.com
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
--------------EAFFAD5A57052936695E91D7--