diff --git a/beat/backend/python/library.py b/beat/backend/python/library.py index 8eac3ea7f8830cbc0e30a9685ae7afdb4826b605..870f9ffb2dc9ff39f3735e0b6a8dfae9e3e38eda 100644 --- a/beat/backend/python/library.py +++ b/beat/backend/python/library.py @@ -26,17 +26,22 @@ ############################################################################### -"""Validation for libraries""" +""" +======= +library +======= + +Validation for libraries +""" import os -import six import simplejson from . import loader from . import utils -#---------------------------------------------------------- +# ---------------------------------------------------------- class Storage(utils.CodeStorage): @@ -66,7 +71,7 @@ class Storage(utils.CodeStorage): super(Storage, self).__init__(path, language) -#---------------------------------------------------------- +# ---------------------------------------------------------- class Library(object): @@ -201,8 +206,8 @@ class Library(object): @property def name(self): - """Returns the name of this object - """ + """Returns the name of this object""" + return self._name or '__unnamed_library__'