Re: [Zope-dev] Can I get rid of standard_template.pt?
On Sat, 11 May 2002 11:27:31 +0200, Stefan H. Holek [EMAIL PROTECTED] wrote: I think it was Matt who pointed out to me that I could create harmless substitute objects (say, Files) for the things I do not want autocreated. -) Delete session_data_manager -) Add File named session_data_manager -) Voila, core sessions disabled This will however not help you if your intention is to unclutter the root folder... I think creating a property of the right name should have the same effect. Is that less cluttering? Toby Dickenson [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Can I get rid of standard_template.pt?
From: Toby Dickenson [EMAIL PROTECTED] I think creating a property of the right name should have the same effect. Right, thats what I'm gonna try. Is that less cluttering? Yes, it is. Not for a programmer, maybe, but for an end user, sure. And those are the ones I worry about. Next step is to get rid of standard_error_message and standard_html_header/footer too. But there I'm gonna replace standard_error_message with someting that is context aware and aware of our templating system, so it can give the right type of output in any case. The end users will be much less confused! Best Regards Lennart Regebro Torped Strategi och Kommunikation AB ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Can I get rid of standard_template.pt?
Stefan H. Holek wrote: --On Freitag, 10. Mai 2002 08:27 -0700 Andy McKay [EMAIL PROTECTED] wrote: But... when you restart Zope it recreates them all again for you :) However you can delete the Examples and not have them come back ;) I think it was Matt who pointed out to me that I could create harmless substitute objects (say, Files) for the things I do not want autocreated. -) Delete session_data_manager -) Add File named session_data_manager -) Voila, core sessions disabled This will however not help you if your intention is to unclutter the root folder... Regards, Stefan My apologies for jumping in to the discussion a few days late, but I saw my name ;) I have mixed feelings on some of the reserved names in Zope. On the one hand, I certainly understand that people want to be able to customize *everything* and that means being able to delete things etc from the root folder. On the other hand, we want to have a known 'stable base' which is pretty much guaranteed to exist for product writers, to facilitate interoperability. What we don't have is a good way of saying I *know* I can shoot myself, but I swear if I do I wont bleed on your carpet. So far, my preferences are for the latter; that is, I would prefer a well-defined area that has known contents. Like them or not, that includes the standard_* pages as well as various other objects. In the Zope 2 context, being able to know things exist by name without having to go through gyrations to confirm them is highly useful. To my mind, this utility outweighs the clutter aspect. Said differently, the small benefit of the common names multiplied by the broad general user base has a higher value of the large benefit (to the beholder) of the aesthetic root folder multiplied by a small user base. And, as Andy has pointed out, you can easily go tweak the reserved names out of the source. -- Matt Kromer Zope Corporation http://www.zope.com/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Can I get rid of standard_template.pt?
--On Freitag, 10. Mai 2002 08:27 -0700 Andy McKay [EMAIL PROTECTED] wrote: But... when you restart Zope it recreates them all again for you :) However you can delete the Examples and not have them come back ;) I think it was Matt who pointed out to me that I could create harmless substitute objects (say, Files) for the things I do not want autocreated. -) Delete session_data_manager -) Add File named session_data_manager -) Voila, core sessions disabled This will however not help you if your intention is to unclutter the root folder... Regards, Stefan -- Things work better when plugged in. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Can I get rid of standard_template.pt?
I'm not using it, and will never use it, so why does Zope 2.5.1 always create one for me? Grrr. Highly annoying. :-[ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Can I get rid of standard_template.pt?
Lennart Regebro wrote: I'm not using it, and will never use it, so why does Zope 2.5.1 always create one for me? Grrr. Highly annoying. :-[ From Zope 2.1.3 (when I started Zopeing), I could write a Python Product that expected standard_html_header and standard_html_footer to exist. From Zope 2.5.1, I can write a Python Product that expects standard_template.pt to exist. -- Steve Alexander ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Can I get rid of standard_template.pt?
From: Steve Alexander [EMAIL PROTECTED] From Zope 2.5.1, I can write a Python Product that expects standard_template.pt to exist. I dont see the purpose of that. Checking that is exists is trivial if you need it. I don't. I want to get rid of it, thankyouverymuch. Guess I'll just have to patch the core, as usual. Ah well. *Deep sigh*. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Can I get rid of standard_template.pt?
If its the same as earlier zopes its line 174 of OFS\Application.py remove the offending reserved names. Except maybe for Control_Panel, it seems pointless. If the item's not there, an error is raised. Simple. To me there should just be a warning message, Removing this item may cause some products that expect this not to work, are you sure you want to do this? Likewise I will probably get rid of standard_template.pt, most of the session stuff... This also lets you do useful things like make standard_error_message a Python Script, yipeee. - Original Message - From: Lennart Regebro [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 10, 2002 5:36 AM Subject: [Zope-dev] Can I get rid of standard_template.pt? I'm not using it, and will never use it, so why does Zope 2.5.1 always create one for me? Grrr. Highly annoying. :-[ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Can I get rid of standard_template.pt?
I looked at 2.5 on surprised to see that apart from Control Panel only 'browser_id_manager' and 'temp_folder' are protected meaning you can delete all the others. I threw a monkeypatch up that allows you to delete them anyway, and it will work for pre 2.4 systems (http://www.zope.org/Members/andym/Reserved) But... when you restart Zope it recreates them all again for you :) However you can delete the Examples and not have them come back ;) Since its all one big function in Application.py, it will be a little bit hard to monkey patch further but could probably be a little more consistent to say the least. - Original Message - From: Andy McKay [EMAIL PROTECTED] To: Lennart Regebro [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, May 10, 2002 7:20 AM Subject: Re: [Zope-dev] Can I get rid of standard_template.pt? If its the same as earlier zopes its line 174 of OFS\Application.py remove the offending reserved names. Except maybe for Control_Panel, it seems pointless. If the item's not there, an error is raised. Simple. To me there should just be a warning message, Removing this item may cause some products that expect this not to work, are you sure you want to do this? Likewise I will probably get rid of standard_template.pt, most of the session stuff... This also lets you do useful things like make standard_error_message a Python Script, yipeee. - Original Message - From: Lennart Regebro [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 10, 2002 5:36 AM Subject: [Zope-dev] Can I get rid of standard_template.pt? I'm not using it, and will never use it, so why does Zope 2.5.1 always create one for me? Grrr. Highly annoying. :-[ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )