'Validate required fields for extensions.
Raises an attribute error if the attr is not defined'

def is_valid(self):

    for attr in ('name', 'alias', 'updated', 'namespace'):
        if (getattr(self, attr) is None):
            raise AttributeError(('%s    is    None,    needs    to    be    defined' % attr))
    return True
