[Checkins] SVN: Products.BTreeFolder2/trunk/ Moved to GitHub.

Stephen Richter cvs-admin at zope.org
Mon Feb 25 22:22:19 UTC 2013


Log message for revision 129811:
  Moved to GitHub.

Changed:
  D   Products.BTreeFolder2/trunk/CHANGES.txt
  D   Products.BTreeFolder2/trunk/COPYRIGHT.txt
  D   Products.BTreeFolder2/trunk/LICENSE.txt
  D   Products.BTreeFolder2/trunk/MANIFEST.in
  A   Products.BTreeFolder2/trunk/MOVED_TO_GITHUB
  D   Products.BTreeFolder2/trunk/README.txt
  D   Products.BTreeFolder2/trunk/bootstrap.py
  D   Products.BTreeFolder2/trunk/buildout.cfg
  D   Products.BTreeFolder2/trunk/setup.py
  D   Products.BTreeFolder2/trunk/src/

-=-
Deleted: Products.BTreeFolder2/trunk/CHANGES.txt
===================================================================
--- Products.BTreeFolder2/trunk/CHANGES.txt	2013-02-25 21:52:36 UTC (rev 129810)
+++ Products.BTreeFolder2/trunk/CHANGES.txt	2013-02-25 22:22:19 UTC (rev 129811)
@@ -1,54 +0,0 @@
-Changelog
-=========
-
-2.13.5 (unreleased)
--------------------
-
-- Added case for clean-up routine where the meta type index contains
-  keys that are not in the tree.
-
-2.13.4 (2011-12-12)
--------------------
-
-- Provide security declaration for `BTreeFolder2Base.hasObject` method.
-
-- Add some tests for correct `getattr` behavior.
-
-- Minor `__getattr__` and `_getOb` optimizations.
-
-2.13.3 (2011-03-15)
--------------------
-
-- `keys`, `values` and `items` methods are now exactly the same as
-  `objectIds`, `objectValues` and `objectItems`. They did the same before
-  already but duplicated the code.
-
-2.13.2 (2011-03-08)
--------------------
-
-- `objectValues` and `objectItems` no longer do a special handling when no
-  special `spec` is requested as `objectIds` already does the correct
-  handling.
-
-2.13.1 (2010-08-04)
--------------------
-
-- Make sure that methods returning objects return them Acquisition wrapped.
-
-- Be more careful in calling our own keys, values and items methods, as
-  sub-classes might have overridden some of them.
-
-2.13.0 (2010-07-11)
--------------------
-
-- Changed the `objectIds`, `objectItems` and `objectValues` methods to use the
-  internal OOBTree methods directly if no `spec` argument is passed.
-
-- Change implementation of `keys`, `items` and `values` method to access the
-  `self._tree` OOBTree methods directly. This avoids lookups in the meta_types
-  structures.
-
-- Implement the full dictionary protocol including `__getitem__`,
-  `__delitem__`, `__setitem__`, `__nonzero__`, `__iter__` and `__contains__`.
-
-- Released as separate package.

Deleted: Products.BTreeFolder2/trunk/COPYRIGHT.txt
===================================================================
--- Products.BTreeFolder2/trunk/COPYRIGHT.txt	2013-02-25 21:52:36 UTC (rev 129810)
+++ Products.BTreeFolder2/trunk/COPYRIGHT.txt	2013-02-25 22:22:19 UTC (rev 129811)
@@ -1 +0,0 @@
-Zope Foundation and Contributors
\ No newline at end of file

Deleted: Products.BTreeFolder2/trunk/LICENSE.txt
===================================================================
--- Products.BTreeFolder2/trunk/LICENSE.txt	2013-02-25 21:52:36 UTC (rev 129810)
+++ Products.BTreeFolder2/trunk/LICENSE.txt	2013-02-25 22:22:19 UTC (rev 129811)
@@ -1,44 +0,0 @@
-Zope Public License (ZPL) Version 2.1
-
-A copyright notice accompanies this license document that identifies the
-copyright holders.
-
-This license has been certified as open source. It has also been designated as
-GPL compatible by the Free Software Foundation (FSF).
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-1. Redistributions in source code must retain the accompanying copyright
-notice, this list of conditions, and the following disclaimer.
-
-2. Redistributions in binary form must reproduce the accompanying copyright
-notice, this list of conditions, and the following disclaimer in the
-documentation and/or other materials provided with the distribution.
-
-3. Names of the copyright holders must not be used to endorse or promote
-products derived from this software without prior written permission from the
-copyright holders.
-
-4. The right to distribute this software or to use it for any purpose does not
-give you the right to use Servicemarks (sm) or Trademarks (tm) of the
-copyright
-holders. Use of them is covered by separate agreement with the copyright
-holders.
-
-5. If any files are modified, you must cause the modified files to carry
-prominent notices stating that you changed the files and the date of any
-change.
-
-Disclaimer
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
-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 THE COPYRIGHT HOLDERS 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.

Deleted: Products.BTreeFolder2/trunk/MANIFEST.in
===================================================================
--- Products.BTreeFolder2/trunk/MANIFEST.in	2013-02-25 21:52:36 UTC (rev 129810)
+++ Products.BTreeFolder2/trunk/MANIFEST.in	2013-02-25 22:22:19 UTC (rev 129811)
@@ -1,6 +0,0 @@
-include *.txt
-
-recursive-include src *
-
-global-exclude *.pyc
-global-exclude *.pyo

Added: Products.BTreeFolder2/trunk/MOVED_TO_GITHUB
===================================================================
--- Products.BTreeFolder2/trunk/MOVED_TO_GITHUB	                        (rev 0)
+++ Products.BTreeFolder2/trunk/MOVED_TO_GITHUB	2013-02-25 22:22:19 UTC (rev 129811)
@@ -0,0 +1 @@
+See https://github.com/zopefoundation/Products.BTreeFolder2
\ No newline at end of file

Deleted: Products.BTreeFolder2/trunk/README.txt
===================================================================
--- Products.BTreeFolder2/trunk/README.txt	2013-02-25 21:52:36 UTC (rev 129810)
+++ Products.BTreeFolder2/trunk/README.txt	2013-02-25 22:22:19 UTC (rev 129811)
@@ -1,79 +0,0 @@
-Overview
-========
-
-BTreeFolder2 is a Zope product that acts like a Zope 2 OFS folder but can
-store many more items.
-
-When you fill a Zope folder with too many items, both Zope and your
-browser get overwhelmed.  Zope has to load and store a large folder
-object, and the browser has to render large HTML tables repeatedly.
-Zope can store a lot of objects, but it has trouble storing a lot of
-objects in a single standard folder.
-
-Zope Corporation once had an extensive discussion on the subject.  It
-was decided that we would expand standard folders to handle large
-numbers of objects gracefully.  Unfortunately, Zope folders are used
-and extended in so many ways today that it would be difficult to
-modify standard folders in a way that would be compatible with all
-Zope products.
-
-So the BTreeFolder product was born.  It stored all subobjects in a
-ZODB BTree, a structure designed to allow many items without loading
-them all into memory.  It also rendered the contents of the folder as
-a simple select list rather than a table.  Most browsers have no
-trouble rendering large select lists.
-
-But there was still one issue remaining.  BTreeFolders still stored
-the ID of all subobjects in a single database record.  If you put tens
-of thousands of items in a single BTreeFolder, you would still be
-loading and storing a multi-megabyte folder object.  Zope can do this,
-but not quickly, and not without bloating the database.
-
-BTreeFolder2 solves this issue.  It stores not only the subobjects but
-also the IDs of the subobjects in a BTree.  It also batches the list
-of items in the UI, showing only 1000 items at a time.  So if you
-write your application carefully, you can use a BTreeFolder2 to store
-as many items as will fit in physical storage.
-
-There are products that depend on the internal structure of the
-original BTreeFolder, however.  So rather than risk breaking those
-products, the product has been renamed.  You can have both products
-installed at the same time.  If you're developing new applications,
-you should use BTreeFolder2.
-
-
-Usage
-=====
-
-The BTreeFolder2 user interface shows a list of items rather than a
-series of checkboxes. To visit an item, select it in the list and
-click the "edit" button.
-
-BTreeFolder2 objects provide Python dictionary-like methods to make them
-easier to use in Python code than standard folders::
-
-    has_key(key)
-    keys()
-    values()
-    items()
-    get(key, default=None)
-    __len__()
-
-keys(), values(), and items() return sequences, but not necessarily
-tuples or lists.  Use len(folder) to call the __len__() method.  The
-objects returned by values() and items() have acquisition wrappers.
-
-BTreeFolder2 also provides a method for generating unique,
-non-overlapping IDs::
-
-    generateId(prefix='item', suffix='', rand_ceiling=999999999)
-
-The ID returned by this method is guaranteed to not clash with any
-other ID in the folder.  Use the returned value as the ID for new
-objects.  The generated IDs tend to be sequential so that objects that
-are likely related in some way get loaded together.
-
-BTreeFolder2 implements the full Folder interface, with the exception
-that the superValues() method does not return any items.  To implement
-the method in the way the Zope codebase expects would undermine the
-performance benefits gained by using BTreeFolder2.

Deleted: Products.BTreeFolder2/trunk/bootstrap.py
===================================================================
--- Products.BTreeFolder2/trunk/bootstrap.py	2013-02-25 21:52:36 UTC (rev 129810)
+++ Products.BTreeFolder2/trunk/bootstrap.py	2013-02-25 22:22:19 UTC (rev 129811)
@@ -1,121 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2006 Zope Foundation and Contributors.
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-#
-##############################################################################
-"""Bootstrap a buildout-based project
-
-Simply run this script in a directory containing a buildout.cfg.
-The script accepts buildout command-line options, so you can
-use the -c option to specify an alternate configuration file.
-
-$Id: bootstrap.py 108946 2010-02-12 02:40:18Z yusei $
-"""
-
-import os, shutil, sys, tempfile, urllib2
-from optparse import OptionParser
-
-tmpeggs = tempfile.mkdtemp()
-
-is_jython = sys.platform.startswith('java')
-
-# parsing arguments
-parser = OptionParser()
-parser.add_option("-v", "--version", dest="version",
-                          help="use a specific zc.buildout version")
-parser.add_option("-d", "--distribute",
-                   action="store_true", dest="distribute", default=False,
-                   help="Use Distribute rather than Setuptools.")
-
-parser.add_option("-c", None, action="store", dest="config_file",
-                   help=("Specify the path to the buildout configuration "
-                         "file to be used."))
-
-options, args = parser.parse_args()
-
-# if -c was provided, we push it back into args for buildout' main function
-if options.config_file is not None:
-    args += ['-c', options.config_file]
-
-if options.version is not None:
-    VERSION = '==%s' % options.version
-else:
-    VERSION = ''
-
-USE_DISTRIBUTE = options.distribute
-args = args + ['bootstrap']
-
-to_reload = False
-try:
-    import pkg_resources
-    if not hasattr(pkg_resources, '_distribute'):
-        to_reload = True
-        raise ImportError
-except ImportError:
-    ez = {}
-    if USE_DISTRIBUTE:
-        exec urllib2.urlopen('http://python-distribute.org/distribute_setup.py'
-                         ).read() in ez
-        ez['use_setuptools'](to_dir=tmpeggs, download_delay=0, no_fake=True)
-    else:
-        exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py'
-                             ).read() in ez
-        ez['use_setuptools'](to_dir=tmpeggs, download_delay=0)
-
-    if to_reload:
-        reload(pkg_resources)
-    else:
-        import pkg_resources
-
-if sys.platform == 'win32':
-    def quote(c):
-        if ' ' in c:
-            return '"%s"' % c # work around spawn lamosity on windows
-        else:
-            return c
-else:
-    def quote (c):
-        return c
-
-cmd = 'from setuptools.command.easy_install import main; main()'
-ws  = pkg_resources.working_set
-
-if USE_DISTRIBUTE:
-    requirement = 'distribute'
-else:
-    requirement = 'setuptools'
-
-if is_jython:
-    import subprocess
-
-    assert subprocess.Popen([sys.executable] + ['-c', quote(cmd), '-mqNxd',
-           quote(tmpeggs), 'zc.buildout' + VERSION],
-           env=dict(os.environ,
-               PYTHONPATH=
-               ws.find(pkg_resources.Requirement.parse(requirement)).location
-               ),
-           ).wait() == 0
-
-else:
-    assert os.spawnle(
-        os.P_WAIT, sys.executable, quote (sys.executable),
-        '-c', quote (cmd), '-mqNxd', quote (tmpeggs), 'zc.buildout' + VERSION,
-        dict(os.environ,
-            PYTHONPATH=
-            ws.find(pkg_resources.Requirement.parse(requirement)).location
-            ),
-        ) == 0
-
-ws.add_entry(tmpeggs)
-ws.require('zc.buildout' + VERSION)
-import zc.buildout.buildout
-zc.buildout.buildout.main(args)
-shutil.rmtree(tmpeggs)

Deleted: Products.BTreeFolder2/trunk/buildout.cfg
===================================================================
--- Products.BTreeFolder2/trunk/buildout.cfg	2013-02-25 21:52:36 UTC (rev 129810)
+++ Products.BTreeFolder2/trunk/buildout.cfg	2013-02-25 22:22:19 UTC (rev 129811)
@@ -1,12 +0,0 @@
-[buildout]
-develop = .
-parts = interpreter test
-
-[interpreter]
-recipe = zc.recipe.egg
-interpreter = python
-eggs = Products.BTreeFolder2
-
-[test]
-recipe = zc.recipe.testrunner
-eggs = Products.BTreeFolder2

Deleted: Products.BTreeFolder2/trunk/setup.py
===================================================================
--- Products.BTreeFolder2/trunk/setup.py	2013-02-25 21:52:36 UTC (rev 129810)
+++ Products.BTreeFolder2/trunk/setup.py	2013-02-25 22:22:19 UTC (rev 129811)
@@ -1,42 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2010 Zope Foundation and Contributors.
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-#
-##############################################################################
-
-from setuptools import setup, find_packages
-
-setup(name='Products.BTreeFolder2',
-      version='2.13.5dev',
-      url='http://pypi.python.org/pypi/Products.BTreeFolder2',
-      license='ZPL 2.1',
-      description="A BTree based implementation for Zope 2's OFS.",
-      author='Zope Foundation and Contributors',
-      author_email='zope-dev at zope.org',
-      long_description=open('README.txt').read() + '\n' +
-                       open('CHANGES.txt').read(),
-      packages=find_packages('src'),
-      namespace_packages=['Products'],
-      package_dir={'': 'src'},
-      install_requires=[
-        'setuptools',
-        'AccessControl',
-        'Acquisition',
-        'Persistence',
-        'ZODB3',
-        'Zope2 >= 2.13.0a1',
-        'zope.container',
-        'zope.event',
-        'zope.lifecycleevent',
-      ],
-      include_package_data=True,
-      zip_safe=False,
-      )



More information about the checkins mailing list