Exemple #1
0
 def __init__(self, attrs={}):
     ZAtomBlog.__init__(self)
     # copy attributes
     for (n, v) in attrs.iteritems():
         self.setAttribute(n, v,
                           IZBlogPubAttrNamespaces.ATOM_ATTR_NAMESPACE)
     id = self.getAttribute(ZAtomBlog.POST_LINK,
                            IZBlogPubAttrNamespaces.ATOM_ATTR_NAMESPACE)
     name = self.getAttribute(ZAtomBlog.POST_LINK,
                              IZBlogPubAttrNamespaces.ATOM_ATTR_NAMESPACE)
     if self.hasAttribute(ZAtomBlog.ID,
                          IZBlogPubAttrNamespaces.ATOM_ATTR_NAMESPACE):
         id = self.getAttribute(ZAtomBlog.ID,
                                IZBlogPubAttrNamespaces.ATOM_ATTR_NAMESPACE)
     if self.hasAttribute(ZAtomBlog.TITLE,
                          IZBlogPubAttrNamespaces.ATOM_ATTR_NAMESPACE):
         name = self.getAttribute(
             ZAtomBlog.TITLE, IZBlogPubAttrNamespaces.ATOM_ATTR_NAMESPACE)
     url = self.getAttribute(ZAtomBlog.ALT_LINK,
                             IZBlogPubAttrNamespaces.ATOM_ATTR_NAMESPACE)
     if not url:
         url = self.getAttribute(
             ZAtomBlog.FEED_LINK,
             IZBlogPubAttrNamespaces.ATOM_ATTR_NAMESPACE)
     self._setId(id)
     self._setName(name)
     self._setUrl(url)
Exemple #2
0
 def __init__(self, attrs = {}):
     ZAtomBlog.__init__(self)
     # copy attributes
     for (n, v) in attrs.iteritems():
         self.setAttribute(n,v, IZBlogPubAttrNamespaces.ATOM_ATTR_NAMESPACE)
     id = self.getAttribute(ZAtomBlog.POST_LINK, IZBlogPubAttrNamespaces.ATOM_ATTR_NAMESPACE)
     name =  self.getAttribute(ZAtomBlog.POST_LINK, IZBlogPubAttrNamespaces.ATOM_ATTR_NAMESPACE)
     if self.hasAttribute(ZAtomBlog.ID, IZBlogPubAttrNamespaces.ATOM_ATTR_NAMESPACE):
         id =  self.getAttribute(ZAtomBlog.ID, IZBlogPubAttrNamespaces.ATOM_ATTR_NAMESPACE)
     if self.hasAttribute(ZAtomBlog.TITLE, IZBlogPubAttrNamespaces.ATOM_ATTR_NAMESPACE):
         name = self.getAttribute(ZAtomBlog.TITLE, IZBlogPubAttrNamespaces.ATOM_ATTR_NAMESPACE)
     url = self.getAttribute(ZAtomBlog.ALT_LINK, IZBlogPubAttrNamespaces.ATOM_ATTR_NAMESPACE)
     if not url:
         url = self.getAttribute(ZAtomBlog.FEED_LINK, IZBlogPubAttrNamespaces.ATOM_ATTR_NAMESPACE)
     self._setId(id)
     self._setName(name)
     self._setUrl(url)
Exemple #3
0
 def __init__(self, nodeSet=None):
     ZAtomBlog.__init__(self)
     self._extractBlogInfo(nodeSet)
Exemple #4
0
 def __init__(self, nodeSet=None):
     ZAtomBlog.__init__(self)
     self._extractBlogInfo(nodeSet)