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
Migration from Zope3 to Pyramid. Step 1: ZPT + z3c.pagelet
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
  5 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
 
Sebastien Douche  
View profile  
 More options Sep 15 2011, 9:00 pm
From: Sebastien Douche <sdou...@gmail.com>
Date: Fri, 16 Sep 2011 03:00:36 +0200
Local: Thurs, Sep 15 2011 9:00 pm
Subject: Migration from Zope3 to Pyramid. Step 1: ZPT + z3c.pagelet
Hi Folks,
currently we have an application under Zope3 (ZTK 1.1.2) and we want
migrate to Pyramid. The first step is imho to use Pyramid libs for
publishing content, aka Chameleon.

Question: z3c.pagelet works with Chameleon? if not, what is the best
migration path to switch? Remove pagelet? Use another zpt extension?

Thanks.

--
Sebastien Douche <sdou...@gmail.com>
Twitter : @sdouche


 
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.
Chris McDonough  
View profile  
 More options Sep 15 2011, 9:41 pm
From: Chris McDonough <chr...@plope.com>
Date: Thu, 15 Sep 2011 21:41:41 -0400
Local: Thurs, Sep 15 2011 9:41 pm
Subject: Re: Migration from Zope3 to Pyramid. Step 1: ZPT + z3c.pagelet

On Fri, 2011-09-16 at 03:00 +0200, Sebastien Douche wrote:
> Hi Folks,
> currently we have an application under Zope3 (ZTK 1.1.2) and we want
> migrate to Pyramid. The first step is imho to use Pyramid libs for
> publishing content, aka Chameleon.

> Question: z3c.pagelet works with Chameleon? if not, what is the best
> migration path to switch? Remove pagelet? Use another zpt extension?

At this point, it's hit or miss whether any particular zope.foo library
will work under Pyramid.  In general, zope libraries that depend on
Zope's publisher or request implementation will plain just not work.

I've never used z3c.pagelet, but given a quick look at some of its
implementations, it's very unlikely it will work because it depends on
e.g. zope.publisher (which Pyramid replaces entirely), and z3c.form,
which depends on Zope-style request objects (which Pyramid doesn't
have).

So I think it's largely a rewrite one way or another.

I can't really suggest how to rewrite zc.pagelet.  Its readme is written
in terms of satisfying a goal I've never shared, I don't want to share,
and I don't want to understand or even know anything about.

I'd suggest instead rewriting your application code to disuse pagelets,
using something simpler you write in its place.  If that sounds
unpalatable, I'd probably have to suggest just sticking with Zope 3.

- C


 
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.
Sebastien Douche  
View profile  
 More options Apr 27 2012, 8:53 am
From: Sebastien Douche <sdou...@gmail.com>
Date: Fri, 27 Apr 2012 14:53:33 +0200
Local: Fri, Apr 27 2012 8:53 am
Subject: Re: Migration from Zope3 to Pyramid. Step 1: ZPT + z3c.pagelet

On Fri, Sep 16, 2011 at 03:41, Chris McDonough <chr...@plope.com> wrote:

Hi Chris
Sorry for replying so late but at last, we use Chameleon (with z3c.ptcompat).

> I can't really suggest how to rewrite zc.pagelet.  Its readme is written
> in terms of satisfying a goal I've never shared, I don't want to share,
> and I don't want to understand or even know anything about.

It could not be clearer :). How you write "reusable" template with
Pyramid? With Chameleon and METAL? Mako? Jinja?

--
Sebastien Douche <sdou...@gmail.com>
Twitter: @sdouche / G+: +sdouche


 
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.
Chris McDonough  
View profile  
 More options Apr 27 2012, 9:07 am
From: Chris McDonough <chr...@plope.com>
Date: Fri, 27 Apr 2012 09:07:11 -0400
Local: Fri, Apr 27 2012 9:07 am
Subject: Re: Migration from Zope3 to Pyramid. Step 1: ZPT + z3c.pagelet
On 04/27/2012 08:53 AM, Sebastien Douche wrote:

> On Fri, Sep 16, 2011 at 03:41, Chris McDonough<chr...@plope.com>  wrote:

> Hi Chris
> Sorry for replying so late but at last, we use Chameleon (with z3c.ptcompat).

>> I can't really suggest how to rewrite zc.pagelet.  Its readme is written
>> in terms of satisfying a goal I've never shared, I don't want to share,
>> and I don't want to understand or even know anything about.

> It could not be clearer :). How you write "reusable" template with
> Pyramid? With Chameleon and METAL? Mako? Jinja?

I personally use METAL yes.

- C


 
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.
Brian Sutherland  
View profile  
 More options Apr 27 2012, 10:00 am
From: Brian Sutherland <br...@vanguardistas.net>
Date: Fri, 27 Apr 2012 16:00:10 +0200
Local: Fri, Apr 27 2012 10:00 am
Subject: Re: Migration from Zope3 to Pyramid. Step 1: ZPT + z3c.pagelet

On Fri, Apr 27, 2012 at 02:53:33PM +0200, Sebastien Douche wrote:
> On Fri, Sep 16, 2011 at 03:41, Chris McDonough <chr...@plope.com> wrote:

> Hi Chris
> Sorry for replying so late but at last, we use Chameleon (with z3c.ptcompat).

> > I can't really suggest how to rewrite zc.pagelet. Its readme is written
> > in terms of satisfying a goal I've never shared, I don't want to share,
> > and I don't want to understand or even know anything about.

> It could not be clearer :). How you write "reusable" template with
> Pyramid? With Chameleon and METAL? Mako? Jinja?

I've started to think of templates as plain old python functions that
return unicode. So an example of a reusable template is something like
this for me:

    def navigation(request, links):
        ...

Putting templates together then becomes putting functions together.
Often I use Chameleon to do the actual rendering, but sometimes not.

--
Brian Sutherland


 
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 »