[Zope-CMF] Discussable disappeared.
Ignacio Valdes
ivaldes@hal-pc.org
Wed, 09 May 2001 22:01:39 -0500
Tres Seaver wrote:
> On Wed, 9 May 2001, Ignacio Valdes wrote:
>
> > So could this be a bug? I've definitely had discussable
> > switched on from the beginning, yet everything is being
> > populated as not discussable. -- IV
>
> It could be a bug. I would be trying to debug it by creating
> a DTML method to dump the relevant attributes, so:
>
> ----------- Cut here -----------------------
> Content-type: text/plain
>
> Object's 'allow_discussion': <dtml-var allow_discussion missing="n/a">
>
> <dtml-let type_name=Type
> tool="portal_types"
> type_info="tool.getTypeInfo( type_name )"
> >
> Object's Type(): <dtml-var type_name>
>
> Object's type object ID: <dtml-var expr="type_info.getId()">
>
> Type object allowDiscussion: <dtml-var expr="type_info.allowDiscussion()">
>
> </dtml-let>
> ----------- Cut here -----------------------
>
> Try running that DTML Method against one of your "undiscussable"
> content objects.
>
> When I run this against a newly-created Document in a just-created
> CMF Site, I get:
>
> ----------- Cut here -----------------------
> Object's 'allow_discussion': n/a
>
> Object's Type(): Document
>
> Object's type object ID: Document
>
> Type object allowDiscussion:
> ----------- Cut here -----------------------
>
> When I enable discussions for the Document type object, I get:
>
> ----------- Cut here -----------------------
> Object's 'allow_discussion': n/a
>
> Object's Type(): Document
>
> Object's type object ID: Document
>
> Type object allowDiscussion: on
> ----------- Cut here -----------------------
>
> Tres.
> --
> ===============================================================
> Tres Seaver tseaver@digicool.com
> Digital Creations "Zope Dealers" http://www.zope.org
Okay, I put in the above code into allow_discussion and run it against one of
my objects at this URL:
http://www.linuxmednews.com/linuxmednews/LMNProjects/20010503123815/20010503160056/20010503170304/allow_discussion
with this code:
Content-type: text/plain
Object's 'allow_discussion': <dtml-var allow_discussion missing="n/a">
<dtml-let type_name=Type
tool="portal_types"
type_info="tool.getTypeInfo( type_name )"
>
Object's Type(): <dtml-var type_name>
Object's type object ID: <dtml-var expr="type_info.getId()">
Type object allowDiscussion: <dtml-var expr="type_info.allowDiscussion()">
</dtml-let>
And I get a Zope error that says 'System Error', 'excessive recursion' with a
big long repeating message, part of which I've included here:
File /home/zope/zope5/lib/python/DocumentTemplate/DT_String.py, line 538, in
__call__
(Object: allow_discussion)
File /home/zope/zope5/lib/python/DocumentTemplate/DT_Var.py, line 271, in
render
(Object: allow_discussion)
File /home/zope/zope5/lib/python/OFS/DTMLMethod.py, line 182, in __call__
(Object: allow_discussion)
File /home/zope/zope5/lib/python/DocumentTemplate/DT_String.py, line 538, in
__call__
(Object: allow_discussion)
File /home/zope/zope5/lib/python/DocumentTemplate/DT_Var.py, line 271, in
render
(Object: allow_discussion)
File /home/zope/zope5/lib/python/OFS/DTMLMethod.py, line 182, in __call__
(Object: allow_discussion)
File /home/zope/zope5/lib/python/DocumentTemplate/DT_String.py, line 538, in
__call__
(Object: allow_discussion)
File /home/zope/zope5/lib/python/DocumentTemplate/DT_Var.py, line 271, in
render
(Object: allow_discussion)
File /home/zope/zope5/lib/python/OFS/DTMLMethod.py, line 182, in __call__
(Object: allow_discussion)
File /home/zope/zope5/lib/python/DocumentTemplate/DT_String.py, line 538, in
__call__
(Object: allow_discussion)
File /home/zope/zope5/lib/python/DocumentTemplate/DT_Var.py, line 271, in
render
(Object: allow_discussion)
File /home/zope/zope5/lib/python/OFS/DTMLMethod.py, line 182, in __call__
(Object: allow_discussion)
File /home/zope/zope5/lib/python/DocumentTemplate/DT_String.py, line 538, in
__call__
(Object: allow_discussion)
File /home/zope/zope5/lib/python/DocumentTemplate/DT_Var.py, line 271, in
render
(Object: allow_discussion)
File /home/zope/zope5/lib/python/OFS/DTMLMethod.py, line 182, in __call__
(Object: allow_discussion)
File /home/zope/zope5/lib/python/DocumentTemplate/DT_String.py, line 538, in
__call__
(Object: allow_discussion)
File /home/zope/zope5/lib/python/DocumentTemplate/DT_Var.py, line 271, in
render
(Object: allow_discussion)
File /home/zope/zope5/lib/python/OFS/DTMLMethod.py, line 182, in __call__
(Object: allow_discussion)
File /home/zope/zope5/lib/python/DocumentTemplate/DT_String.py, line 538, in
__call__
(Object: allow_discussion)
File /home/zope/zope5/lib/python/DocumentTemplate/DT_Var.py, line 271, in
render
(Object: allow_discussion)
File /home/zope/zope5/lib/python/OFS/DTMLMethod.py, line 182, in __call__
(Object: allow_discussion)
File /home/zope/zope5/lib/python/DocumentTemplate/DT_String.py, line 538, in
__call__
(Object: allow_discussion)
SystemError: (see above)
--
Ignacio Valdes, Editor: Linux Medical News
http://www.linuxmednews.com
'Revolutionizing Medical Education and Practice'