[Zope-CMF] BlogFace and CVS CMF
J C Lawrence
claw@kanga.nu
Sun, 05 May 2002 23:56:28 -0700
On 03 May 2002 11:38:03 -0400
Tres Seaver <tseaver@zope.com> wrote:
> On Fri, 2002-05-03 at 00:54, J C Lawrence wrote:
>> In writing such products which are really a variant of a base
>> product, when is it smarter to subclass the base product versus
>> copying and editing it?
> Always prefer subclassing from "maintained" products; copy-and-paste
> "forks" you away from the source. In this particular case, you may
> have an even simpler option: instead of creating a new Python class,
> create a new type information object atop the existing Topic, and wrap
> new skins around it.
<nod>
Okay, I'm building off CMFTopic. For ease and simplicity right now I've
forked with the intent of merging/subclassing once I semi-understand
what I'm doing. So I duplicated the CMFTopic tree into CalTopic and did
the following edits:
s/CMFTopic/CalTopic/
s/Topic/CalTopic/
s/CalCalTopic/CalTopc/ # doh!
s/topic/caltopic/
And renamed all the directories and filenames to match.
Zope loads the new product fine, I added it to portal_types, and
portal_skins etc without error and CalTopic doesn't show up in on user's
"New" object list.
Got any idea why?
--
J C Lawrence
---------(*) Satan, oscillate my metallic sonatas.
claw@kanga.nu He lived as a devil, eh?
http://www.kanga.nu/~claw/ Evil is a name of a foeman, as I live.