virts = settings.getvirtuals("/")
virts_p = settings.get_virts_p("/")
if len(mysplit)==1:
- if mydb and type(mydb)==types.InstanceType:
+ if hasattr(mydb, "cp_list"):
for x in settings.categories:
if mydb.cp_list(x+"/"+mykey,use_cache=use_cache):
return x+"/"+mykey
return(virts_p[mykey][0])
return "null/"+mykey
elif mydb:
- if type(mydb)==types.InstanceType:
+ if hasattr(mydb, "cp_list"):
if (not mydb.cp_list(mykey,use_cache=use_cache)) and virts and virts.has_key(mykey):
return virts[mykey][0]
return mykey