예제 #1
0
    def initConfig(self):
        svnNotifySvnLook = SvnNotifySVNLook(self.svnRepos, self.svnRevision)
        self.svnNotifyConfig = SvnNotifyConfig(self.baseDir)
        svnNotifyLdap = SvnNotifyLDAP(self.svnNotifyConfig.getLdapConfig())

        self.svnAuthor = svnNotifySvnLook.getSvnAuthor()
        self.svnDate = svnNotifySvnLook.getSvnDate()
        self.svnLog = svnNotifySvnLook.getSvnCommitLog(0)
        self.svnLogForSubject = svnNotifySvnLook.getSvnCommitLog(1)
        self.svnDiffList = svnNotifySvnLook.getSvnDiffList()
        self.svnFilesChanged = svnNotifySvnLook.getSvnFilesChanged()
        self.svnRootDir = self.svnFilesChanged['rootdir']
        self.svnAuthorRealName = svnNotifyLdap.getAuthorRealName(
            self.svnAuthor)

        self.svnAddedHtml = ''
        self.svnModifiedHtml = ''
        self.svnDeletedHtml = ''