Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
slots mechanism not working
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Andreas Jung  
View profile  
 More options Nov 1 2012, 6:42 am
From: Andreas Jung <li...@zopyx.com>
Date: Thu, 01 Nov 2012 11:41:50 +0100
Local: Thurs, Nov 1 2012 6:41 am
Subject: [Pyramid/Chameleon] slots mechanism not working

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Using Pyramid 1.4....and trying to use the slots mechanism of
ZPT through Chameleon as documented here:

http://chameleon.repoze.org/docs/latest/

I have a simple view

@view_config(route_name='home', renderer='templates/foo.pt')
def my_foo(request):
    return {'project':'pp-demo'}

with foo.pt

<html metal:use-macro="load: main.pt">

    <p metal:fill-slot="content">
        <div>
        hello world
        default title
        </div>
    <p/>
</html>

and a main.pt file:

<html xmlns="http://www.w3.org/1999/xhtml">
  <body>
      Content goes below...
      <hr/>
    <div id="content">
        <metal:content define-slot="content" >
            dummy default content
        </metal:content>
    </div>
      <hr/>
      Content goes above...
  </body>
</html>

However the rendered HTML does not contain the "hello world..."
text injected in foo.pt.

Why not?

- -aj
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQGUBAEBAgAGBQJQklHtAAoJEADcfz7u4AZjbP0Lv18Y0nMqHWaGzNk+ABZ5mxRX
dfYg8MHlF/KA9APm0aDZFMUTwHWWH3xo5XsvWilpWIBHxmwUFabZOj/vXaaM+Y2Z
y2Q2GMUvLHfZElrjw7hXlftWW8UnrFK3GiuZ5Xr63kcYD0F+elqgEj5Tw3H6XlKf
5vDSCeAOjAxp1Oa06qRBNXXbI0aaqIp9Fu4eVGAQruoLBeafymzMilflbLWt47wz
9vj9x9d1NBOTcnASfGQzdBSR5Jq2Xt7oH6AykyjEgb9n2E1n3OY9wrX3zSIk4Ium
AHbeK1r6SDyQKh9eEF9+YgFg8TUvUNFRevX+vmRDX+ecbO76mIT7VzTuNS8NgZy6
r+zc6lQFTpqzCjL3jc4JY9yXoDMLPIs9gw+whDg44+Wgl7urZBfIg5/2f4mfOpKO
uOCffsKMG6WdcFu16H2Z2MFEWVJ2DqKW5kCgGMbgLG3+KWbsop59q1vA7eC1cWr/
Mk/gsH7G1b91zDJ/fVjQO2h0wyHjgNU=
=IaxJ
-----END PGP SIGNATURE-----

  lists.vcf
< 1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andreas Jung  
View profile  
 More options Nov 1 2012, 7:21 am
From: Andreas Jung <li...@zopyx.com>
Date: Thu, 01 Nov 2012 12:20:40 +0100
Local: Thurs, Nov 1 2012 7:20 am
Subject: Re: [Pyramid/Chameleon] slots mechanism not working

Sorry for the noise...nothing but a stupid markup error :->

Andreas

  lists.vcf
< 1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Malthe Borch  
View profile  
 More options Nov 1 2012, 7:21 am
From: Malthe Borch <mbo...@gmail.com>
Date: Thu, 1 Nov 2012 12:21:03 +0100
Local: Thurs, Nov 1 2012 7:21 am
Subject: Re: [Pyramid/Chameleon] slots mechanism not working

Hey Andreas,

Take a look at your closing paragraph. It's incorrect!

\malthe

On 1 November 2012 11:41, Andreas Jung <li...@zopyx.com> wrote:

--
Au revoir, et tous mes voeux pour un avenir plein de succès et de bonheur ––

Malthe Borch
mbo...@gmail.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »