def copytext_js(): """ Render COPY to copy.js. """ from static import _copy_js with _fake_context('/js/copytext.js'): response = _copy_js() with open('www/js/copy.js', 'w') as f: f.write(response.data)
def copy_js(): """ Render copy.js to file. """ from static import _copy_js response = _copy_js() js = response[0] with open('www/js/copy.js', 'w') as f: f.write(js)
def copytext_js(): """ Render COPY to copy.js. """ from static import _copy_js response = _copy_js() js = response[0] with open('www/js/copy.js', 'w') as f: f.write(js)
def copy_js(): """ Render copy.js to file. """ from static import _copy_js response = _copy_js() js = response[0] with open('www/js/copy.js', 'w') as f: f.write(js) # @task # def render_adfa(): import ipdb; ipdb.set_trace();