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),
|
||||
citekey=ui.colored(rp.citekeys[n], 'purple'),
|
||||
descr=bibdesc,
|
||||
labels=ui.colored(''.join(p.metadata['labels']), 'purple'),
|
||||
labels=ui.colored(''.join(p.metadata.get('labels', [])), 'purple'),
|
||||
)).encode('utf-8'))
|
||||
ui.print_('\n'.join(articles))
|
||||
|
@ -277,13 +277,10 @@ class PaperInRepo(Paper):
|
||||
def load(cls, repo, bibpath, metapath=None):
|
||||
key, entry = get_bibentry_from_file(bibpath)
|
||||
metadata = get_safe_metadata_from_path(metapath)
|
||||
p = PaperInRepo(repo, bibentry=entry, metadata=metadata,
|
||||
citekey=key)
|
||||
p = cls(repo, bibentry=entry, metadata=metadata, citekey=key)
|
||||
return p
|
||||
|
||||
@classmethod
|
||||
def from_paper(cls, paper, repo):
|
||||
return PaperInRepo(repo,
|
||||
bibentry=paper.bibentry,
|
||||
metadata=paper.metadata,
|
||||
citekey=paper.citekey)
|
||||
return cls(repo, bibentry=paper.bibentry, metadata=paper.metadata,
|
||||
citekey=paper.citekey)
|
||||
|
Loading…
x
Reference in New Issue
Block a user