NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 511 - enable easy "no network" mode for running validator
enable easy "no network" mode for running validator
Status: RESOLVED FIXED
Product: Validator.nu
Classification: Unclassified
Component: General
HEAD
All All
: P2 enhancement
Assigned To: Michael[tm] Smith
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-05-27 05:42 CEST by Michael[tm] Smith
Modified: 2009-06-25 13:26 CEST (History)
1 user (show)

See Also:


Attachments
patch with proposed change (3.97 KB, patch)
2009-06-09 20:00 CEST, Michael[tm] Smith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael[tm] Smith 2009-05-27 05:42:40 CEST
I find it currently a bit troublesome to try to run validator.nu locally in situations where I don't have a network connection. Ideally, there should be a single switch called "--nonet" or "--local-only" (or whatever), and specifying it should cause v.nu to use locally cached copies of the files with microsyntax descriptions and IANA language-registry stuff that it otherwise tries to fetch remotely. This would help people avoid the trouble of needing to manually download copies of those files themselves and point v.nu to them.
Comment 1 Michael[tm] Smith 2009-06-09 20:00:18 CEST
Created attachment 106 [details]
patch with proposed change

Noting "<hsivonen> MikeSmith: it might be best to commit microsyntax and alt advice into svn and handle languag tags like 3rd-party dtds" but... the attached patch treats the microsyntax and alt advice and language-tag files in the same way -- because it seems like this is the simplest way to handle them for now. This allows the existing entity-map mechanism to be used to download and store the files. If/when I have more time later, I could revisit this and try to make something a little smarter.