1
0
mirror of http://git.whoc.org.uk/git/password-manager.git synced 2024-11-13 08:59:02 +01:00

Fixed build script

Changed the build script in order to replace placeholders even if present multiple times
This commit is contained in:
Clipperz 2013-01-09 11:37:39 +01:00
parent 813c3245ee
commit 5996ee475c

View File

@ -308,13 +308,13 @@ class FrontendBuilder(object):
def replaceTemplatePlaceholders (self, pageTitle, copyright, css, code, jsLoadMode, version, versionType):
result = self.template()
result = result.replace('@page.title@', pageTitle, 1)
result = result.replace('@copyright@', copyright, 1)
result = result.replace('@css@', css, 1)
#result = result.replace('@bookmarklet@', bookmarklet, 1)
result = result.replace('@application.version@', version, 1)
result = result.replace('@application.version.type@', versionType, 1)
result = result.replace('@js_' + jsLoadMode + '@', code, 1)
result = result.replace('@page.title@', pageTitle)
result = result.replace('@copyright@', copyright)
result = result.replace('@css@', css)
#result = result.replace('@bookmarklet@', bookmarklet)
result = result.replace('@application.version@', version)
result = result.replace('@application.version.type@', versionType)
result = result.replace('@js_' + jsLoadMode + '@', code)
result = re.sub('@js_[^@]+@', '', result)