Commit 11a1a940 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[common] Add getter to Selector to know whether an asset can have versions

Currenly, experiments do not.
parent c07e9de7
......@@ -199,6 +199,11 @@ class Selector(object):
return asset_type in self.__forkables
def has_versions(self, asset_type):
"""Returns whether the given asset type can have versions"""
return asset_type in self.__versionables
def fork(self, asset_type, src, dst):
"""Registers that object ``dst`` is a fork of object ``src``"""
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment