[Zope] Why doesn't this work?

webman webman@beehive.de
Mon, 10 May 1999 23:45:51 +0200 (CEST)


hello craig,

> No, at least not in my environment, but because of the line below, there must be
> at least 2 documents in the folder.  Which also means you can include it in a
> template and not have it displaying if it's not apprpriate.
> 
> Hope this helps.  if not, send me what you have and I'll see if I can see
> anything.  I'm not at all an expert, tho.. 
> - Craig
> 
> > >     <!--#if "_.len(objectIds(['DTML Document'])) > 1"-->
> 

here is the traceback i get:

Traceback (innermost last):
  File /usr/local/Zope-1.10.2-src/lib/python/ZPublisher/Publish.py, line
877, in publish_module
  File /usr/local/Zope-1.10.2-src/lib/python/ZPublisher/Publish.py, line
590, in publish
    (Info: /Test/Cool/funktionblah)
  File /usr/local/Zope-1.10.2-src/lib/python/OFS/DTMLDocument.py, line
212, in __call__
    (Object: funktionblah)
  File /usr/local/Zope-1.10.2-src/lib/python/OFS/DTMLDocument.py, line
208, in __call__
    (Object: funktionblah)
  File
/usr/local/Zope-1.10.2-src/lib/python/DocumentTemplate/DT_String.py, line
513, in __call__
    (Object: funktionblah)
  File /usr/lib/python1.5/DT_With.py, line 138, in render
    (Object: _.namespace(thisdoc=id()))
  File /usr/lib/python1.5/DT_With.py, line 138, in render
    (Object: PARENTS[0])
  File /usr/lib/python1.5/DT_In.py, line 635, in renderwob
    (Object: objectValues(['DTML Document']))
  File /usr/lib/python1.5/DT_In.py, line 704, in sort_sequence
    (Object: objectValues(['DTML Document']))
AttributeError: (see above)

....

regards,

webman

---------------------------------------------------------------------------
webman                                          |                        _
beehive GmbH                                    | ASCII ribbon campaign ( )
berlin, Germany                                 |  - against HTML email  X
http://www.beehive.de                           |              & vcards / \