예제 #1
0
    def deserialize(self, accountDirectory, accountDom):
        accountDom.setNamespaceMap(self.nssMap)
        account = ZBlogAccount(accountDirectory)
        account.setId(accountDom.documentElement.getAttribute(u"account-id")) #$NON-NLS-1$

        self._deserializeAttributes(accountDom.documentElement, account)
        self._deserializeApiInfo(accountDom, account)
        self._deserializeBlogs(accountDom, account)

        return account
예제 #2
0
    def deserialize(self, accountDirectory, accountDom):
        accountDom.setNamespaceMap(self.nssMap)
        account = ZBlogAccount(accountDirectory)
        account.setId(accountDom.documentElement.getAttribute(
            u"account-id"))  #$NON-NLS-1$

        self._deserializeAttributes(accountDom.documentElement, account)
        self._deserializeApiInfo(accountDom, account)
        self._deserializeBlogs(accountDom, account)

        return account