class dbapi:
+ _category_re = re.compile(r'^[+\w][-\.+\w]*$')
def __init__(self):
pass
return fakedbapi.cpv_all(self)
class vardbapi(dbapi):
- _category_re = re.compile(r'^[+\w][-\.+\w]*$')
def __init__(self, root, categories=None, settings=None, vartree=None):
self.root = root[:]
#cache for category directory mtimes
self.xcache["match-all"][mycp] = cachelist
return cachelist[:]
mysplit = mycp.split("/")
- invalid_category = mysplit[0] not in self._categories
+ if self.mysettings.profile_path:
+ invalid_category = mysplit[0] not in self._categories
+ else:
+ invalid_category = not self._category_re.match(mysplit[0])
d={}
if mytree:
mytrees = [mytree]