Adds TODO, FIX minor issue in list, change explicit call to class name
to cla.
This commit is contained in:
parent
f0750b0388
commit
66fc618149
11
TODO
Normal file
11
TODO
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
TODO list
|
||||||
|
=========
|
||||||
|
- manage cross-references
|
||||||
|
+ labels
|
||||||
|
- find (authors) duplicates
|
||||||
|
+ remove command
|
||||||
|
- stats command
|
||||||
|
- add query support to list command (cf beets)
|
||||||
|
- FIX open on ubuntu
|
||||||
|
- implement queries
|
||||||
|
- edit on add
|
@ -16,6 +16,6 @@ def command(config, ui):
|
|||||||
num=int(n),
|
num=int(n),
|
||||||
citekey=ui.colored(rp.citekeys[n], 'purple'),
|
citekey=ui.colored(rp.citekeys[n], 'purple'),
|
||||||
descr=bibdesc,
|
descr=bibdesc,
|
||||||
labels=ui.colored(''.join(p.metadata['labels']), 'purple'),
|
labels=ui.colored(''.join(p.metadata.get('labels', [])), 'purple'),
|
||||||
)).encode('utf-8'))
|
)).encode('utf-8'))
|
||||||
ui.print_('\n'.join(articles))
|
ui.print_('\n'.join(articles))
|
||||||
|
@ -277,13 +277,10 @@ class PaperInRepo(Paper):
|
|||||||
def load(cls, repo, bibpath, metapath=None):
|
def load(cls, repo, bibpath, metapath=None):
|
||||||
key, entry = get_bibentry_from_file(bibpath)
|
key, entry = get_bibentry_from_file(bibpath)
|
||||||
metadata = get_safe_metadata_from_path(metapath)
|
metadata = get_safe_metadata_from_path(metapath)
|
||||||
p = PaperInRepo(repo, bibentry=entry, metadata=metadata,
|
p = cls(repo, bibentry=entry, metadata=metadata, citekey=key)
|
||||||
citekey=key)
|
|
||||||
return p
|
return p
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_paper(cls, paper, repo):
|
def from_paper(cls, paper, repo):
|
||||||
return PaperInRepo(repo,
|
return cls(repo, bibentry=paper.bibentry, metadata=paper.metadata,
|
||||||
bibentry=paper.bibentry,
|
|
||||||
metadata=paper.metadata,
|
|
||||||
citekey=paper.citekey)
|
citekey=paper.citekey)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user