RE: [Zope] standard_html_header & standard_html_footer
Why are standard_html_header and standard_html_footer reserved names? I was trying to reduce the clutter in my root folder when I discovered that Zope wouldn't let me delete these two objects unless I modified _reserved_names in lib/python/Products/OFS/Application.py. -- Stephen Pitts
Hi Stephen, The standard header and footer in the root Folder are reserved names that can't be deleted mainly because certain parts of zope (such as the std error template and the "default" content of new DTML Documents and Methods) expect them to be available. If, say, a Zope newbie were to delete them without knowing what the consequences were, they would then find that all of their dtml docs/methods generated with the default content would appear broken (and the error message reporting the error would also probably be broken). Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com
Hi Stephen,
The standard header and footer in the root Folder are reserved names that can't be deleted mainly because certain parts of zope (such as the std error template and the "default" content of new DTML Documents and Methods) expect them to be available. Yes, but what if I've both changed standard_error_message and have no documents that depend on standard_html_[header,footer]?
If, say, a Zope newbie were to delete them without knowing what the consequences were, they would then find that all of their dtml docs/methods generated with the default content would appear broken (and the error message reporting the error would also probably be broken).
I don't buy it. Don't sacrifice flexibility for the sake of a hypothetical newbie. In a worst case scenario, the newbie would post to the list, find out that he/she did something bad, use "Undo" to retrieve the documents, and learn something about Zope in the process. The best way to learn not to touch a hot stove is to get burnt. -- Stephen Pitts smpitts@midsouth.rr.com webmaster - http://www.mschess.org
On Tue, 18 Jan 2000, Stephen Pitts wrote:
Hi Stephen,
The standard header and footer in the root Folder are reserved names that can't be deleted mainly because certain parts of zope (such as the std error template and the "default" content of new DTML Documents and Methods) expect them to be available. Yes, but what if I've both changed standard_error_message and have no documents that depend on standard_html_[header,footer]?
If, say, a Zope newbie were to delete them without knowing what the consequences were, they would then find that all of their dtml docs/methods generated with the default content would appear broken (and the error message reporting the error would also probably be broken).
I don't buy it. Don't sacrifice flexibility for the sake of a hypothetical newbie. In a worst case scenario, the newbie would post to the list, find out that he/she did something bad, use "Undo" to retrieve the documents, and learn something about Zope in the process. The best way to learn not to touch a hot stove is to get burnt.
Sorry, I disagree here. I would rather have the experience user have to go and remove them from the source than have the newbie burn his fingers. The user who wants to remove std_html_hdr is much more likely to be experienced and be able to edit two lines of code and learn more about zope than say a newbie is is likely to become frustrated and give up. You haven't really lost the flexibility anyway because all you have to do is edit one line of code. Cheers, Benno
Stephen Pitts wrote:
Hi Stephen,
The standard header and footer in the root Folder are reserved names that can't be deleted mainly because certain parts of zope (such as the std error template and the "default" content of new DTML Documents and Methods) expect them to be available. Yes, but what if I've both changed standard_error_message and have no documents that depend on standard_html_[header,footer]?
Then you forgot the default document content of DTML Documents and DTML Methods. ;-) -- In flying I have learned that carelessness and overconfidence are usually far more dangerous than deliberately accepted risks. -- Wilbur Wright in a letter to his father, September 1900
participants (4)
-
Ben Leslie -
Bill Anderson -
Brian Lloyd -
Stephen Pitts