On Sun, Jun 20, 2010 at 08:15:29PM -0400, Chris Ball wrote:
> self.storage = storage.get_storage(bug_root)
> self.bd = bugdir.BugDir(self.storage)

You were close ;)
  self.bd = libbe.bugdir.BugDir(self.get_storage(bug_root),
                                from_storage=True)
I do this in libbe.command.base.StorageCallbacks.get_bugdir() in case
any of the commands need a BugDir instance (as many of them do).

From the BugDir docstring:
  ...
  from_storage : bool, optional
    If `True`, attempt to load from storage.  Otherwise,
    setup in memory, saving to `storage` if it is not `None`.
  ...

-- 
This email may be signed or encrypted with GPG (http://www.gnupg.org).
The GPG signature (if present) will be attached as 'signature.asc'.
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy

My public key is at http://www.physics.drexel.edu/~wking/pubkey.txt

Attachment: pgpxeJG7QvejB.pgp
Description: PGP signature

_______________________________________________
Be-devel mailing list
[email protected]
http://void.printf.net/cgi-bin/mailman/listinfo/be-devel

Reply via email to