[Zope] Weird-ish things with new Zope install on Win32...

Zope on a Rope zope@jules.com
Mon, 07 Jun 1999 13:13:59 -0400


At 11:42 AM 6/7/99 -0400, Michel Pelletier wrote:
>[deletia]
>You might want to check out ZServer

I shall make it so. Thank you.

>Sounds like you are getting mired in Acquisition.  Without seeing your
>DTML and tracebacks, however, there isn't much more advice than that I
>could give you.  (here's a hint, view the HTML source of any error
>messages you get, there are secret clues inside).

Now that's a nifty trick.

Here's where I am:

1. I blew everything away and started again. Just In Case(tm).

2. I created a new method called sidebar which I pretty much stole from the
zdp Zope Book area. The main difference is that it's not all sitting in a
folder (folder? Object? What should I call this?) called Object.

2a. Here's my sidebar:

- - - Cut here - - -

<span class="tree">
  <!--#tree 
       branches_expr="objectValues(['Folder', 'DTML Document'])" 
       nowrap=1 
       sort=id
  -->
    <!--#if expr="meta_type == 'Folder'"-->
      <!--#if tree-item-expanded-->
        <img src="/zzzImages/openBook" 
          align="TOP" 
          border="0" 
          width="16" 
          height="16">
      <!--#else-->
        <img src="/zzzImages/closedBook" 
          align="TOP" 
          border="0" 
          width="16" 
          height="16">
      <!--#/if-->
      <!--#var title_or_id-->
    <!--#else-->
      <img src="/zzzImages/document" 
        align="TOP" 
        border="0" 
        width="16" 
        height="16">
      <a href="/<!--#var tree-item-url-->?<!--#if tree-s-->tree-s=<!--#var
tree-s--><!--#/if--><!--#if tree-e-->&tree-e=<!--#var
tree-e--><!--#/if--><!--#if tree-c-->&tree-c=<!--#var
tree-c--><!--#/if-->"><!--#var title_or_id--></a><!--#/if-->
  <!--#/tree-->
</span>

- - - Cut here - - -

Remember I have no idea what I'm doing at this point so I could have
mangled it as I tried to make it fit.

3. The main index_html method works like a champ, as before. The sidebar
does tree-like things.

4. Onwards. I created a subfolder and an index_html document. 

5. As soon as I add the standard html header, it barfs:

- - - Cut here - - -

Traceback (innermost last):
  File D:\Program Files\ZopeWebSite\lib\python\ZPublisher\Publish.py, line
877, in publish_module
  File D:\Program Files\ZopeWebSite\lib\python\ZPublisher\Publish.py, line
590, in publish
    (Info: /Barry/index_html)
  File D:\Program Files\ZopeWebSite\lib\python\OFS\DTMLDocument.py, line
212, in __call__
    (Object: index_html)
  File D:\Program Files\ZopeWebSite\lib\python\OFS\DTMLDocument.py, line
208, in __call__
    (Object: index_html)
  File D:\Program
Files\ZopeWebSite\lib\python\DocumentTemplate\DT_String.py, line 513, in
__call__
    (Object: index_html)
  File D:\Program Files\ZopeWebSite\lib\python\OFS\DTMLMethod.py, line 147,
in __call__
    (Object: standard_html_header)
  File D:\Program
Files\ZopeWebSite\lib\python\DocumentTemplate\DT_String.py, line 513, in
__call__
    (Object: standard_html_header)
  File D:\Program Files\ZopeWebSite\lib\python\OFS\DTMLMethod.py, line 147,
in __call__
    (Object: sidebar)
  File D:\Program
Files\ZopeWebSite\lib\python\DocumentTemplate\DT_String.py, line 513, in
__call__
    (Object: sidebar)
  File D:\Program Files\ZopeWebSite\lib\python\TreeDisplay\TreeTag.py, line
154, in render
    (Object: a tree tag)
  File D:\Program Files\ZopeWebSite\lib\python\TreeDisplay\TreeTag.py, line
222, in tpRender
    (Object: index_html)
  File D:\Program Files\ZopeWebSite\lib\python\TreeDisplay\TreeTag.py, line
535, in apply_diff
    (Info: ([None, ([178, []],)], [171]))
AttributeError: Sorry, an error occured

- - - Cut here - - -

I also experimented adding a method called index_html in my subfolder (as
that's what works in the root folder) and had little luck with that.

Clearly, I've hosed something up in the sidebar.

It's also possible, in true personal style, I'm trying to run before I can
walk. I'm enthralled with Zope and want to squeeze the life out of it.
Maybe I should buy it dinner and a movie and get to know it a little better
first?

I-haven't-been-this-excited-since-bill-gates-got-pied-ly-yours,
Jules