Welcome to Squishdot Websites Squishdot How-To
 about
 search
 post article
 Documentation
 Mailing Lists
 Bug Tracking
 Development
 Installation
 Upgrading
 Download
 admin
 rdf

 main


Squishdot generates 'Attribute Error'
Squishdot Posted by on Monday August 09, 05:34PM, 1999
from the just-when-it-was-all-going-so-well dept.
I have a problem with squishdot 0.1.5a generating 'attribute errors' when I try to save a posting in Zope 2.0 Beta 3.

The problem seems to be that when I save a document where either the summary or the main body includes a newline, the call:

summary = split(regsub.gsub(CRLF,'\n',summary),'\n')

(or the corresponding body=... call) in squishdot.py fails with attribute error (value 'regs') on line 38 of regsub.py. This is with Zope 2.0 Beta 3 so it may be due to a change in that version.

<  |  >

 

Related Links

The Fine Print: The following comments are owned by whoever posted them.
( Reply )

Re: Squishdot generates 'Attribute Error'
by on Sunday August 15, 01:08AM, 1999
It looks like the gsub() function is broken in
Zope 2.0's ts_regex.py. I've reported the bug, but the whole idea of ts_regex, which tries to provide thread-safe regular expressions, is a hack.
Squishdot (and Zope) should really be using the re module instead, which is thread-safe.

[ Reply to this ]
  • Re: Squishdot generates 'Attribute Error'
    by on Tuesday August 24, 10:14AM, 1999
    I have run into the same problem.

    Now that I have built my Squishdot site using Zope 2.0b5, can I export it to a Zope 1.10.3 install, so that I can have a working site?


    [ Reply to this ]
    • Re: Squishdot generates 'Attribute Error'
      by on Tuesday August 24, 10:22AM, 1999
      Alternatively, how easy is it to hack Squishdot.py so that it uses 're'?

      Thanks


      [ Reply to this ]

 
The Fine Print: The following comments are owned by whoever posted them.
( Reply )

Powered by Zope  Squishdot Powered
  "Any system that depends on reliability is unreliable." -- Nogg's Postulate
All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©1999 , ©2000-2002 .