473,800 Members | 2,507 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ZPT and "incompatib le version None" error :(

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="pl one"
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">Sea rch|Read|Compar e|History</div>
</div>

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

--
JZ
Sep 12 '05 #1
3 2353
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 + "incompatib le 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
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">Sea rch|Read|Compar e|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">Sea rch|Read|Compar e|History</div>
</div>

--
JZ
Sep 13 '05 #3
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">Sea rch|Read|Compar e|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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
2232
by: Sam Sungshik Kong | last post by:
Hello! I use Python for ASP programming. I found something weird. Response.Write(Request("something")) It draws "None" when there's no value for something. Actually I expect "" instead of "None". So I changed it like
5
1784
by: Daniel Crespo | last post by:
Is there a built-in method for transforming (1,None,"Hello!") to 1,None,"Hello!"? Thanks
2
2876
by: Jean | last post by:
Hello everyone, I was having the following problem with a query, and after failing to find a similar solution on these newsgroups I decided to post here. I am quite new to Access, so would appreciate any help/pointers in the right direction. The problem is that I keep getting the error to the likes of "Data types in the criterion expression are incompatible" when the query runs.
5
4641
by: z. f. | last post by:
sorry about the previous post, by mistake not completed. i have an asp.net page with the line <%@ OutputCache Duration="30" VaryByParam="none" %> but when i make requests to the page with different parameters, i get different result, but i tries to check if i set the VaryByParam to none there should be the same output for different parameters, so why does it not work?
6
5269
by: PraZ | last post by:
Hi all. Here is a simple code, which when compiled with gcc results in the warning "incompatible pointer type" for arg 1, as expected. But this is just what I want to do, because it makes it easy for me to handle the single dimensional stream I have as a multidimensional array inside the function func(). Now, I am just wondering if there is a way by which I can disable this incompatible pointer type warning in gcc. Any suggestions?
2
4752
by: spifster | last post by:
Hello all, I am building a collapsable tree using Javascript with DOM in IE. In order to make collapsed cells disappear I have been hiding the text. The cells collapse but still leave borders behind. I have set the borderStyle to none and the black lines go away, but there is still white space where the borders were. Following are my html files I am using to test it. ----------------BEGIN HTML FILE----------------
1
1223
by: --== Alain ==-- | last post by:
Hi, I've seen that on all component it is possible to have (none) as value for a property. Usually i see it for Image or ImageList property type. So tried it on my component. I can set the image without problem, but i can not clear the property if i do not want to use it... to clean the property, i mean by that, to not allocate an image data to it... so it should display (none) as value.
1
2832
by: Jim Davis | last post by:
I've been happily using a custom error handler of the following form for a while now: window.onerror = function(Message, URL, Line) { ... } The current case is an intranet application (support for IE 6.x is the only browser requirement) used by a small group of people. The custom error handler presents information about the corporate help desk and allows the user to email the information to the support team.
3
18985
by: jariwaladivyesh | last post by:
Hi frnds, i have simple XML doc <?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href="test.xsl"?> <data> <name> Divyesh Jariala</name> </data>
0
9690
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9551
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10251
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7576
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5469
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5606
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2945
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.