def resource_type_versioned_topic(resource_type, version=None):
 _validate_resource_type(resource_type)
 cls = resources.get_resource_cls(resource_type)
 return (topics.RESOURCE_TOPIC_PATTERN % {'resource_type': resource_type, 'version': (version or cls.VERSION)})

def resource_type_versioned_topic ( resource_type , version = None ) : _validate_resource_type ( resource_type ) cls = resources . get_resource_cls ( resource_type ) return ( topics . RESOURCE_TOPIC_PATTERN % { 'resource_type' : resource_type , 'version' : ( version or cls . VERSION ) } )
return the topic for a resource type .