コード例 #1
0
ファイル: blogpublisher.py プロジェクト: Tidosho/zoundryraven
 def createRavenCategoryByName(self, zblogId, categoryName):
     category = ZCategory()
     bogQID = ZQualifiedPublisherId( zblogId)
     urn = u"%s,zoundry:blog:%s" % (bogQID.getLocalId(), bogQID.getServerId())  #$NON-NLS-1$
     qid = ZQualifiedPublisherId(localId=urn, serverId=categoryName)
     category.setId( qid.getId() )
     category.setName(categoryName)
     return category
コード例 #2
0
 def createRavenCategoryByName(self, zblogId, categoryName):
     category = ZCategory()
     bogQID = ZQualifiedPublisherId(zblogId)
     urn = u"%s,zoundry:blog:%s" % (
         bogQID.getLocalId(), bogQID.getServerId())  #$NON-NLS-1$
     qid = ZQualifiedPublisherId(localId=urn, serverId=categoryName)
     category.setId(qid.getId())
     category.setName(categoryName)
     return category
コード例 #3
0
ファイル: blogpublisher.py プロジェクト: Tidosho/zoundryraven
 def _createEntryQId(self, zblogId, serverEntryId):
     serverBlogId = self._getServerId(zblogId)
     urn = u"urn:zoundry:acc:%s,zoundry:blog:%s" % (self.getAccountId(), serverBlogId)  #$NON-NLS-1$
     qid = ZQualifiedPublisherId(localId = urn, serverId = serverEntryId)
     return qid.getId()
コード例 #4
0
ファイル: blogpublisher.py プロジェクト: Tidosho/zoundryraven
 def _createBlogQId(self, serverBlogId):
     urn = u"urn:zoundry:acc:%s" % self.getAccountId()  #$NON-NLS-1$
     qid = ZQualifiedPublisherId(localId = urn, serverId = serverBlogId)
     return qid.getId()
コード例 #5
0
ファイル: blogpublisher.py プロジェクト: Tidosho/zoundryraven
 def _getServerId(self, qualifiedId):
     # returns the serverId part given qid "{localIdNS}serverId"
     qid = ZQualifiedPublisherId(qualifiedId)
     return qid.getServerId()
コード例 #6
0
 def _createEntryQId(self, zblogId, serverEntryId):
     serverBlogId = self._getServerId(zblogId)
     urn = u"urn:zoundry:acc:%s,zoundry:blog:%s" % (
         self.getAccountId(), serverBlogId)  #$NON-NLS-1$
     qid = ZQualifiedPublisherId(localId=urn, serverId=serverEntryId)
     return qid.getId()
コード例 #7
0
 def _createBlogQId(self, serverBlogId):
     urn = u"urn:zoundry:acc:%s" % self.getAccountId()  #$NON-NLS-1$
     qid = ZQualifiedPublisherId(localId=urn, serverId=serverBlogId)
     return qid.getId()
コード例 #8
0
 def _getServerId(self, qualifiedId):
     # returns the serverId part given qid "{localIdNS}serverId"
     qid = ZQualifiedPublisherId(qualifiedId)
     return qid.getServerId()