Dynastie

Dynastie Commit Details

Date:2015-08-08 17:17:15 (4 years 11 months ago)
Author:Grégory Soutadé
Branch:master
Commit:0b871656b585343ab01ac21b0581625446297cfc
Parents: a20936c7f7680219f2242ae1894f2b2cb22e5406
Message:Don't crash if pygments is not installed

Changes:
Mdynastie/generators/index.py (2 diffs)
Mdynastie/sites/blog.soutade.fr/_ljdc.xml (1 diff)

File differences

dynastie/generators/index.py
205205
206206
207207
208
208
209
209210
210211
211212
......
379380
380381
381382
382
383
383384
384385
385386
break
res = self.createCode(dom, dom.firstChild)
code = code.replace(code[start:end+11], res)
if res:
code = code.replace(code[start:end+11], res)
return code
from pygments.formatters import get_formatter_by_name
except ImportError:
self.addError('Pygments package is missing, please install it in order to use <dyn:code>')
return
return None
language = node.getAttribute('language')
dynastie/sites/blog.soutade.fr/_ljdc.xml
11
22
3
4
5
6
7
8
39
410
511
<?xml version="1.0" encoding="utf-8"?>
<ljdc>
<entry>
<id>124083117265</id>
<address>http://thecodinglove.com/post/124083117265/git-push-force</address>
<title>Git push --force</title>
<img>http://tclhost.com/cMusPk2.gif</img>
</entry>
<entry>
<id>117591456984</id>
<address>http://lesjoiesducode.fr/post/117591456984/quand-le-nouveau-essaie-de-suivre-le-dialogue</address>

Archive Download the corresponding diff file

Branches

Tags