hi I am a newbie and it shows ... I am writing a python script; I would like to create pagetemplates and extfiles (I have succesfully added the ExtFile product to Zope) so I am trying to call container.manage_addTemplateFile(id="my_tem__file",file="contenuto") or container.manage_addExtFile(id="my_tem__file",file="contenuto") from within my Python script; but this fails, saying Error Type: AttributeError Error Value: manage_addTemplateFile what is the error? a. ps: please CC any answer to me also -- Andrea Mennucc "E' un mondo difficile. Che vita intensa!" (Renato Carotone)
On Tue, 26 Mar 2002 12:42:03 +0100 Andrea Mennucc <debian@Tonelli.sns.it> wrote:
hi
I am a newbie and it shows ...
I am writing a python script; I would like to create pagetemplates and extfiles (I have succesfully added the ExtFile product to Zope)
so I am trying to call container.manage_addTemplateFile(id="my_tem__file",file="contenuto") or container.manage_addExtFile(id="my_tem__file",file="contenuto")
from within my Python script; but this fails, saying Error Type: AttributeError Error Value: _addTemplateFile
what is the error?
This error is raised, because the attribute manage_addTemplateFile is not found in the object container. Try this line (note, should be on one line) container.manage_addProduct['PageTemplates'].manage_addPageTemplate(id="m y_tem__file.pt", title="test file") HTH, __Janko
a.
ps: please CC any answer to me also
-- Andrea Mennucc "E' un mondo difficile. Che vita intensa!" (Renato Carotone)
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-- i.A. Dr. Janko Hauser Software Engineering c o m . u n i t G m b H online-schmiede seit 1994 http://www.comunit.de/ mailto:jh@comunit.de Eiffestr. 598 20537 Hamburg | Germany Fon 040 | 21 11 05 25 Fax 040 | 21 11 05 26
participants (2)
-
Andrea Mennucc -
Janko Hauser