missing profile.
svn path=/main/trunk/; revision=8990
class dbapi(object):
+ _category_re = re.compile(r'^[+\w][-\.+\w]*$')
def __init__(self):
pass
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]
mapfile.close()
class vardbapi(dbapi):
- _category_re = re.compile(r'^[+\w][-\.+\w]*$')
def __init__(self, root, categories=None, settings=None, vartree=None):
self.root = root[:]