Commit 618a2277 authored by Jim Fulton's avatar Jim Fulton

Added new copyright and untabified.

parent 803364dd
#!/usr/local/bin/python ##############################################################################
# $What$
__doc__='''Python implementation of persistent base types
$Id: PersistentMapping.py,v 1.1 1997/12/15 17:51:33 jim Exp $'''
# Copyright
# #
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne # Copyright (c) 1996-1998, Digital Creations, Fredericksburg, VA, USA.
# Street, Suite 300, Fredericksburg, Virginia 22401 U.S.A. All # All rights reserved.
# rights reserved. Copyright in this software is owned by DCLC,
# unless otherwise indicated. Permission to use, copy and
# distribute this software is hereby granted, provided that the
# above copyright notice appear in all copies and that both that
# copyright notice and this permission notice appear. Note that
# any product, process or technology described in this software
# may be the subject of other Intellectual Property rights
# reserved by Digital Creations, L.C. and are not licensed
# hereunder.
# #
# Trademarks # Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# #
# Digital Creations & DCLC, are trademarks of Digital Creations, L.C.. # o Redistributions of source code must retain the above copyright
# All other trademarks are owned by their respective companies. # notice, this list of conditions, and the disclaimer that follows.
# #
# No Warranty # o Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions, and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
# #
# The software is provided "as is" without warranty of any kind, # o Neither the name of Digital Creations nor the names of its
# either express or implied, including, but not limited to, the # contributors may be used to endorse or promote products derived
# implied warranties of merchantability, fitness for a particular # from this software without specific prior written permission.
# purpose, or non-infringement. This software could include
# technical inaccuracies or typographical errors. Changes are
# periodically made to the software; these changes will be
# incorporated in new editions of the software. DCLC may make
# improvements and/or changes in this software at any time
# without notice.
# #
# Limitation Of Liability
# #
# In no event will DCLC be liable for direct, indirect, special, # THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS AND CONTRIBUTORS *AS IS*
# incidental, economic, cover, or consequential damages arising # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
# out of the use of or inability to use this software even if # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
# advised of the possibility of such damages. Some states do not # PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL
# allow the exclusion or limitation of implied warranties or # CREATIONS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# limitation of liability for incidental or consequential # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# damages, so the above limitation or exclusion may not apply to # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
# you. # OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
# TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
# DAMAGE.
# #
# #
# If you have questions regarding this software, # If you have questions regarding this software, contact:
# contact:
# #
# Digital Creations, L.C. # Digital Creations, L.C.
# 910 Princess Ann Street # 910 Princess Ann Street
...@@ -59,7 +44,12 @@ $Id: PersistentMapping.py,v 1.1 1997/12/15 17:51:33 jim Exp $''' ...@@ -59,7 +44,12 @@ $Id: PersistentMapping.py,v 1.1 1997/12/15 17:51:33 jim Exp $'''
# #
# (540) 371-6909 # (540) 371-6909
# #
__version__='$Revision: 1.1 $'[11:-2] ##############################################################################
__doc__='''Python implementation of persistent base types
$Id: PersistentMapping.py,v 1.2 1998/10/23 21:40:59 jim Exp $'''
__version__='$Revision: 1.2 $'[11:-2]
import Persistence import Persistence
...@@ -112,9 +102,3 @@ class PersistentMapping(Persistence.Persistent): ...@@ -112,9 +102,3 @@ class PersistentMapping(Persistence.Persistent):
return map(lambda k, d=self: (k,d[k]), self.keys()) return map(lambda k, d=self: (k,d[k]), self.keys())
def has_key(self,key): return self._container.has_key(key) def has_key(self,key): return self._container.has_key(key)
############################################################################
# $Log: PersistentMapping.py,v $
# Revision 1.1 1997/12/15 17:51:33 jim
# Split off from Persistence.
#
#!/usr/local/bin/python ##############################################################################
# $What$
__doc__='''Python implementation of a persistent base types
$Id: Persistence.py,v 1.15 1998/10/23 21:36:59 jim Exp $'''
# Copyright
# #
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne # Copyright (c) 1996-1998, Digital Creations, Fredericksburg, VA, USA.
# Street, Suite 300, Fredericksburg, Virginia 22401 U.S.A. All # All rights reserved.
# rights reserved. Copyright in this software is owned by DCLC,
# unless otherwise indicated. Permission to use, copy and
# distribute this software is hereby granted, provided that the
# above copyright notice appear in all copies and that both that
# copyright notice and this permission notice appear. Note that
# any product, process or technology described in this software
# may be the subject of other Intellectual Property rights
# reserved by Digital Creations, L.C. and are not licensed
# hereunder.
# #
# Trademarks # Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# #
# Digital Creations & DCLC, are trademarks of Digital Creations, L.C.. # o Redistributions of source code must retain the above copyright
# All other trademarks are owned by their respective companies. # notice, this list of conditions, and the disclaimer that follows.
# #
# No Warranty # o Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions, and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
# #
# The software is provided "as is" without warranty of any kind, # o Neither the name of Digital Creations nor the names of its
# either express or implied, including, but not limited to, the # contributors may be used to endorse or promote products derived
# implied warranties of merchantability, fitness for a particular # from this software without specific prior written permission.
# purpose, or non-infringement. This software could include
# technical inaccuracies or typographical errors. Changes are
# periodically made to the software; these changes will be
# incorporated in new editions of the software. DCLC may make
# improvements and/or changes in this software at any time
# without notice.
# #
# Limitation Of Liability
# #
# In no event will DCLC be liable for direct, indirect, special, # THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS AND CONTRIBUTORS *AS IS*
# incidental, economic, cover, or consequential damages arising # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
# out of the use of or inability to use this software even if # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
# advised of the possibility of such damages. Some states do not # PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL
# allow the exclusion or limitation of implied warranties or # CREATIONS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# limitation of liability for incidental or consequential # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# damages, so the above limitation or exclusion may not apply to # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
# you. # OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
# TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
# DAMAGE.
# #
# #
# If you have questions regarding this software, # If you have questions regarding this software, contact:
# contact:
# #
# Digital Creations, L.C. # Digital Creations, L.C.
# 910 Princess Ann Street # 910 Princess Ann Street
...@@ -58,7 +44,11 @@ $Id: Persistence.py,v 1.15 1998/10/23 21:36:59 jim Exp $''' ...@@ -58,7 +44,11 @@ $Id: Persistence.py,v 1.15 1998/10/23 21:36:59 jim Exp $'''
# #
# (540) 371-6909 # (540) 371-6909
# #
__version__='$Revision: 1.15 $'[11:-2] ##############################################################################
__doc__='''Python implementation of a persistent base types
$Id: Persistence.py,v 1.16 1998/10/23 21:40:15 jim Exp $'''
__version__='$Revision: 1.16 $'[11:-2]
try: try:
from cPersistence import Persistent from cPersistence import Persistent
......
#!/usr/local/bin/python ##############################################################################
# $What$
__doc__='''Python implementation of persistent base types
$Id: PersistentMapping.py,v 1.1 1997/12/15 17:51:33 jim Exp $'''
# Copyright
# #
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne # Copyright (c) 1996-1998, Digital Creations, Fredericksburg, VA, USA.
# Street, Suite 300, Fredericksburg, Virginia 22401 U.S.A. All # All rights reserved.
# rights reserved. Copyright in this software is owned by DCLC,
# unless otherwise indicated. Permission to use, copy and
# distribute this software is hereby granted, provided that the
# above copyright notice appear in all copies and that both that
# copyright notice and this permission notice appear. Note that
# any product, process or technology described in this software
# may be the subject of other Intellectual Property rights
# reserved by Digital Creations, L.C. and are not licensed
# hereunder.
# #
# Trademarks # Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# #
# Digital Creations & DCLC, are trademarks of Digital Creations, L.C.. # o Redistributions of source code must retain the above copyright
# All other trademarks are owned by their respective companies. # notice, this list of conditions, and the disclaimer that follows.
# #
# No Warranty # o Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions, and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
# #
# The software is provided "as is" without warranty of any kind, # o Neither the name of Digital Creations nor the names of its
# either express or implied, including, but not limited to, the # contributors may be used to endorse or promote products derived
# implied warranties of merchantability, fitness for a particular # from this software without specific prior written permission.
# purpose, or non-infringement. This software could include
# technical inaccuracies or typographical errors. Changes are
# periodically made to the software; these changes will be
# incorporated in new editions of the software. DCLC may make
# improvements and/or changes in this software at any time
# without notice.
# #
# Limitation Of Liability
# #
# In no event will DCLC be liable for direct, indirect, special, # THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS AND CONTRIBUTORS *AS IS*
# incidental, economic, cover, or consequential damages arising # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
# out of the use of or inability to use this software even if # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
# advised of the possibility of such damages. Some states do not # PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL
# allow the exclusion or limitation of implied warranties or # CREATIONS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# limitation of liability for incidental or consequential # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# damages, so the above limitation or exclusion may not apply to # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
# you. # OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
# TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
# DAMAGE.
# #
# #
# If you have questions regarding this software, # If you have questions regarding this software, contact:
# contact:
# #
# Digital Creations, L.C. # Digital Creations, L.C.
# 910 Princess Ann Street # 910 Princess Ann Street
...@@ -59,7 +44,12 @@ $Id: PersistentMapping.py,v 1.1 1997/12/15 17:51:33 jim Exp $''' ...@@ -59,7 +44,12 @@ $Id: PersistentMapping.py,v 1.1 1997/12/15 17:51:33 jim Exp $'''
# #
# (540) 371-6909 # (540) 371-6909
# #
__version__='$Revision: 1.1 $'[11:-2] ##############################################################################
__doc__='''Python implementation of persistent base types
$Id: PersistentMapping.py,v 1.2 1998/10/23 21:40:59 jim Exp $'''
__version__='$Revision: 1.2 $'[11:-2]
import Persistence import Persistence
...@@ -112,9 +102,3 @@ class PersistentMapping(Persistence.Persistent): ...@@ -112,9 +102,3 @@ class PersistentMapping(Persistence.Persistent):
return map(lambda k, d=self: (k,d[k]), self.keys()) return map(lambda k, d=self: (k,d[k]), self.keys())
def has_key(self,key): return self._container.has_key(key) def has_key(self,key): return self._container.has_key(key)
############################################################################
# $Log: PersistentMapping.py,v $
# Revision 1.1 1997/12/15 17:51:33 jim
# Split off from Persistence.
#
#!/usr/local/bin/python ##############################################################################
# $What$ #
# Copyright (c) 1996-1998, Digital Creations, Fredericksburg, VA, USA.
__doc__='''PickleJar Object Cache # All rights reserved.
$Id: PickleCache.py,v 1.3 1998/06/05 22:20:30 jim Exp $'''
# Copyright
# #
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne # Redistribution and use in source and binary forms, with or without
# Street, Suite 300, Fredericksburg, Virginia 22401 U.S.A. All # modification, are permitted provided that the following conditions are
# rights reserved. Copyright in this software is owned by DCLC, # met:
# unless otherwise indicated. Permission to use, copy and
# distribute this software is hereby granted, provided that the
# above copyright notice appear in all copies and that both that
# copyright notice and this permission notice appear. Note that
# any product, process or technology described in this software
# may be the subject of other Intellectual Property rights
# reserved by Digital Creations, L.C. and are not licensed
# hereunder.
# #
# Trademarks # o Redistributions of source code must retain the above copyright
# notice, this list of conditions, and the disclaimer that follows.
# #
# Digital Creations & DCLC, are trademarks of Digital Creations, L.C.. # o Redistributions in binary form must reproduce the above copyright
# All other trademarks are owned by their respective companies. # notice, this list of conditions, and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
# #
# No Warranty # o Neither the name of Digital Creations nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
# #
# The software is provided "as is" without warranty of any kind,
# either express or implied, including, but not limited to, the
# implied warranties of merchantability, fitness for a particular
# purpose, or non-infringement. This software could include
# technical inaccuracies or typographical errors. Changes are
# periodically made to the software; these changes will be
# incorporated in new editions of the software. DCLC may make
# improvements and/or changes in this software at any time
# without notice.
# #
# Limitation Of Liability # THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS AND CONTRIBUTORS *AS IS*
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL
# CREATIONS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
# TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
# DAMAGE.
# #
# In no event will DCLC be liable for direct, indirect, special,
# incidental, economic, cover, or consequential damages arising
# out of the use of or inability to use this software even if
# advised of the possibility of such damages. Some states do not
# allow the exclusion or limitation of implied warranties or
# limitation of liability for incidental or consequential
# damages, so the above limitation or exclusion may not apply to
# you.
# #
# If you have questions regarding this software, contact:
# #
# If you have questions regarding this software, # Digital Creations, L.C.
# contact: # 910 Princess Ann Street
# Fredericksburge, Virginia 22401
# #
# Digital Creations, bobo@digicool.com # info@digicool.com
# #
# (540) 371-6909 # (540) 371-6909
# #
__version__='$Revision: 1.3 $'[11:-2] ##############################################################################
__doc__='''PickleJar Object Cache
$Id: PickleCache.py,v 1.4 1998/10/23 21:41:24 jim Exp $'''
__version__='$Revision: 1.4 $'[11:-2]
from sys import getrefcount from sys import getrefcount
...@@ -114,19 +108,3 @@ class PickleCache: ...@@ -114,19 +108,3 @@ class PickleCache:
if rc(cache[id]) <= 2: del cache[id] if rc(cache[id]) <= 2: del cache[id]
cache[id]._p_deactivate() cache[id]._p_deactivate()
l=len(cache) l=len(cache)
############################################################################
#
# $Log: PickleCache.py,v $
# Revision 1.3 1998/06/05 22:20:30 jim
# Added __len__ and added a functional minimize method that
# tries to minimize the size of the cache.
#
# Revision 1.2 1998/03/23 15:50:27 jim
# Added import of getrefcound from sys.
#
# Revision 1.1 1997/12/15 17:51:55 jim
# Split off from PickleJar.
#
#
#
#!/usr/local/bin/python ##############################################################################
# $What$
__doc__='''Python implementation of persistent base types
$Id: mapping.py,v 1.1 1997/12/15 17:51:33 jim Exp $'''
# Copyright
# #
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne # Copyright (c) 1996-1998, Digital Creations, Fredericksburg, VA, USA.
# Street, Suite 300, Fredericksburg, Virginia 22401 U.S.A. All # All rights reserved.
# rights reserved. Copyright in this software is owned by DCLC,
# unless otherwise indicated. Permission to use, copy and
# distribute this software is hereby granted, provided that the
# above copyright notice appear in all copies and that both that
# copyright notice and this permission notice appear. Note that
# any product, process or technology described in this software
# may be the subject of other Intellectual Property rights
# reserved by Digital Creations, L.C. and are not licensed
# hereunder.
# #
# Trademarks # Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# #
# Digital Creations & DCLC, are trademarks of Digital Creations, L.C.. # o Redistributions of source code must retain the above copyright
# All other trademarks are owned by their respective companies. # notice, this list of conditions, and the disclaimer that follows.
# #
# No Warranty # o Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions, and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
# #
# The software is provided "as is" without warranty of any kind, # o Neither the name of Digital Creations nor the names of its
# either express or implied, including, but not limited to, the # contributors may be used to endorse or promote products derived
# implied warranties of merchantability, fitness for a particular # from this software without specific prior written permission.
# purpose, or non-infringement. This software could include
# technical inaccuracies or typographical errors. Changes are
# periodically made to the software; these changes will be
# incorporated in new editions of the software. DCLC may make
# improvements and/or changes in this software at any time
# without notice.
# #
# Limitation Of Liability
# #
# In no event will DCLC be liable for direct, indirect, special, # THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS AND CONTRIBUTORS *AS IS*
# incidental, economic, cover, or consequential damages arising # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
# out of the use of or inability to use this software even if # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
# advised of the possibility of such damages. Some states do not # PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL
# allow the exclusion or limitation of implied warranties or # CREATIONS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# limitation of liability for incidental or consequential # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# damages, so the above limitation or exclusion may not apply to # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
# you. # OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
# TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
# DAMAGE.
# #
# #
# If you have questions regarding this software, # If you have questions regarding this software, contact:
# contact:
# #
# Digital Creations, L.C. # Digital Creations, L.C.
# 910 Princess Ann Street # 910 Princess Ann Street
...@@ -59,7 +44,12 @@ $Id: mapping.py,v 1.1 1997/12/15 17:51:33 jim Exp $''' ...@@ -59,7 +44,12 @@ $Id: mapping.py,v 1.1 1997/12/15 17:51:33 jim Exp $'''
# #
# (540) 371-6909 # (540) 371-6909
# #
__version__='$Revision: 1.1 $'[11:-2] ##############################################################################
__doc__='''Python implementation of persistent base types
$Id: mapping.py,v 1.2 1998/10/23 21:40:59 jim Exp $'''
__version__='$Revision: 1.2 $'[11:-2]
import Persistence import Persistence
...@@ -112,9 +102,3 @@ class PersistentMapping(Persistence.Persistent): ...@@ -112,9 +102,3 @@ class PersistentMapping(Persistence.Persistent):
return map(lambda k, d=self: (k,d[k]), self.keys()) return map(lambda k, d=self: (k,d[k]), self.keys())
def has_key(self,key): return self._container.has_key(key) def has_key(self,key): return self._container.has_key(key)
############################################################################
# $Log: mapping.py,v $
# Revision 1.1 1997/12/15 17:51:33 jim
# Split off from Persistence.
#
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment