Rev 2074: (John Arbash Meinel) Add a Registry class to help make registry functionality consistent in /home/pqm/archives/thelove/bzr/+trunk/

Canonical.com Patch Queue Manager pqm at pqm.ubuntu.com
Fri Oct 13 07:41:22 BST 2006


------------------------------------------------------------
revno: 2074
revision-id: pqm at pqm.ubuntu.com-20061013064121-50dd056d490840cd
parent: pqm at pqm.ubuntu.com-20061012011808-6bdb1458abfdc13a
parent: john at arbash-meinel.com-20061013013159-8224e911d84e438a
committer: Canonical.com Patch Queue Manager<pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Fri 2006-10-13 07:41:21 +0100
message:
  (John Arbash Meinel) Add a Registry class to help make registry functionality consistent
added:
  bzrlib/registry.py             lazy_factory.py-20060809213415-2gfvqadtvdn0phtg-1
  bzrlib/tests/test_registry.py  test_lazy_factory.py-20060809213415-2gfvqadtvdn0phtg-2
modified:
  HACKING                        HACKING-20050805200004-2a5dc975d870f78c
  NEWS                           NEWS-20050323055033-4e00b5db738777ff
  bzrlib/tests/__init__.py       selftest.py-20050531073622-8d0e3c8845c97a64
    ------------------------------------------------------------
    merged: john at arbash-meinel.com-20061013013159-8224e911d84e438a
    parent: john at arbash-meinel.com-20061013005526-b473dbb49c269e40
    parent: pqm at pqm.ubuntu.com-20061012011808-6bdb1458abfdc13a
    committer: John Arbash Meinel <john at arbash-meinel.com>
    branch nick: registry
    timestamp: Fri 2006-10-13 11:31:59 +1000
    message:
      [merge] bzr.dev 2073
    ------------------------------------------------------------
    merged: john at arbash-meinel.com-20061013005526-b473dbb49c269e40
    parent: john at arbash-meinel.com-20061013002545-025556fc8e5b9d83
    committer: John Arbash Meinel <john at arbash-meinel.com>
    branch nick: registry
    timestamp: Fri 2006-10-13 10:55:26 +1000
    message:
      cleanup doc strings as recommended by Aaron and Martin
    ------------------------------------------------------------
    merged: john at arbash-meinel.com-20061013002545-025556fc8e5b9d83
    parent: john at arbash-meinel.com-20061011012122-ae8ff84cf665d7e3
    committer: John Arbash Meinel <john at arbash-meinel.com>
    branch nick: registry
    timestamp: Fri 2006-10-13 10:25:45 +1000
    message:
      Updated HACKING and docstrings per Martin's suggestions
    ------------------------------------------------------------
    merged: john at arbash-meinel.com-20061011012122-ae8ff84cf665d7e3
    parent: john at arbash-meinel.com-20061011012009-c2f60b15e4466737
    parent: pqm at pqm.ubuntu.com-20061010072307-037a6f63da8a1bdd
    committer: John Arbash Meinel <john at arbash-meinel.com>
    branch nick: registry
    timestamp: Wed 2006-10-11 11:21:22 +1000
    message:
      [merge] bzr.dev 2070
    ------------------------------------------------------------
    merged: john at arbash-meinel.com-20061011012009-c2f60b15e4466737
    parent: john at arbash-meinel.com-20060927224045-1a4a59afa58632f0
    committer: John Arbash Meinel <john at arbash-meinel.com>
    branch nick: registry
    timestamp: Wed 2006-10-11 11:20:09 +1000
    message:
      Cleanups suggested by Richard Wilbur
    ------------------------------------------------------------
    merged: john at arbash-meinel.com-20060927224045-1a4a59afa58632f0
    parent: john at arbash-meinel.com-20060921222519-429864b017a1629e
    committer: John Arbash Meinel <john at arbash-meinel.com>
    branch nick: registry
    timestamp: Wed 2006-09-27 17:40:45 -0500
    message:
      Use helper objects to handle lazy importing
    ------------------------------------------------------------
    merged: john at arbash-meinel.com-20060921222519-429864b017a1629e
    parent: john at arbash-meinel.com-20060909182125-b80276593538c308
    committer: John Arbash Meinel <john at arbash-meinel.com>
    branch nick: registry
    timestamp: Thu 2006-09-21 17:25:19 -0500
    message:
      Remove extra dict-like members, simplfying the api
    ------------------------------------------------------------
    merged: john at arbash-meinel.com-20060909182125-b80276593538c308
    parent: john at arbash-meinel.com-20060909181901-93302c1b51b375ba
    committer: John Arbash Meinel <john at arbash-meinel.com>
    branch nick: registry
    timestamp: Sat 2006-09-09 13:21:25 -0500
    message:
      A test which uses the callback to return information from the object.
    ------------------------------------------------------------
    merged: john at arbash-meinel.com-20060909181901-93302c1b51b375ba
    parent: john at arbash-meinel.com-20060909174443-7a3417310f453b5e
    committer: John Arbash Meinel <john at arbash-meinel.com>
    branch nick: registry
    timestamp: Sat 2006-09-09 13:19:01 -0500
    message:
      A help callable should take the registry as the first parameter
    ------------------------------------------------------------
    merged: john at arbash-meinel.com-20060909174443-7a3417310f453b5e
    parent: john at arbash-meinel.com-20060909173034-fd1e7849d827dcf8
    committer: John Arbash Meinel <john at arbash-meinel.com>
    branch nick: registry
    timestamp: Sat 2006-09-09 12:44:43 -0500
    message:
      Add Registry.iterhelp and Registry.iterinfo
    ------------------------------------------------------------
    merged: john at arbash-meinel.com-20060909173034-fd1e7849d827dcf8
    parent: john at arbash-meinel.com-20060909170355-487019ff329aea61
    committer: John Arbash Meinel <john at arbash-meinel.com>
    branch nick: registry
    timestamp: Sat 2006-09-09 12:30:34 -0500
    message:
      Add help and info parameters, and tests for them
    ------------------------------------------------------------
    merged: john at arbash-meinel.com-20060909170355-487019ff329aea61
    parent: john at arbash-meinel.com-20060909165226-205b4911cc273230
    committer: John Arbash Meinel <john at arbash-meinel.com>
    branch nick: registry
    timestamp: Sat 2006-09-09 12:03:55 -0500
    message:
      first_is_default was not a good design
    ------------------------------------------------------------
    merged: john at arbash-meinel.com-20060909165226-205b4911cc273230
    parent: john at arbash-meinel.com-20060901180210-3707e15493f19a8a
    committer: John Arbash Meinel <john at arbash-meinel.com>
    branch nick: registry
    timestamp: Sat 2006-09-09 11:52:26 -0500
    message:
      Make a Registry look more like a dict, and allow anyone to register stuff lazily.
    ------------------------------------------------------------
    merged: john at arbash-meinel.com-20060901180210-3707e15493f19a8a
    parent: john at arbash-meinel.com-20060901175934-ab40fb137c471ec0
    committer: John Arbash Meinel <john at arbash-meinel.com>
    branch nick: registry
    timestamp: Fri 2006-09-01 13:02:10 -0500
    message:
      move the NEWS entry to the correct location, update for final changes
    ------------------------------------------------------------
    merged: john at arbash-meinel.com-20060901175934-ab40fb137c471ec0
    parent: john at arbash-meinel.com-20060901175610-45ac83a70f7f6794
    parent: dato at net.com.org.es-20060818215453-d59f041bb6d2f64d
    committer: John Arbash Meinel <john at arbash-meinel.com>
    branch nick: registry
    timestamp: Fri 2006-09-01 12:59:34 -0500
    message:
      [merge] Adeodato Simó: change factory => registry
        ------------------------------------------------------------
        merged: dato at net.com.org.es-20060818215453-d59f041bb6d2f64d
        parent: dato at net.com.org.es-20060815180015-21aac59162d04066
        parent: pqm at pqm.ubuntu.com-20060818181719-90004a4648d8537a
        committer: Adeodato Simó <dato at net.com.org.es>
        branch nick: registry_class
        timestamp: Fri 2006-08-18 23:54:53 +0200
        message:
          [merge] bzr.dev 1947
        ------------------------------------------------------------
        merged: dato at net.com.org.es-20060815180015-21aac59162d04066
        parent: dato at net.com.org.es-20060815175745-2af07bdc1a6b5444
        committer: Adeodato Simó <dato at net.com.org.es>
        branch nick: registry_class
        timestamp: Tue 2006-08-15 20:00:15 +0200
        message:
          Mention Registry and LazyImportRegistry in NEWS/INTERNALS.
        ------------------------------------------------------------
        merged: dato at net.com.org.es-20060815175745-2af07bdc1a6b5444
        parent: dato at net.com.org.es-20060815175135-c8390000cdf6561a
        parent: pqm at pqm.ubuntu.com-20060815131500-a6ba92a17caa4aab
        committer: Adeodato Simó <dato at net.com.org.es>
        branch nick: registry_class
        timestamp: Tue 2006-08-15 19:57:45 +0200
        message:
          [merge] bzr.dev 1924
        ------------------------------------------------------------
        merged: dato at net.com.org.es-20060815175135-c8390000cdf6561a
        parent: dato at net.com.org.es-20060815020435-5972a9c8ad16b7de
        committer: Adeodato Simó <dato at net.com.org.es>
        branch nick: registry_class
        timestamp: Tue 2006-08-15 19:51:35 +0200
        message:
          Kill fallback_key parameter in Registry.get(), as discussed with John.
          
          This frees up the base class from unneeded complexity, and a subclass
          can implement that feature should it ever be needed (there are no known
          use cases at the moment).
        ------------------------------------------------------------
        merged: dato at net.com.org.es-20060815020435-5972a9c8ad16b7de
        parent: dato at net.com.org.es-20060815020051-0571fa7ebc3fa4ae
        committer: Adeodato Simó <dato at net.com.org.es>
        branch nick: registry_class
        timestamp: Tue 2006-08-15 04:04:35 +0200
        message:
          Improve description of :param key: in Registry.get().
        ------------------------------------------------------------
        merged: dato at net.com.org.es-20060815020051-0571fa7ebc3fa4ae
        parent: dato at net.com.org.es-20060815015006-93a80d808b0ae0a9
        committer: Adeodato Simó <dato at net.com.org.es>
        branch nick: registry_class
        timestamp: Tue 2006-08-15 04:00:51 +0200
        message:
          Make :param key: in Registry.get() default to None, instead of _marker,
          as suggested by John Arbash Meinel.
        ------------------------------------------------------------
        merged: dato at net.com.org.es-20060815015006-93a80d808b0ae0a9
        parent: dato at net.com.org.es-20060810214727-155eb44860689725
        committer: Adeodato Simó <dato at net.com.org.es>
        branch nick: registry_class
        timestamp: Tue 2006-08-15 03:50:06 +0200
        message:
          Rename default_key in Registry.get() to fallback_key.
        ------------------------------------------------------------
        merged: dato at net.com.org.es-20060810214727-155eb44860689725
        parent: dato at net.com.org.es-20060810194614-4033e490fa06840e
        committer: Adeodato Simó <dato at net.com.org.es>
        branch nick: registry_class
        timestamp: Thu 2006-08-10 23:47:27 +0200
        message:
          Morph John's LazyFactory into a generalized Registry class, and
          implement LazyImportRegistry as a subclass.
        ------------------------------------------------------------
        merged: dato at net.com.org.es-20060810194614-4033e490fa06840e
        parent: pqm at pqm.ubuntu.com-20060810061423-3ae5999a70b60211
        parent: john at arbash-meinel.com-20060809213743-677b61b84ed524dc
        committer: Adeodato Simó <dato at net.com.org.es>
        branch nick: registry_factory
        timestamp: Thu 2006-08-10 21:46:14 +0200
        message:
          [merge] jam's lazy-factory
    ------------------------------------------------------------
    merged: john at arbash-meinel.com-20060901175610-45ac83a70f7f6794
    parent: john at arbash-meinel.com-20060809213743-677b61b84ed524dc
    parent: pqm at pqm.ubuntu.com-20060901173735-543e9acad03760d1
    committer: John Arbash Meinel <john at arbash-meinel.com>
    branch nick: registry
    timestamp: Fri 2006-09-01 12:56:10 -0500
    message:
      [merge] bzr.dev 1981
    ------------------------------------------------------------
    merged: john at arbash-meinel.com-20060809213743-677b61b84ed524dc
    parent: pqm at pqm.ubuntu.com-20060809170522-28c918e7d93365fe
    committer: John Arbash Meinel <john at arbash-meinel.com>
    branch nick: lazy-factory
    timestamp: Wed 2006-08-09 16:37:43 -0500
    message:
      Creating a factory that can load modules on demand.



More information about the bazaar-commits mailing list