[ZPT] metal design flaw: converting "define-macro" into "use-macro"

Dieter Maurer dieter@handshake.de
Thu, 20 Sep 2001 21:21:33 +0200 (CEST)


Zope 2.3.3 with PageTemplates 1.4.0

  When a PageTemplate containing a macro definition is
  processed (read in, uploaded, FTP-put),
  'metal:define-macro="macroname"' is converted into
  'metal:use-macro="macroname"'.

  When this template is subsequently changed via
  the Management Interface or FTP-get->modified->FTP-put,
  then we get a 'Metal error: macro not found "macroname"',
  as we have now a "use-macro" and no longer a "define-macro".

  It seems to me that the conversion "metal:define-macro"
  into "metal:use-macro" is a bad thing.


Dieter