[ZCM] [ZC] 2282/ 4 Comment "example applications are poor examples"

"Collector: Zope Bugs, Features, and Patches ..." <[email protected]> Fri, 27 Jul 2007 02:27:31 -0400
Newsgroups gmane.comp.web.zope.devel.collector-monitor
Message-ID <[email protected]>
Issue #2282 Update (Comment) "example applications are poor examples"
 Status Pending, Zope/bug medium
To followup, visit:
  http://www.zope.org/Collectors/Zope/2282

==============================================================
= Comment - Entry #4 by mcdonc on Jul 27, 2007 2:27 am

After poking around a bit, I've found that this isn't really a problem with the examples, instead it's a bug which causes the entire page template to be rendered instead of just macro-included content when "expand macros while editing" is checked (i.e. if "self.expand" is true on the template object).  Due to this bug, and because self.expand is true for the imported example objects, the initial thing shown in the textarea is the full-on rendering of the template as opposed to the template source.

The same problem is not evident in Zope 2.8.  But rankly I'm not sure what the hell "expand macros while editing" is supposed to do, it doesn't seem to expand the macros at all in 2.8 even when its selected.

I don't know how to fix this but it's a bug because any zexp-exported pagetemplate with self.expand set to true is essentially noneditable in the web interface in 2.10+.

________________________________________
= Resubmit - Entry #3 by mcdonc on Jul 26, 2007 10:58 am

 Status: Wontfix => Pending

What is the real problem here?  When the examples are imported, what causes this behavior?  It seems to show the rendered view.  Is it due to the change to Z3 page templates?  Note that the quickstart page on the trunk still has links that try to import and view the examples.
________________________________________
= Wontfix - Entry #2 by ajung on Feb 24, 2007 10:49 am

 Status: Pending => Wontfix

The quickstart and examples stuff are obsolete. This won't be fixed.
________________________________________
= Request - Entry #1 by bjdevlin on Feb 23, 2007 4:25 pm

The index_html object in the GuestBook, FileLibrary, Navigation and ShoppingCart examples installed by the Zope Quick Start' at the top right of the ZMI do not contain DTML or TAL markup.  

This is very confusing for newbies like myself, as we cannot understand how these sample applications are working.  Either the wrong thing is being displayed upon clicking on the Edit tab, or some new technique is being used in linking the ordinary html in the index_html with the other components (scripts, folders, etc) that make up these applications.  This needs to be fixed as they are currently a barrier to learning Zope.

Trying to discuss these discrepencies on IRC just brought up implications one had not RTFM.  
==============================================================