Arun Prakash Jana
77e42ecde8
Add symbols in help.
2016-07-03 15:36:50 +05:30
Arun Prakash Jana
12b64cac25
Remove force option.
...
Disable status 500 handling, always access relative URL.
Remove TAB.
Explicit relative path.
2016-07-03 15:03:41 +05:30
Arun Prakash Jana
5a8c3a3072
Remove UA, fix gzip stream decode, try relative resource path on redirection.
2016-07-03 11:08:05 +05:30
Arun Prakash Jana
6fcba64e12
Remove redundant function and line number info.
2016-07-02 22:06:04 +05:30
Arun Prakash Jana
9a175103ee
User agent: Firefox on Ubuntu.
2016-07-01 01:22:35 +05:30
Arun Prakash Jana
99f16e94ba
Show function name and line no. for exceptions.
2016-07-01 01:01:51 +05:30
Arun Prakash Jana
f00a9157c7
Use logging instead of print() wherever possible.
2016-06-30 23:58:26 +05:30
Arun Prakash Jana
b35d22f835
Logging and debug changes.
...
Use logging module. Remove global `debug`.
warn is deprecated, used warning.
Remove printmsg(), use logging.
Refine abort message.
Use logging framework to print exception.
2016-06-30 23:41:32 +05:30
Arun Prakash Jana
dbab849bb1
Remove global pipeargs
.
2016-06-30 19:49:57 +05:30
Arun Prakash Jana
a94c416b07
Cryptography import may fail due to multiple libs.
2016-06-30 00:33:32 +05:30
Arun Prakash Jana
a6b406ebc4
Remove global showOpt
.
2016-06-29 23:52:07 +05:30
Arun Prakash Jana
0db71207f5
Remove global jsonOutput
.
2016-06-29 23:36:33 +05:30
Arun Prakash Jana
2861fb4d49
Remove global noninteractive
.
2016-06-29 23:00:57 +05:30
poikjhn
15d6e85f78
Merge branch 'master' into tests
2016-06-28 23:17:01 +02:00
Arun Prakash Jana
bce3bc9eef
Remove leagacy DB file move logic.
2016-06-25 21:45:15 +05:30
poikjhn
ec2569f142
adding test_list_tags
2016-06-24 23:57:26 +02:00
Arun Prakash Jana
b7b358c094
Update buku
2016-06-22 20:18:45 +05:30
Arun Prakash Jana
5541854089
Bump version
2016-06-21 21:21:37 +05:30
Arun Prakash Jana
1623e5311d
Reduce space between url and db index.
2016-06-18 21:00:50 +05:30
Arun Prakash Jana
50ffd25ba6
Indices list can only have +ve integers
2016-06-18 21:00:50 +05:30
Arun Prakash Jana
4c29962acc
Range doesn't include stop
2016-06-17 03:36:51 +05:30
Arun Prakash Jana
2abeffe4c5
Delete a range OR list of indices
2016-06-17 02:38:38 +05:30
Arun Prakash Jana
9c37d30da6
Append update.
2016-06-12 16:18:10 +05:30
Arun Prakash Jana
87397e3788
Add append tag support.
2016-06-12 16:00:54 +05:30
Arun Prakash Jana
07ed8da4c3
mergedb: open input DB file in ro mode (Pyhton 3.4.4 and above)
2016-06-11 11:33:56 +05:30
Arun Prakash Jana
cc30cce6a9
Man and help update.
2016-06-08 22:31:36 +05:30
Arun Prakash Jana
0862fe454e
Remove manual title update logic from refreshdb().
...
Manual title update is handled in update_bookmark().
2016-06-08 07:48:54 +05:30
Arun Prakash Jana
550469b15f
Filter and sort tags after replacing.
2016-06-07 21:26:22 +05:30
Arun Prakash Jana
6c26f3c26c
Fix #40
...
Only 'buku -u' refreshes all titles.
Confirm whether to update all records if index passed to update is 0.
2016-06-07 08:16:29 +05:30
Arun Prakash Jana
ff3b6f8781
search results: show DB index in bold.
2016-06-06 22:56:12 +05:30
Arun Prakash Jana
ccebb67a0e
Use + instead of extend().
2016-06-04 05:52:16 +05:30
Rasmus Steinke
7a47910611
Use tab delimiter for -f N
2016-06-02 22:46:05 +02:00
Arun Prakash Jana
4bfc310ac4
return if not a fatal error.
2016-06-02 23:52:36 +05:30
Arun Prakash Jana
d3abd6b692
Do not show empty fields of bookmarks.
2016-06-02 22:56:37 +05:30
Arun Prakash Jana
47c480b9b2
Bump version.
2016-06-02 21:15:07 +05:30
Arun Prakash Jana
30bd0ad5e8
Implement export, add option -m for merge.
2016-06-02 21:12:19 +05:30
Arun Prakash Jana
c54d3112ab
Optimize print_record, show all fields.
2016-06-02 18:23:54 +05:30
Arun Prakash Jana
586992a5ac
Modify API name.
...
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-06-02 11:08:14 +05:30
poikjhn
9a614ae066
Merge branch 'master' into tests
2016-06-02 02:31:40 +02:00
poikjhn
fe2b40be2f
readability, minor changes
2016-06-02 02:28:31 +02:00
Arun Prakash Jana
237f8857bc
class BukuCrypt for encrypt and decrypt functions.
...
Nasty hack, but saves ~100ms. Given that encrypt/decrypt need
to be done manually, late loading doesn't seem outrageous here.
2016-06-01 22:29:42 +05:30
Arun Prakash Jana
219304cc68
open html import file in read-only mode.
2016-06-01 18:50:54 +05:30
Arun Prakash Jana
e89459f891
import_bookmark: handle exception with file open, close file.
2016-06-01 17:44:29 +05:30
Arun Prakash Jana
8607d54258
Late commit (write once) in case of merge bookmark.
2016-06-01 17:32:26 +05:30
Alessio Sergi
dc0b73ef0a
Switch from PyCrypto to cryptography
...
PyCrypto is no longer maintained. Cryptography is an actively
developed library that provides cryptographic recipes and primitives.
See https://cryptography.io/ .
2016-06-01 12:20:40 +02:00
Arun Prakash Jana
9d2a0cbd0f
Late commit (write once) in case of import bookmark.
2016-06-01 15:05:33 +05:30
Arun Prakash Jana
db816fb93d
Merge pull request #33 from asergi/urandom
...
Use system RNG in crypto
2016-06-01 12:00:58 +05:30
Arun Prakash Jana
440bb512f7
Abort refreshdb() early if interrupted (SIGINT).
2016-06-01 11:40:12 +05:30
Arun Prakash Jana
7957a29e31
One commit sufficient for multiple updates.
...
ASC is the default.
Revert timeout to 30 secs.
2016-06-01 08:18:39 +05:30
poikjhn
d1f3ee993d
rebuilding test_add_and_retrieve_bookmark
...
adding get_bookmark_by_id
2016-06-01 03:33:20 +02:00
Alessio Sergi
2c4c95b40e
Use system RNG in crypto
...
See https://cryptography.io/en/latest/random-numbers/ .
2016-05-31 23:51:47 +02:00
Arun Prakash Jana
fef2775941
A more robust parse_args().
2016-06-01 03:10:51 +05:30
Arun Prakash Jana
c0c26fa6a1
Remove append, huge optimization in list_tags.
2016-06-01 02:30:34 +05:30
Arun Prakash Jana
411ed0ac09
string concat optimization and other minor changes.
2016-06-01 00:20:46 +05:30
Alessio Sergi
961f8c97ae
Flake8 fixes
2016-05-31 19:39:34 +02:00
Arun Prakash Jana
7be4af7277
Update help.
...
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-05-31 11:23:01 +05:30
Arun Prakash Jana
f8c48d0415
Simplify tag parsing logic. No in-tag commas.
2016-05-30 07:48:59 +05:30
Arun Prakash Jana
359a5742d4
Move print to debug.
2016-05-29 21:10:15 +05:30
Arun Prakash Jana
7e5f057b3d
Update operational notes on tags.
...
Minor changes in printed messages.
Update features.
2016-05-29 20:44:43 +05:30
Arun Prakash Jana
391f9f6673
Replace string comma with DELIMITER.
2016-05-29 19:03:58 +05:30
Arun Prakash Jana
c6c4b8ea6e
Replace in-tag commas with spaces.
...
Operational note on tag delimiter.
2016-05-29 15:01:46 +05:30
Arun Prakash Jana
3f1a268395
Help on --merge option.
2016-05-29 12:49:57 +05:30
Arun Prakash Jana
4ab8b43dd8
Wrap tags in commas in add_bookmark() if missing.
2016-05-29 12:49:57 +05:30
Arun Prakash Jana
612247ace7
Change order of arguments to update_bookmark().
2016-05-29 12:15:07 +05:30
Arun Prakash Jana
57ffa0f8c9
Implement merge Buku dtabase.
2016-05-29 11:39:51 +05:30
Arun Prakash Jana
acd8f30056
Document noninteractive option, close conn-cur before exit.
2016-05-28 19:06:09 +05:30
Arun Prakash Jana
7741a1ef6d
Implement noninteractive option.
2016-05-28 18:45:03 +05:30
Arun Prakash Jana
d739e41f46
Fix help indentation.
2016-05-25 22:45:52 +05:30
toyg
a7644aa03f
moved main flow inside IF block, so that the module is actually importable
2016-05-25 12:00:14 +01:00
toyg
2a76b4e253
clarifying method name since we're getting a dir, not the actual file path. This is in preparation of upcoming tests.
2016-05-25 11:52:38 +01:00
Arun Prakash Jana
fa5b38a2fc
Fix replace issue with tags adding up.
2016-05-24 23:58:14 +05:30
Arun Prakash Jana
5e9d58227b
Fix typo, remove redundant print.
2016-05-24 23:25:37 +05:30
Arun Prakash Jana
6ccec0c85b
Double quotes to single quotes.
2016-05-24 23:21:38 +05:30
Arun Prakash Jana
9af6c01fd9
Quit on double Enter.
2016-05-24 21:42:51 +05:30
Arun Prakash Jana
eb5aa0b136
Increase spacing.
2016-05-24 21:30:54 +05:30
Arun Prakash Jana
93fb6a9024
Remove or suppress messages into debug.
...
Suppress more messages into debug.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-05-24 11:22:03 +05:30
Arun Prakash Jana
dae8cee393
Remove globals from search_by_tag()
2016-05-24 00:57:57 +05:30
Arun Prakash Jana
e056d76671
Remove globals from searchdb()
2016-05-24 00:46:21 +05:30
Arun Prakash Jana
1aedd30101
Remove globals from refreshdb()
...
Fix update case where not using --tag would delete tag.
2016-05-23 21:59:46 +05:30
Arun Prakash Jana
5af7a961f7
Re-use parse_tags. Handle new tag '' in replace.
2016-05-23 21:27:06 +05:30
Arun Prakash Jana
29be3f6072
Update README formatting, man, help and copyright.
...
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-05-23 15:40:41 +05:30
Arun Prakash Jana
111dd0066a
json format support in printing individual record.
...
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-05-23 14:21:54 +05:30
Arun Prakash Jana
a6589bd86a
Update program help.
...
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-05-23 12:11:42 +05:30
Arun Prakash Jana
c891f66691
rename delete and import functions
...
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-05-23 11:31:31 +05:30
Arun Prakash Jana
4046afb4ea
Show json tags as per FF bookmark convention
2016-05-23 09:09:58 +05:30
Arun Prakash Jana
a769f71671
Import description. Other changes:
...
1. Update man and docs
2. Update tab-completion scripts
2016-05-23 05:06:41 +05:30
Arun Prakash Jana
ca95fa9d59
Import functionality.
2016-05-23 02:33:47 +05:30
Arun Prakash Jana
ff77bba378
Modify add and update to accept tags as a string.
2016-05-23 01:54:24 +05:30
Arun Prakash Jana
27ef1c9df5
global independent add_bookmark().
2016-05-23 01:03:24 +05:30
Arun Prakash Jana
53da73b8db
Remove insert bookmark operation.
2016-05-23 00:50:50 +05:30
Arun Prakash Jana
c68ddf6ebd
Change version to a string.
2016-05-22 23:20:19 +05:30
Arun Prakash Jana
41281943f5
Rename function names (by PEP 8)
...
Rename function names (by PEP 8)
2016-05-22 20:45:19 +05:30
Arun Prakash Jana
e4692a5402
Edit options in new help and man section
...
More accurate update description
2016-05-21 23:04:51 +05:30
Arun Prakash Jana
8ca31e6ce8
Emphasis on --url option works with -u only.
2016-05-21 18:45:56 +05:30
toyg
ab65c94dfe
removed globals from updateEntry and slight formatting
2016-05-21 11:40:37 +01:00
Arun Prakash Jana
af252299f3
--tag works with -a and -u.
2016-05-21 12:44:07 +05:30
toyg
7277d7d9a0
refactored to object. Still lots of globals to fix.
2016-05-20 23:05:25 +01:00
Arun Prakash Jana
493149942d
Update help.
2016-05-20 23:56:01 +05:30
Arun Prakash Jana
687f15a325
Retry on HTTP error 403 (Forbidden).
...
The servers return 403 when / is the path.
Examples:
http://my.lovelycharts.com
http://my.lovelycharts.com/
2016-05-20 22:31:03 +05:30
Arun Prakash Jana
e39e2621d5
Handle domain name-only URL without trailing /
...
https://www.google.co.in fails.
Surprisingly, http://www.google.com worked!
2016-05-20 20:45:52 +05:30