Commit graph

725 commits

Author SHA1 Message Date
shortcutme
430805adcc Add language to serverinfo 2016-11-18 20:11:11 +01:00
shortcutme
38ff33512f Use raise instead of assert for sql select filter 2016-11-18 20:11:03 +01:00
shortcutme
8ad6cd2e81 Allow to change language configuration parameter, reload translate files on change 2016-11-18 20:10:24 +01:00
shortcutme
0f31f1d34a Make UiWebsocket messages translatable 2016-11-18 20:09:51 +01:00
shortcutme
b25bf97cad Add language to UI js as paramter to avoid cache 2016-11-18 20:07:58 +01:00
shortcutme
9ff2bfc4bb Easier UI js translation 2016-11-18 20:07:26 +01:00
shortcutme
b276f01f2e Hungarian transition of Python messages 2016-11-18 20:06:59 +01:00
shortcutme
e4cfec3ba0 Test strict translator 2016-11-18 20:03:00 +01:00
shortcutme
da2e47cd5f Python, Html, JS translator class 2016-11-18 20:02:43 +01:00
shortcutme
d7ff49c4c7 Reload source on .json changes 2016-11-18 20:02:03 +01:00
shortcutme
4413f77ba9 Language parameter 2016-11-18 20:00:15 +01:00
shortcutme
bd49ecd585 Rev1714 2016-11-16 11:22:47 +01:00
shortcutme
0e83eba6df Don't retry failed peer on optional file search 2016-11-16 11:22:38 +01:00
shortcutme
b220f5de5c Noparallel ignore args add first parameter to make it per-class 2016-11-16 11:21:31 +01:00
shortcutme
6c74f6c527 Possible to disable length header on sitemeda 2016-11-16 11:19:35 +01:00
shortcutme
2e08d68d87 Remove content.json files from bad file list 2016-11-16 11:19:08 +01:00
shortcutme
d5210d27e2 Load all sites on commands to avoid errors 2016-11-16 11:18:44 +01:00
shortcutme
c38611dc15 Only display opened db number in log 2016-11-16 11:18:15 +01:00
shortcutme
c82c61ef3d Rev1704, FIx siteSign error 2016-11-11 23:12:32 +01:00
shortcutme
c076f605aa Rev1703, Allow custom favicon 2016-11-10 23:14:30 +01:00
shortcutme
70e78056e9 Sorted load of plugins 2016-11-10 23:10:28 +01:00
shortcutme
93866f9abf Rev1702 2016-11-08 15:02:50 +01:00
shortcutme
c2984ecd47 Update site size after archiving 2016-11-08 15:02:44 +01:00
shortcutme
d21d0d5b9a Rev1701, Simpler index for better sqlite compatibility 2016-11-08 03:34:28 +01:00
shortcutme
14f2470477 Version 0.5.0, Rev1700 2016-11-07 23:49:02 +01:00
shortcutme
de5eb43da1 Warnings instead of errors 2016-11-07 23:48:34 +01:00
shortcutme
110885401c Use optionalDownloaded in workermanager 2016-11-07 23:48:11 +01:00
shortcutme
2b7e898781 WorkerManager onCompelte function 2016-11-07 23:47:53 +01:00
shortcutme
2cdde7dd46 Retry file deletion on error 2016-11-07 23:47:09 +01:00
shortcutme
9765afc286 Modify checkfiles to use optionalRemove, optionalDownloaded and isDownloadable functions 2016-11-07 23:46:54 +01:00
shortcutme
cb5b3884cd Change verification errors to warning 2016-11-07 23:44:58 +01:00
shortcutme
9178a3ad6a Handle missing content 2016-11-07 23:44:38 +01:00
shortcutme
cc504e93f6 Change contentdb calls to site object 2016-11-07 23:43:42 +01:00
shortcutme
4890c4cb2f Fix big site download 2016-11-07 23:43:08 +01:00
shortcutme
73b3c8db55 Use site object on delete from contentdb 2016-11-07 23:42:28 +01:00
shortcutme
713a2f88a9 Query and send more hashfield 2016-11-07 23:42:13 +01:00
shortcutme
30a2116abf Only announce if trackers 2016-11-07 23:42:00 +01:00
shortcutme
6acc81cb50 Retry bad files in separate thread 2016-11-07 23:41:25 +01:00
shortcutme
af571deb16 Peer cleanup ttl based on peer numbers 2016-11-07 23:40:04 +01:00
shortcutme
e6a82d4c64 Pooled file downloads to handle large ammount of files better 2016-11-07 23:39:45 +01:00
shortcutme
83b3dc8fbe Autodownload optional pattern check to separate function to allow plugins 2016-11-07 23:39:04 +01:00
shortcutme
d1ad7e0850 Stats for total optional files and downloaded optional files in a site 2016-11-07 23:36:04 +01:00
shortcutme
2048648b39 Reduce findoptional spam 2016-11-07 23:32:20 +01:00
shortcutme
a3d21f5377 Update if high priority and less than 10 peers for the file 2016-11-07 23:29:53 +01:00
shortcutme
62d092e5ac Update task ids during startFindOptional if new task added 2016-11-07 23:27:42 +01:00
shortcutme
d60785ee33 Ignore parameters for startFindOptional noparallel 2016-11-07 23:26:07 +01:00
shortcutme
fe19bd2fce Faster findOptionalTasks 2016-11-07 23:25:25 +01:00
shortcutme
7951763612 Faster findOptionalHashIds 2016-11-07 23:24:50 +01:00
shortcutme
5fafe7cf29 Change contentdb reference to site object in test 2016-11-07 23:20:52 +01:00
shortcutme
bd51c61eb6 Findhashfield optimization and limit 2016-11-07 23:20:08 +01:00
shortcutme
9fcd456205 Return file send stats 2016-11-07 23:19:33 +01:00
shortcutme
c727443ea3 Log connection cpu time usage for non io heavy commands 2016-11-07 23:19:17 +01:00
shortcutme
7ffd897653 Change contentdb after it modified in db 2016-11-07 23:17:41 +01:00
shortcutme
e7c9c2d192 Call ContentDb functions with site object 2016-11-07 23:16:22 +01:00
shortcutme
0b599a95e8 Only import supported cols 2016-11-07 23:15:09 +01:00
shortcutme
5893bbc199 Fix map command overwrite 2016-11-07 23:14:36 +01:00
shortcutme
7baeb8e10f Allow keyvalue table creation before json_id present 2016-11-07 23:14:09 +01:00
shortcutme
14f10d7d10 Open cursor if necessary 2016-11-07 23:13:05 +01:00
shortcutme
bdc8c7e5cc Formatting 2016-11-07 23:12:48 +01:00
shortcutme
f55a1f1bf3 Support delayed commands in Db 2016-11-07 23:11:14 +01:00
shortcutme
b7ede15b06 Print message before shutdown 2016-11-07 23:10:31 +01:00
shortcutme
d5d3f32bf8 Support traceback info formatting 2016-11-07 23:09:39 +01:00
shortcutme
0d9e3baebc Formatting 2016-11-07 23:09:06 +01:00
shortcutme
8955998d25 Support insertOrUpdate in database cursor 2016-11-07 23:08:57 +01:00
shortcutme
d595373f9f Use insertOrUpdate instead of replace on setcontent 2016-11-07 23:08:13 +01:00
shortcutme
12bf5bb152 Sote site in contentdb after files loaded 2016-11-07 23:02:37 +01:00
shortcutme
c35ffccf6c Change to schema based ContentDb to easier extension 2016-11-07 23:01:40 +01:00
shortcutme
0706748d10 Accept plugins to ContentDB 2016-11-07 23:00:59 +01:00
shortcutme
b3ba79a0fd Function to check if the user has permission to modife a site 2016-11-07 22:55:09 +01:00
shortcutme
81744c584e Merge wrapper js modifications 2016-11-07 22:53:07 +01:00
shortcutme
0774662689 Allow more connection backlog 2016-11-07 22:52:34 +01:00
shortcutme
6201612169 Store cpu time used by connection 2016-11-07 22:52:22 +01:00
shortcutme
fc239cfd0d Change tracker to more reliable one 2016-11-07 22:52:03 +01:00
shortcutme
7677b6859e Move config file modification to Config class 2016-11-07 22:51:43 +01:00
shortcutme
76af3a2e78 Gevent timer helper 2016-11-07 22:50:45 +01:00
shortcutme
38838b94a2 Formatting 2016-11-07 22:50:33 +01:00
shortcutme
5ff31e7cb4 Get free space on HDD function 2016-11-07 22:50:01 +01:00
shortcutme
ccb35f1353 Send content size header for normal files 2016-11-07 22:49:13 +01:00
shortcutme
a4a52e7ed4 Add websockets messages until its connected 2016-11-07 22:44:54 +01:00
shortcutme
0214741345 Hashfield test fix 2016-11-07 22:44:03 +01:00
shortcutme
d5b8722bb0 Kill greenlets between tests 2016-11-07 22:43:26 +01:00
shortcutme
c5851cd166 Better DB tests 2016-11-07 22:42:27 +01:00
shortcutme
0418a3e6de Only save sites.json if fully loaded to avoid data loss 2016-11-07 22:40:12 +01:00
shortcutme
8f3dfd7435 Fix site deletion errors on startup 2016-11-07 22:38:01 +01:00
shortcutme
efbd485f5f Update more hashfield on site check 2016-11-07 22:37:31 +01:00
shortcutme
3ba2ecedce Only try to close upnp opened port if necessary 2016-11-07 22:36:14 +01:00
shortcutme
cb214476e4 Keep plugin order after reload to allow plugins to extend other ones 2016-11-07 22:35:28 +01:00
shortcutme
91513f15ae Remove hash by id from hashfield 2016-11-07 22:35:05 +01:00
shortcutme
d39d6a2bd4 Mark if peer has hasfield 2016-11-07 22:34:46 +01:00
shortcutme
65d2b0d996 Still open browser if already running 2016-11-07 22:34:27 +01:00
shortcutme
484659fc3f Separate lock file instad of log file locking 2016-11-07 22:34:12 +01:00
shortcutme
64179e7dc1 Rev1536, Start download optional files on help check 2016-10-04 16:24:33 +02:00
shortcutme
b003c8df01 Rev1535, Fix err not defined on content load 2016-10-04 11:36:33 +02:00
shortcutme
83158de1ce Rev1534 2016-10-03 19:26:51 +02:00
shortcutme
c9efcf7389 Catch socket errors on uPnP punch 2016-10-03 19:26:37 +02:00
shortcutme
3774630476 Close socket after uPnP request 2016-10-03 19:26:06 +02:00
shortcutme
1849547133 Rev1533, Add uPnP open protocols as parameter 2016-10-02 14:39:03 +02:00
shortcutme
8f6f6abb0e Rev1532 2016-10-02 14:27:37 +02:00
shortcutme
fbdc9e2b40 Comment typo 2016-10-02 14:24:48 +02:00
shortcutme
bca08970ba Always disable announce when testing 2016-10-02 14:23:30 +02:00
shortcutme
d6da0c421c Better json compressing 2016-10-02 14:23:05 +02:00
shortcutme
bb23bc7b3c Send diff to second batch of peers 2016-10-02 14:22:32 +02:00
shortcutme
31077eb346 Move uPnP port remove to fileserver 2016-10-02 14:22:01 +02:00
shortcutme
2ab04deded Move optional files hashfield adding to workermanager for better performance 2016-10-02 14:18:35 +02:00
ZeroNet
906f6c65d9 Merge pull request #577 from sirMackk/upnp_update
Closes #466 - Close ports on exit + minor refactoring w/ tests
2016-10-01 13:24:48 +02:00
sirMackk
ea47c47b5e Makes opening a port stop after first successful try. 2016-09-29 15:24:46 +02:00
shortcutme
d760a71b76 Rev1529, Fix json write bug with [] characters in value 2016-09-29 13:01:02 +02:00
ZeroNet
6a58083431 Merge pull request #588 from dldx/master
Update UiRequest.py
2016-09-28 20:42:44 +02:00
shortcutme
a5a56355dc Rev1527 2016-09-28 20:40:10 +02:00
shortcutme
3331e2305b Fix sitePublish cli command 2016-09-28 20:36:02 +02:00
shortcutme
117a82c059 Delete bad_files without size 2016-09-28 20:35:53 +02:00
Durand D'souza
13837971a7 Update UiRequest.py
Fixed a bug where a lack of a trailing slash in every url caused zeronet to fail to load the page, even if it existed.
2016-09-20 05:23:34 +01:00
shortcutme
d608a0d847 Rev1525 2016-09-17 21:01:26 +02:00
shortcutme
67c9921ace Only add non-connected peers to publish if necessary 2016-09-17 21:01:16 +02:00
shortcutme
4690a111bf Push updates to newer clients first 2016-09-17 21:00:40 +02:00
shortcutme
65e5d05a9e Delete cleanup bad files without file info on update 2016-09-17 21:00:20 +02:00
shortcutme
fe59618eaf Rev1523, Real fix file write confirmation 2016-09-14 18:41:28 +02:00
shortcutme
60dd797d1a Rev1522, Fix file write confirmation dialog 2016-09-14 18:28:48 +02:00
shortcutme
e7762e03b4 Rev1521 2016-09-14 10:54:33 +02:00
shortcutme
a7de4aca91 Stop connection loop when closed 2016-09-14 10:54:08 +02:00
shortcutme
1c86a6c58a Close connection on crypt error 2016-09-14 10:53:47 +02:00
shortcutme
ca2a30f7ae Ignore not existent files on dbdict items 2016-09-14 10:53:24 +02:00
shortcutme
9fd19bf382 Fix content deletion 2016-09-14 10:52:41 +02:00
shortcutme
14544922bf Don't check files on siteUpdate 2016-09-14 10:51:10 +02:00
sirMackk
bd5ebdb2de Integrates updated upnppunch with project; Makes project close ports using UPnP on exit. 2016-09-09 12:37:22 +02:00
shortcutme
931426e4fc Rev1518 2016-09-09 12:24:27 +02:00
shortcutme
8241651a28 Add new tracker 2016-09-09 12:24:14 +02:00
shortcutme
e3de6da87e Ignore deleted files on contetndb iteritems 2016-09-09 12:24:00 +02:00
shortcutme
7d78623c92 Remove unnecessary logging 2016-09-09 12:23:26 +02:00
shortcutme
c8325589cc Rev1515 2016-09-07 17:43:18 +02:00
shortcutme
212eabbc20 Remove broken torrent tracker 2016-09-07 17:42:06 +02:00
shortcutme
b2b91c9aff Remove save error message when no sites loaded yet 2016-09-07 17:41:55 +02:00
shortcutme
d5651f1df3 Lazy create peerhashfield objects 2016-09-07 17:41:33 +02:00
shortcutme
7572f8c98b Display Python and ZeroNet version for every command 2016-09-07 17:41:09 +02:00
shortcutme
75e74f1ff7 Always close db after 5 min idle time 2016-09-07 17:40:35 +02:00
shortcutme
a6c4a77e13 Rev1510, Fix site save without loaded SiteManager 2016-09-06 14:52:55 +02:00
shortcutme
d9bbb20743 Rev1509, Fix site delete 2016-09-06 10:16:09 +02:00
shortcutme
ac530b53f6 Rev1508 2016-09-05 13:58:37 +02:00
shortcutme
b8bf773c40 Make test compatible with new content.db 2016-09-05 13:58:10 +02:00
shortcutme
dae5cd3969 Fix startup with 1000+ sites 2016-09-05 13:57:12 +02:00
shortcutme
59205088d2 Move site deletion to dedicted function 2016-09-05 13:55:51 +02:00
shortcutme
cb20280530 Less verbose logging on filerequest 2016-09-05 13:54:17 +02:00
shortcutme
6806eed2ae Dont reload the whole site on content.json update 2016-09-05 13:54:03 +02:00
shortcutme
b7dfeb139b Support callstack formatting 2016-09-05 13:53:40 +02:00
shortcutme
25cb7d9ffa Only check optional files if content.json downloaded 2016-09-05 13:53:10 +02:00
shortcutme
bc875b396b Multiple content.db support 2016-09-05 13:52:52 +02:00
shortcutme
6ac4c8c9cb Version 0.4.1, Rev1501 2016-09-04 18:07:56 +02:00
shortcutme
4dbaab7dd4 List site content.json files without user files 2016-09-04 18:07:09 +02:00
shortcutme
7eab490089 Get optional files size from content.db 2016-09-04 18:06:18 +02:00
shortcutme
49efcd0c2d Execute garbage collection on site delete 2016-09-04 18:05:55 +02:00