00001 """
00002 @package slimpy_base
00003
00004 this is the main init file for SLIMpy
00005
00006 """
00007
00008 __copyright__ = """
00009 Copyright 2008 Sean Ross-Ross
00010 """
00011 __license__ = """
00012 This file is part of SLIMpy .
00013
00014 SLIMpy is free software: you can redistribute it and/or modify
00015 it under the terms of the GNU Lesser General Public License as published by
00016 the Free Software Foundation, either version 3 of the License, or
00017 (at your option) any later version.
00018
00019 SLIMpy is distributed in the hope that it will be useful,
00020 but WITHOUT ANY WARRANTY; without even the implied warranty of
00021 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00022 GNU Lesser General Public License for more details.
00023
00024 You should have received a copy of the GNU Lesser General Public License
00025 along with SLIMpy . If not, see <http://www.gnu.org/licenses/>.
00026 """
00027
00028
00029
00030 import info
00031
00032
00033 __version_major__ = 3
00034
00035 __version_minor__ = 0
00036
00037 __revision__ = info.rev
00038
00039 __version__ = "SLIMpy: %(__version_major__)s.%(__version_minor__)s: svn revision %(__revision__)s" % vars()
00040 __date__ = info.date
00041
00042
00043 from slimpy_base.Environment.InstanceManager import InstanceManager
00044
00045 def initialize( ):
00046 """
00047 initialize SLIMpy environment
00048 """
00049 env = InstanceManager()
00050
00051 from slimpy_base.Environment.hashTable import _HashTable
00052 from slimpy_base.Environment.GlobalVars import GlobalVars as _GlobalVars
00053 from slimpy_base.Environment.GraphManager import GraphManager
00054 from slimpy_base.Environment.KeyStone import KeyStone
00055 from slimpy_base.Core.MutiProcessUtils.EmploymentCenter import EmploymentCenter
00056 from slimpy_base.utils.Records import Records
00057
00058
00059 env['graphmgr'] = GraphManager
00060
00061 env['table'] = _HashTable
00062 env['record'] = Records
00063 env['slimvars'] = _GlobalVars
00064 env['keystone'] = KeyStone
00065 env['center'] = EmploymentCenter
00066
00067
00068
00069 env.assure_new_instances( )
00070
00071 initialize( )