Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: CMF

[Zope-PTK] PTK - Putting it all together

 

 

Zope cmf RSS feed   Index | Next | Previous | View Threaded


nichols at tradingconnections

Apr 18, 2000, 9:48 AM

Post #1 of 3 (92 views)
Permalink
[Zope-PTK] PTK - Putting it all together

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
nichols [at] tradingconnections


erickson at ifopen

Apr 18, 2000, 10:31 AM

Post #2 of 3 (91 views)
Permalink
Re: [Zope-PTK] PTK - Putting it all together [In reply to]

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.

Thanks,
-Paul


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
> nichols [at] tradingconnections
>
> _______________________________________________
> Zope-PTK maillist - Zope-PTK [at] zope
> http://lists.zope.org/mailman/listinfo/zope-ptk
>
> See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests


tseaver at palladion

Apr 18, 2000, 3:23 PM

Post #3 of 3 (91 views)
Permalink
Re: [Zope-PTK] PTK - Putting it all together [In reply to]

Paul Erickson wrote:
>
> 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.

The "_ZClass_for_*" classes are "shims", created when the corresponding Python
classes are registered as base classes by their products (see the
registerBaseClass() method in $ZOPE_HOME/lib/python/App/ProductContext.py). You
can, in essence, ignore them, and imagine that the ZClass which you make is
derived directly from the equivalent Python base class.

--
=========================================================
Tres Seaver tseaver [at] digicool tseaver [at] palladion

Zope cmf RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.