[Zope-PTK] PTK - Putting it all together
Tue, 18 Apr 2000 11:31:30 -0600
This is a great question. I'd like to add a bit to it:
I'd assume that to create a new portal type, you'd inherit from the classes that
"Control_Panel/Products/DemoPortal/Portal" inherited from. If you look at it's base
classes, they are ZObject, _ZClass_for_DemoPortalBase, and
_ZClass_for_PortalObjectBase. Since the _ZClass_for* classes aren't in python
anywhere, and they don't show up on the list of classes to inherit from (for a new
ZClass), then where are they defined, and how can they be used?
I can see that they must be derived from DemoPortalBase and PortalObjectBase, but
don't know how.
Dennis Nichols wrote:
> Greetings Zope-PTKists -
> I need help understanding how to make this leap:
> 1. I can successfully install the PTK (ie, the
> installed products PTKBase and PTKDemo plus
> the [no adjective] product DemoPortal) and
> make a portal with them. No problem.
> 2. Although the PTK seems to do much of what
> I want, I'm going to have to make several
> mods/additions. It is completely beyond me
> (at the moment) how it is intended that I
> take the PTK pieces and make a portal look
> and act the way that I want.
> What I think I know:
> o I should NOT be customizing DemoPortal [per
> mailing list message from Mike to Philipp Dunkel
> on 26 Feb 2000]
> o I should make my own equivalent of DemoPortal
> that uses PTKBase (and PTKDemo?) to do what
> I need. But how?
> I've looked at everything I can find (documents, HowTo's, mailing list
> archives) but there is something missing for me. Maybe I could write a
> HowTo if I could only figure out how PTK is intended to be used.
> Note: This is not a question about understanding the smaller pieces such as
> Python, HTML, OO, etc. Rather, it is about a larger understanding. I guess
> my question could be restated as:
> Given that I can successfully install
> and run Zope/PTK/ZServer, how do I take
> the PTK and make *my* site from it?
> Dazed and Wandering,
> Dennis Nichols
> Zope-PTK maillist - Zope-PTK@zope.org
> See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests