Added a FIXME: for the read_agenda_file() function. Some serious refactoring and generalization is needed here.

- Legacy-Id: 4302
This commit is contained in:
Henrik Levkowetz 2012-04-22 18:09:52 +00:00
parent 233aef46d5
commit 6c27541354

View file

@ -344,6 +344,10 @@ def convert_to_pdf(doc_name):
os.unlink(psname)
def read_agenda_file(num, doc):
# XXXX FIXME: the path fragment in the code below should be moved to
# settings.py. The *_PATH settings should be generalized to format()
# style python format, something like this:
# DOC_PATH_FORMAT = { "agenda": "/foo/bar/agenda-{meeting.number}/agenda-{meeting-number}-{doc.group}*", }
path = os.path.join(settings.AGENDA_PATH, "%s/agenda/%s" % (num, doc.external_url))
if os.path.exists(path):
with open(path) as f: