[Zope-dev] Indentation Oddities, or 'I didn't expect a sort of span-ish implication'

Chris Larson clarson@changeling.com
Tue, 4 May 1999 19:02:44 -0500


OK, here's a weird one. Things have been going fine for the last few 
days, then all of a sudden the world collapsed. I've been indenting my 
DTML with straight 'tab' characters, working in Netscape. Not had a 
problem. Now, all of a sudden today, when I call things that are 
indented, Zope hangs, eventually (and I do mean 'eventually') returning a 
'Document contains no data, and pcgi.log shows:

'pcgi-wrapper: Failed to start resource  (118) lock error: EEXIST'

I am using the same browser, working on the same code, but all of a 
sudden can't indent. (At least I think that's what is going on.) And 
example:

The first example chokes Zope with this mysterious EEXIST, while the 
second version works great. What gives? (Again, it _used_ to work.)

-------------index_html------------
<!--#if file_id-->
     <!--#with "_.getitem(file_id,0)"-->
          <!--#var changeling_standard_header-->
          <!--#var "_[_vars['id']]"-->
          <!--#var changeling_standard_footer-->
         <!--#/with-->
<!--#else-->
     <!--#with content-->
          <!--#var changeling_standard_header-->
          <!--#var index_table-->
          <!--#var changeling_standard_footer-->
     <!--#/with-->
<!--#endif-->

-------------index_html------------
<!--#if file_id-->
<!--#with "_.getitem(file_id,0)"-->
<!--#var changeling_standard_header-->
<!--#var "_[_vars['id']]"-->
<!--#var changeling_standard_footer-->
<!--#/with-->
<!--#else-->
<!--#with content-->
<!--#var changeling_standard_header-->
<!--#var index_table-->
<!--#var changeling_standard_footer-->
<!--#/with-->
<!--#endif-->

Thanks much,

Chris Larson
Changeling, Inc


PS To further confuse matters, the following 'changelingMenu' works great 
as is, but the changeling_standard_footer dies if I indent the '<HR 
WIDTH=480>' with a completely different error (See traceback following 
changeling_standard_footer).

---------changelingMenu---------
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=480>
     <TR ALIGN=CENTER>
          <!--#in "objectValues(['DTML Document'])"-->
               <!--#if menuText-->
                    <TD VALIGN=MIDDLE>
                         <A HREF=index_html?file_id=<!--#var id-->>
                              <FONT FACE=ARIAL SIZE=-1>
                                   <!--#var menuText--><BR>
                              </FONT>
                         </A>
                    </TD>
               <!--#/if-->
          <!--#/in-->
     </TR>
</TABLE>
<HR WIDTH=480>

---------changeling_standard_footer------
<HR WIDTH=480>
<!--#var page_credits_table-->
          </CENTER>
     </BODY>
</HTML>

---traceback---
Sorry, an error occurred.

Traceback (innermost last):
  File 
/virtual/customer/changeling.com/cgi-bin/Zope-1.10.2-src/lib/python/ZPublis
her/Publish.py, line 877, in publish_module
  File 
/virtual/customer/changeling.com/cgi-bin/Zope-1.10.2-src/lib/python/ZPublis
her/Publish.py, line 590, in publish
    (Info: /changeling_site/changeling_standard_footer)
  File 
/virtual/customer/changeling.com/cgi-bin/Zope-1.10.2-src/lib/python/OFS/DTM
LMethod.py, line 158, in __call__
    (Object: changeling_standard_footer)
  File 
/virtual/customer/changeling.com/cgi-bin/Zope-1.10.2-src/lib/python/OFS/DTM
LMethod.py, line 338, in decapitate
ValueError: Invalid Header (0):                         <HR WIDTH=480>