Edgewall Software

Changes between Version 323 and Version 324 of 0.12/TracFaq


Ignore:
Timestamp:
Dec 16, 2010, 2:14:32 PM (13 years ago)
Author:
anatoly techtonik <techtonik@…>
Comment:

0.9 silvercity questions are no more actual

Legend:

Unmodified
Added
Removed
Modified
  • 0.12/TracFaq

    v323 v324  
    298298When using pkgsrc, please make sure to use the `pkgsrc/devel/py-subversion` pkg.
    299299
    300 === Why is my CSS code not being highlighted even though I have Silvercity installed? === #why-is-my-css-code-not-being-highlighted-even-though-i-have-silvercity-installed
    301 
    302 (this has been confirmed with Trac version 0.9-1 on Ubuntu 5.10 (Breezy Badger))
    303 
    304 Check your version of Silvercity.  If you are using version 0.9.6 of Silvercity which was released on 2005/12/30 you will see an error in your trac.log file (assuming you have logging turned on) that looks like this:
    305 
    306 {{{
    307   09:00:33 Trac[api] DEBUG: Trying to render HTML preview using SilverCityRenderer
    308   09:00:33 Trac[api] WARNING: HTML preview using <trac.mimeview.silvercity.SilverCityRenderer object at 0xb6dd4d8c> failed
    309   (expected sequence of 3 WordLists (2 provided))
    310   Traceback (most recent call last):
    311   File "/usr/lib/python2.4/site-packages/trac/mimeview/api.py", line 232, in render result = renderer.render(req, mimetype, content, filename, rev)
    312   File "/usr/lib/python2.4/site-packages/trac/mimeview/silvercity.py", line 98, in render generator().generate_html(buf, content)
    313   File "/usr/lib/python2.4/site-packages/SilverCity/CSS.py", line 32, in generate_html lexer.tokenize_by_style(buffer, self.event_handler)
    314   File "/usr/lib/python2.4/site-packages/SilverCity/Lexer.py", line 8, in tokenize_by_style call_back
    315   TypeError: expected sequence of 3 WordLists (2 provided)
    316 }}}
    317 
    318 Steps to fix:
    319 
    320 
    321  1. Uninstall Silvercity 0.9.6
    322   1. Remove directory /usr/lib/python2.4/site-packages/Silvercity
    323   1. Remove file /usr/bin/source2html.py
    324   1. Remove file /usr/bin/cgi-styler.py
    325   1. Remove file /usr/bin/cgi-styler-form.py
    326  1. Install Silvercity 0.9.5
    327   1. [http://sourceforge.net/project/showfiles.php?group_id=45693&package_id=39308&release_id=208407 Download Silvercity 0.9.5]
    328   1. Unpack Silvercity 0.9.5
    329   1. Run 'sudo python setup.py install'
    330 
    331 CSS highlighting should now work!
    332 
    333300=== Why do my PHP pages show up blank in the Browser? === #why-do-my-php-pages-show-up-blank-in-the-browser
    334301