[Zope] HTML Document

bk_andre@ns1.netonshop.dk bk_andre@ns1.netonshop.dk
Thu, 18 Jul 2002 10:39:23 +0200 (CEST)


Hi

I have tried the following:
-----------------------------------------------------
"""
Opretter et st=E6vne
"""
# Opret unik id
id =3D 'entry_%d' % len(context.objectIds())

# Opret st=E6vnet
context.manage_addProduct['OFSP'].manage_addHTMLDocument(id, file=3D'',=20
title=3Dstv_name)


doc=3Dgetattr(context, id)
doc.manage_addProperty('start', start, 'string')

------------------------------------------------------

When i run the script i get the following error:


Zope Error
Zope has encountered an error while publishing this resource.

Error Type: AttributeError
Error Value: manage_addHTMLDocument


Do you have any idea??


Jens


Citat John Whalley <J.H.Whalley@mmu.ac.uk>:

> Try: addHTMLDocument
>=20
> Seems to work for me.
>=20
> HTH
> John Whalley
>=20
>=20
> andre <zope@bkinformatik.dk> 17/07/02 21:05:21:
>=20
> >If i use the HTMLDocument product, how can i then make it possible
> for
> a user=20
> >to upload a file from a HTML-Form. I can't find a method like the
> addFile,=20
> >addImage etc.
> >
> >Thank's in advance
> >
> >Jens Bjerre
>=20
>=20
>=20
> --=20
> * John Whalley, Crewe Site Library, Manchester Metropolitan University
> * email: J.H.Whalley@mmu.ac.uk
> * Phone: (+44) 161 247 5220 (UK)
> * Usual disclaimer applies...........
>=20