Zope, ZPT and slots

Discussion in 'Python' started by Jaroslaw Zabiello, Sep 13, 2005.

  1. I would like to lauch macro from another zpt file. It is easy, of course,
    but the problem is I would like the macro could has access to title_or_id
    attribute of its caller. I read API, tried template/id, context/id and
    container/id but without results.

    <span tal:content="template/id"/> displays only own id, not its caller :(

    <span tal:content="context/id"/> displays only id of the folder where this
    zpt file and its macro is located. The same is for
    tal:content="container/id"/> ;(

    --
    JZ
     
    Jaroslaw Zabiello, Sep 13, 2005
    #1
    1. Advertising

  2. Re: [OT] Zope, ZPT and slots

    Jaroslaw Zabiello wrote:
    > I would like to lauch macro from another zpt file.


    (snip - tech answer in private)

    Please stop posting Zope and ZPT related questions here. There are
    mailing-lists dedicated to Zope. That's where you'll get the good answers.

    --
    bruno desthuilliers
    ruby -e "print ''.split('@').collect{|p|
    p.split('.').collect{|w| w.reverse}.join('.')}.join('@')"
     
    bruno modulix, Sep 13, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Shane Hathaway
    Replies:
    2
    Views:
    335
    Michael Hudson
    Aug 29, 2003
  2. Richard Wesley

    Standalone ZPT and Batch

    Richard Wesley, Jan 12, 2004, in forum: Python
    Replies:
    0
    Views:
    328
    Richard Wesley
    Jan 12, 2004
  3. JZ
    Replies:
    1
    Views:
    371
    Max M
    May 3, 2005
  4. Jaroslaw Zabiello

    ZPT and "incompatible version None" error :(

    Jaroslaw Zabiello, Sep 12, 2005, in forum: Python
    Replies:
    3
    Views:
    378
    bruno modulix
    Sep 13, 2005
  5. tin gherdanarra

    slots? SLOTS?

    tin gherdanarra, Oct 12, 2005, in forum: Python
    Replies:
    2
    Views:
    2,329
    Peter Hansen
    Oct 13, 2005
Loading...

Share This Page