[Zope-CMF] Error with CMF WIki and CMF 1.3 - is acquisition biting
my butt?
Heimo Laukkanen
huima@fountainpark.org
Sun, 11 Aug 2002 20:11:00 +0300
Update on the issue. I checked out the files throwing errors.=20
wikipage_create_handler and the form wikipage_create_form.
wikipage_create_handler was following:
--------------------------------------
<dtml-call expr=3D"create_page( page=3DREQUEST['page']
, text=3DREQUEST['text']
, log=3DREQUEST['log']
)">
<dtml-call expr=3D"REQUEST['RESPONSE'].redirect(
this().aq_parent[page].wiki_page_url()
+ '?portal_status_message=3DPage+added.' )">
I didin't see what is wrong with that - and I really didn't want to=20
start grokking DTML anymore, so I did the same thing with PythonScript.=20
And it started to work. Difference between the dtml and PS is that on=20
the redirect page is explicitly taken from request, where as in dtml it=20
was taken from the namespace - and this was propably one of the reasons=20
for my errors.
wikipage_create_handler - Python Script
----------------------------------------
request =3D container.REQUEST
RESPONSE =3D request.RESPONSE
context.create_page(page=3Drequest['page'],text=3Drequest['text'],=20
log=3Drequest['log'])
RESPONSE.redirect(=20
context.aq_parent[request['page']].wiki_page_url()+'?portal_status_messag=
e=3DPage+added.'=20
)
Could someone test and try that if they will have the same happen to=20
them too, and if this will fix it. Possibly this could also be updated=20
to that unmaintained CMFWiki in CVS.
Thanks.
--=20
Heimo Laukkanen
Oy Fountain Park Ltd
H=E4meentie 153 B, 00560 Helsinki, Finland
tel. +358 9 777 68 161, gsm +358 40 759 1110, fax +358 9 777 68 100
http://www.fountainpark.org