"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "barbican/tasks/resources.py" between
barbican-11.0.0.tar.gz and barbican-12.0.0.tar.gz

About: OpenStack Barbican is the OpenStack Key Manager service. It provides secure storage, provisioning and management of secret data.
The "Wallaby" series (latest release).

resources.py  (barbican-11.0.0):resources.py  (barbican-12.0.0)
skipping to change at line 21 skipping to change at line 21
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied. # implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
""" """
Task resources for the Barbican API. Task resources for the Barbican API.
""" """
import abc import abc
import six
from barbican import api from barbican import api
from barbican.common import utils from barbican.common import utils
from barbican import i18n as u from barbican import i18n as u
from barbican.model import models from barbican.model import models
from barbican.model import repositories as rep from barbican.model import repositories as rep
from barbican.plugin import resources as plugin from barbican.plugin import resources as plugin
from barbican.tasks import certificate_resources as cert from barbican.tasks import certificate_resources as cert
from barbican.tasks import common from barbican.tasks import common
LOG = utils.getLogger(__name__) LOG = utils.getLogger(__name__)
@six.add_metaclass(abc.ABCMeta) class BaseTask(object, metaclass=abc.ABCMeta):
class BaseTask(object):
"""Base asynchronous task.""" """Base asynchronous task."""
@abc.abstractmethod @abc.abstractmethod
def get_name(self): def get_name(self):
"""Localized task name """Localized task name
A hook method to return a short localized name for this task. A hook method to return a short localized name for this task.
The returned name in the form 'u.('Verb Noun')'. For example: The returned name in the form 'u.('Verb Noun')'. For example:
u._('Create Secret') u._('Create Secret')
""" """
 End of changes. 2 change blocks. 
4 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)