From bb8243966b2f6b39e0be072c2891e917777a1537 Mon Sep 17 00:00:00 2001 From: Olivier Mangin Date: Thu, 4 Jul 2013 15:00:16 +0200 Subject: [PATCH 1/2] Default plugins is no plugin. --- papers/configs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/papers/configs.py b/papers/configs.py index a46ba3b..391b1b0 100644 --- a/papers/configs.py +++ b/papers/configs.py @@ -11,7 +11,7 @@ try: except KeyError: DFT_EDIT_CMD = 'vi' -DFT_PLUGINS = 'texnote' +DFT_PLUGINS = '' DFT_CONFIG = {'papers_dir' : os.path.expanduser('~/.papers'), 'doc_dir' : 'doc', From 53e6aa512e7377f4dfde79f88081ecfa60d940f9 Mon Sep 17 00:00:00 2001 From: Olivier Mangin Date: Thu, 4 Jul 2013 15:04:18 +0200 Subject: [PATCH 2/2] Remove outdated add_library. --- papers/commands/__init__.py | 1 - papers/commands/add_library_cmd.py | 22 ---------------------- papers/papers_cmd.py | 1 - 3 files changed, 24 deletions(-) delete mode 100644 papers/commands/add_library_cmd.py diff --git a/papers/commands/__init__.py b/papers/commands/__init__.py index 26691fa..466e2ea 100644 --- a/papers/commands/__init__.py +++ b/papers/commands/__init__.py @@ -1,5 +1,4 @@ import add_cmd -import add_library_cmd import import_cmd import export_cmd import init_cmd diff --git a/papers/commands/add_library_cmd.py b/papers/commands/add_library_cmd.py deleted file mode 100644 index 6266df4..0000000 --- a/papers/commands/add_library_cmd.py +++ /dev/null @@ -1,22 +0,0 @@ -from .. import repo -from ..paper import Paper -from ..configs import config - -def parser(subparsers): - parser = subparsers.add_parser('add_library', - help='add a set of papers to the repository') - parser.add_argument('bibfile', help='bibtex, bibtexml or bibyaml file') - return parser - - -def command(args): - """ - :param bibfile bibtex file (in .bib, .bibml or .yaml format. - """ - - ui = args.ui - bibfile = args.bibfile - - rp = repo.Repository(config()) - for p in Paper.many_from_bib(bibfile): - rp.add_paper(p) diff --git a/papers/papers_cmd.py b/papers/papers_cmd.py index 9156324..5118bfb 100644 --- a/papers/papers_cmd.py +++ b/papers/papers_cmd.py @@ -13,7 +13,6 @@ from . import plugins cmds = collections.OrderedDict([ ('init', commands.init_cmd), ('add', commands.add_cmd), - ('add_library', commands.add_library_cmd), ('import', commands.import_cmd), ('export', commands.export_cmd), ('list', commands.list_cmd),