Commit Graph

2422 Commits

Author SHA1 Message Date
Yann Leboulanger e3ddf04b9b Alexey's patch to disable SASL protocole 2005-05-24 18:08:37 +00:00
Yann Leboulanger 392c1dc7f4 fix DIGEST auth with Alexey patch 2005-05-24 17:50:27 +00:00
Yann Leboulanger 476cd9a9a0 we can receive empty message (for ex for gc_subjects) 2005-05-23 18:16:51 +00:00
Nikos Kouremenos d44955c81b first the print then the action 2005-05-23 17:01:13 +00:00
Nikos Kouremenos 12f1ea0517 reducing default autoaway/xa time 2005-05-23 16:58:14 +00:00
Nikos Kouremenos 16b6745a90 adding error for uf_show as else 2005-05-23 16:57:35 +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
Yann Leboulanger 517211b63f check if we have a connection before we send it sth 2005-05-23 10:46:22 +00:00
Yann Leboulanger 0f41e49758 set default timeout of xmpp to 45 instead of 25 2005-05-23 09:53:05 +00:00
Yann Leboulanger fe53843edb we wait 45 for keepalive packages 2005-05-22 17:24:20 +00:00
Yann Leboulanger 6f6f45d07b check for KeyError (fix #311) 2005-05-22 10:10:41 +00:00
Nikos Kouremenos 0bb2fceb16 typo 2005-05-21 23:37:11 +00:00
Nikos Kouremenos bdd436e1f4 check for not in the roster too 2005-05-21 23:34:51 +00:00
Yann Leboulanger d94941015d translate status messages too 2005-05-21 16:01:52 +00:00
Nikos Kouremenos a3f3d8f766 do not default to check_for_new_version True until we have a pseudo thread doing that [or else in heavy net load Gajim takes a long time and user think we need to hugely optimize our code] 2005-05-21 14:37:36 +00:00
Nikos Kouremenos 77ddf66a14 rename the config vars [for signin/out] 2005-05-21 13:53:09 +00:00
Nikos Kouremenos 5e3ba6e98a bugfix 2005-05-21 13:44:50 +00:00
Nikos Kouremenos 3ad63c0c27 add show texts to be translated 2005-05-21 13:19:42 +00:00
Yann Leboulanger 7f3adb6fdf remove unneeded import 2005-05-21 07:02:36 +00:00
Nikos Kouremenos 1c16aa578d better strings [not more clear but TYPOS in English and unknown words] {so I had to break the string being frozen} {sorry for that}
also introducing greek transl [half tooltips remain with english text, but 0.7 can live with it if I do not get to finish it before 0.7]
2005-05-21 01:28:18 +00:00
Yann Leboulanger 328327d5c5 add a debug message when we cannot load idle module 2005-05-20 22:05:11 +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 ecf50d8c56 win32: store the config in the correct place, and move it if existes in the old place 2005-05-20 18:08:24 +00:00
Yann Leboulanger 686a9a0bd9 when an error occure while Process()ing xmpp, we print the TB so it's easier to debug 2005-05-20 17:30:29 +00:00
Nikos Kouremenos 41e7d106d8 typo 2005-05-20 16:46:07 +00:00
Yann Leboulanger f3d36d9d80 status -> show
we cannot join a gc twice at the same time with the same account
2005-05-20 16:31:52 +00:00
Nikos Kouremenos 5293788dc1 introducing common/helpers.py where get_uf_status lives [more functions to come there in the future] 2005-05-20 15:58:23 +00:00
Yann Leboulanger 58ab395501 <status> is not a must (except when using GPG) 2005-05-20 15:32:05 +00:00
Yann Leboulanger 0e7e396289 these lines cause an error 2005-05-20 14:46:27 +00:00
Yann Leboulanger 715fde5a87 fix idle problems 2005-05-20 14:03:02 +00:00
Yann Leboulanger b5ed8ee163 apply Alexey patch for TLS error. Now buffer is 1M, so this workaround should prevent TLS crash 2005-05-20 13:27:39 +00:00
Yann Leboulanger 2377437112 do not print empty message (fix #301) 2005-05-20 11:23:08 +00:00
Yann Leboulanger 894e38cc7f client.DisconnectHandler is no more called, so no TB will be raised when disconected
so no need to embrace every "send" call in try: except: block
2005-05-20 10:49:46 +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
Nikos Kouremenos 148fe12a2d removing () from ifs and foo==0 becomes not foo in an if 2005-05-19 17:50:19 +00:00
Yann Leboulanger 739021ec02 print error messages when we get Process() exception 2005-05-18 18:57:54 +00:00
Nikos Kouremenos 120fb4b3a0 suse is lsb compliant, but doesnot put lsb_release by default until 9.3 so readding scanning for suse file [now it is tested too] 2005-05-18 17:02:46 +00:00
Nikos Kouremenos 9a70ab0218 Some distros put to optional LSB vars n/a, so detect that and remove it.
SUSE uses lsb_release for quite a lot of versions I've been told so depend only on lsb for SuSE [the files things was untested in SUSE anyways]
2005-05-18 16:42:28 +00:00
Nikos Kouremenos 79c5b5d0e2 hidden_rows ==> collapsed_rows 2005-05-18 16:30:59 +00:00
Yann Leboulanger f92cdf02cb set self.connected to 0 before dispatching the status to the GUI so the connectiing icon should disapear if connection failed 2005-05-18 14:05:54 +00:00
Yann Leboulanger bb424fecf1 put xmpp.Process() in a try/except (see ticket #291) 2005-05-18 13:42:12 +00:00
Yann Leboulanger d479973e2c do not translate debug messages 2005-05-18 12:02:27 +00:00
Yann Leboulanger 35e6ac3de8 we can now join password protected groupchats 2005-05-18 09:18:29 +00:00
Yann Leboulanger 19a1f45159 set the log level after the config file has been parsed 2005-05-18 07:38:47 +00:00
Yann Leboulanger bf05e29ebb do not print debubg if verbose = False 2005-05-17 21:33:41 +00:00
Yann Leboulanger 9fcb9f1d70 no need of global things in systray.py 2005-05-17 20:31:43 +00:00
Yann Leboulanger 99401f2abb add a DATA_DIR in gajim 2005-05-17 17:37:50 +00:00
Nikos Kouremenos 67dd479d35 making previous commit a bit more clear 2005-05-15 19:23:44 +00:00
Nikos Kouremenos 9dcf2d0e79 removing colors from DEBUG when in windows 2005-05-15 19:19:00 +00:00
Nikos Kouremenos 4ef68bb7e5 important bug in xmpppy does not allow us to default to tls True. In fact big stanzas result in disconnection. So until it fixed, TLS is *highly* discouraged [maybe we should disable it via GUI] cause I was even able to get disconnection when sending huge text [so not only disco related but allover] 2005-05-15 13:17:05 +00:00
Nikos Kouremenos 0d4084ead7 hiddenlines or hidden_lines ==> hidden_rows 2005-05-15 11:37:00 +00:00
Nikos Kouremenos a7bf88e8f1 removing string module it is deprecated 2005-05-15 11:35:42 +00:00
Nikos Kouremenos 6174a6cb51 removing colors when in windows 2005-05-15 11:34:48 +00:00
Yann Leboulanger 324e8b25bf save status in Connection class
send our show / status when we join a gc
2005-05-13 18:54:44 +00:00
Yann Leboulanger e1020b288f the delayed timestamp in before time.time() ! 2005-05-13 18:23:08 +00:00
Nikos Kouremenos 0a0cd669eb last_msg ==> last_status_msg and change_title ==> change_roster_title 2005-05-13 18:00:13 +00:00
Yann Leboulanger 5ebc240eeb tell xmpppy that stanza is treated when we send the version 2005-05-13 17:20:13 +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
Nikos Kouremenos d4d667690e applying patch by Alexey to allow Gajim to exit after disconnection. 2005-05-12 09:13:35 +00:00
Yann Leboulanger 6ab10d5fe5 logger.py do the replacements, not history_windows.py 2005-05-11 17:48:30 +00:00
Yann Leboulanger 88f4449fbb we now catch the errors when we connect and when we authentificat to the server 2005-05-11 16:37:01 +00:00
Yann Leboulanger c22e2c5f7a bugfix: when we have an error, we sane an error to the GUI, not a notify 2005-05-11 15:14:43 +00:00
Nikos Kouremenos d98a451764 send and show N/A if client or os is empty 2005-05-11 11:09:53 +00:00
Yann Leboulanger 225ca870f1 we now catch all errors and send them to the gc if it's open 2005-05-11 10:05:43 +00:00
Yann Leboulanger b5244d8a9c according to JEP-0100, no need to get the key of an agent to remove it 2005-05-11 09:08:06 +00:00
Yann Leboulanger 1926369859 don't send an error iq after we process the roster iq (thx Alexey) close #251 2005-05-11 07:55:17 +00:00
Yann Leboulanger 2f35fade71 bugfix when keepalive package doen't come back 2005-05-10 17:45:10 +00:00
Yann Leboulanger 87f19fb638 print all errors in gc 2005-05-10 16:53:28 +00:00
Yann Leboulanger 6fa84c0dfe we now support user and password for proxy 2005-05-10 15:38:16 +00:00
Yann Leboulanger aa9de25923 Alexey patch that allows discover that server is violating RFC by not restarting stream after TLS start.
If server did such thing xmpppy will not crash unpredictely but will issue a appropriate exception.
2005-05-10 09:27:04 +00:00
Yann Leboulanger 61558b8942 we write the new account option in the config file only when the account has been successfully registered 2005-05-10 09:20:35 +00:00
Nikos Kouremenos a23ed9704c bye bye jabber.py [I like it, it rhymes :P] 2005-05-09 22:19:01 +00:00
Yann Leboulanger 3fd078dd0b we can now disable the use of TLS 2005-05-09 19:52:43 +00:00
Yann Leboulanger 0f66868a70 revert latest commit I did (sorry) 2005-05-09 10:34:47 +00:00
Yann Leboulanger 0c8b0bbde2 /me\n or /me /t is also valid ! 2005-05-09 10:30:34 +00:00
Yann Leboulanger c741fbef11 remove unneeded lines 2005-05-08 21:03:42 +00:00
Yann Leboulanger f4b05e51fa request_register_agent_info is now async 2005-05-08 20:56:11 +00:00
Yann Leboulanger 4985612036 remove unneeded line 2005-05-08 17:47:52 +00:00
Yann Leboulanger 1753a316e4 the removal of an agent is now async 2005-05-08 17:33:08 +00:00
Yann Leboulanger 2171def073 we get the roster asynchronously now 2005-05-08 17:00:41 +00:00
Yann Leboulanger da4457401f apply Alexey's patch in order to be able not to use TLS connection 2005-05-08 16:50:56 +00:00
Nikos Kouremenos 58e7da6d54 update path to some files so they match the new structure [it is far from complete and of course it is vital to have the paths fixed before 0.7] 2005-05-07 20:23:55 +00:00
Yann Leboulanger 1d87384800 bugfix from Alexey about proxy, can someone test if it works ? 2005-05-07 17:02:32 +00:00
Yann Leboulanger 58705bbba5 patch from Alexey: new function: SendAndCallForResponse.
It will help in resolving locking problems
2005-05-07 16:16:24 +00:00
Yann Leboulanger be913f8f27 xmpp patch from alexey: fix auth problem 2005-05-07 14:46:21 +00:00
Nikos Kouremenos 413ea7b6e7 check_for_new_version move to src from src/common [has gtk stuff] 2005-05-07 14:02:16 +00:00
Yann Leboulanger 54ae5dc351 send only _one_ keepAlive packet 2005-05-07 12:41:29 +00:00
Yann Leboulanger fab74069c6 Gajim is JEP-0011 compliemt now 2005-05-07 12:24:19 +00:00
Yann Leboulanger 56d60f3fd5 xmpppy changes:
- Sync with latest CVS version + gajim patches.
- streamErrorHandler disabled. If you want enable it - unrem it at line 66 of
  dispatcher.py
- TLS re-enabled. Should work fine now
- disconnection TLS plugout re-enabled. Didn't successed in reproducing
  problem though so maybe not fixed.
- My temporary fixes replaced with CVS ones.

gajim connection.py changes (in chunks order):
- getTags is incorrect. Replaced with getChildren
- browseAgents is absent from xmpppy. Fixed with manual node send. Made use of
  buildReply method and con argument
- formatting fix
- crude fixed register problem. I do not know how to do it properly. It is
  client stuff. Honest! I have no idea how to make it non-blocking and yet make
  library to fallback to older protocols.
  getInstructions() moved to xmpppy
Thanks Alexey !
2005-05-07 10:57:40 +00:00
Yann Leboulanger 4202e2549b we can launch Gajim even if we have no connection (this will have to be launched in a thread) 2005-05-06 19:53:26 +00:00
Nikos Kouremenos 77607214fe replace setup.py in favor of Makefile in idle module compilation 2005-05-06 12:06:10 +00:00
Nikos Kouremenos 61d6692a8d if config does not exist do not print error could not open file 2005-05-06 08:33:23 +00:00
Nikos Kouremenos a346454c45 make gajim bootable if not config available. this code is temp but seems to fixes the pb. plz hack it so it meats your taste 2005-05-05 17:11:48 +00:00
Yann Leboulanger e8965ae8b4 send keepalive every minute 2005-05-04 19:20:02 +00:00
Nikos Kouremenos 543ad45eb4 config value log --> verbose. perhaps in the future debug (coz in the future we will have an xml window) or just stick with verbose :P part 2 2005-05-03 16:27:00 +00:00
Nikos Kouremenos 7d26b7db8c config value log --> verbose. perhaps in the future debug (coz in the future we will have an xml window) or just stick with verbose :P 2005-05-03 16:26:30 +00:00
Yann Leboulanger 4005f944c7 no xmpppy debug when log = False 2005-05-03 08:06:59 +00:00
Vincent Hanquez 4534b2bbbc support for readonly variable
add 'version' as a readonly variable
2005-04-30 22:24:45 +00:00
Nikos Kouremenos 4779c800b7 removing \ where not needed 2005-04-30 08:48:50 +00:00
Nikos Kouremenos 3db9a32c91 select and TLs do not like each other. falling back to non TLS. thanks rohan 2005-04-29 15:56:43 +00:00
Nikos Kouremenos 3cb963554d features.py still problematic, just adding the stuff alexey said in case his grab this to continue fixing 2005-04-29 14:16:55 +00:00
Nikos Kouremenos 0b331139ed connection.py still problematic, just adding the stuff alexey said in case his grab this to continue fixing 2005-04-29 14:15:16 +00:00
Yann Leboulanger fbdae750c2 we now have themes for roster colors / fonts 2005-04-29 13:04:06 +00:00
Yann Leboulanger cd771c22ef add a new child for each option instead of always rewrite over the same 2005-04-27 22:14:28 +00:00
Yann Leboulanger eef71fcb27 xmpppy gives us the UTC time, we convert it to localtime 2005-04-27 18:26:31 +00:00
Nikos Kouremenos 8c30b8ce53 asterix said this var names part II 2005-04-27 15:06:25 +00:00
Vincent Hanquez d5c3059a18 add a default value to data for the foreach function 2005-04-26 23:53:11 +00:00
Vincent Hanquez 92a4fea8a9 new simple optparser. *break* old configuration file compatibility. 2005-04-26 23:45:25 +00:00
Vincent Hanquez d415620b13 normalize value directly into is_valid_XXX 2005-04-26 23:41:20 +00:00
Yann Leboulanger 5ee1f2b29a fix a typo 2005-04-26 22:19:18 +00:00
Vincent Hanquez 8ed41802bf add a data parameter to the config foreach's callback function 2005-04-26 22:17:47 +00:00
Yann Leboulanger 3cd6922815 fix some typos 2005-04-26 21:33:01 +00:00
Yann Leboulanger c85273d556 switch from jabberpy to xmpppy 2005-04-26 18:45:54 +00:00
Yann Leboulanger 581b387bd9 print the error when we try to configure a room and we don't have permission 2005-04-25 22:22:23 +00:00
Yann Leboulanger c45cadfe0c bugfix: send the iq when we update a user instead of just creating it :) 2005-04-25 12:18:41 +00:00
Yann Leboulanger fc9c583c7a add the option to allow the title of the window to change
it can be configured through the advanced config window
fix ticket #184
2005-04-25 11:48:42 +00:00
Yann Leboulanger bafbd5a5de when we send configuration of a gc, we only send values (we don't send label, descriptions etc...) 2005-04-25 09:30:24 +00:00
Yann Leboulanger a2b6a44079 ask and show os info from each resource 2005-04-24 22:58:41 +00:00
Yann Leboulanger e2b6b84694 '1' is also valid in the forms 2005-04-24 16:14:50 +00:00
Yann Leboulanger 544bbb1206 AGENT_INFO_INFO now send the node 2005-04-24 15:47:08 +00:00
Nikos Kouremenos b77173fc1b send os info and check new version True by default 2005-04-24 12:18:49 +00:00
Vincent Hanquez 6dafb51c37 change do_not_send_os_info to send_os_info and do_not_check_for_new_version
to check_for_new_version
2005-04-24 00:31:48 +00:00
Vincent Hanquez 34cbd78b9c add advanced window as a new dialog.
the position of the button is probably not the final position.
modify config to support boolean value embedded in string because the treestore
store/edit all value with a string.
2005-04-23 23:57:02 +00:00
Yann Leboulanger eb83c5dd5e node support (JEP 0030). Has to be tested 2005-04-23 21:54:12 +00:00
Yann Leboulanger 20ad41d40b fix a jabberpy pb, no need to wait the answer when we sned contact's information 2005-04-23 13:07:17 +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 0cfb3f5249 code to unregister an account 2005-04-20 12:23:41 +00:00
Yann Leboulanger ebef428ae1 we now have groupchat configuration !! (and a Data Form Parser JEP 0004) 2005-04-20 10:21:33 +00:00
Nikos Kouremenos ba272a9553 glade and code fixes. still code for unregistering is missing 2005-04-19 23:43:58 +00:00
Nikos Kouremenos c5aa9f0e81 remove account allows unregistering too (xml code is missing atm) 2005-04-19 22:29:38 +00:00
Nikos Kouremenos 08f7c21fe8 adding LFS detection in get_os_info 2005-04-19 13:14:41 +00:00
Nikos Kouremenos c3440cae35 basically popup notifications allow when not online/chat works. so popup notifications I think are 100% ready :P. some other fixes too 2005-04-18 23:55:13 +00:00
Nikos Kouremenos 6b0e7d0908 adding free for chat for the user 2005-04-18 22:25:22 +00:00
Yann Leboulanger 7934a71024 typo 2005-04-18 17:49:31 +00:00
Nikos Kouremenos 4f60bf7b3b typo 2005-04-18 16:52:44 +00:00
Yann Leboulanger 7575ae90fb gtkgui doesn't exist anymore
cell_renderer_image is gtk specific so it's not in common
2005-04-18 16:40:10 +00:00
Nikos Kouremenos 3d7d4c1fff adding setting in advanced/misc for not checking for new version. [this is not an expert setting, and should stay in prefs window]. ALSO fixes/typos all over 2005-04-18 14:05:30 +00:00
Nikos Kouremenos 00b13f2eff typos all over and " --> ' 2005-04-18 12:17:43 +00:00
Yann Leboulanger 4b5e2381e1 delete the connection when we go offline 2005-04-18 09:18:50 +00:00
Yann Leboulanger a9ec741af4 do not crash when no accounts 2005-04-17 19:45:38 +00:00
Yann Leboulanger cb821eb8fd if we don't have accounts, don't crash 2005-04-17 19:43:28 +00:00
Yann Leboulanger a3126a453e second test for gnupg 2005-04-17 17:08:28 +00:00
Yann Leboulanger 9b98db2a9f try a fix when we don't have gnupg 2005-04-17 16:08:18 +00:00
Yann Leboulanger 425a20fb19 add missing file 2005-04-17 16:03:35 +00:00
Yann Leboulanger e3f53dd3c6 idle now works 2005-04-17 11:49:39 +00:00
Yann Leboulanger 117da83bd5 typo 2005-04-17 09:05:26 +00:00
Yann Leboulanger a4c47e661e update from trunk 2005-04-16 23:15:03 +00:00
Yann Leboulanger 8cc28a8faa config file is now saved to disk when we change an option or quit Gajim 2005-04-16 22:12:41 +00:00
Yann Leboulanger 5a354c283c some minor typos / bugfixes 2005-04-16 17:36:27 +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 e0e6bafbcd correct some typos 2005-04-16 15:01:06 +00:00
Yann Leboulanger 04db394f87 emoticons and status messages are now a group of ption in the common config file (thx tab for your code) 2005-04-16 14:50:26 +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 041657973a missing file :) 2005-04-15 17:02:23 +00:00
Yann Leboulanger d75597cc38 status messages now work 2005-04-15 11:37:56 +00:00
Yann Leboulanger 60f2ef8adc keep namespace when we call a class :
* from xx import yy -> import xx
 * yy() -> xx.yy()
2005-04-14 17:07:55 +00:00
Yann Leboulanger 26df968343 correct some typos, process connections every 50ms 2005-04-14 11:06:58 +00:00
Yann Leboulanger eb7cf5ba4d gtkgui don't send messages to the connection but call the correct functions 2005-04-14 09:38:08 +00:00
Yann Leboulanger d6a76e58c4 gtkgui now registers to connections events 2005-04-14 07:58:54 +00:00
Yann Leboulanger 0c2fb7ffe3 correct some typos 2005-04-14 07:42:26 +00:00
Yann Leboulanger e8911a661e Config class 2005-04-14 07:28:59 +00:00
Yann Leboulanger b40bcc9105 plugin.accounts[name] -> gajim.config.get_per() 2005-04-14 07:05:10 +00:00
Yann Leboulanger c5553d27a3 add connection and logger options to the list of options
plugin.config -> gajim.config in config.py
2005-04-13 09:41:44 +00:00
Yann Leboulanger aa861b907a configuration is now in common/config
currently gajim cannot be accessed from every where, even with global gajim :(
2005-04-12 21:09:06 +00:00
Yann Leboulanger 149ed7a22d reorder files 2005-04-12 15:47:20 +00:00