Re: Compress in Spyce 2.2

"Jonathan Ellis" <[email protected]> Thu, 19 Apr 2007 13:11:54 -0700
Newsgroups gmane.comp.python.spyce.general
Message-ID <[email protected]>
try with r1351

thanks for testing :)

On Thu, 19 Apr 2007 15:39:49 -0400, "Philip Semanchuk"
<[email protected]> said:
> Hi,
> Apologies for being high maintenance; I'm doing some new things in my 
> code as well as with this new version of Spyce so I'm encountering new 
> territory and some of the bumps that go with it.
> 
> I've tried two different ways of invoking the compress module but both 
> give me the same unexpected result. Here's my Spyce code:
> 
> [[ api.compress ]]
> <html>
> <head><title>test</title></head>
> <body><p>The   quick   brown fox etc. </p></body>
> </html>
> 
> I've also tried replacing the first line with this but I got the same 
> result:
> [[.import name=compress args="gzip=0, spaces=1"]]
> 
> The result is the error output below followed by some non-ASCII garbage 
> which makes me suspect that the output gets gzipped even when I specify 
> gzip=0.
> 
> 
> Unexpected exception: (please report!)
> Traceback (most recent call last):
>   File "spyce.py", line 290, in commonHandler
>   thespyce.spyceDestroy(theError)
>   File "spyce.py", line 629, in spyceDestroy
>   mod.finish(theError)
>   File "modules/error.py", line 23, in finish
>   self.handler(self)
>   File "modules/error.py", line 18, in <lambda>
>   self.handler = lambda self, pageerrorType=pageerrorType, 
> pageerrorData=pageerrorData: spyceHandler(self, pageerrorData, 
> pageerrorType)
>   File "modules/error.py", line 94, in spyceHandler
>   spyceHandler(errorModule, defaultErrorTemplate, 'string')
>   File "modules/error.py", line 83, in spyceHandler
>   s.spyceProcess()
>   File "spyce.py", line 564, in spyceProcess
>   result = self.spyceProcessSingle(*args, **kwargs)
>   File "spyce.py", line 590, in spyceProcessSingle
>   raise spyceException.spyceRuntimeException(sys.exc_info(), self)
> spyceRuntimeException: spyce.py:585, in spyceProcessSingle:
>   return self.process(*args, **kwargs)
>   <string>:1-3, in (main):
>   <html string>
>   modules/response.py:23, in writeStatic:
>   self.out.writeStatic(str(s))
>   modules/compress.py:37, in __getattr__:
>   return getattr(self.gzf, attr)
> AttributeError: GzipFile instance has no attribute 'writeStatic'
> 
> 
> Comments?
> 
> Thanks
> Philip
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Spyce-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/spyce-users

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/