datatracker/ietf/utils
Henrik Levkowetz d98054c103 Added a new yang checker, 'yanglint', to the existing Yang checker class, in
addition to the existing 'pyang' checker.

Added modal overlay displays showing the yang check results every place the
yin/yang symbol is shown (red or green) to indicate the presencee and result
of yang checks.  Added a Yang Validation: line in the document
meta-information section on the document's page in the datatracker.

Added the result of the xym extaction to the yang check results, to make
extration failures visible.

Added the version of the used xym, pyang, and yanglint commands to the check
results.

Added an action to move successfully extracted and validated modules to the
module library directories immediately on submission.

Added the xym and pyang repositories as svn:external components, rather than
listing them in requirements.txt, as there has been delays of many months
between essential features in the repositories, and an actual release.  We may
get occasional buildbot failures if broken code is pulled in from the
repository, but better that than the functionality failure of severely
outdated componets.

Added a new management command to re-run yang validation for active drafts for
which yang modules were found at submission time, in order to pick up imported
models which may have arrived in the model libraries after the draft's
submission.  Run daily from bin/daily.

Added a table to hold version information for external commands.  The yang
checker output should include the version information of the used checkers,
but seems unnecessary to run each command with its --version switch every
time we check a module...

Added a new management command to collect version information for external
commands on demand.  To be run daily from bin/daily.

Added tests to verify that xym, pyang and yanglint information is available
on the submission confirmation page, and updated the yang module contained in
the test document to validate under both pyang and yanglint.

Updated admin.py and resource.py files as needed.
 - Legacy-Id: 13630
2017-06-15 16:09:28 +00:00
..
management Added a new yang checker, 'yanglint', to the existing Yang checker class, in 2017-06-15 16:09:28 +00:00
migrations Added a new yang checker, 'yanglint', to the existing Yang checker class, in 2017-06-15 16:09:28 +00:00
templatetags Add support for extracting the country line from the author addresses 2017-02-15 18:43:57 +00:00
.gitignore * Moved utility functions into utils/ directory, and started breaking out 2007-05-11 15:48:45 +00:00
__init__.py Cleaned out some (arbitrary) submodule name imports into ietf.utils, and made the corresponding import statements import the names directly from the correct submodules. 2014-03-16 07:09:38 +00:00
accesstoken.py Rename unique key to random key as it is not really unique, add function for generating an access token from the key 2013-11-15 16:07:10 +00:00
admin.py Added a new yang checker, 'yanglint', to the existing Yang checker class, in 2017-06-15 16:09:28 +00:00
aliases.py Changed the signature of ietf.utils.aliases.dump_sublist() to include a list of the alias domains, in order to be able to generate IRTF group aliases @irtf.org. Updated ietf/bin/generate-*-aliases accordingly. 2017-04-12 18:51:38 +00:00
bootstrap.py Changed some instances of error strings from ascii to unicode in order to avoid problems with unicode error messages, such as the file size indications generated by django.template.defaultfilters.filesizeformat(). 2016-05-22 14:40:37 +00:00
bower_storage.py Cleaned up bower_storage a bit. 2015-08-01 15:03:40 +00:00
crawlurls.txt Put a proper command-line interface on the test crawler, spit out number of errors (if any), also add wrapper script for running the test-crawler and idindex generation scripts, in the future other (safe, non-mutating) scripts operating on real data can be added too 2014-01-12 16:55:42 +00:00
decorators.py Refactored the code to skip coverage testing a bit, and added skipping of template and url coverage. 2016-06-24 15:39:59 +00:00
draft.py Merged in ^/branch/iola/author-stats-r13145 from olau@iola.dk, and fixed some tests in code which moved after the latest merge with trunk. The test suite passes, but the migrations are _not_ ready to run, because of numbering conflicts (again due to code changes on trunk since the latest sync). 2017-05-31 20:59:26 +00:00
draft_search.py Merged r840 from branch/2.00 to trunk, and updated version information in ietf/__init__.py 2007-07-04 21:17:57 +00:00
fields.py Fixed some pyflakes and form initialization issues with the upgrade to DurationField. 2016-12-21 17:03:39 +00:00
history.py Fixed a bug in find-history-replacement-active-at() where multiple history entries with the same timestamp would be unordered. This led to the wrong historic group info being shown in some cases (e.g., meeting/86/agenda would show dmmnew instead of dmm, leading to wrong agenda links) 2016-06-19 12:52:36 +00:00
html.py Fix various "RemovedInDjango20Warning" warnings. Commit ready for merge. 2017-03-25 19:16:45 +00:00
log.py Changed name and signature for a log helper. 2017-06-09 19:38:48 +00:00
mail.py Added dates to unreachable() calls, to make it easier to decide when to remove marked code. 2017-06-06 07:27:07 +00:00
markup_txt.py Eliminated several variations on word wrapping, keeping only what used to be wrap_text(), but renamed as ietf.utils.text.wordwrap(). This performs better than django.utils.text.wrap() when there are indented text parts. Replaced django's default wordwrap filter with one calling ietf.utils.text.wordwrap in templates. Changed to triggered wrapping in some cases, with the maybewordwrap filter, which triggers on lines longer than 100 characters. This fixes the issue with undesired wrapping of reviews. 2017-06-02 23:13:22 +00:00
models.py Added a new yang checker, 'yanglint', to the existing Yang checker class, in 2017-06-15 16:09:28 +00:00
ordereddict.py Summary: Fix comment on insert_after_in_ordered_dict 2015-01-22 17:42:52 +00:00
pdf.py Summary: Make the meeting agenda code use the historic info available 2015-06-17 13:37:16 +00:00
pipe.py Added a missing string format parmameter. 2016-10-11 12:53:14 +00:00
resources.py Added a new yang checker, 'yanglint', to the existing Yang checker class, in 2017-06-15 16:09:28 +00:00
rfcmarkup.py Added the rfcmarkup module. This will be changed to a library dependency when the module is published. 2017-03-20 13:48:13 +00:00
serialize.py Dump redacted events in DeletedEvent table 2012-11-07 14:59:17 +00:00
storage.py Added a pylint rc-file, and fixed or silenced a number of issues found by pylint using the settings .pylintrc (which enable only error checking). 2016-09-08 14:48:59 +00:00
test_data.py Merged in [13559] from rcross@amsl.com: 2017-06-10 05:33:36 +00:00
test_runner.py Added a test to the test suite which checks if there are interleaved schema and data migrations that have not been released yet. Having split migrations, first all schema and then all data, will permit doing 2 sequential releases; but if the data and schema migrations are interleaved (beyond this) it is problematic to arrange for release without ending up with a prolonged period when running code and table structure is out of sync (while the normally more time-consuming data migrations run). 2017-06-09 21:37:14 +00:00
test_smtpserver.py Refactored draft submission checks so that new checkers can be slotted in through a configuration in settings.py. Refactored the calling of idnits to use the new API, and added a pyang validation check. 2016-03-04 20:08:29 +00:00
test_utils.py Merged in ^/branch/iola/author-stats-r13145 from olau@iola.dk, and fixed some tests in code which moved after the latest merge with trunk. The test suite passes, but the migrations are _not_ ready to run, because of numbering conflicts (again due to code changes on trunk since the latest sync). 2017-05-31 20:59:26 +00:00
tests.py Merge author stats branch into new branch from trunk 2017-03-28 14:36:40 +00:00
tests_restapi.py Fix various "RemovedInDjango20Warning" warnings. Commit ready for merge. 2017-03-25 19:16:45 +00:00
text.py Commented out again a function that was commented in by mistake in the committed code. 2017-06-06 16:30:53 +00:00
textupload.py Implement completing a review with tests. One can currently 2016-06-14 11:28:53 +00:00
timezone.py Add time zone helpers for converting between local IETF db time and UTC 2012-09-17 15:51:33 +00:00
unaccent.py Move unaccent helpers 2011-09-16 11:32:33 +00:00
urls.py Cleaned up the remaining explicit url names, using dotted-paths to view 2017-02-26 23:21:49 +00:00
validators.py Added a validator to Document.title to prevent control chars in the title (complementing a recent cleanup of more than 120 instances of document titles containing vertical tabs) 2017-02-20 20:47:37 +00:00