Package SPyRO
[hide private]
[frames] | no frames]

Source Code for Package SPyRO

 1  #coding: iso-8859-1; 
 2  ############################################################################ 
 3  #                                                                          # 
 4  #    This file '__init__.py'                                               # 
 5  #    is part of 'SPyRO: Simple Python Remote Objects'                      # 
 6  #    Copyright (C) 2004-2005 by Eric Sadit Tellez Avila                    # 
 7  #    Copyright (C) 2005-2006 by Eric Sadit Tellez Avila                    # 
 8  #    Copyright (C) 2007 by Eric Sadit Tellez Avila                         # 
 9  #    Copyright (C) 2008 by Eric Sadit Tellez Avila                         # 
10  #    sadit@lsc.fie.umich.mx or donsadit@gmail.com                          # 
11  #                                                                          # 
12  #    is part of 'Dweba: Distributed Web Application Framework (for Python)'# 
13  #    Copyright (C) 2008      by Eric Sadit Tellez Avila                    # 
14  #                                                                          # 
15  #    This program is free software; you can redistribute it and#or modify  # 
16  #    it under the terms of the GNU General Public License as published by  # 
17  #    the Free Software Foundation; either version 2 of the License, or     # 
18  #    (at your option) any later version.                                   # 
19  #                                                                          # 
20  #    This program is distributed in the hope that it will be useful,       # 
21  #    but WITHOUT ANY WARRANTY; without even the implied warranty of        # 
22  #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         # 
23  #    GNU General Public License for more details.                          # 
24  #                                                                          # 
25  #    You should have received a copy of the GNU General Public License     # 
26  #    along with this program; if not, write to the                         # 
27  #    Free Software Foundation, Inc.,                                       # 
28  #    59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             # 
29  ############################################################################ 
30   
31  #__all__ = [ "SPyRO" ] 
32   
33  from SPyRO import * 
34  import types 
35  import sys 
36  __types = sys.modules['types'] 
37  __built = sys.modules['__builtin__'] 
38   
39 -def _set_booleans():
40 __types.BooleanType = types.IntType 41 __built['True'] = 1 42 __built['False'] = 0
43 44 try: 45 __BooleanType = types.BooleanType 46 True 47 except: 48 warn.warn("An old version of python or jython was detected") 49 _set_booleans() 50