+def _getResources(id):
+ """Return a list of resources underneath given id.
+
+ This is to generalize querying of version resources lists.
+
+ @return: a list of resources names.
+
+ """
+ r_pattern = re.compile('^R_%s_([a-zA-Z0-9]+)$' % id)
+
+ rlist = []
+ for handler in CONNECTOR.values():
+ m = r_pattern.match(handler.__name__)
+ if m:
+ name = m.group(1)
+ rlist.append(name)
+
+ return rlist