<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>unyaunya</author_name>
  <author_url>https://blog.hatena.ne.jp/unyaunya/</author_url>
  <blog_title>unyaunyaの日記</blog_title>
  <blog_url>https://unyaunya.hatenadiary.org/</blog_url>
  <categories>
    <anon>Plone</anon>
  </categories>
  <description>Ploneで作成したコンテンツのshort name(=id属性)は、デフォルトでは、コンテンツ作成時にTitle属性から自動的に作られる(詳しくは、Normalizing ids を参照)。通常はこれで問題ないが、id属性はURLの一部となるので、コンテンツに設定したフィールドの値と関連付けたいことがある。 manage_afterAddメソッドを使ったり、いろいろと方法があるようだが、今のところ最も簡単そうなのは、カスタムコンテンツタイプにpost_validateメソッドを追加する、次のやり方だと思う。 class MyContent(BaseContent): implements(I…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Funyaunya.hatenadiary.org%2Fentry%2F20130722%2Fp2&quot; title=&quot; idの自動設定 - unyaunyaの日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-07-22 00:00:01</published>
  <title> idの自動設定</title>
  <type>rich</type>
  <url>https://unyaunya.hatenadiary.org/entry/20130722/p2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
