ソースを参照

added requirements

version-14
Rushabh Mehta 12年前
コミット
ffae2a5d7a
2個のファイルの変更23行の追加9行の削除
  1. +16
    -0
      requirements.txt
  2. +7
    -9
      website/doctype/website_settings/make_web_include_files.py

+ 16
- 0
requirements.txt ファイルの表示

@@ -0,0 +1,16 @@
Jinja2==2.7.1
MarkupSafe==0.18
MySQL-python==1.2.4
chardet==2.1.1
dropbox==1.6
google-api-python-client==1.2
httplib2==0.8
markdown2==2.1.0
mysql-utilities==1.3.5
pygeoip==0.2.7
python-dateutil==2.1
python-memcached==1.53
pytz==2013b
requests==1.2.3
six==1.4.0
termcolor==1.1.0

+ 7
- 9
website/doctype/website_settings/make_web_include_files.py ファイルの表示

@@ -6,24 +6,22 @@ import webnotes

def make():
from webnotes.webutils import get_home_page
from webnotes.utils import get_path

if not webnotes.conn:
webnotes.connect()
home_page = get_home_page()

fname = 'js/wn-web.js'
if os.path.basename(os.path.abspath('.'))!='public':
fname = os.path.join('public', fname)
if not os.path.exists(get_path("public", "js")):
os.makedirs(get_path("public", "js"))
fname = os.path.join(get_path("public", "js", "wn-web.js"))
with open(fname, 'w') as f:
f.write(get_web_script())

fname = 'css/wn-web.css'
if os.path.basename(os.path.abspath('.'))!='public':
fname = os.path.join('public', fname)

# style - wn.css
if not os.path.exists(get_path("public", "css")):
os.makedirs(get_path("public", "css"))
fname = os.path.join(get_path("public", "css", "wn-web.css"))
with open(fname, 'w') as f:
f.write(get_web_style())



読み込み中…
キャンセル
保存