Commit graph

27 commits

Author SHA1 Message Date
mathieui
53040305ce fix a wrong naming in the previous commit 2014-04-06 20:18:31 +02:00
mathieui
e216fd2112 Code cleanup
fixes whitespace issues, some builtin overrides, and some enormous lines

might make poezio run nanoseconds faster!
2014-04-06 19:58:57 +02:00
mathieui
38061a6397 Improve /bookmark *
- /bookmark{_local,} * now keeps the order of the tabs, and puts the
  currently non-opened tabs at the end of the list.
- also fix a bug in remote bookmark saving
2014-04-05 14:19:22 +02:00
mathieui
ca0950db07 Remove unused imports
(thanks eijebong)
2014-04-04 00:24:16 +02:00
mathieui
8d4202501d Use RawConfigParser.get{int,bool,float} whenever possible
config.get('option', 'value').lower() == 'value' is just ugly and
stupid, especially for bool.

One if in basetabs:556 was also missing a comparison, leading to True
whenever the option was set.
2014-03-24 23:25:06 +01:00
mathieui
186803d9a9 Fix formatting, some typos, and unused code, and add docstrings
- No idea why subclasses of ConversationTab were working before
    (info_header was overriden with None in __init__)
- Or why the date parsing worked (“Exeception”)
- Some more reformatting with pylint indications
- Document each module in the tabs module
2014-03-23 00:15:01 +01:00
mathieui
545e67c500 Fix setting autojoin with /bookmark 2013-06-08 12:28:07 +02:00
mathieui
686352d22b Do not add a nick to each bookmarked room 2013-05-10 14:55:50 +02:00
mathieui
c5cc462963 Move to the upstream SleekXMPP
- remove the decline command that is not in the trunk (and mediated
  declines are supported nowhere anyway)
- change a bit xhtml-im support
- change the bookmarks management a bit
- Add a verification to avoid crashing when poezio will be launched the
  next time
- Fix the (unrelated) bug when setting a jid affiliation
2013-01-17 17:37:06 +01:00
mathieui
2a980838a9 Fix #2186 (muc password in the config file)
Also use the passwords on start, and automatically use a password with
/join if there is one.
2012-12-20 18:50:34 +01:00
mathieui
7a485ef4d0 Add a common.safeJID function, and use it everywhere 2012-08-06 15:38:09 +02:00
mathieui
265702b150 Add a way to bookmark all the rooms at once
(/bookmark * or /bookmark_local *)
2012-04-15 23:55:50 +02:00
mathieui
372b032380 Should fix the refresh issue 2012-03-30 15:57:43 +02:00
mathieui
c6e4358706 Fix bookmarks 2012-03-13 21:39:06 +01:00
Florent Le Coz
a3344b11b2 Handle autojoin="1" for bookmarks. 2012-01-26 10:05:37 +01:00
mathieui
a1575237fd Python 3.0/.1 compatibility 2012-01-26 10:05:32 +01:00
mathieui
4bab9d4216 Some function rewriting and docstrings for bookmark.py 2011-11-27 20:24:44 +01:00
mathieui
a257681b9f Add a Bookmark.local() method for local bookmarks 2011-11-27 17:46:20 +01:00
mathieui
24b9931b8b It would be silly to erase the remote bookmarks when we just want not to use them 2011-11-27 17:38:01 +01:00
mathieui
ea0f191555 Fix a tb in save_local() 2011-11-27 12:59:06 +01:00
mathieui
4ce8721c3d Default to privatexml instead of pep for bookmarks storage
(since private xml sadly has a better support)
2011-11-26 23:26:15 +01:00
mathieui
2ff8e40c22 Add stanza generators for the <storage/> element 2011-11-26 23:09:03 +01:00
mathieui
68c0ddeb29 Add save() methods to save bookmarks in every way 2011-11-26 23:08:41 +01:00
mathieui
1d5b331663 Add get_ methods to retrieve bookmarks locally/w/pubsub/privatexml 2011-11-26 23:07:31 +01:00
mathieui
2f5ecf24b7 Add a parser from xml Element to Bookmark 2011-11-26 23:06:11 +01:00
mathieui
64b8970d25 Enhance the Bookmark class 2011-11-26 23:05:09 +01:00
mathieui
2eaa540589 Add a Bookmark class 2011-11-26 15:47:41 +01:00