[Zope] Registering just an icon not constructor

Martijn Pieters mj@digicool.com
Mon, 6 Mar 2000 20:05:47 +0100


From: "Shalabh Chaturvedi" <shalabh@pspl.co.in>
> In my python product I have a class (IssueFollowup), which I don't want to
> register using registerClass because I want instances to be added only
> through instances of another class (Issue).
>
> I have the necessary code in class Issue that creates and adds objects of
class
> IssueFollowup to the folder in context.
>
> 1. Is this ok ? (Seems to work but are there any possible pitfalls)
>

Sounds fine to me.

> 2. IssueFollowup objects appear in the Contents tab but without any icons.
>     How can I register an icon without having IssueFollowup pollute the
drop
>     down list ?

Have a look at a recent discussion about this on zope@zope.org:

  http://lists.zope.org/pipermail/zope/2000-February/subject.html#19408

Martijn Pieters
| Software Engineer    mailto:mj@digicool.com
| Digital Creations  http://www.digicool.com/
| Creators of Zope       http://www.zope.org/
|   The Open Source Web Application Server
---------------------------------------------