Fixes in sj
This commit is contained in:
parent
ad4326048a
commit
06daccba61
1 changed files with 12 additions and 0 deletions
12
paramecio/citoplasma/js.py
Normal file
12
paramecio/citoplasma/js.py
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
from paramecio.citoplasma.sessions import get_session
|
||||||
|
from paramecio.citoplasma.i18n import I18n
|
||||||
|
from settings import config
|
||||||
|
|
||||||
|
def make_js_url(file_path, module):
|
||||||
|
|
||||||
|
#/mediajs/<module>/<lang>/<filename:path>
|
||||||
|
s=get_session()
|
||||||
|
|
||||||
|
lang=I18n.get_default_lang()
|
||||||
|
|
||||||
|
return config.base_url+'mediajs/%s/%s/%s' % (module, lang, file_path)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue