Mailing List Archive

[Zope-PTK] CVS update - Discussions, permissions fixed, more
Just a note to let folk's know what's been going on in the CVS this
week.

On Thursday, I commited the initial Discussions framework to the
CVS. There is some brief documentation in interfaces, expect it to
get a bit more fleshed out next week.

Two new mix-ins were created. 'Discussable' represents any resource
which supports replies, and 'DiscussionResponse' represents the
replies. 'Discussable' has been mixed in with PortalContent, meaning
that all PTK objects can potentially be the root of a discussion.
(This can be disallowed on a per-object basis by overriding a method.)
'DiscussionResponse' has been mixed with the PTK Document class in a
new class called 'DiscussionItem'. This is the class that is
presently used for replies on the PTK.

At the same time, the Toolbox protocol was extended. Now, the
toolbox will search an object's ancestory for additional
toolbox_actions methods, and include the result of calling those in
the object's toolbox as well. This makes it much easier to factor
behaviour out into mixin classes, and eliminates code duplication in
the toolbox_actions methods.

The last couple of days were spent fixing my botched permission
code. The result should be a much more stable and robust PTK. I
can't promise I haven't introduced new bugs in doing so. In fact, I'm
pretty sure I've seen one that I've since lost track of, so don't lose
that Tracker URL.

My next goals are to add Topics to the PTK (for those of you keeping
score at home, it'll probably get pushed into the weekend) and to get
rid of the need for PortalFolder. I'm sure no one will mourn it.

Mike.

--
Mike Pelletier email: mike@digicool.com
Mild mannered software developer icq: 7127228
by day, super villain by night. phone: 519-884-2434
RE: [Zope-PTK] CVS update - Discussions, permissions fixed, more [ In reply to ]
I'd like to remind everybody that Mike has been doing a good job of
making sure the API documented in the 'interfaces' directory is
up-to-date before doing checkins. Golf clap for Mike! This is new
territory for Digital Creations. :^)

--Paul

> -----Original Message-----
> From: Mike Pelletier [mailto:mike@digicool.com]
> Sent: Thursday, April 06, 2000 6:21 PM
> To: zope-ptk@zope.org
> Subject: [Zope-PTK] CVS update - Discussions, permissions fixed, more
>
>
>
> Just a note to let folk's know what's been going on in the CVS this
> week.
>
> On Thursday, I commited the initial Discussions framework to the
> CVS. There is some brief documentation in interfaces, expect it to
> get a bit more fleshed out next week.
>
> Two new mix-ins were created. 'Discussable' represents any resource
> which supports replies, and 'DiscussionResponse' represents the
> replies. 'Discussable' has been mixed in with PortalContent, meaning
> that all PTK objects can potentially be the root of a discussion.
> (This can be disallowed on a per-object basis by overriding a method.)
> 'DiscussionResponse' has been mixed with the PTK Document class in a
> new class called 'DiscussionItem'. This is the class that is
> presently used for replies on the PTK.
>
> At the same time, the Toolbox protocol was extended. Now, the
> toolbox will search an object's ancestory for additional
> toolbox_actions methods, and include the result of calling those in
> the object's toolbox as well. This makes it much easier to factor
> behaviour out into mixin classes, and eliminates code duplication in
> the toolbox_actions methods.
>
> The last couple of days were spent fixing my botched permission
> code. The result should be a much more stable and robust PTK. I
> can't promise I haven't introduced new bugs in doing so. In fact, I'm
> pretty sure I've seen one that I've since lost track of, so don't lose
> that Tracker URL.
>
> My next goals are to add Topics to the PTK (for those of you keeping
> score at home, it'll probably get pushed into the weekend) and to get
> rid of the need for PortalFolder. I'm sure no one will mourn it.
>
> Mike.
>
> --
> Mike Pelletier email: mike@digicool.com
> Mild mannered software developer icq: 7127228
> by day, super villain by night. phone: 519-884-2434
>
>
> _______________________________________________
> Zope-PTK maillist - Zope-PTK@zope.org
> http://lists.zope.org/mailman/listinfo/zope-ptk
>
> See http://www.zope.org/Products/PTK/Tracker for bug reports
> and feature requests
>
Re: [Zope-PTK] CVS update - Discussions, permissions fixed, more [ In reply to ]
----- Original Message -----
From: "Mike Pelletier" <mike@digicool.com>
To: <zope-ptk@zope.org>
Sent: Thursday, April 06, 2000 6:20 PM
Subject: [Zope-PTK] CVS update - Discussions, permissions fixed, more


> Two new mix-ins were created. 'Discussable' represents any resource
> which supports replies, and 'DiscussionResponse' represents the
> replies. 'Discussable' has been mixed in with PortalContent, meaning
> that all PTK objects can potentially be the root of a discussion.
> (This can be disallowed on a per-object basis by overriding a method.)
> 'DiscussionResponse' has been mixed with the PTK Document class in a
> new class called 'DiscussionItem'. This is the class that is
> presently used for replies on the PTK.

This is great, Mike! Out of curiousity, are the DiscussionResponses stored
within the PortalContent object?

Sorry I've been so quiet on here all this time, because I'm really quite
enthusiastic about the PTK. I'm just wearing a couple hats too many at the
moment. Fingers crossed, within the next few days I'll be rolling out some
internal code that I've been working on. Looks like my timing on that will
be perfect, as Topics will be coming along and propertysheet stuff will
start showing up in LoginManager.

> My next goals are to add Topics to the PTK (for those of you keeping
> score at home, it'll probably get pushed into the weekend) and to get
> rid of the need for PortalFolder. I'm sure no one will mourn it.

Woohoo!

Kevin
Re: [Zope-PTK] CVS update - Discussions, permissions fixed, more [ In reply to ]
Mike Pelletier wrote:
>
> Just a note to let folk's know what's been going on in the CVS this
> week.
>
> On Thursday, I commited the initial Discussions framework to the
> CVS. There is some brief documentation in interfaces, expect it to
> get a bit more fleshed out next week.
>
> Two new mix-ins were created. 'Discussable' represents any resource
> which supports replies, and 'DiscussionResponse' represents the
> replies. 'Discussable' has been mixed in with PortalContent, meaning
> that all PTK objects can potentially be the root of a discussion.
> (This can be disallowed on a per-object basis by overriding a method.)
> 'DiscussionResponse' has been mixed with the PTK Document class in a
> new class called 'DiscussionItem'. This is the class that is
> presently used for replies on the PTK.

Hey that's pretty neat. I did the same thing (basically) by just making
all PortalContent subclass ZDTopic and grafting the display/post/reply
forms onto it. Of course that makes *ALL* objects support discussions,
and it's not as elegant as I'm sure this implementation is. I'll have
to take a look at this.

> My next goals are to add Topics to the PTK (for those of you keeping
> score at home, it'll probably get pushed into the weekend) and to get
> rid of the need for PortalFolder. I'm sure no one will mourn it.

I know I won't :)
Re: [Zope-PTK] CVS update - Discussions, permissions fixed, more [ In reply to ]
Mike Pelletier wrote:
...
> My next goals are to add Topics to the PTK (for those of you keeping
> score at home, it'll probably get pushed into the weekend) and to get
> rid of the need for PortalFolder. I'm sure no one will mourn it.


...bring out yer dead...bring out yer dead...

--
In flying I have learned that carelessness and overconfidence are
usually far more dangerous than deliberately accepted risks.
-- Wilbur Wright in a letter to his father, September 1900
Re: [Zope-PTK] CVS update - Discussions, permissions fixed, more [ In reply to ]
On Thu, 6 Apr 2000, Mike Pelletier wrote:

> My next goals are to add Topics to the PTK (for those of you keeping
> score at home, it'll probably get pushed into the weekend) and to get
> rid of the need for PortalFolder. I'm sure no one will mourn it.

This is fantastic! Congrats to you Mike on a very productive few days. Would
you be willing to provide a brief description of "Topics"? I'd like to check
it against my own understanding and see if it will be as useful as I think
it will for my site. Thanks.

-Tim

--
Tim Wilson | Visit Sibley online: | Check out:
Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/
W. St. Paul, MN | | http://slashdot.org/
wilson@visi.com | <dtml-var pithy_quote> | http://linux.com/
RE: [Zope-PTK] CVS update - Discussions, permissions fixed, more [ In reply to ]
Here's an old version of the Topics proposal:

http://www.zope.org/Members/Amos/TopicProposal

--Paul

> -----Original Message-----
> From: Timothy Wilson [mailto:wilson@visi.com]
> Sent: Thursday, April 06, 2000 11:32 PM
> To: Mike Pelletier
> Cc: zope-ptk@zope.org
> Subject: Re: [Zope-PTK] CVS update - Discussions, permissions fixed,
> more
>
>
> On Thu, 6 Apr 2000, Mike Pelletier wrote:
>
> > My next goals are to add Topics to the PTK (for those of
> you keeping
> > score at home, it'll probably get pushed into the weekend)
> and to get
> > rid of the need for PortalFolder. I'm sure no one will mourn it.
>
> This is fantastic! Congrats to you Mike on a very productive
> few days. Would
> you be willing to provide a brief description of "Topics"?
> I'd like to check
> it against my own understanding and see if it will be as
> useful as I think
> it will for my site. Thanks.
>
> -Tim
>
> --
> Tim Wilson | Visit Sibley online: | Check out:
> Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/
> W. St. Paul, MN | | http://slashdot.org/
> wilson@visi.com | <dtml-var pithy_quote> | http://linux.com/
>
>
> _______________________________________________
> Zope-PTK maillist - Zope-PTK@zope.org
> http://lists.zope.org/mailman/listinfo/zope-ptk
>
> See http://www.zope.org/Products/PTK/Tracker for bug reports
> and feature requests
>