[Zope-PTK] feature request: news categories
Chip Vanek
chip@upcast.com
Tue, 15 Feb 2000 15:59:01 -0800
Hi,
I too am very interested in categories. When you talk about
subclassing the News object below and using folder do you
mean that the object would be stored in this folder?
The present PTK keeps all objects in the authors members folder or
children. I do not know if this is by design or just present
convenience. It does seem to simplify security and the review/
publishing mechaism seems to allow for managed publishing.
I am new to Zope and cannot yet figure out how to create an
object in another folder and set the correct permissions. I was
able to subclass the portal document object and add category
fields (properties). I am now struggling with trying to enter
this category property in the Catalog as a Keyword Field.
Then to simulated category lookup I would like to create
a search query that returns just items of a certain category.
It looks like the PTK wrapper around Zcatalog will ensure that
only authenticated users can see non-public items. The big problem
I have now is finding the syntax for getCatalog().searchResults(....)
to give me just the items with the keyWorks I want.
To automate the management and generation of the KeyWords, I was
going to use a "tree" of folders that have titles that match the
KeyWords. Then, using acquisition one query method would parse
the branches of the tree up to root and have the KeyWords. The
"tree" of keywords would be a hierarchical oncology of topics
hosted by this site. Adding a new topic is just adding a new
folder to the tree. Then a compact version of this tree needs to
be available to the user in the add and edit forms of the object
to ensure that correct KeyWords are used.
This is likely a ugly hack of an approach but, it fits in my feeble
mind and I can see the steps to complete it if I start getting
some help from the list ;).
Best,
Chip
>-----Original Message-----
>From: zope-ptk-admin@zope.org [mailto:zope-ptk-admin@zope.org]On Behalf
>Of Kevin Dangoor
>Sent: Tuesday, February 15, 2000 11:59 AM
>To: Timothy Wilson; zope-ptk@zope.org
>Subject: Re: [Zope-PTK] feature request: news categories
>
>
>----- Original Message -----
>From: "Timothy Wilson" <wilson@visi.com>
>To: <zope-ptk@zope.org>
>Sent: Tuesday, February 15, 2000 2:38 PM
>Subject: [Zope-PTK] feature request: news categories
>
>
>> I would like the PTK-based news product to be more Slashdot-like.
>
>Butch has a number of interesting thoughts for Squishdot in a
>PTK-world. I
>think he's talked about some on this list.
>
>> To make our site truly awesome, we'd also need:
>>
>> * the ability to assign certain reviewers to certain categories
>> * potentially, (although this could be handled by reviewers)
>the ability
>> to restrict users to posting in certain categories.
>>
>> At this point, and I'm stretching my Zope Zen a bit at this
>point, I've
>> been planning to subclass the PTK-News class to provide the extra
>> category stuff. Is this a reasonable approach? At the same
>time, I think
>> that there would be others who would be interested in news
>categories for
>> portals that lack the singular focus of Zope.org.
>
>I'm definitely interested in categories. Actually, I wonder
>what happened to
>the original Topics idea that Amos had started up.
>
>I think having some notion of categories at the heart of the PTK makes
>sense. It may be possible to implement a categorization system
>by making a
>Folder and role for each category and then setting access
>appropriately.
>Maybe that's even the "right" way to do it, because you get the full
>flexibility of the Zope security machinery, and you can still
>use Catalog to
>give global views of the information.
>
>Kevin
>
>
>_______________________________________________
>Zope-PTK maillist - Zope-PTK@zope.org
>http://lists.zope.org/mailman/listinfo/zope-ptk
>
>