Commit 6c193a16 authored by Jocelyn Delalande's avatar Jocelyn Delalande

removed weird path handling refs #87

parent bb64c614
# -*- coding: utf-8 -*-
from LettraVox.texte.models import Texte
from texte.models import Texte
from django.contrib.syndication.views import Feed
import settings
class RssTextes(Feed):
......
{% load tagging_tags %}
{% load lvtags %}
{% tags_cloud_for_model LettraVox.texte.models.Texte as tag_list step 5 %}
{% tags_cloud_for_model texte.models.Texte as tag_list step 5 %}
<p class="taglist">
{% if limit_to %}
......
......@@ -3,7 +3,7 @@ import utils
import subprocess
import re
import os
from LettraVox.texte.Documents import exceptions
from texte.Documents import exceptions
class Abstraction:
""" Fournit une abstraction pour les fichiers LaTex. Nécessite
......@@ -17,13 +17,13 @@ class Abstraction:
* La représentation html est stockée sous forme d'une liste de
* couples (numéro de page,contenu)
"""
def __init__(self,filename,force=False):
self.source_tex = filename
self.editeur=False
self.log=""
self.latex_options = ['-interaction','nonstopmode']
if not force:
self.latex_options.append('-halt-on-error')
......@@ -58,10 +58,10 @@ class Abstraction:
else:
curdir = os.path.abspath(os.curdir)
self.pdf = '%s/%s' % (curdir, tete_chemin.replace('.tex','.pdf'))
#2) Génère du code html
self.html = utils.tex2inner(open(self.source_tex).read())
# except OSError:
# self.log = "Error invoking latex2html, maybe latex2html is not installed ?"
......@@ -69,7 +69,7 @@ class Abstraction:
self.log = False
return True
def menage(self):
# Should not be ran before the PDF gets copied
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment