RE: [Zope] Re: ZClasses and "title" property

2001-01-23 Thread Brian Lloyd

> I think the problem goes deeper than that. Zope 2.3x no longer allows the
> setting or creation of any property called "title" for new 
> ZClasses. Period
> (At least, not in the same way it used to). Try it for yourself. If you
> follow the steps in the "ZClass Properties" How-to
> (http://www.zope.org/Members/lstaffor/zProperties), you'll find that Zope
> 2.3x gives a "The id 'title' is invalid--it is already in use" error when
> you try to create a property called "title".
> 
> 
> 
> Is this a bug or am I missing something?
> 
> ajl

Its a bug - this is fixed in CVS for 2.3 beta 3.


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 




___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Re: ZClasses and "title" property

2001-01-22 Thread Bill Anderson

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


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )