Changes the <meta> description tag.
506917
def set_description(self, description):
        """"""
        self.head.description.attr(content=description)
        return self
285296
def meta_description(meta_description = nil)
      if meta_description
        @__meta_description = meta_description
      else
        @__meta_description ||= ""
      
        # Check if we have AppConfig to use for default
        if defined? AppConfig
          default_meta_description = AppConfig.default_meta_description 
        else
          default_meta_description = ""
        end
      
        # set the default if meta_description is blank
        @__meta_description = default_meta_description if @__meta_description.blank?
      end
      return @__meta_description.to_s.html_safe
    end
1043921
public void setAbstract(final String description) {
        if (description == null && this.description == null) {
            return;
        } else if (description == null) {
            removeChild(this.description);
            this.description = null;
        } else if (this.description == null) {
            this.description = new KeyValueNode<String>(CommonConstants.CS_ABSTRACT_TITLE, description);
            appendChild(this.description, false);
        } else {
            this.description.setValue(description);
        }
    }
726890
private function AddMetaTitlePlacementField()
    {
        $name = 'MetaTitlePlacement';
        $value = $this->archive->GetMetaTitlePlacement() ?: MetaPlacement::Prepend()->Value();
        $this->AddMetaPlacementSelect($name, $value);
    }
18826
def update_title(self, _, info):
        # type: (object, TitleInfo) -> None
        """"""
        with self._lock:
            self._block.meta.set_label(info.title)
1195357
def alter(m_wfid, m_error, m_action, msg, tracker)

      case tracker['msg'].delete('_alter')
        when 'merge' then msg.merge!(tracker['msg'])
        #else ...
      end
    end
103169
def add_meta(self, obj, tags, prompt, verbosity, old_url=None):
        
        for tag in tags:
            keyword = self.trunc(Keyword, prompt, title=tag)
            keyword, created = Keyword.objects.get_or_create_iexact(**keyword)
            obj.keywords.create(keyword=keyword)
            if created and verbosity >= 1:
                print("Imported tag: %s" % keyword)
        if old_url is not None:
            old_path = urlparse(old_url).path
            if not old_path.strip("/"):
                return
            redirect = self.trunc(Redirect, prompt, old_path=old_path)
            redirect['site'] = Site.objects.get_current()
            redirect, created = Redirect.objects.get_or_create(**redirect)
            redirect.new_path = obj.get_absolute_url()
            redirect.save()
            if created and verbosity >= 1:
                print("Created redirect for: %s" % old_url)
815169
protected function setMetas($title = null, $description = null)
    {
        $meta = Config::getInstance()->get('Eureka\Global\Meta');

        if ($title !== null) {
            $meta['title'] = strip_tags($title . ' - ' . $meta['title']);
        }

        if ($description !== null) {
            $meta['description'] = strip_tags($description);
        }

        Config::getInstance()->add('Eureka\Global\Meta', $meta);

        return $this;
    }
782429
def meta_description(request):
    
    try:
        fragments = request._feincms_fragments
    except:
        fragments = {}

    if '_meta_description' in fragments and fragments.get("_meta_description"):
        return fragments.get("_meta_description")
    else:
        # append desc
        site_desc = getattr(settings, 'META_DESCRIPTION', '')

        if site_desc != '':
            return getattr(request.leonardo_page,
                           "meta_description", request.leonardo_page.meta_description) \
                + ' - ' + site_desc

        return getattr(request.leonardo_page,
                       "meta_description", request.leonardo_page.meta_description)
642649
def clear_description(self):
        
        if (self.get_description_metadata().is_read_only() or
                self.get_description_metadata().is_required()):
            raise errors.NoAccess()
        self._my_map['description'] = dict(self._description_default)
590916
def render_description_meta_tag(context, is_og=False):
    
    request = context['request']
    content = ''

    # Try to get the description from the context object (e.g. DetailViews).
    if context.get('object'):
        try:
            content = context['object'].get_meta_description()
        except AttributeError:
            pass
    elif context.get('meta_tagger'):
        content = context['meta_tagger'].get('description')

    if not content:
        try:
            # Try for the meta description of the cms page.
            content = request.current_page.get_meta_description()
        except (AttributeError, NoReverseMatch):
            pass

    if content:
        return mark_safe('<meta {attr_name}="{tag_name}" content="{content}">'.format(
            attr_name='name' if not is_og else 'property',
            tag_name='description' if not is_og else 'og:description',
            content=content
        ))
    else:
        return ''
462203
private function AddMetaDescriptionPlacementField()
    {
        $name = 'MetaDescriptionPlacement';
        $value = $this->archive->GetMetaDescriptionPlacement() ?: MetaPlacement::Prepend()->Value();
        $this->AddMetaPlacementSelect($name, $value);
    }
973705
def save(self, *args, **kwargs):
        
        if self.gen_description:
            self.description = strip_tags(self.description_from_content())
        super(MetaData, self).save(*args, **kwargs)
91174
public function description($default = null)
  {
    if (!$k = $this->getDescription()) {
      $d = $default ?: $this->getDefaultDescription();
      $k = is_null($d) ? $this->getTitle() : $d;
    }

    return new Tag('meta', null, array('name' => 'description', 'content' => $k), true);
  }
958988
def from_meta(cls, meta, meta_all=None):
        """"""
        if len(meta.args) == 2:
            name = meta.args[1]
            meta_type = None
            for x in meta_all:
                if x.args[1] == name and x.args[0] == 'type':
                    meta_type = x.description
                    break

            return cls(args=meta.args, description=meta.description, type=meta_type)
        else:
            return cls(args=meta.args, description=meta.description)
1370607
public function setMetaData($name, $content, $http_equiv = false)
	{
		$name = strtolower($name);

        if($name == 'description') {
			$this->setDescription($content);
		} else {

        	if ($http_equiv == true) {
				$this->_metaTags['http-equiv'][$name] = $content;
			} else {
				$this->_metaTags['standard'][$name] = $content;
			}
		}
	}
1234356
public function editDescription(Description $description)
    {
        $this->guardNotDeleted();

        if ($description !== $this->description) {
            $this->apply(new DescriptionEdited($this->id, $description));
        }
    }