Note that this is really about Python packaging, not anything Pyramid specific. 
Plone does it, I think, by letting you develop and distribute "themes" without 
using Python packaging.

If you have a project that has two Python packages that you are working on, and 
want them both in development mode, do something like:

1) Make a my-theme directory with your setup.py etc.

2) Make a my-project directory for your application that uses the theme, with a 
setup.py

3) Make a virtual environment somewhere

4) Go to the my-theme directory and /path/to/virtualenv/bin/python setup.py 
develop

5) Ditto for my-project

At that point you will have a virtual environment with both packages in 
"develop" mode. Any changes you make in either directory will then be part of 
what is imported into Python.

As an alternative, use buildout to manage the sources and development for 
multiple Python packages.

--Paul

On Jan 23, 2014, at 9:07 PM, Winston Ferreira <[email protected]> wrote:

> That works pretty well for my case. But I'm still confused as to how to 
> create and work with multiples packages.By following the tutorial, I have to 
> create a project using a scaffold. 
> How do I create a "theme package" and an aplication project and work with 
> both? Do I just create a normal python package for my "theme" and create the 
> aplication using pcreate and selecting a scaffold?
> 
> 
> 2014/1/22 Paul Everitt <[email protected]>
> 
> If you're looking for a concept of splitting the "theming" into a different 
> abstraction from the normal view templates, then pyramid_layout might be what 
> you want:
> 
>   http://docs.pylonsproject.org/projects/pyramid_layout/en/latest/
> 
> With that you can make a Python package for a particular look-and-feel and 
> develop/distribute it separately from a particular application. Not exactly 
> the same as Diazo-style theming though.
> 
> --Paul
> 
> On Jan 22, 2014, at 11:30 AM, Laurent DAVERIO <[email protected]> wrote:
> 
> > Hi,
> >
> > I'm afraid you cannot compare Plone with Pyramid:
> >
> > - Plone is a ready-to-use web content management application with a
> > themeable interface
> >
> > - Pyramid is a web development framework with no standard, built-in user
> > interface.
> >
> > So, the notion of "theme" has no meaning in the context Pyramid.
> >
> > That being said, nothing prevents you (it may even be a good idea!) to
> > split your Pyramid applicatin into multiple namespace packages.
> >
> > Hope this helps,
> >
> > Laurent.
> >
> >
> >
> >> I come from the Plone world where the theme and app package are usually
> >> separate packages (mypackage.theme and mypackage.app).
> >> Is this possible in pyramid? How ?
> >>
> >> Thanks.
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "pylons-discuss" group.
> >> To unsubscribe from this group and stop receiving emails from it, send
> >> an email to [email protected].
> >> To post to this group, send email to [email protected].
> >> Visit this group at http://groups.google.com/group/pylons-discuss.
> >> For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "pylons-discuss" group.
> > To unsubscribe from this group and stop receiving emails from it, send an 
> > email to [email protected].
> > To post to this group, send email to [email protected].
> > Visit this group at http://groups.google.com/group/pylons-discuss.
> > For more options, visit https://groups.google.com/groups/opt_out.
> 
> --
> You received this message because you are subscribed to the Google Groups 
> "pylons-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/pylons-discuss.
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "pylons-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/pylons-discuss.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to