Browse Source

Rename addsongdir content plugin

pull/207/head
Oliverpool 9 years ago
parent
commit
de7d632d21
  1. 2
      patacrep/content/addsongdir.py
  2. 2
      test/test_content/sort.source
  3. 2
      test/test_songbook/content.yaml

2
patacrep/content/addpath.py → patacrep/content/addsongdir.py

@ -37,4 +37,4 @@ def parse(keyword, config, argument):
config['_songdir'] = old_songdir config['_songdir'] = old_songdir
return processed_content return processed_content
CONTENT_PLUGINS = {'addpath': parse} CONTENT_PLUGINS = {'addsongdir': parse}

2
test/test_content/sort.source

@ -1,4 +1,4 @@
- addpath: - addsongdir:
path: "datadir_sort" path: "datadir_sort"
content: content:
- section: - section:

2
test/test_songbook/content.yaml

@ -11,7 +11,7 @@ content:
- section: Test of section - section: Test of section
- sort: - sort:
- songsection: Test of song section - songsection: Test of song section
- addpath: - addsongdir:
# relative to yaml songfile # relative to yaml songfile
path: content_datadir/content path: content_datadir/content
content: content:

Loading…
Cancel
Save