~chiawen-ho/sahana-eden/trunk

« back to all changes in this revision

Viewing changes to static/scripts/tools/build.sahana.py

  • Committer: Fran Boon
  • Date: 2011-02-15 13:34:41 UTC
  • Revision ID: fran@aidiq.com-20110215133441-fazvx8c1p834rxec
Fix broken CSS

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
    file(outputFilename, "w").write(_output)
82
82
    return
83
83
 
84
 
mfbase = "../../mfbase"
85
 
 
86
84
def dojs(dogis = False):
87
85
    """ Minifies the js """
88
86
    # Define which files we want to include
89
87
    # also need to amend sahana.js.cfg
90
88
    configDictCore = {
91
 
        "web2py":                       "..",
92
 
        "T2":                           "..",
93
 
        "S3":                           ".."
 
89
        "web2py":           "..",
 
90
        "T2":               "..",
 
91
        "S3":               ".."
94
92
    }
95
93
 
96
94
    configFilename = "sahana.js.cfg"
128
126
 
129
127
        # also need to amend sahana.js.gis.cfg
130
128
        configDictGIS = {
131
 
            "gis":                          ".."
 
129
            "gis":                      ".."
132
130
        }
133
131
        configDictOpenLayers = {
134
132
            "OpenLayers.js":            "../gis/openlayers/lib",
247
245
    """ Compresses the  CSS files """
248
246
    listCSS = []
249
247
    
250
 
    f = open("sahana.css.cfg", 'r')
 
248
    f = open("sahana.css.cfg", "r")
251
249
    files = f.readlines()
252
250
    f.close()    
253
251
    for file in files[:-1]: