Skip to content

A Python command line utility for sorting and formatting Specify forms XML files

Notifications You must be signed in to change notification settings

NSCF/specify-sort-views

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sorting and formatting Specify 6 forms XML files

A simple command line script for formatting the views.xml files that define Specify data entry forms. Doing so makes form customization a little easier.

This tool uses Click, see instructions there to create and run this tool in a virtual environment, or else from a terminal / "black window that hackers use" run, just run

pip install -r requirements.txt

...and then

pip install --editable .

For documentation run sortviews --help.

Then to format a file, run

sortviews --file "viewsfileyouwanttoformat"

viewsfileyouwanttoformat needs to be the full filename and path, and must have double quotes. The easiest is to open the terminal above in your Specify/config folder where all the files reside, and then you won't have to add long path names, just the subfolders. For example,

sortviews --file "insect/guest/ento.views.xml"

...will format that one file for the entomology discipline.

You may have to open your terminal as an administrator on your system to be able to run this command.

If you find problems, please add them here in the issues :-)

About

A Python command line utility for sorting and formatting Specify forms XML files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages