227 Commits

Author SHA1 Message Date
Olivier Mangin
b71b602a50 FIX bug in color when color not activated.
_nodye does not support being called with arg instead of kwarg.
Also improves pretty print and adds related tests.
2014-04-17 19:37:28 +02:00
Olivier Mangin
3e8b780e84 FIX bib_oneliner not robust to missing year. 2014-04-17 19:20:35 +02:00
Olivier Mangin
ad29b27412 FIX bugs witth added time.
Actually implement set of added time in repository.
Changes storage of added time (now as datetime.datetime).
2014-04-17 19:15:04 +02:00
Olivier Mangin
d2ba13700f Better handling of path (also fixes bugs).
Paths should be normalized through content.system_path before any actual
operation on files. This is in particular taken care of in content
functions check_file, check_dir, write_file, and read_file.
2014-04-17 18:17:57 +02:00
Olivier Mangin
07cb6f696c Adds back edit command.
The Repository rename_paper method has been updated. The citekey update
and syncronization with citekey in the bibdata should be handled in a
sane manner inside the Paper class.
2014-04-16 18:47:14 +02:00
Olivier Mangin
c9e4f9788c Moves removing of 'id' to endecoder where it belongs. 2014-04-16 16:21:40 +02:00
Olivier Mangin
e1ae125916 Removes texnotes plugin since it is too specific. 2014-04-16 16:07:12 +02:00
Olivier Mangin
e4a25abcfb FIXES test_repo.
Removes 'id' entry from bibdata.
Fixes bug introduced in repo.
2014-04-15 21:09:10 +02:00
Olivier Mangin
c299874146 Fix use of color for import error while color module not yet imported. 2014-04-15 19:35:06 +02:00
Olivier Mangin
de3dda85d1 FIX inconsistent error on push for existing paper.
The error raised by Repository.push_paper was different depending on
whether the existence of the paper in the repository was tested directly
through the filebroker (quicker when list of citekeys in not loaded) or
through the regular __contains__ method.
2014-04-15 19:32:29 +02:00
Olivier Mangin
2f1a8ae42a Adds possibility to create repo when instance initialized.
This avoids having to manually call _create on filebroker.
2014-04-15 19:28:12 +02:00
Fabien Benureau
47f54af8fa bump to version 5 2014-04-14 15:53:33 +02:00
Fabien Benureau
d3736e257b moving from pybtex to bibtextparser, fixed major regressions.
* only bibtex format is supported
* all tests except test_repo.py and edit test pass
* edit and update commands were not updated
* removed --format argument from export, only bibtex is supported.
2014-04-13 15:10:40 +02:00
Fabien Benureau
c692f23054 space separation for tags + tag color 2013-11-19 00:48:53 +01:00
Fabien Benureau
523fe888a3 many bugfixes when adding paper through editor 2013-11-18 21:03:47 +01:00
Fabien Benureau
e6d4c33846 added dialog when downloading a file 2013-11-18 20:52:39 +01:00
Fabien Benureau
be88ab1cf5 added 'pdf' field to docfile search in bibfile 2013-11-18 20:41:16 +01:00
Fabien Benureau
3aaed155f6 pubs list returns papers sorted by the time they were added 2013-11-18 19:29:51 +01:00
Fabien Benureau
7fe7704699 fix attach_cmd where meta would not be updated 2013-11-18 19:05:41 +01:00
Fabien Benureau
dfd16c029d first working paper test + bugfix 2013-11-18 14:53:43 +01:00
Fabien Benureau
9243859294 updated test_usecase + fixed bug in import_cmd 2013-11-17 19:44:55 +01:00
Fabien Benureau
0b1a351485 bibstruct tests + bug fixes 2013-11-17 18:56:52 +01:00
Fabien Benureau
dbb17426d0 add_cmd: fix bug 2013-11-17 17:41:22 +01:00
Fabien Benureau
529e4e5950 added timestamps 2013-11-17 00:25:33 +01:00
Fabien Benureau
c4f296346a add template text to add editor input 2013-11-15 13:25:54 +01:00
humm
2078876168 default bibfile formant is bibtex + fixed a bug in get_content 2013-11-14 18:37:27 +01:00
Fabien Benureau
8d91545472 papers renamed 'pubs' 2013-11-14 04:40:29 +01:00