ZPT and "incompatible version None" error :(

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jaroslaw Zabiello

    #1

    ZPT and "incompatible 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
  • bruno modulix

    #2
    Re: ZPT and &quot;incompati ble version None&quot; error :(

    Jaroslaw Zabiello wrote:[color=blue]
    > I got strange errors in Zope 2.7.[/color]

    2.7.?
    [color=blue]
    >
    > METALError
    > macro 'context/base' has incompatible version None, at line 1, column 1
    >[/color]
    (snip)[color=blue]
    >
    > When I try to open it, I get the error mentioned above. Any idea?
    >[/color]
    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 'onurb@xiludom. gro'.split('@')])"

    Comment

    • Jaroslaw Zabiello

      #3
      Re: ZPT and &quot;incompati ble version None&quot; error :(

      Dnia Mon, 12 Sep 2005 16:51:48 +0200, Jaroslaw Zabiello napisa³(a):
      [color=blue]
      > 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?[/color]

      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

      Comment

      • bruno modulix

        #4
        Re: ZPT and &quot;incompati ble version None&quot; error :(

        Jaroslaw Zabiello wrote:[color=blue]
        > Dnia Mon, 12 Sep 2005 16:51:48 +0200, Jaroslaw Zabiello napisa³(a):
        >
        >[color=green]
        >>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?[/color]
        >
        >
        > Solution was trivial
        >
        > <div metal:use-macro="context/base/macros/content">[/color]

        Duh ! I should have spotted this one :(


        --
        bruno desthuilliers
        python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
        p in 'onurb@xiludom. gro'.split('@')])"

        Comment

        Working...