You are not logged in Log in Join
You are here: Home » Members » kslee » [Standard] DTML Repository Patch(sort of ...)

Log in
Name

Password

 
 

Folder icon [Standard] DTML Repository Patch(sort of ...)

If you want other than the hard-coded "Default DTML Document/Method", this "patch" is for you. It's far more flexible and less dirty than the hack I've described at How-To Change your Default DTMLs, IMHO.

How to Use
After installation, create "StDTMLRepo" folder in your acquisition path(for example, at root folder) and put there some DTML Documents/Methods which you want to use as templates. Then there will appear a selection box in your "Add DTML Document/Method" screen. You can turn off/on this selection box at will later. Please see Release Information for more explanation.

How to Install
Although it has "patch" in the name, it is not a patch file(Being a perennial newbie, I've never used patch, sorry :^). To install, untar at the ZOPE installation directory. It will overwrite four files in the lib/python/OFS directory:

DTMLDocument.py, DTMLMethod.py, documentAdd.dtml, methodAdd.dtml.

Don't panic. I've included the original files in the archive with ".original" extension attached. See Installation Instructions for a little more explanation.

I've tested this on a Windows box(ZOPE 2.1.0) and a Linux box(ZOPE 2.1.2) and it seemed quite stable. So I do not see any critical problem. But be aware that this is by a perennial newbie.

I'd be glad if this is found usefull. As usual cricitisms & suggestions are welcome. When I guess out enough, I'll add an ability to fetch a template on the other ZOPE instance.

If you read this line, You can be sure that I sincerely thank you for reading my clumsy English so far.

 Title   Type   Size   Modified   Status 
 (Standard) DTML Repository Patch Edit object Software Release   2000-01-13 published
 (Standard) DTML Repository Patch Edit object Software Release   2000-01-18 published