00001 """
00002 The loader module provieda a funtion to load a dictionary into
00003 the local and global memory
00004 """
00005
00006 __copyright__ = """
00007 Copyright 2008 Sean Ross-Ross
00008 """
00009 __license__ = """
00010 This file is part of SLIMpy .
00011
00012 SLIMpy is free software: you can redistribute it and/or modify
00013 it under the terms of the GNU Lesser General Public License as published by
00014 the Free Software Foundation, either version 3 of the License, or
00015 (at your option) any later version.
00016
00017 SLIMpy is distributed in the hope that it will be useful,
00018 but WITHOUT ANY WARRANTY; without even the implied warranty of
00019 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00020 GNU Lesser General Public License for more details.
00021
00022 You should have received a copy of the GNU Lesser General Public License
00023 along with SLIMpy . If not, see <http://www.gnu.org/licenses/>.
00024 """
00025
00026
00027 class loader(object):
00028 """
00029 Load the data in Loader.g and Loader.l into
00030 the global and local namespce
00031 """
00032 g = {}
00033 l = {}
00034
00035 def load(self,locals,globals):
00036 """
00037
00038 pass the parameters locals() and globals()
00039
00040 """
00041 locals.update(self.l)
00042 globals.update(self.g)
00043
00044