Commit graph

55 commits

Author SHA1 Message Date
mathieui
9eaffe1369 Fix the os.makedirs calls so that they don’t traceback for nothing 2013-06-09 03:45:10 +02:00
mathieui
4ee7708b14 Small workaround for the default config location 2013-05-29 15:32:25 +02:00
mathieui
2b42c6a3ea Update setup.py to use distutils
(use new default directory, install the plugins as a separate
python module…)
2013-05-26 20:13:39 +02:00
mathieui
48614d6cf0 Fix #2286
Also fix the copy of the default config if -f is used
2013-05-06 20:23:33 +02:00
mathieui
91b960b797 Handle I/O errors better
- Do not crash because of low disk space
- Notify the user whenever it happens
- A few functions now return a boolean instead of nothing
- Config.silent_set is Config.set_and_save without toggle and returning
  strings. It is used whenever we don’t need set_and_save
- Config.set_and_save now returns a tuple (that can be passed directly
  to core.information())

TODO: display the precise error to the user (instead of “unable to…”)
2013-04-05 23:57:53 +02:00
mathieui
1e9e2112f7 Fix #2126 (per-server configuration sections)
(also move replace_key_with_bound() to core.py, to prevent having
common.py depending of config.py)
2013-03-04 00:23:58 +01:00
Florent Le Coz
73ebce5c91 make the options in the config files case sensitive. 2013-01-29 08:04:46 +01:00
mathieui
91975fd261 Fix a TB on python < 3.2 2012-12-15 21:51:14 +01:00
Florent Le Coz
c7f4abaef6 Add support for /set <option> toggle, which toggles the current value
fix #2184
2012-12-15 03:28:06 +01:00
mathieui
0bd55a27f2 Fix TBs when the system is not in utf-8 by default
(force every file opening to be with the utf-8 encoding)
2012-09-13 09:50:48 +02:00
mathieui
100994df28 Add a fallback to optparse if argparse is not found 2012-08-06 15:01:39 +02:00
mathieui
ec5bb3b213 Use the revision/date for the poezio version if a .git is found 2012-08-05 02:04:52 +02:00
mathieui
d723cec5eb Move from optparse (deprecated) to argparse 2012-08-05 01:50:05 +02:00
mathieui
2767da0b78 Small non-impacting modifications
- Write the config with “option = value” instead of “option= value”
- Docstring for sighup_handler
- Optimize a join() in the main loop
- Rename the verbose get_error_message_from_error_stanza() with
    get_error_message()
- Remove the unused Tab.just_before_refresh() which is litterally used
  nowhere in poezio
2012-07-26 00:09:23 +02:00
mathieui
5c327ef232 Allow a config to be set & created directly 2012-05-09 19:17:53 +02:00
mathieui
6b01e71462 Adda config.getl to return a lowercase value 2012-04-18 15:54:16 +02:00
mathieui
372b032380 Should fix the refresh issue 2012-03-30 15:57:43 +02:00
mathieui
13a269d6b2 Fix a bug in the configuration writer 2012-03-08 22:38:26 +01:00
mathieui
6df406b7c1 Config.write_in_file() now works as expected
(can add sections, add inexistant options, and edit in place)
2012-02-09 15:45:18 +01:00
Florent Le Coz
8e2e1fcd4e We can now configure each conversation independently, for some options.
Fixed #2039.
2012-01-26 10:05:32 +01:00
Florent Le Coz
96794a4e49 Change license to zlib (MIT sucks :() 2011-09-11 17:10:05 +02:00
mathieui
78c216cd61 Added a help message for the first run 2011-09-10 16:41:47 +02:00
Florent Le Coz
d41634d4ea Change license to MIT 2011-09-06 02:45:53 +02:00
Florent Le Coz
bd2d63f8a5 Check that all needed config sections are there at startup, and create them if not 2011-07-05 23:48:28 +02:00
mathieui
7d82a4fb19 some path.join forgotten causing the config file to be overwritten an not taken into account… 2011-06-04 20:44:14 +02:00
mathieui
e27c6d74ad fix the display of the action 'emptying the status', and some few minor changes 2011-06-04 20:15:18 +02:00
Florent Le Coz
baf65fed2e Fix copy of default config file 2011-01-13 23:37:30 +01:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
d712d2e1c9 update copyright date 2011-01-01 13:27:07 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
a41b036155 Also catch errors on config save 2010-12-17 14:48:31 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
80a1fac0fe syntax 2010-12-17 14:40:08 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
e6afe9d691 fix typo and catch NoSectionError in config 2010-12-17 14:39:44 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
c77842e1be fixed #1892 save folded rosters and info_win_height in the config file 2010-12-17 14:36:14 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
a13d768e0d config file can now have various section 2010-12-15 22:24:48 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
2b58f653b7 fix default config path 2010-12-06 19:17:12 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
7fd6153720 fix some little issues. Rename gui to core, use logging lib instead of the custom debug option. Add a -d option 2010-11-09 20:37:39 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
d4e3e51c1f update e-mail address and README 2010-10-04 01:45:16 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
f8ab739a36 do not require argparse anymore, chmod in the directory in the python process directly, fix a little bit the Mafile 2010-09-07 23:36:57 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
17eb99eea7 python 3 only. Fixes all EncodingError bugs :)))) 2010-09-03 18:01:43 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
835527e2d1 Writing to file doesn't remove comments. fixed #1713 2010-08-09 00:05:44 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
2e5d089eda remove useless shebangs. Fixed 1669 2010-07-22 22:24:29 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
0bda09b0ab Don't use argparse if it's not available 2010-07-19 23:57:55 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
0adc5f1acf fixed #1578 2010-07-08 20:15:02 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
69c23047a9 Add many keyboard shortcuts. fixed #1507 2010-07-08 19:27:53 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
0b5c55be1b add a -f option, we can specify a file to open instead of the default one. We then can have various different configuration and choose between them 2010-07-08 01:30:51 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
7ff54100bb pylint cleaning part1 2010-05-18 13:29:02 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
d80a16ac9c Display the status change and/or disconnect for recent-speakers only. fixed #1288 2010-05-11 16:45:14 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
d2a4ecf9a5 little cleanup 2010-02-10 16:47:43 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
be17c6a603 rfix le meme truc 2010-01-31 14:28:21 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
7306eed584 fix la copie du fichier de conf au premier demerrage 2010-01-31 14:25:48 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
6c94f611a5 test 2010-01-31 14:23:14 +00:00