Commit Graph

69 Commits

Author SHA1 Message Date
Philipp Hörist 52657e7f18 Remove unicode conversion method for paths
its not needed in python3
- tempfile.gettempdir() returns always unicode
- os.environ.get() returns always unicode

we get what we put into:
- os.path.expanduser()
2017-01-06 20:03:43 +01:00
Philipp Hörist 5af42e4707 Remove old svn code 2017-01-06 20:01:14 +01:00
Philipp Hörist c4e41d6997 Make some paths available before profile init 2017-01-06 20:01:13 +01:00
Philipp Hörist 1c8f08a3c8 Remove PID code, GApp should be single instance 2017-01-03 23:08:50 +01:00
Emmanuel Gil Peyrot 3c48d59ed5 Remove unused xdg code and make it check for absolute paths
The xdg module has never been imported due to a catchall except clause,
so we can safely assume it was unused and untested.
2016-11-05 14:49:38 +00:00
tmolitor 86183298a5 Make complete profile separation configurable via commandline switch.
Use -s or --separate to use the new complete profile separation or omit this switch to retain the old behaviour.
2016-09-06 23:02:24 +02:00
tmolitor a4bda85428 Remove ternary operator, fixes #8388 2016-09-06 16:19:44 +02:00
tmolitor 76530a429a Make transition to new profile path handling more smooth for the default profile. 2016-09-05 23:58:59 +02:00
tmolitor 235cadd5cc Corrected last commit and added ability to set and log additional_data for outgoing messages as well (and for gc messages, too) 2016-09-05 01:43:39 +02:00
tmolitor 8bfde7d924 Some more improvements to gajim's path management 2016-09-05 00:10:50 +02:00
tmolitor 065d08cebf Honor profile given on commandline for plugin dir and history db and more.
Also added new property 'additional_data' to message event objects. Changes to this attribute (a dict) are passed on from event to event and are also written to the history db as json string (reading of those values isn't implemented yet).
2016-09-05 00:01:29 +02:00
Fedor Brunner 7e183d4515 XTLS keys will be stored separate for each profile.
Fixes #7735.
2014-04-15 12:42:09 +02:00
Denis Fomin 4b33634a0b Copyright 2013>2014 2014-01-02 12:33:54 +04:00
Fedor Brunner 460c62860a Syntax correction for Python3 2014-02-16 22:37:14 +01:00
Yann Leboulanger 0789b47646 [fedor] use openssl random number generator if available, and improve entropy. Fixes #7550 2013-11-10 08:39:50 +01:00
Yann Leboulanger 9c8c1de03f update my copyright 2013-04-05 21:35:39 +02:00
Yann Leboulanger 0312b6275a itervalues / iterkeys doesn't exist anymore 2013-01-05 09:52:09 +01:00
Yann Leboulanger 912f0e921d fix imports and many py3 changements 2013-01-02 13:54:02 +01:00
Yann Leboulanger d27591076f fix exception handling 2013-01-01 23:18:36 +01:00
Yann Leboulanger 069bddbbcb remove call to unicode() 2013-01-01 21:06:16 +01:00
Yann Leboulanger 414e349345 python uses unicode internally 2013-01-01 19:44:25 +01:00
Yann Leboulanger e71188a6fa print -> print() 2013-01-01 19:36:56 +01:00
Yann Leboulanger 0c36f50196 merge from trunk 2012-04-12 22:07:30 +02:00
Yann Leboulanger 3a3f99d618 upgrade copyright 2012-01-11 22:20:34 +01:00
Yann Leboulanger b47248f09d merge from trunk 2011-06-20 23:03:06 +02:00
Denis Fomin 6bf9497438 fix for demandimport 2010-12-21 22:28:03 +03:00
Yann Leboulanger a3863703f0 merge from trunk 2010-08-16 17:32:23 +02:00
Zhenchao Li 08c854aefa put local certificates in ~/.config/gajim/ , accept session once key exchange completes 2010-08-11 00:50:14 +08:00
Zhenchao Li 42f6580d1d move cert directory to ~/.local/share/gajim/certs 2010-08-10 21:10:45 +08:00
Yann Leboulanger 796213c9cb merge with trunk 2010-07-19 19:53:29 +02:00
Éric Araujo 9b5ee1e13b convert tabs to spaces in source code thanks to reindent.py
Also use sed to remove now unneeded Vim lines, 2to3 -f ws_comma to fix
some whitespace, and fix some other madness manually.
2010-04-08 01:20:17 +02:00
Yann Leboulanger 2be53c4aac update my copyright to 2010 2010-03-11 16:52:36 +01:00
Yann Leboulanger fa05d88b2b merge from default branch 2010-02-08 22:25:41 +01:00
Éric Araujo fedd7dc8e2 convert tabs to spaces in source code thanks to reindent.py
holy diff batman!
2010-02-08 15:08:40 +01:00
Yann Leboulanger 5372611e60 put pid file to $XDG_CACHE_HOME. Fixes #2149 2010-02-07 19:33:09 +01:00
Éric Araujo 8d8c8a7f4e look at environment variables by hand if PyXDG isn't available. see #2149 2010-02-07 17:52:15 +01:00
Yann Leboulanger 3e777ea8f1 use and create files in folders using XDG standards. Fixes #2149 2010-02-04 20:08:30 +01:00
Yann Leboulanger 46b50f48a1 split logs.db into logs.db and cache.db. Fixes #2845 2010-01-29 11:25:06 +01:00
Yann Leboulanger 3a76966c14 merge from default branch 2010-01-19 16:37:14 +01:00
Bruno Tarquini fe8bd2b027 autotools: remove confusing variables ${datadir} and DATADIR.
Those variables were confusing because autoconf usually defines DATADIR to
PREFIX/share and gajim uses both defs.datadir=PREFIX/share/gajim and
gajim.DATA_DIR=PREFIX/share/gajim/data.

Now, autoconf will use PKGDATADIR for setting the (renamed) defs.basedir
variable which will be used to set gajimpaths['DATA_DIR'] and
gajimpaths['ICONS_DIR'] in configpaths.py

Gajim will also looks for the ${GAJIM_BASEDIR} environment variable instead of
${datadir} which was really too generic (no namespace).
2009-11-28 12:54:41 +01:00
Yann Leboulanger 5b10d8fe5c base of using icon themes. see #2378 2009-11-27 16:42:32 +01:00
Alexander Cherniuk cea7c66f75 A portion of doc-string refactoring 2009-11-26 12:21:43 +02:00
Mateusz Biliński 018bda5a5f Merged default branch with plugin-system branch. Not all elements are fully
functional. This should be considered as sync commit.
2009-06-07 00:00:03 +02:00
Yann Leboulanger 109c9d1004 don't traceback when there is no temp folder. Fixes #4629 2009-01-21 07:14:03 +00:00
Yann Leboulanger a4132ee58b ability to use adtadir environment variable to set data directory 2009-01-05 15:12:19 +00:00
Yann Leboulanger 0830a5fe73 [thorstenp] use sorted() and list comprehension 2008-12-03 22:07:44 +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
Mateusz Biliński 8aa9cad2e0 Plugin's configuration is now saved to disk (currently: using UserDict and shelve modules).
Length Notifier Plugin has configuration dialog (added entry with JIDs to be included when plugin is working) - fully usable.

Default values of configuration key has been added to GajimPlugin.

Some other minor changes/fixes.
2008-07-29 19:09:28 +00:00