aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/bugdir.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-12-13 06:19:23 -0500
committerW. Trevor King <wking@drexel.edu>2009-12-13 06:19:23 -0500
commit4d057dab603f42ec40b911dbee6792dcf107bd14 (patch)
tree9a73459aa160e3c96f4893b132543f412ca6e97f /libbe/bugdir.py
parentdff6bd9bf89ca80e2265696a478e540476718c9c (diff)
downloadbugseverywhere-4d057dab603f42ec40b911dbee6792dcf107bd14.tar.gz
Converted libbe.storage.vcs.base to new Storage format.
Diffstat (limited to 'libbe/bugdir.py')
-rw-r--r--libbe/bugdir.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/libbe/bugdir.py b/libbe/bugdir.py
index 5f76d3c..c120482 100644
--- a/libbe/bugdir.py
+++ b/libbe/bugdir.py
@@ -30,7 +30,6 @@ import os.path
import time
import libbe
-import libbe.util.encoding as encoding
import libbe.storage as storage
from libbe.storage.util.properties import Property, doc_property, \
local_property, defaulting_property, checked_property, \
@@ -175,6 +174,8 @@ class BugDir (list, settings_object.SavedSettingsObject):
self.storage = storage
self.id = libbe.util.id.ID(self, 'bugdir')
if from_storage == True:
+ self.uuid = [c for c in self.storage.children()
+ if c != 'version'][0]
self.load_settings()
else:
if uuid == None:
@@ -192,8 +193,7 @@ class BugDir (list, settings_object.SavedSettingsObject):
self.storage.get(self.id.storage('settings'), default='\n')
self.settings = mapfile.parse(settings_mapfile)
self._setup_saved_settings()
- self._setup_user_id(self.user_id)
- self._setup_encoding(self.encoding)
+ #self._setup_user_id(self.user_id)
self._setup_severities(self.severities)
self._setup_status(self.active_status, self.inactive_status)
@@ -219,8 +219,9 @@ class BugDir (list, settings_object.SavedSettingsObject):
happen, so calling this method will just waste time (unless
something else has been messing with your stored files).
"""
- self.storage.add(self.id.storage())
- self.storage.add(self.id.storage('settings'), parent=self.id.storage())
+ self.storage.add(self.id.storage(), directory=True)
+ self.storage.add(self.id.storage('settings'), parent=self.id.storage(),
+ directory=False)
self.save_settings()
for bug in self:
bug.save()
@@ -297,7 +298,6 @@ class BugDir (list, settings_object.SavedSettingsObject):
dbd.storage.writeable = False
added,changed,removed = self.storage.changed_since(revision)
for id in added:
-
pass
for id in removed:
pass