import os, re IDPATTERN = re.compile(r'\$\Id[^$]*\$') JSPATTERN = re.compile(r'(?:string:\$\{portal_url\}/([^."]+.js)")|(?:\