[ZCM] [ZC] 756/ 2 Reject "Python Scripts eat comments"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin@zope.org
Thu, 02 Jan 2003 18:42:50 -0500


Issue #756 Update (Reject) "Python Scripts eat comments"
 Status Rejected, Zope/bug low
To followup, visit:
  http://collector.zope.org/Zope/756

==============================================================
= Reject - Entry #2 by mcdonc on Jan 2, 2003 6:42 pm

 Status: Pending => Rejected

This is actually documented in the Zope Book at http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/BasicObject.stx (uploading a script (python) section).

The new edition will become current soon.
________________________________________
= Request - Entry #1 by reiman on Jan 2, 2003 6:37 pm

Create a python script object in the ZMI. Start the first line with '##', then save. The ZMI will save then reload the script text. The first line will be missing, as well as any other contiguous lines starting with ## and any following whitespace before the script body.

This is not critical (indeed, it might even be a feature since it parses '##title' et al) but could easily confuse a newbie, especially since the Zope book's chapter on ZPT uses scripts that start with '## Script'. If it is not a bug, then the book should be changed so this weirdness is not visible.

==============================================================