Beispiel #1
0
    def _substituteAttach (self, paramText):
        attachPath = Attachment (self._page).getAttachPath (True)
        if attachPath.endswith (u'/') or attachPath.endswith (u'\\'):
            attachPath = attachPath[:-1]

        # Substitute %attach%
        result = paramText.replace (commandparams.MACROS_ATTACH, attachPath)

        # Substitute Attach:
        result = self._substituteAttachWiki (result)

        return result