'Publicize this extension version.
Update last_updated and reviewed fields at the same time.'

def publish(self):

    if self.extension.is_blocked():
        raise BlockedExtensionError
    now = datetime.utcnow()
    size = self.sign_file()
    self.extension.update(last_updated=now)
    self.update(size=size, status=STATUS_PUBLIC, reviewed=now)
