[Zope-PTK] PTK defaults

Mike Pelletier mike@digicool.com
Tue, 14 Mar 2000 13:26:29 -0500 (EST)


On Mon, 13 Mar 2000, George Runyan wrote:

> * how can i make dtml documents automagically index when they are added via
> WEBDAV? (is this possible? please give me general idea how to do this :)

    Unfortunately, I know of no way.  I do not think this would be a good
idea, in any case.  The PTK will expect the objects it gets from the
catalog to be some sort of PortalContent object.  It will try to use
methods on the object which will not exist for a DTML Document.  You can
kill two birds with one stone by creating a ZClass that inherits from
PortalContent and DTML Document.  You can also do this in Python, if you
don't like ZClasses.

> * I then need to add a few properties to the dtml document (current_state,
> reviewer, etc) - I would assume I would do this before I index it in the
> previous step.

    You can add whatever properties you need to your new class or ZClass's
property sheets.

> * can the SiteIndex be used to catalog anything outside News Item, Document,
> Link?  I tried to manually get it to find 'DTML Document's and it wouldnt -
> how did you do that?  does it only index a certain type?  

    Yes, I don't know, and no.  

    I'm somewhat surprised it refused!  What happened?

    The catalog is a plain-jane ZCatalog for the most part.  I have done
nothing special to it which would make it have requirements of the objects
it catalogs, at least, not intentionally.  However, as I mentioned above,
the PTK does have expectations about the objects it gets out of the
catalog.


> * btw where are the base types for News Item, Document, Link?  in
> DemoPortal.zexp? where? this is my lack of ZClasses understand showing.  

    Look in ZopePTK/PTKBase, at NetsItem.py, Document.py and
Link.py.  They are not ZClasses.

> * is there any documentation on PTK?  plans from d.c.? 

    There is some user level documentation online, which can be found at:

        http://www.zope.org/Products/PTK/PTK.html

    There is developer level documenation in ZopePTK/PTKBase/interfaces

> * is PTK at 1.0?  if not what do you 'think' will change before 1.0 is
> released? (I'm writing some very high level documentation at the moment w/ a
> tutorial-- wee stages right now)  

    Not yet.  The user object will be the most significant change.  As
long as you are using the interfaces marked out in the 'interfaces'
folder, you'll be fine when that happens.  Most of the changes will be
additional features.

Mike.

-- 
Mike Pelletier                          email: mike@digicool.com
Mild mannered software developer          icq: 7127228
by day, super villain by night.         phone: 519-884-2434