[Zope] Re: ZClasses and "title" property
Bill Anderson
bill@libc.org
Tue, 23 Jan 2001 18:48:34 -0700
Tim Moore wrote:
> I guessed it was something like this, so this leads me to two followup
> questions.
>
> 1) I'd be happy to use the built-in title property assuming that it
> won't cause some kind of problem. I just don't know how I can set
> that in instance objects since it doesn't appear on the property
> sheet. Can I modify the addForm and add methods for the class to
> set it there? Do I need to make a custom view? What approach do
> most people take in this situation, using the built-in title or
> choosing a different name for a title-like property?
>
I use Title (note the upper-casity), and then I add a Python Mehtod (or in
2.3 a Python Script) called 'title' that simply does:
return self.Title
(or in a P.S.:
return context.Title
should do it
)
Bill Anderson