Ejemplo n.º 1
0
 def _TakeChildFromElementTree(self, child, element_tree):
   if child.tag == '{%s}%s' % (APPS_NAMESPACE, 'emailList'):
     self.email_list = _EmailListFromElementTree(child)
     element_tree.remove(child)
   elif child.tag == '{%s}%s' % (gdata.GDATA_NAMESPACE, 'feedLink'):
     self.feed_link.append(gdata._FeedLinkFromElementTree(child))
     element_tree.remove(child)
   else:
     gdata.GDataEntry._TakeChildFromElementTree(self, child, element_tree)
Ejemplo n.º 2
0
 def _TakeChildFromElementTree(self, child, element_tree):
   if child.tag == '{%s}%s' % (APPS_NAMESPACE, 'login'):
     self.login = _LoginFromElementTree(child)
     element_tree.remove(child)
   elif child.tag == '{%s}%s' % (APPS_NAMESPACE, 'name'):
     self.name = _NameFromElementTree(child)
     element_tree.remove(child)
   elif child.tag == '{%s}%s' % (APPS_NAMESPACE, 'quota'):
     self.quota = _QuotaFromElementTree(child)
     element_tree.remove(child)
   elif child.tag == '{%s}%s' % (gdata.GDATA_NAMESPACE, 'feedLink'):
     self.feed_link.append(gdata._FeedLinkFromElementTree(child))
     element_tree.remove(child)
   elif child.tag == '{%s}%s' % (gdata.GDATA_NAMESPACE, 'who'):
     self.who = _WhoFromElementTree(child)
     element_tree.remove(child)
   else:
     gdata.GDataEntry._TakeChildFromElementTree(self, child, element_tree)
Ejemplo n.º 3
0
 def _TakeChildFromElementTree(self, child, element_tree):
   if child.tag == '{%s}%s' % (gdata.GDATA_NAMESPACE, 'feedLink'):
     self.feed_link = gdata._FeedLinkFromElementTree(child)
     element_tree.remove(child)
   else:
     atom.AtomBase._TakeChildFromElementTree(self, child, element_tree)