Beispiel #1
0
    def __init__(self, version_id, base):
        compatible_versions = set([CURRENT_API_VERSION])
        if version_id not in compatible_versions:
            raise api_errors.VersionException(CURRENT_API_VERSION, version_id)

        self._depot = base._depot
        self._pub = base._pub
        self._request = base._request
Beispiel #2
0
 def __init__(self, version_id, base):
         compatible_versions = set([3, 4, 5])
         if version_id not in compatible_versions:
                 raise api_errors.VersionException(CURRENT_API_VERSION,
                     version_id)