Skip to content

Commit 6c27541

Browse files
committed
Added a FIXME: for the read_agenda_file() function. Some serious refactoring and generalization is needed here.
- Legacy-Id: 4302
1 parent 233aef4 commit 6c27541

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ietf/meeting/views.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,10 @@ def convert_to_pdf(doc_name):
344344
os.unlink(psname)
345345

346346
def read_agenda_file(num, doc):
347+
# XXXX FIXME: the path fragment in the code below should be moved to
348+
# settings.py. The *_PATH settings should be generalized to format()
349+
# style python format, something like this:
350+
# DOC_PATH_FORMAT = { "agenda": "/foo/bar/agenda-{meeting.number}/agenda-{meeting-number}-{doc.group}*", }
347351
path = os.path.join(settings.AGENDA_PATH, "%s/agenda/%s" % (num, doc.external_url))
348352
if os.path.exists(path):
349353
with open(path) as f:

0 commit comments

Comments
 (0)