password-manager/scripts/builder/frontends/deltaBuilder.py

23 lines
619 B
Python
Raw Normal View History

2013-08-30 17:56:53 +02:00
from frontendBuilder import FrontendBuilder
import shutil
class DeltaBuilder(FrontendBuilder):
def name(self):
return "/delta builder"
def projectResourceTypes (self):
return ['js', 'css']
def copyStaticResources (self, targetFolder):
resourcesToCopy = [
{'folder': 'properties', 'source': 'manifest.appcache', 'target': 'manifest.appcache'}
]
for resource in resourcesToCopy:
src = self.absolutePathForSourceFile(resource['folder'], resource['source'])
dst = self.absolutePathForTargetFile(targetFolder, '', resource['target'])
shutil.copy2(src, dst)
2013-08-30 17:56:53 +02:00
def bookmarklet (self):
return ""