[Twisted-web] [Release] Bic A1A1

Adrian Perez moebius.lists at gmail.com
Fri Sep 1 04:21:24 CDT 2006


On 8/27/06, Alessandro <aleuser at inwind.it> wrote:
> Pages can't see /style/default/main.css , so they are very poor
> Did I make installation error?

I found the problem, it was my fault: the resource which is
under /style/default is determined by the contents of the
"bic_style_name" cookie or, if not defined, by the contents of the
"style" variable in the configuration file. The problem was that I
thought IRequest(ctx).getCookie() would raise KeyError instead of
returning None when the cookie is not set.

It was a small fix, thanks a lot for your report. I attached the
patch, but I hope to upload a new tarball soon, along with some
more improvements I¡m working on.Feel free to track the
code with Bzr, http://code.connectical.net/bic is the URL where I
publish the main development branch.

BTW, support for setting the cookie which controls the style is on the
code, but nowhere in the web interface yet. Just access any page adding
"?style=3Dfoo" as query string at the end of the URL.

--
Adrian Perez
"Experience is what you get when you don't get what you want"
                                           -- (Dan Stanford)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bic-A1A1-wookiecookie.patch
Type: text/x-patch
Size: 459 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-web/attachments/20060901/ad70e6e3/bic-A1A1-wookiecookie.bin


More information about the Twisted-web mailing list