comparison src/plugins/plugin_xep_0065.py @ 609:84a6e83157c2

fixed licences in docstrings (they are now in comments)
author Goffi <goffi@goffi.org>
date Fri, 08 Mar 2013 00:36:22 +0100
parents e629371a28d3
children 6821fc06a324
comparison
equal deleted inserted replaced
608:ea9aa51234eb 609:84a6e83157c2
1 #!/usr/bin/python 1 #!/usr/bin/python
2 #-*- coding: utf-8 -*- 2 #-*- coding: utf-8 -*-
3 """ 3
4 SAT plugin for managing xep-0065 4 # SAT plugin for managing xep-0065
5 5
6 Copyright (C) 6 # Copyright (C)
7 2002, 2003, 2004 Dave Smith (dizzyd@jabber.org) 7 # 2002, 2003, 2004 Dave Smith (dizzyd@jabber.org)
8 2007, 2008 Fabio Forno (xmpp:ff@jabber.bluendo.com) 8 # 2007, 2008 Fabio Forno (xmpp:ff@jabber.bluendo.com)
9 2009, 2010, 2011, 2012, 2013 Jérôme Poisson (goffi@goffi.org) 9 # 2009, 2010, 2011, 2012, 2013 Jérôme Poisson (goffi@goffi.org)
10 10
11 This program is free software: you can redistribute it and/or modify 11 # This program is free software: you can redistribute it and/or modify
12 it under the terms of the GNU Affero General Public License as published by 12 # it under the terms of the GNU Affero General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or 13 # the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version. 14 # (at your option) any later version.
15 15
16 This program is distributed in the hope that it will be useful, 16 # This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of 17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU Affero General Public License for more details. 19 # GNU Affero General Public License for more details.
20 20
21 You should have received a copy of the GNU Affero General Public License 21 # You should have received a copy of the GNU Affero General Public License
22 along with this program. If not, see <http://www.gnu.org/licenses/>. 22 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23 23
24 -- 24 # --
25 25
26 This program is based on proxy65 (http://code.google.com/p/proxy65), 26 # This program is based on proxy65 (http://code.google.com/p/proxy65),
27 originaly written by David Smith and modified by Fabio Forno. 27 # originaly written by David Smith and modified by Fabio Forno.
28 It is sublicensed under GPL v3 (or any later version) as allowed by the original 28 # It is sublicensed under AGPL v3 (or any later version) as allowed by the original
29 license. 29 # license.
30 30
31 -- 31 # --
32 32
33 Here is a copy of the original license: 33 # Here is a copy of the original license:
34 34
35 Copyright (C) 35 # Copyright (C)
36 2002-2004 Dave Smith (dizzyd@jabber.org) 36 # 2002-2004 Dave Smith (dizzyd@jabber.org)
37 2007-2008 Fabio Forno (xmpp:ff@jabber.bluendo.com) 37 # 2007-2008 Fabio Forno (xmpp:ff@jabber.bluendo.com)
38 38
39 Permission is hereby granted, free of charge, to any person obtaining a copy 39 # Permission is hereby granted, free of charge, to any person obtaining a copy
40 of this software and associated documentation files (the "Software"), to deal 40 # of this software and associated documentation files (the "Software"), to deal
41 in the Software without restriction, including without limitation the rights 41 # in the Software without restriction, including without limitation the rights
42 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 42 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
43 copies of the Software, and to permit persons to whom the Software is 43 # copies of the Software, and to permit persons to whom the Software is
44 furnished to do so, subject to the following conditions: 44 # furnished to do so, subject to the following conditions:
45 45
46 The above copyright notice and this permission notice shall be included in 46 # The above copyright notice and this permission notice shall be included in
47 all copies or substantial portions of the Software. 47 # all copies or substantial portions of the Software.
48 48
49 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 49 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
50 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 50 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
51 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 51 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
52 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 52 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
53 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 53 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
54 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 54 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
55 THE SOFTWARE. 55 # THE SOFTWARE.
56 """
57 56
58 from logging import debug, info, warning, error 57 from logging import debug, info, warning, error
59 from twisted.internet import protocol, reactor 58 from twisted.internet import protocol, reactor
60 from twisted.internet import error as jab_error 59 from twisted.internet import error as jab_error
61 from twisted.words.protocols.jabber import jid, client as jabber_client 60 from twisted.words.protocols.jabber import jid, client as jabber_client