318 Commits

Author SHA1 Message Date
Olivier Mangin
91b3fc75bb Several bug fixes.
- edit command fails correctly on unknown citekey,
- init command and filebroker use content module to check paths,
- fix wrong docfile in testrepo,
- list command does not fail on None added date (unknown add dates are
  older than everything else). Also adds relevant test.
2014-04-18 12:58:12 +02:00
Olivier Mangin
ac1562f4ea Fix open_cmd and misleading example from testrepo.
Open command was not using system_path to ensure user expansion.
Testrepo was using pubsdir:// instead of docsdir://. Although not
directly used in test this was misleading and incoherent.
Also fixes missing system_path in filebroker.
2014-04-17 21:07:48 +02:00
Olivier Mangin
0274f2640a Fix bug in export.
Not using ui.print_ was causing encoding error.
2014-04-17 19:45:00 +02:00
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
Fabien Benureau
f2de611106 fixed last regression test 2014-04-17 12:53:13 +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
8e467da979 Removes unused bug tracking, todo and note files. 2014-04-16 16:00:16 +02:00
Olivier Mangin
66ae19c256 Remove Coding guidelines (moved to github wiki). 2014-04-16 15:50:13 +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
93c7fb2f27 Moves TestFakeFs helper to fake_env module. 2014-04-15 19:34:03 +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
Olivier Mangin
b51477fc58 Fix typo in readme and add dependency section. 2014-04-15 16:36:49 +02:00
Fabien Benureau
7f7c955a68 Merge branch 'feat/cache' into develop
replaced pybtex by bibtexparser
2014-04-14 15:54:01 +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
4ce261d636 more tests on tags 2013-11-18 15:04:34 +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
810525b4d0 fixed test_config 2013-11-17 19:20:42 +01:00
Fabien Benureau
23cf48661b added bibstruct text, cleaned fixtures and test_paper 2013-11-17 19:19:31 +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
humm
b03b899c5a added support of url (as long as they begin in http://) for docfiles 2013-11-13 22:06:41 +01:00
Fabien Benureau
0fc3df98fe Merge branch 'feat/docsdir' into feat/cache
pubsdir://doc/ replaced by docsdir:// so that docsdir can be relocated.
added support for note, completely internal.
2013-11-12 13:35:36 +01:00
Fabien Benureau
148917c70c move_doc in docbroker + consequences + remove_cmd remove notes too 2013-11-12 13:34:39 +01:00
Fabien Benureau
29897cc0ad rename also rename notes 2013-11-11 15:24:09 +01:00
Fabien Benureau
1ad64d7859 notes cmd 2013-11-11 04:07:42 +01:00
Fabien Benureau
f92430de33 fix unicode bug 2013-11-11 00:52:32 +01:00
Fabien Benureau
10fd0f86d6 only one usecase failing 2013-11-11 00:52:09 +01:00
Fabien Benureau
98adc8a750 removed helpers file 2013-11-10 21:54:09 +01:00
Fabien Benureau
e0dab17dcd added troublesome bibfile 2013-11-10 21:49:53 +01:00
Fabien Benureau
8c54b19207 updated import and added rename command 2013-11-10 19:35:21 +01:00
Fabien Benureau
bc82d0de8c update attach and export cmds 2013-11-10 14:48:12 +01:00