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:
parent
233aef46d5
commit
6c27541354
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue