[ZPT] load_site.py
Gidon Friedman
gfried@stars.ch
Mon, 15 Oct 2001 12:36:03 +0200
hi
i wan't to upload a batch of files into zope with load_site.
And i don't want DTML but ZPT from my html-files.
so i tried:
call(object.manage_addProduct['PageTemplates'].manage_addPageTemplate,
id=name)
but get
Traceback (innermost last):
File "load_site.py", line 376, in ?
if __name__=='__main__': main()
File "load_site.py", line 174, in main
for f in files: upload_file(object, f)
File "load_site.py", line 196, in upload_file
call(object.manage_addProduct['PageTemplates'].manage_addPageTemplate,
id=name)
AttributeError: __getitem__
i also tried a few other things, but i'm getting nowhere. any help is
appreciated.
anybody did that already by any chance?
thanks
Gidon