add an entry in features window for RST generator

This commit is contained in:
Yann Leboulanger 2007-09-02 09:34:21 +00:00
parent ba608b6edd
commit 9fb0a1e29c
1 changed files with 11 additions and 0 deletions

View File

@ -94,6 +94,10 @@ class FeaturesWindow:
_('Encrypting chatmessages.'),
_('Requires python-crypto.'),
_('Requires python-crypto.')),
_('RST Generator'): (self.docutils_available,
_('Generate XHTML output from RST code (see http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html).'),
_('Requires python-docutils.'),
_('Requires python-docutils.')),
}
# name, supported
@ -283,3 +287,10 @@ class FeaturesWindow:
def pycrypto_available(self):
from common import gajim
return gajim.HAVE_PYCRYPTO
def docutils_available(self):
try:
import docutils
except:
return False
return True