[Zope-dev] [Fwd: Problem with ZClass and property sheets?]

David White davew@ed.ray.com
Thu, 15 Jul 1999 09:29:32 -0400


Hi,

I sent the following message below to the list back on Jun 30 and never 
recieved a reply. Yesterday I tried all day to submit it to the
Collector 
but wasn't able to (the Collector seemed to hang up on me when I did a
submit).  
As I am very excited with the prospects of ZClasses I was really hoping
that 
someone could let me know if what I describe below is an existing bug
with 
ZClasses or not.  Has anyone else seen the behavior I describe below?

Any help in this matter would be greatly appreciated.

Thanks,

Dave
--

-------- Original Message --------
Subject: Problem with ZClass and property sheets?
Date: Wed, 30 Jun 1999 15:40:15 -0400
From: David White <davew@ed.ray.com>
To: zope-dev@zope.org

Hi,

I was playing around with ZClasses with the 2.0 alpha release and I
think I may have run into a bug (or else I have something conceptually
wrong...)

I created a Product through-the-web and then created a ZClass within my
newly
created product.  I then went to the Property Sheets tab, created a
property sheet
and began defining some properties.  All fine so far...

Then I created another property sheet.  I went into this property sheet
and began
adding some properties.  When I added a property with the same name as a
property
in a *different* property sheet Zope complained with the following:

--------------------------------------------------------------

Zope Error

              Zope has encountered an error while publishing this
resource.

              Bad Request

              Invalid property id, address. It is in use.

              Traceback (innermost last):
                File /local/app/Zope/lib/python/ZPublisher/Publish.py,
line 256, in publish_module
                File /local/app/Zope/lib/python/ZPublisher/Publish.py,
line 161, in publish
                File /local/app/Zope/lib/python/ZPublisher/mapply.py,
line 154, in mapply
                  (Object: manage_addProperty)
                File /local/app/Zope/lib/python/ZPublisher/Publish.py,
line 98, in call_object
                  (Object: manage_addProperty)
                File /local/app/Zope/lib/python/OFS/PropertySheets.py,
line 404, in manage_addProperty
                  (Object: management_representitive)
                File /local/app/Zope/lib/python/OFS/PropertySheets.py,
line 213, in _setProperty
                  (Object: TestClass)
              Bad Request: (see above)

--------------------------------------------------------------

It seems to me that it should be possible to have two different property
sheets within a ZClass
which have the same property name?

On a related topic, why is it that when I'm on a property sheet admin
page the 'location' links (don't
know the official name of this) under the tabs interface has a phantom
'common' folder/path location?
When I click on this link it loads the Help interface (the top level
help frameset which loads the
left and right help frames).  That sure doesn't seem right :^)

Should these be added to the Collector?

Thanks,

Dave
--

ps.  I LOVE what you've done with ZClasses, ZCatalog and what I've seen
of The Portal Toolkit.
I'm really looking forward to it.  Keep up the great work and
thanks!!!!!!!!!!!!!!!!!!!

--
----------------------------------------------------
David R. White          Raytheon Electronic Systems
Process Support                      (508) 440-2087
528 Boston Post Rd.
Sudbury, MA 01776
davew@ed.ray.com
----------------------------------------------------