Remove 'importer' or 'exporter' from filenames where not needed

This commit is contained in:
MinchinWeb 2021-05-07 20:44:07 -06:00
parent 788b32b71c
commit aa6e0a7c84
11 changed files with 6 additions and 7 deletions

View file

@ -49,7 +49,7 @@ entries to a Journal. Here is a basic Importer, assumed to be provided with a
nicely formated JSON file:
~~~ python
# pelican\contrib\importer\json_importer.py
# pelican\contrib\importer\sample_json.py
import sys
from jrnl import Entry
@ -133,7 +133,7 @@ included in jrnl and so this (if installed) would override the built in
exporter.
~~~ python
# pelican\contrib\exporter\custom_json_exporter.py
# pelican\contrib\exporter\custom_json.py
import json
from jrnl.plugins.base import BaseExporter
@ -187,7 +187,7 @@ Some implementation notes:
Python interpreter running jrnl.
- the exporter should expose at least the following the following members
(there are a few more you will need to define if you don't subclass
`jrnl.plugins.exporter.text_exporter`):
`jrnl.plugins.base.BaseExporter`):
- **version** (string): the version of the plugin. Displayed to help the
user debug their installations.
- **names** (list of strings): these are the "names" that can be passed to

View file

@ -3,13 +3,14 @@
# Copyright (C) 2012-2021 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
from jrnl.plugins.exporter.text_exporter import Exporter as TextExporter
from jrnl.plugins.base import BaseExporter
from jrnl.plugins.util import get_tags_count
from ... import __version__
class Exporter(TextExporter):
class Exporter(BaseExporter):
"""This Exporter can lists the tags for entries and journals, exported as a plain text file."""
names = ["tags"]

View file

@ -5,14 +5,12 @@
from xml.dom import minidom
# from jrnl.plugins.exporter.json_exporter import Exporter as JSONExporter
from jrnl.plugins.base import BaseExporter
from jrnl.plugins.util import get_tags_count
from ... import __version__
# class Exporter(JSONExporter):
class Exporter(BaseExporter):
"""This Exporter can convert entries and journals into XML."""