Commit Graph

225 Commits

Author SHA1 Message Date
Anaël Verrier 5e2d6efd0b * fixed a bug when we remove a contact from our contact list (before we did not remove contact from roster_group table) 2009-07-07 15:14:56 +02:00
Anaël Verrier ff2be61483 * clean roster tables when we remove an account 2009-06-28 20:43:18 +02:00
Anaël Verrier b3fbd59866 * added 'ask' support
* fixed a bug (when a contact does not have a name)
2009-06-27 20:54:49 +02:00
Anaël Verrier d347b79c38 * added a method to load roster from DB
* now we load roster from DB when we receive an iq result for the roster without any query
* added a "force" argument to NonBlockingRoster.getRoster(), to force the return of the instance
2009-06-27 17:56:04 +02:00
Anaël Verrier 0a3d26e5d4 * added another table to handle roster group
* we now handle roster push and roster reception
* changed version number in src/common/defs.py
2009-06-23 19:29:25 +02:00
Yann Leboulanger 84b65054b1 [premysl.vyhnal] optimize get_days_with_logs(). Fixes #4964 2009-04-13 09:05:22 +00:00
Yann Leboulanger 8d18e48af4 fix finding room jids in database. Fixes #4576, #4578 2008-12-12 17:51:22 +00:00
Yann Leboulanger e389e0b16b [thorstenp] remove whitespace at eol 2008-12-03 21:56:12 +00:00
Yann Leboulanger 31dc32eeb9 [thorstenp] fix redefined builtins 2008-12-03 17:16:04 +00:00
Yann Leboulanger c163e90b10 [thorstenp] fix unused variables 2008-12-02 15:53:23 +00:00
Yann Leboulanger eed5dc4e72 [thorstenp] remove useless semicolons 2008-12-02 13:58:54 +00:00
Yann Leboulanger 540fba2aaa prevent some disk write error and show error dialog. 2008-11-06 08:10:36 +00:00
Yann Leboulanger 06ab4a7b6d revert thorstenp patches for now. They introduce bugs. 2008-10-20 21:38:06 +00:00
Yann Leboulanger f801a50260 [thorstenp] fix unused variables 2008-10-20 21:17:48 +00:00
Yann Leboulanger 98255a0671 [thorstenp] remove useless ; 2008-10-20 15:16:01 +00:00
Yann Leboulanger 158538b81c [thorstenp] rename some var to not hide builts-in functions (list -> list_, ...) 2008-10-11 10:22:04 +00:00
Yann Leboulanger 567f1e17c1 [thorstenp] di not use emtpy except clauses 2008-10-11 09:37:13 +00:00
Yann Leboulanger 8d3c1c59ad decode string before splitting it. 2008-09-08 18:36:15 +00:00
Yann Leboulanger 3b4875e38e [avm] always encode data in utf-8 in database. see #4254 2008-09-08 17:37:44 +00:00
Yann Leboulanger a4bab043b9 [avm] Gzip don't support unicode strings. Fixes #4254 2008-09-08 16:31:02 +00:00
Julien Pivotto de4a23e751 See #4200.
* remove js from some headers
 * set coding:utf-8 to allow real names in headers
2008-08-15 17:31:51 +00:00
Julien Pivotto 8bc9bc29ae * Big headers review
* Remove some licencing problems
 * To do: same for images
 * See #4200
2008-08-15 03:20:23 +00:00
js 8605cd3f38 For historical reasons, we have a tab width of 3. This is strange, but
we have that in all files. To at least lesser the confusion a bit, add
vim tags for that.
Additionally, fix wrong #! in a few files.
2008-07-29 19:49:31 +00:00
Yann Leboulanger 4db9685849 add mrim transport icons. Fixes #4078 2008-07-10 12:18:26 +00:00
Yann Leboulanger a3827fe5d0 new XEP-0115 implementation (version 1.5) 2008-04-20 22:58:47 +00:00
Yann Leboulanger fdf46e5430 one more typo 2008-04-16 19:52:47 +00:00
Yann Leboulanger 18c8500f9b really fix SQL query 2008-04-16 19:41:36 +00:00
Yann Leboulanger 4bfd971415 fix sql query 2008-04-16 19:22:16 +00:00
Jean-Marie Traissard df257baef5 Added helpers to commit in logger.py
Trying to ignore line for #3865
2008-04-16 13:46:44 +00:00
Jean-Marie Traissard f32901d243 Create a new small table in DB to remember rooms last_history_line at next
launch. This is necessary because with a big history get_last_date_that_has_logs
can take about 5 seconds on first launch.
Created new gajim subversion.
2008-04-15 01:52:11 +00:00
Jean-Marie Traissard 11e4945158 Use appropriate function to remove a line in unread_message table. See #3793. 2008-03-24 00:45:53 +00:00
Yann Leboulanger 4e15d0f0d6 remove lines from unread_messages if messages are no more in logs table. Fixes #3793 2008-03-23 22:52:29 +00:00
Jean-Marie Traissard 88db86bb99 Make jid_is_from_pm works with not-full jid 2008-03-19 23:14:58 +00:00
Jean-Marie Traissard 624a16034e Fix small TBs about last changeset that could happen if some history were manually removed. 2008-03-19 22:01:21 +00:00
Jean-Marie Traissard f9ca40ff1b - Change the way roster.fire_up_unread_messages_events()/logger.get_unread_msgs() work, so it's
faster
- Stop adding pm chat messages received to unread messages. This is in addition to [8311], but
works also when chat win is already opened now.
- Automatically remove unread_message lines for messages older than a month, so we will clear this
table for everybody, and keep it quite clear. Specially because messages can still be blocked here
if it's from someone not in the roster and we don't open it during the session. This can be long
at first connection with this version, because we delete a lot of lines (nearly one per PMs you
received since a long time). Could also be a very little longer during one month.
2008-03-19 21:43:01 +00:00
Jean-Marie Traissard d32e1ae0ed Fix another place where database could be malformed, using Asterix work in [9390]. Fixes #3342. 2008-03-17 19:30:38 +00:00
Yann Leboulanger 0d427eff3b Warn user when database is corrupted and unreadable. Fixes #3761 2008-03-17 07:22:43 +00:00
Yann Leboulanger 323c50ec44 coding standards 2008-03-13 09:07:58 +00:00
Yann Leboulanger cc1c4457c3 don't lower jids in DB. They are already stringprep'ed. Fixes #3766 2008-03-13 09:04:43 +00:00
Yann Leboulanger 605caae2b8 My name has changed 2007-10-22 11:33:50 +00:00
Yann Leboulanger 22c1aeda29 next release will be GPL v3. fixes #3290 2007-10-22 11:13:13 +00:00
Yann Leboulanger 81c65ccac8 [steve-e] Ability to select a jid in history window. fixes #3410, #3308, #1925 2007-09-14 20:18:06 +00:00
Yann Leboulanger c524ec78f1 re-read jids table from DB when another instance of Gajim added a jid in it. Fixes #3349 2007-08-20 11:13:53 +00:00
Tomasz Melcer 4ce9d89077 caps: Real fix for [3295] -- changing separator from ' ' to '\0'. 2007-07-13 14:44:01 +00:00
Julien Pivotto 3875388496 [davux] correct a loop in logger.py. Fix #3295. 2007-07-13 13:02:42 +00:00
Tomasz Melcer 6c1858224e caps: data stored and retrieved 2007-07-09 21:24:47 +00:00
Yann Leboulanger 952e6d96e3 catch disk full errors. fixes #2937 2007-07-09 16:01:19 +00:00
Tomasz Melcer 7a399e980b Comments here and there 2007-06-27 00:51:38 +00:00
Yann Leboulanger 3ba415dfea prevent a TB when a jid is in mem but not in DB (is has been removed while gajim was running) fixes #3073 2007-06-05 13:13:20 +00:00
Yann Leboulanger c78a8b4380 [michael] fix bug when searching text containing a ' in history window. fixes #3091 2007-04-16 20:48:38 +00:00
Yann Leboulanger 4d5790e8cb restore correctly error messages. fixes #2880 2007-01-10 12:51:15 +00:00
Jean-Marie Traissard 86fbcece1f use the GOOD syntax for the get_last_date_that_has_logs() SQL request :)
(Open gc win three times faster, and even more when time cached !
Also opens history wins two times faster)
2007-01-09 17:30:03 +00:00
Yann Leboulanger 558a57802c handle correctly non ascii chars in path under win. fixes #2812 2007-01-02 17:56:26 +00:00
Yann Leboulanger cebcb74c9b recognize x-tlen type from tlen transports. fixes #2756 2006-12-07 07:10:33 +00:00
Yann Leboulanger 1add317cc9 use PRAGMA synchronous = OFF in sqlite to avoid hard drive spin up. fixes #2183 2006-11-10 18:32:38 +00:00
Yann Leboulanger 83a5014b14 [junglecow] refactor paths and directories in a single file. fixes #2629 2006-11-04 18:15:38 +00:00
Nikos Kouremenos c841e3b744 [psy_il] do python 25 compatible import for pysqlite in common/logger.py too 2006-10-24 16:04:21 +00:00
Yann Leboulanger eb0edc36fd fix wrong var name 2006-10-06 07:03:08 +00:00
Nikos Kouremenos bf6c018c75 fix header 2006-10-05 22:50:52 +00:00
Nikos Kouremenos 322f1b5582 make a good helper for logs db func [does not make sense to move it to helpers] 2006-10-05 22:49:28 +00:00
Nikos Kouremenos 9002b3d293 put my email (and jid), not one of my JIDs 2006-09-28 11:31:25 +00:00
Yann Leboulanger 1f72608d20 re-connect to DB after upgrades (upgrade can modify DB structure) 2006-07-31 07:45:29 +00:00
Yann Leboulanger 32b18d9237 we now get transport type from disco info and save that in DB. Fixes #1990 and #1938 2006-07-29 22:29:59 +00:00
Yann Leboulanger 90dc135539 remove old code (when we modified unread_message table structure) 2006-07-28 16:15:18 +00:00
Yann Leboulanger bc26593974 use gettext.install. Fixes #497 2006-06-15 06:49:04 +00:00
Jean-Marie Traissard 5252ec2d3f Set all strings translatable in about dialog, use AUTHORS file
logger->Typo
2006-06-10 17:23:58 +00:00
Jean-Marie Traissard 739aaf22c2 [roger]add missing () 2006-06-04 18:10:23 +00:00
Jean-Marie Traissard efd73e04bf Also merge metacontacts logs in restore_lines() 2006-06-04 17:21:14 +00:00
Jean-Marie Traissard 001b1c0f20 [roger]Merge metacontacts logs on the fly, fix #1891
[jim]Clean patch, move duplicate code.
Added condition missing in [5779], can you confirm Yann ?
2006-06-04 09:54:11 +00:00
Dimitur Kirov 7f369eb127 drop may fail, we still have to create the
table
2006-04-19 10:47:29 +00:00
Dimitur Kirov f4a203d5bc better pass of args 2006-04-19 10:36:45 +00:00
Yann Leboulanger 7e69364f60 re-create unread_messages_table if there is a missing column (this can happen to svn users only) 2006-04-19 10:28:42 +00:00
Yann Leboulanger 145db1a107 save jid_id in unread_messages table too to increase speed (it was definitively too slow) 2006-04-11 11:28:36 +00:00
Nikos Kouremenos 5fcf9dca06 fix um again; fix coding standrads (crazy tabbing, bad spacing before comma) 2006-04-10 23:18:28 +00:00
Nikos Kouremenos 58f7a20e91 because we also limit and offset 2006-04-10 23:07:25 +00:00
Nikos Kouremenos 86326d849d get_um_for_contact => get_unread_msgs_for_jid because um is too vague and for_contact lies about expecting contact instance 2006-04-10 23:06:11 +00:00
Dimitur Kirov 94b194966f show unread messages on roster load 2006-04-10 22:36:55 +00:00
Dimitur Kirov 97dc7215df keep reference to unread messages untill they
are printed in tv
2006-04-10 22:08:02 +00:00
Yann Leboulanger eb8cc5b7ea show correctly error message and log them in DB. fixes #1802 2006-04-10 14:00:04 +00:00
Nikos Kouremenos 47a8ddccd5 make sure that when we log, msg is not None 2006-04-09 19:46:11 +00:00
Nikos Kouremenos 645af4e7b7 show nickname/subj cols only when needed 2006-04-09 19:08:57 +00:00
Yann Leboulanger ac0f22887e fix GC logs: when we create a new room, we call get_last_date_that_has_logs(), which call get_jid_jid, which create a new id for the room, but with type = JID_NORMAL_TYPE instead of JID_ROOM_TYPE. It's now fixed 2006-03-24 18:46:48 +00:00
Nikos Kouremenos 91691221c6 fix a bug which appeared after a patch which caused us to stop at 27 or 28 or 29 or 30 instead of 28 or 29 or 30 or 31 accordinly. [eg. count one more day. xrange logic fix] 2006-03-01 21:15:01 +00:00
Nikos Kouremenos c9ef415ecc fill search results listview; todo: operate on results 2006-02-06 20:34:06 +00:00
Nikos Kouremenos 65c8646e2e spaces and stuff 2006-02-02 23:44:09 +00:00
Nikos Kouremenos 7425e3f073 fix it correctly 2005-12-26 18:34:02 +00:00
Nikos Kouremenos 815e07771b prevent a tb 2005-12-26 18:23:57 +00:00
Nikos Kouremenos 45b1493471 fix so we log muc messages [was broken only in svn] 2005-12-26 14:15:17 +00:00
Yann Leboulanger ebccabf5da [Jim] faster version of do_possible_mark_for_days_in_this_month() 2005-12-21 10:54:41 +00:00
Yann Leboulanger 52d881c972 remove the check of line_already_in_db for gc_message that make gajim slow when joining a room 2005-12-14 18:23:40 +00:00
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