49 Commits

Author SHA1 Message Date
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
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
Fabien Benureau
c6d7300ae3 updated remove cmd 2013-11-10 03:32:19 +01:00
Fabien Benureau
353a282b42 minor bug in repo; self.bibentry in paper 2013-11-10 02:57:37 +01:00
Fabien Benureau
c048084664 Repository class 2013-11-10 02:03:32 +01:00
jgrizou
4f4a58d81c Texnote robust. Should implement test now. 2013-07-05 21:49:21 +02:00
jgrizou
690f8ce792 Simplifies add and save in repo. 2013-07-05 19:14:47 +02:00
jgrizou
9cc893d8a7 Added AddEvent 2013-07-05 17:41:48 +02:00
jgrizou
7b555abf92 Change repo and removed the update function and the rename function. Now only the save_paper function must be used 2013-07-05 17:35:32 +02:00
Jonathan Grizou
dce81717cc edit_cmd fixed. 2013-07-03 21:12:48 +02:00
Fabien Benureau
e9cb26f2e0 core file updated for python 3 2013-07-02 18:01:41 +01:00
Fabien Benureau
3c0f575b92 backtracked on changes. repo is passing all tests 2013-07-02 15:58:12 +01:00
Fabien Benureau
164816a910 updated tests 2013-07-02 14:03:32 +01:00
Fabien Benureau
c7a8ada751 enabled load keyword in repo __init__ 2013-07-02 13:29:17 +01:00
Fabien Benureau
7b66a4697d all repo test pass. doc are temporarily disabled. 2013-07-02 12:07:26 +01:00
Fabien Benureau
a354e79523 first test of new repo passing 2013-07-02 10:59:55 +01:00
Fabien Benureau
d30d5f32c4 "label" renamed as "tag" in the metadata file (and everywhere else).
Use the update command to update your metadata files.
Tags is now a property of the Paper class, so one can use :
print(p.tags)
p.tags = ['math', 'romance']
2013-06-25 23:42:06 +02:00
Olivier Mangin
18ed2a7629 Simplifies paper retrieval from repo.
- Removes old paper_from_ref from repo.
- Changes papers_from_citekey to get_paper.
- Switches texnote plugin to new ref argument helpers.
2013-06-19 16:43:18 +02:00
Olivier Mangin
105ae292b9 Support for many references and refactor.
- Moves shared command code to helpers module.
- Implements reference(s) argument for commands:
  + a helper to add single or multi-reference argument to parser,
  + two functions to transform this argument into a list of citekeys.
2013-06-19 16:35:41 +02:00
Fabien Benureau
db14fb94f3 Merge branch 'feature/fastercolor' into develop. Read on for details.
The interface of color has changed.
color.colored(s, 'red') becomes color.dye(s, color.red)
The code behind it is simpler and shorter.

The decision to use color or not is made when the UI class is instanciated,
and the configuration is read. There is no need to handle it on a per-file
basis. The default before repository instanciation is with color, but that
might (should) change.
2013-06-13 12:40:37 +02:00
Fabien Benureau
c8501aa211 updating the code to new color module 2013-06-13 12:30:45 +02:00
Olivier Mangin
e404c9e5b3 Adds tags command to list tags. 2013-06-11 12:23:46 +02:00
jgrizou
d27e5457ef Adds plugin capability and call MAIN_SECTION to get configs. 2013-06-07 20:51:12 +02:00
Olivier Mangin
04eeedf8a4 Switch to config based papers directory.
TODO add papers dir to config on papers init command.
2013-06-05 19:52:11 +02:00
Olivier Mangin
f8e370f288 Uniformizes add and import commands. Still to be further tested. 2013-06-05 17:57:35 +02:00
Olivier Mangin
bea8c99187 FIX OSError on existing document file. Use ui to display error at init. 2013-06-04 19:24:16 +02:00
Olivier Mangin
0d413697e7 FIX minor bug in document path. 2013-03-14 15:07:50 +01:00
Olivier Mangin
5d312e020d Improves edition, FIX bugs.
- handle citekey modifications in edition,
- fixes bug in update and remove functions.
2013-03-12 17:01:13 +01:00
Olivier Mangin
83845d2360 Adds update funciton for paper and required API and test updates.
- Adds update function that handle changes in citekey.
- Adds copy functions to paper classes.
- Adds tests.
- FIX a few bugs.
2013-03-01 16:33:56 +01:00
Olivier Mangin
2d700073a8 Improves document handling.
- configuration is now referenced in repo object,
- introduces new class PaperInRepo,
- simplifies storage of documents in metadata,
- changes a few names.
2013-02-21 16:48:32 +01:00
Olivier Mangin
748717ff97 Adds edit command. 2013-01-04 15:27:29 +01:00
Olivier Mangin
f734e2f172 Simplified color usage. 2012-12-26 22:21:25 +01:00
Olivier Mangin
3af7590827 Adds basic import command with document file copy.
Still lot to be improve on ui and features.
2012-12-20 17:56:34 +01:00
Olivier Mangin
47e3ce88e8 Moves add_papers fonctionality.
Now:
- paper.py provides extraction of many Papers from bib,
- command performs the loop to add each paper to repo.
2012-12-20 15:47:00 +01:00
Olivier Mangin
b46f8c543d Improves repo dir specification to avoid issues. 2012-12-19 16:20:35 +01:00
Olivier Mangin
0d53619e1f Updates commands. Many bug fix. 2012-12-18 16:48:40 +01:00
Olivier Mangin
1fad286517 Improves repo.py, adds tests. Still things to clean and decide... 2012-12-17 16:56:32 +01:00
Olivier Mangin
b08133bd1d Improves citekey suffix generation. 2012-12-17 10:59:16 +01:00
Olivier Mangin
2d758ea16e Cleanup Paper class and adds test. 2012-12-17 09:14:35 +01:00
Olivier Mangin
f2e9625aac Work in progress: improves UTF-8 support, cleans paper creation. 2012-12-14 21:10:36 +01:00
Olivier Mangin
655fb25bfa Adds command to add multiple reference at once.
Also fixes a few bugs.
2012-11-02 19:48:13 +01:00
Olivier Mangin
a1e69cdf61 Switched to full year in citekey generation. 2012-10-23 12:21:13 +02:00
Olivier Mangin
443329d7cf Fix bug in citekey generation. 2012-10-22 04:09:12 +02:00
Fabien Benureau
09b737b210 removed configparser in favor of yaml 2012-10-11 19:57:56 +02:00
Fabien Benureau
cdd2796638 finished implementing the classes
a lowercase bug remain that force to move to another format than configparser. Which is just as well.
2012-10-11 09:26:46 +02:00
Fabien Benureau
b413be687d imcomplete implementation of Repository, Paper classes 2012-10-10 16:33:17 +02:00