Olivier Mangin
3a149f655f
Fix bug introduced by 78437acb4aab80f7c6cd5fa0f58de5ffd94d8ec5.
2014-04-23 16:52:31 +02:00
Fabien Benureau
48ad7e9b69
fix bug when calling
2014-04-21 19:17:39 +02:00
Fabien Benureau
84fd5d7649
fix #17
2014-04-20 02:41:30 +02:00
Olivier Mangin
78437acb4a
Merge several steps towards python3 compatibility.
...
(From branch 'feat/python3' into develop.)
2014-04-19 22:38:18 +02:00
Olivier Mangin
6e6aa8b3ef
Adds missing dateutil dependency.
2014-04-19 22:36:05 +02:00
Olivier Mangin
c45b64506a
Merge branch 'develop' into feat/python3
2014-04-19 22:18:51 +02:00
Olivier Mangin
f59a017d6f
Adds missing pyyaml dependency.
2014-04-19 22:12:09 +02:00
Fabien Benureau
071730a49b
fix #5 and achieve method parity between databroker and datacache
2014-04-19 21:11:02 +02:00
Olivier Mangin
c9637b7607
Minor: unichr <- uchr.
2014-04-19 18:46:53 +02:00
Olivier Mangin
8136e0906e
Fix use of range as list.
2014-04-19 18:14:01 +02:00
Olivier Mangin
bf2cce1c13
Only use print_function.
2014-04-19 18:09:46 +02:00
Olivier Mangin
571162a54d
Adds renamed libs for python3.
2014-04-19 17:27:42 +02:00
Olivier Mangin
01fd368c97
Fix import and except syntax for python3.
2014-04-19 16:56:31 +02:00
Olivier Mangin
ed16f0bb5b
Fix undefined variable and remove 'added' time (set by repo.push_paper).
2014-04-19 16:55:37 +02:00
Olivier Mangin
aedc59cf91
Minor: update requirements in readme.
2014-04-19 16:16:23 +02:00
Olivier Mangin
7713e5d80e
Fix encoding of keywords.
...
Also introduces ustr instead of unicode for python2 and str for python3.
2014-04-18 20:43:26 +02:00
Olivier Mangin
9b6f6db297
Fixes editor formatting.
2014-04-18 17:51:20 +02:00
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