Re: ATContentTypes erben oder bauen?

Andreas Jung <[email protected]>
Newsgroups gmane.comp.web.zope.german
Organization ZOPYX Ltd & Co. KG
Message-ID <[email protected]>
On 24.12.2008 13:50 Uhr, Hartmut Goebel wrote:
> Hallo,
>
> gleich noch eine Frage: Ich möchte einen "Partner Link" Contenttype
> erstellen. Also einen Link mit einer kurzen Beschreibung und einem Image
> dazu.
>
> Was ist hierbei best-practice?
>
> a) Erben von Image und Link und nur ein Attribute ändern, oder

Von beiden Typen gleichzeitig abzuleiten macht keinen Sinn.
Entweder Link oder Image könnten als Basisklasse dienen. Die Erweiterung 
um ein zusätzliches Feld ist in beiden Fällen vom Aufwand her wohl gleich

> b) NewsItem nehmen und den Text herusnehmen

s.o.

> c) neuen Typ bauen

Auch eine Option. Was vorhandenes nehmen und erweitern ist mit
geringeren Aufwand verbunden.

-aj



_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lists.vcf (text/x-vcard, 316 B)
begin:vcard
fn:Andreas Jung
n:Jung;Andreas
org:ZOPYX Ltd. & Co. KG
adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany
email;internet:[email protected]
title:CEO
tel;work:+49-7071-793376
tel;fax:+49-7071-7936840
tel;home:+49-7071-793257
x-mozilla-html:FALSE
url:www.zopyx.com
version:2.1
end:vcard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.