[ZCM] [ZC] 782/ 3 Comment "Adding a Zclass in 2.6.1b1"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin@zope.org
Mon, 27 Jan 2003 14:48:36 -0500


Issue #782 Update (Comment) "Adding a Zclass in 2.6.1b1"
 Status Pending, Zope/bug medium
To followup, visit:
  http://collector.zope.org/Zope/782

==============================================================
= Comment - Entry #3 by tseaver on Jan 27, 2003 2:48 pm

Chris, I can't reproduce against the head of the 2.6 branch.
Here is what I did:

  - I created a product, 'Control_Panel/Products/Muldrow'.

  - In its 'manage_main', I selected 'ZClass' from the add list,
    and filled in:

    o Id:  Chris

    o Title:  Test Collector #783

    o Meta Type: Collector 762

    o Create constructor objects:  Checked

    o Selected:  [ OFS.File ]

When I clicked the "Add" button, I got a "normal" folder
listing of the newly-created ZClass' "Methods" tab.

The only checkin within the 'ZClasses' package since the 2.6.1b1
release was a fix to ensure quoting of the ZClass title (to
alleviate a potential cross-site scripting problem).  I can't
see how it would affect your ability to add a ZClass;  at most,
the changed template might prevent your viewing its contents
after creation.

Can you try with the "latest and greatest" from CVS?  Or post
the values you are using for ID / title / meta_type?
________________________________________
= Comment - Entry #2 by muldrow on Jan 27, 2003 2:16 pm

Some more info: This happens no matter what I attempt to subclass and no matter whether I check the boxes for standard Zope base classes or constructer objects. Basically, it occurs on any attempt to add a Zclass.
________________________________________
= Request - Entry #1 by Anonymous User on Jan 27, 2003 2:09 pm

When I attempt to add a Zclass in any product, I get the following error:
<!--
<p>Traceback (innermost last):
<ul>

<li>  Module ZPublisher.Publish, line 102, in publish</li>

<li>  Module Zope.App.startup, line 200, in commit</li>

<li>  Module ZODB.Transaction, line 236, in commit</li>

<li>  Module ZODB.Transaction, line 352, in _commit_objects</li>

<li>  Module ZODB.Connection, line 388, in commit<br />
__traceback_info__: (('ZClasses.ZClass', 'ZClass'), '\x00\x00\x00\x00\x00x3\xbc', '')</li>

</ul>TypeError: expected string or Unicode object, None found
</p>
-->

I'm able to add a Zclass with no errors using an identical Data.fs on Zope 2.6.0.
==============================================================