Author: tmckay
Date: 2013-02-13 18:58:59 +0000 (Wed, 13 Feb 2013)
New Revision: 5701
Modified:
branches/tmckay/sage/python/sage/wallaby/wallabyoperations.py
Log:
Fix nodes_by_tag
Modified: branches/tmckay/sage/python/sage/wallaby/wallabyoperations.py
===================================================================
--- branches/tmckay/sage/python/sage/wallaby/wallabyoperations.py 2013-02-13 18:43:57 UTC
(rev 5700)
+++ branches/tmckay/sage/python/sage/wallaby/wallabyoperations.py 2013-02-13 18:58:59 UTC
(rev 5701)
@@ -609,27 +609,6 @@
t = min
return t
- def _generate_tag_data(self):
- # figure out the tag list and nodes per tag
- groups = self.get_data(WBTypes.GROUPS)
- tags = []
- nodes_by_tag = dict()
- for g in groups:
- if not g.name.startswith("+++") and \
- self._store.isTag(g):
- tags.append(g)
- nodes = g.membership()
- nodes_by_tag[g.name] = []
-
- self._lock.acquire()
- try:
- self._cache[WBTypes.TAGS].data = self._to_dict(tags)
- self._cache[WBTypes.TAGS].reset_remaining(len(tags) == 0)
- self._nodes_by_tag = nodes_by_tag
- finally:
- self._lock.release()
- log.debug("WallabyOperations: %s list updated (%s items)" %
(WBTypes.TAGS, len(tags)))
-
def _set_cache(self, attr, data):
self._lock.acquire()
try:
@@ -701,7 +680,7 @@
if not g.name.startswith("+++") and \
ops._store.isLabel(g):
tags.append(g)
- nodes = [] #g.membership()
+ nodes = g.membership
nodes_by_tag[g.name] = nodes
ops._lock.acquire()
Show replies by date