I've just got the following error on a macros page:

_macros' object has no attribute 'index'

Where the metal is

<html metal:use-macro="context/@@new_macros/page">

original template is

<metal:macro metal:define-macro="page"
> <html metal:use-macro="context/main_template/macros/master">
<metal:slot metal:fill-slot="style_slot"
> <metal:slot metal:define-slot="style_slot" /></metal:slot>
<metal:slot metal:fill-slot="body"
> <metal:slot metal:define-slot="body"/></metal:slot>

And the macros configured as a subclass from Five's standardmacros.Macros

Having just upgraded from Zope 2.11 and CMF 2.1+ there are a lot of places
to look

As the template itself is registered as a view then I can workaround the
problem with

<html metal:use-macro="context/base_template/page">

But would appreciate any pointers in the right direction.

Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Helmholtzstr. 20
D- 40215
Tel: +49-211-600-3657
Mobile: +49-178-782-6226
Zope-CMF maillist  -  Zope-CMF@zope.org

See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests

Reply via email to