Kaynağa Gözat

added requirements

version-14
Rushabh Mehta 12 yıl önce
ebeveyn
işleme
ffae2a5d7a
2 değiştirilmiş dosya ile 23 ekleme ve 9 silme
  1. +16
    -0
      requirements.txt
  2. +7
    -9
      website/doctype/website_settings/make_web_include_files.py

+ 16
- 0
requirements.txt Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

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


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


if not webnotes.conn: if not webnotes.conn:
webnotes.connect() webnotes.connect()
home_page = get_home_page() 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: with open(fname, 'w') as f:
f.write(get_web_script()) 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: with open(fname, 'w') as f:
f.write(get_web_style()) f.write(get_web_style())




Yükleniyor…
İptal
Kaydet