Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update in cms2 patch: delete html files

  • Loading branch information...
commit af1f437fad98ae627be05542c2c0cb27df7ab92f 1 parent 3d53e86
@anandpdoshi anandpdoshi authored
Showing with 11 additions and 1 deletion.
  1. +10 −0 erpnext/patches/june_2012/cms2.py
  2. +1 −1  install_erpnext.py
View
10 erpnext/patches/june_2012/cms2.py
@@ -42,6 +42,16 @@ def cleanup():
webnotes.model.delete_doc('Page', 'blog')
webnotes.model.delete_doc('Page', 'about')
+ import os
+ import conf
+ # delete other html files
+ exception_list = ['app.html', 'unsupported.html', 'blank.html']
+ conf_dir = os.path.dirname(os.path.abspath(conf.__file__))
+ public_path = os.path.join(conf_dir, 'public')
+ for f in os.listdir(public_path):
+ if f.endswith('.html') and f not in exception_list:
+ os.remove(os.path.join(public_path, f))
+
def save_pages():
"""save all web pages, blogs to create content"""
query_map = {
View
2  install_erpnext.py
@@ -127,7 +127,7 @@
<Directory {path to erpnext's folder}/public/>
# directory specific options
- Options +Indexes +FollowSymLinks +ExecCGI
+ Options -Indexes +FollowSymLinks +ExecCGI
# directory's index file
DirectoryIndex web.py
Please sign in to comment.
Something went wrong with that request. Please try again.