By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,675 Members | 2,255 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,675 IT Pros & Developers. It's quick & easy.

ZPT and "incompatible version None" error :(

P: n/a
I got strange errors in Zope 2.7.

METALError
macro 'context/base' has incompatible version None, at line 1, column 1

One ZPT file (named 'base') defines some simply slots:

<html
xmlns="http://www.w3.org/1999/xhtml"
xml:lang="en-US"
lang="en-US"
i18n:domain="plone"
metal:use-macro="here/main_template/macros/master">
<body>
<div metal:fill-slot="main">
<div metal:define-macro="content">
<div metal:define-slot="gora">[up]</div>
<div metal:define-slot="srodek">[middle]</div>
<div metal:define-slot="dol">[bottom]</div>
</div>
</div>
</body>
</html>

Another ZPT file try to fill one slot:

<div metal:use-macro="context/base">
<div metal:fill-slot="gora">Search|Read|Compare|History</div>
</div>

When I try to open it, I get the error mentioned above. Any idea?

--
JZ
Sep 12 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Jaroslaw Zabiello wrote:
I got strange errors in Zope 2.7.
2.7.?

METALError
macro 'context/base' has incompatible version None, at line 1, column 1
(snip)
When I try to open it, I get the error mentioned above. Any idea?

yes : try posting on a Zope/Plone related mailing-list. This is a Zope
Page Template specific problem, and you'll get better answers if you ask
in the right place.

Also, googling for ZPT + macro + "incompatible version" may be helpful too.

--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'o****@xiludom.gro'.split('@')])"
Sep 12 '05 #2

P: n/a
Dnia Mon, 12 Sep 2005 16:51:48 +0200, Jaroslaw Zabiello napisał(a):
Another ZPT file try to fill one slot:

<div metal:use-macro="context/base">
<div metal:fill-slot="gora">Search|Read|Compare|History</div>
</div>

When I try to open it, I get the error mentioned above. Any idea?


Solution was trivial

<div metal:use-macro="context/base/macros/content">
<div metal:fill-slot="gora">Search|Read|Compare|History</div>
</div>

--
JZ
Sep 13 '05 #3

P: n/a
Jaroslaw Zabiello wrote:
Dnia Mon, 12 Sep 2005 16:51:48 +0200, Jaroslaw Zabiello napisał(a):

Another ZPT file try to fill one slot:

<div metal:use-macro="context/base">
<div metal:fill-slot="gora">Search|Read|Compare|History</div>
</div>

When I try to open it, I get the error mentioned above. Any idea?

Solution was trivial

<div metal:use-macro="context/base/macros/content">


Duh ! I should have spotted this one :(
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'o****@xiludom.gro'.split('@')])"
Sep 13 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.