Commit Graph

135 Commits

Author SHA1 Message Date
Nikos Kouremenos b21424e1fa ask kind which is always 1byte 2005-12-14 14:12:38 +00:00
Yann Leboulanger 8c77ec6433 SLELCT log_line_id instead of message when looking if log line is already in DB, so it's faster 2005-12-14 12:41:32 +00:00
Yann Leboulanger f77d28407a [nkour] don't logger groupchat messages that are older that now and already in logs 2005-12-13 07:39:20 +00:00
Yann Leboulanger 612716e2db change copyright from "Gajim Team" to real people 2005-12-09 23:30:28 +00:00
Yann Leboulanger cae7ce3bac "Gajim Team" in all hearders become "Contributors for this file" 2005-12-09 17:15:30 +00:00
Nikos Kouremenos 2b86fc98da init_var ==> init_vars 2005-12-08 09:46:59 +00:00
Yann Leboulanger 34255e5682 Vincent left us a long time ago 2005-12-07 23:09:10 +00:00
Yann Leboulanger 5cf9141777 init logger variables after migration 2005-12-07 20:20:48 +00:00
Yann Leboulanger d3a6163729 no need of global vars, prefer self.var 2005-12-05 17:22:50 +00:00
Nikos Kouremenos f694ff70e1 try to fix a db locked that sometimes happens 2005-12-05 13:56:02 +00:00
Yann Leboulanger 637c903d68 * when in common, no need to do from common import FOO, just import FOO
* we now migrate automaticaly at startup in a thread
 * progressDialog now scroll textvew to the end
2005-12-05 11:13:08 +00:00
Nikos Kouremenos 7a0c0311db rm unused var 2005-12-01 17:50:45 +00:00
Yann Leboulanger 54e47436e3 add an exceptions file that contain our custom exceptions 2005-12-01 17:16:53 +00:00
Nikos Kouremenos e162e5daed select last day we have logs for in history browser 2005-11-30 21:56:42 +00:00
Nikos Kouremenos 28fe6a06d3 less columns in history. TODO: fill name for not groupchat 2005-11-30 17:30:58 +00:00
Nikos Kouremenos 164f45ecf4 remove a wrong comment; enrich a docstring 2005-11-30 14:16:26 +00:00
Nikos Kouremenos f9ecc9e456 fix typo 2005-11-29 18:31:45 +00:00
Nikos Kouremenos e542fff69f searching in history is in. not yet 100% functionality 2005-11-29 14:41:01 +00:00
Nikos Kouremenos dfb9d92619 exclude kind gcstatus/status rather than ask for rest of statuses 2005-11-29 13:18:21 +00:00
Yann Leboulanger 14c7d7f891 when we ask if date has message, don't take into account status messages 2005-11-29 12:06:29 +00:00
Nikos Kouremenos 567ce86ec1 remove a var, use hasattr 2005-11-28 18:18:29 +00:00
Nikos Kouremenos 313f4c8c94 fix logic 2005-11-28 17:56:57 +00:00
Nikos Kouremenos a64709b7a4 prevent the right way bad show to crash us; add comment on special treatment of show is None in *status events 2005-11-28 17:34:43 +00:00
Yann Leboulanger d38883a92a don't try to log presence when show in unknown 2005-11-28 16:41:34 +00:00
Nikos Kouremenos af9f4afe0c ask sql to do the timeout check 2005-11-27 17:33:57 +00:00
Yann Leboulanger 8f986b6d21 take into account the restore_line_timeout option 2005-11-27 16:59:39 +00:00
Nikos Kouremenos 31c29fb56a in theory this waits up until 20 seconds before raising locked 2005-11-27 12:22:07 +00:00
Nikos Kouremenos 98e66332ee restore last lines for correct jid 2005-11-26 22:02:07 +00:00
Nikos Kouremenos b47ac0c0b9 do not die if hd is full; also remove not used method 2005-11-26 15:21:52 +00:00
Nikos Kouremenos c311183d57 fix so we mark new jids if they are room as room-type 2005-11-26 00:03:09 +00:00
Nikos Kouremenos 7ad4ff2878 remove two prints we do not need 2005-11-25 23:25:41 +00:00
Nikos Kouremenos caade489ee new db design and improved migration script. if you ran before the migration please remove you old logs.db as it is incompatible with the new one and rerun migration if you care about old logs. a print on show is on purpose, bonus of the first to traceback and give us the value of show that causes the tb. yea svn got unstable these days. sorry about that but big changes 2005-11-25 23:23:25 +00:00
Nikos Kouremenos 378555434a history window for old days is ok now 2005-11-25 22:13:39 +00:00
Nikos Kouremenos 8c3d0c8014 remove 2 prints 2005-11-24 18:52:26 +00:00
Nikos Kouremenos eb1c72921c fix so we store send stuff in the same place we store recv stuffed. todo: we need one more column in jids table called type_of_msg to store tc or gc and then migration needs fixing. this means people who migrated will have to migrate again by first removing the current log db. this also means until migration script is ready and after the migration u did logs will be lost 2005-11-24 18:29:45 +00:00
Nikos Kouremenos fb07453d57 initial stuff at mark day that has logs. atm it is slow and has some bugs I will fix soon. I commit this nonetheless 2005-11-24 01:39:47 +00:00
Nikos Kouremenos ccdea9dfb7 fix calendar to return only the date asked 2005-11-24 00:26:01 +00:00
Nikos Kouremenos d9cc33cf26 log system rewrite to use sqlite database instead of plain ascii files. this allows us to scale better (be faster), provide search in history, and save logs for JIDs that are non-ASCII. PLEASE read http://trac.gajim.org/wiki/MigrateLogToDot9DB 2005-11-23 19:12:52 +00:00
Nikos Kouremenos 9db3d26c1f fix so uf_show works 2005-11-21 08:56:45 +00:00
Nikos Kouremenos 1b8b6a435e optimize a bit (more to come) 2005-11-21 06:33:46 +00:00
Nikos Kouremenos ca31a7f67a history window now has a calendar; tons of cleanups, comments, better varnames and in general better quality of code; also a fixme for another day 2005-11-20 21:58:08 +00:00
Nikos Kouremenos 0696e75358 history order change: history is ordered as everything else latest is in the bottom 2005-11-03 21:31:04 +00:00
Yann Leboulanger 2e9d0fbeba we now save/read log to ~/.gajim/logs/jid.lower() 2005-11-03 08:50:35 +00:00
Yann Leboulanger b4d9a6aab0 new helpers.check_paths() function that creates LOGPATH and VCARDPATH 2005-10-30 11:20:24 +00:00
Nikos Kouremenos 8a1326a810 sys.getfilesystemencoding() can return None to some systems (eg. OpenBSD). Thanks Jolan for patches 2005-10-21 13:21:31 +00:00
Nikos Kouremenos fcc4a6a0ce class higdialog class and add report this bug in exception dialog and add some fixes for adding icons to buttons 2005-09-11 13:41:21 +00:00
Nikos Kouremenos 3d5901dd63 [stephan k.] also decode in LOGPATH 2005-09-02 21:45:35 +00:00
Nikos Kouremenos 20a7a0c426 isinstance() is faster than type. pydoc timeit 2005-08-26 12:34:11 +00:00
Nikos Kouremenos cec336112d [Stéphan K.] make most strings we use unicode instacnes 2005-08-26 00:52:44 +00:00
Nikos Kouremenos e0c3e309db remove a fixme 2005-08-25 18:33:40 +00:00
Nikos Kouremenos ed2516b2ba fix a typo and an overl00k 2005-08-25 17:33:04 +00:00
Nikos Kouremenos 9cabb5e830 chmod bad permisioned dirs 2005-08-25 16:50:02 +00:00
Nikos Kouremenos 5570639beb create logs and .gajim dir with 0700 2005-08-23 09:14:35 +00:00
Nikos Kouremenos 4abf4f53b3 check if dir before write, and do not write if it is 2005-08-19 10:32:42 +00:00
Nikos Kouremenos 4edf5e69ea create file when writing! 2005-08-18 19:46:50 +00:00
Nikos Kouremenos 9a5e49ac1c try to prevent a major TB 2005-08-16 11:35:14 +00:00
Nikos Kouremenos 9f4a145e48 check isfile before opening 2005-08-14 21:46:57 +00:00
Yann Leboulanger 55dcc3e8bb create LOGPATH folder if it doesn't exists and ~/.gajim exists 2005-08-06 09:33:48 +00:00
Nikos Kouremenos fbd2633695 use %s 2005-08-05 12:40:32 +00:00
Nikos Kouremenos e0f766de1c mark strings for transl 2005-08-05 12:33:50 +00:00
Nikos Kouremenos d4f0994f77 commit a missing file; revert one that hsould be commited [sorry] 2005-07-24 19:04:29 +00:00
Nikos Kouremenos 688fb66979 gtkgui_helpers have func to escape pango markup 2005-07-21 21:39:47 +00:00
Yann Leboulanger daefea0150 function moved to helpers.py 2005-07-02 12:36:21 +00:00
Nikos Kouremenos d0c407f466 better comment 2005-07-01 23:13:46 +00:00
Yann Leboulanger 0b79deddb9 we now save and restore '\n' '\\n' differently (fix #244) 2005-07-01 20:37:35 +00:00
Yann Leboulanger f1d1a0a07e we now have history for gc too 2005-06-13 14:46:08 +00:00
Yann Leboulanger 74a45a7224 we now save conferences history in a folder, and all pm related to this conference in this folder 2005-06-08 09:19:54 +00:00
Nikos Kouremenos b34b3c8e55 remember last lines after reopening chat window (thanks Sergey Kuleshov, and don't fail on gtkspell-lang not available 2005-05-30 21:00:04 +00:00
Nikos Kouremenos d44955c81b first the print then the action 2005-05-23 17:01:13 +00:00
Yann Leboulanger 667eb618b7 os.path.mkdir crashes under win9x if the folder already exists 2005-05-23 15:32:35 +00:00
Yann Leboulanger f0be64c460 under win9x dot_gajim = '' 2005-05-23 11:35:58 +00:00
Nikos Kouremenos 8db7ec096a first letter is better to be cap for folders in Windows 2005-05-20 18:18:06 +00:00
Nikos Kouremenos 98e78c7999 win9x: save in current dir 2005-05-20 18:13:38 +00:00
Nikos Kouremenos e7e88cd701 bugfix 2005-05-20 00:12:15 +00:00
Nikos Kouremenos 19235f6f68 win32: path is even better now .gajim ==> Gajim 2005-05-20 00:09:18 +00:00
Nikos Kouremenos d2e0782121 win32 fix: save logs in the correct place and issue correct messages not only POSIX 2005-05-20 00:05:18 +00:00
Yann Leboulanger bbe1c02fc2 finish changing config option names ... 2005-05-12 17:46:17 +00:00
Nikos Kouremenos 00cd5dd0dc fixed #264 2005-05-12 17:17:20 +00:00
Nikos Kouremenos 47eb596780 do not fail if ~/.gajim is file or ~/.gajim/logs is file. also use os.path.join() for / to become \ for 9x until now I think we have been failing 2005-05-12 13:43:17 +00:00
Yann Leboulanger 6ab10d5fe5 logger.py do the replacements, not history_windows.py 2005-05-11 17:48:30 +00:00
Vincent Hanquez ac90d99212 who really need i18n on init message...
(hangs anyway for me)
2005-04-21 08:44:19 +00:00
Yann Leboulanger 798fbfebf3 the configuration file is now parsed (but not saved atm) 2005-04-16 17:03:21 +00:00
Yann Leboulanger c981ac6b00 messages and presences are now logged 2005-04-16 09:36:18 +00:00
Yann Leboulanger d17289dfbd we can now view history_windows 2005-04-15 22:02:13 +00:00
Yann Leboulanger 149ed7a22d reorder files 2005-04-12 15:47:20 +00:00
Renamed from plugins/logger/logger.py (Browse further)