Package pyxmpp :: Package jabber :: Module all
[hide private]

Source Code for Module pyxmpp.jabber.all

 1  # 
 2  # (C) Copyright 2003-2006 Jacek Konieczny <jajcus@jajcus.net> 
 3  # 
 4  # This program is free software; you can redistribute it and/or modify 
 5  # it under the terms of the GNU Lesser General Public License Version 
 6  # 2.1 as published by the Free Software Foundation. 
 7  # 
 8  # This program is distributed in the hope that it will be useful, 
 9  # but WITHOUT ANY WARRANTY; without even the implied warranty of 
10  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
11  # GNU Lesser General Public License for more details. 
12  # 
13  # You should have received a copy of the GNU Lesser General Public 
14  # License along with this program; if not, write to the Free Software 
15  # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 
16  # 
17  # pylint: disable-msg=W0611 
18   
19  """Convenience module containing most important objects from pyxmpp.jabber 
20  package. 
21   
22  Suggested usage:: 
23  import pyxmpp.jabber.all 
24   
25  (imports all important names into pyxmpp.jabber namespace)""" 
26   
27  __revision__="$Id: __init__.py 477 2004-12-29 13:25:42Z jajcus $" 
28  __docformat__="restructuredtext en" 
29   
30  import pyxmpp 
31  import pyxmpp.jabber 
32   
33  from pyxmpp.jabber.clientstream import LegacyClientStream 
34  from pyxmpp.jabber.client import JabberClient as Client 
35  from pyxmpp.jabber.disco import DISCO_NS,DISCO_INFO_NS,DISCO_ITEMS_NS 
36  from pyxmpp.jabber.disco import DiscoInfo,DiscoItems,DiscoItem,DiscoIdentity 
37  from pyxmpp.jabber.vcard import VCARD_NS,VCard 
38  from pyxmpp.jabber.register import Register 
39   
40  for name in dir(): 
41      if not name.startswith("__") and name!="pyxmpp": 
42          setattr(pyxmpp.jabber,name,globals()[name]) 
43   
44  # vi: sts=4 et sw=4 
45