5 Apr 2012 17:39
Difficulty using DocumentInfo
Adam Roach <adam <at> nostrum.com>
2012-04-05 15:39:10 GMT
2012-04-05 15:39:10 GMT
At the most recent code sprint, I ran into some difficulty with the DocumentInfo class (from ietf/doc/models.py). As originally envisaged, this model looked well designed. It contained all the information you might want to know about a document. In particular, if one makes certain assumptions about what is meant by field names, it contained both a local filesystem path to the document (from "get_file_path") and a handy external URL that could presumably be used to access the document from anywhere on the Internet (the field "external_url"). The latter is very important for generating links to documents once one has retrieved them using whatever query is appropriate for the situation. However, what has ended up being populated in the "external_url" field is emphatically not a URL, and is highly frustrating to use. For example, if I pull the agenda document for the MMUSIC meeting in Paris and check the "external_url" field, I get "/proceedings/83/agenda/agenda-83-mmusic.htm". I'm not as bothered that it's missing a scheme and an authority as I am that I can't get to a document at that path on datatracker. For example, If I do an href="/proceedings/83/agenda/agenda-83-mmusic.htm" (which the web browser ends up resolving to http://datatracker.ietf.org/proceedings/83/agenda/agenda-83-mmusic.htm), I get a 404 error. We really need to fix this up. Either we need to add URL patterns to the datatracker tree that successfully the URLs in this field (which would require a new pattern for each document type), or we need to repopulate(Continue reading)
RSS Feed