death to ptah301, long live examples/ptah_minicms

5 views
Skip to first unread message

Alan Runyan

unread,
Dec 13, 2011, 12:49:43 PM12/13/11
to ptahp...@googlegroups.com
This is really exciting. 

Ptah301 scaffold is gone and has been moved to examples/ptah_minicms

- There is no more pview, view.template or any "redundant" Pyramid code.
- Everything you see in the ptah_minicms should be very obvious to a Pyramid developer

The next release of Ptah will have only 1 scaffolding and require pyramid 1.3a1 or greater.

--
Alan Runyan
Office +17135305244 | Skype/Twitter @runyaga
President of Enfold Systems | http://www.enfoldsystems.com/
Co-founder of the Plone CMS | Free Plone site in less than 10 seconds - http://ploud.com/

Tres Seaver

unread,
Dec 13, 2011, 1:42:59 PM12/13/11
to ptahp...@googlegroups.com
On 12/13/2011 12:49 PM, Alan Runyan wrote:
> This is really exciting.
>
> Ptah301 scaffold is gone and has been moved to examples/ptah_minicms
> https://github.com/ptahproject/examples/tree/master/ptah_minicms
>
> - There is no more pview, view.template or any "redundant" Pyramid
> code. - Everything you see in the ptah_minicms should be very obvious
> to a Pyramid developer
>
> The next release of Ptah will have only 1 scaffolding and require
> pyramid 1.3a1 or greater.

Nice birthday present for you, Alan!


Tres.
--
===================================================================
Tres Seaver +1 540-429-0999 tse...@palladion.com
Palladion Software "Excellence by Design" http://palladion.com

Alan Runyan

unread,
Dec 13, 2011, 4:18:38 PM12/13/11
to ptahp...@googlegroups.com
On Tue, Dec 13, 2011 at 12:42 PM, Tres Seaver <tres....@gmail.com> wrote:
On 12/13/2011 12:49 PM, Alan Runyan wrote:
> This is really exciting.
>
> Ptah301 scaffold is gone and has been moved to examples/ptah_minicms
> https://github.com/ptahproject/examples/tree/master/ptah_minicms
>
> - There is no more pview, view.template or any "redundant" Pyramid
> code. - Everything you see in the ptah_minicms should be very obvious
> to a Pyramid developer
>
> The next release of Ptah will have only 1 scaffolding and require
> pyramid 1.3a1 or greater.

Nice birthday present for you, Alan! 

8-) hooray!

Ptah201 has just been moved as well.  Ptah201 demonstrates
how to create a user provider with members.  It is a "mini" cartouche/ptah_crowd
example.


Tres/Nikolay, 
Is ptah_crowd and cartouche solving the same problems?
 
cheers
alan

Nikolay Kim

unread,
Dec 13, 2011, 5:08:16 PM12/13/11
to ptahp...@googlegroups.com

> https://github.com/ptahproject/examples/tree/master/ptah201
>
> Tres/Nikolay,
> Is ptah_crowd and cartouche solving the same problems?
yes
but it uses zodb

Nate Aune

unread,
Dec 18, 2011, 8:47:36 PM12/18/11
to ptahp...@googlegroups.com
Is this something to be worried about?
/python/lib/python2.7/site-packages/sqlalchemy/ext/declarative.py:1273: SAWarning: The classname 'ApplicationRoot' is already in the registry of this declarative base, mapped to <class 'ptah.cms.root.ApplicationRoot'>
  _as_declarative(cls, classname, cls.__dict__)

Also, I'm trying to run ptah_minicms under uWSGI and the workers keep dying. What's the best way to enable file-based logging, so that I can try to see what might be the root cause of this?

thanks,
Nate

Nikolay Kim

unread,
Dec 19, 2011, 12:07:05 PM12/19/11
to ptahp...@googlegroups.com
On Sun, 2011-12-18 at 17:47 -0800, Nate Aune wrote:
> Is this something to be worried about?
> /python/lib/python2.7/site-packages/sqlalchemy/ext/declarative.py:1273: SAWarning: The classname 'ApplicationRoot' is already in the registry of this declarative base, mapped to <class 'ptah.cms.root.ApplicationRoot'>
> _as_declarative(cls, classname, cls.__dict__)

we will fix that later. but should affect your instance.

>
> Also, I'm trying to run ptah_minicms under uWSGI and the workers keep
> dying. What's the best way to enable file-based logging, so that I can
> try to see what might be the root cause of this?

does ptah_minicms run with pserve ?

you can use pyramid_exclog package for logging.

Alan Runyan

unread,
Dec 19, 2011, 12:27:30 PM12/19/11
to ptahp...@googlegroups.com
On Mon, Dec 19, 2011 at 11:07 AM, Nikolay Kim <fafh...@gmail.com> wrote:
On Sun, 2011-12-18 at 17:47 -0800, Nate Aune wrote:
> Is this something to be worried about?
> /python/lib/python2.7/site-packages/sqlalchemy/ext/declarative.py:1273: SAWarning: The classname 'ApplicationRoot' is already in the registry of this declarative base, mapped to <class 'ptah.cms.root.ApplicationRoot'>
>   _as_declarative(cls, classname, cls.__dict__)

we will fix that later. but should affect your instance.

It should NOT affect you.
 
>
> Also, I'm trying to run ptah_minicms under uWSGI and the workers keep
> dying. What's the best way to enable file-based logging, so that I can
> try to see what might be the root cause of this?

does ptah_minicms run with pserve ?

you can use pyramid_exclog package for logging.

We will add this to the examples before releasing 0.2 of ptah. 

Alan Runyan

unread,
Dec 19, 2011, 9:43:46 PM12/19/11
to ptahp...@googlegroups.com


On Sun, Dec 18, 2011 at 7:47 PM, Nate Aune <nate...@gmail.com> wrote:
Is this something to be worried about?
/python/lib/python2.7/site-packages/sqlalchemy/ext/declarative.py:1273: SAWarning: The classname 'ApplicationRoot' is already in the registry of this declarative base, mapped to <class 'ptah.cms.root.ApplicationRoot'>
  _as_declarative(cls, classname, cls.__dict__)


Nate,

Updated examples to use pyramid_exclog by default.  You should get logging now.
Also renamed ptah_minicms.app.ApplicationRoot to SiteRoot; no longer raises warning.

cheers
Reply all
Reply to author
Forward
0 new messages