conga/luci Makefile load_site.py homebase/inde ...
CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2006-06-30 17:45:20
Modified files:
luci : Makefile load_site.py
luci/homebase : index_html
Log message:
fix importing and exporting of page templates/css/js/imgs
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/Makefile.diff?cvsroot=cluster&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/load_site.py.diff?cvsroot=cluster&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/homebase/index_html.diff?cvsroot=cluster&r1=1.8&r2=1.9
luci/Makefile +23 -6
@@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.6 2006/06/30 17:00:02 rmccabe Exp $ +# $Id: Makefile,v 1.7 2006/06/30 17:45:20 rmccabe Exp $ all: luci
@@ -62,19 +62,36 @@ ZOPEFTP=localhost:8021 ZOPEHTTP=http://localhost:25639/ ZOPEDIRS=cluster storage homebase +HBDIR=homebase +CLUSTERDIR=cluster +STORAGEDIR=storage all_old: tar tar: -export_pts: - @./make_tools/load_site.py $(ZOPEHTTP)/$(PLONEINSTANCE)/ $(PT_DIR)/* +# import page local page templates to the Luci server -import_pts: +import_storage: + @find $(STORAGEDIR) -follow -maxdepth 1 -type f -print0 | xargs -0 ./load_site.py http://localhost:25639/luci/storage/ + +import_cluster: + @find $(CLUSTERDIR) -follow -maxdepth 1 -type f -print0 | xargs -0 ./load_site.py http://localhost:25639/luci/cluster/ + +import_homebase: + @find $(HBDIR) -follow -maxdepth 1 -type f -print0 | xargs -0 ./load_site.py http://localhost:25639/luci/homebase/ + +import_pts: import_storage import_cluster import_homebase + +pt_dir: + @mkdir pts >& /dev/null + +# export page templates from the Luci server +export_pts: pt_dir @pwd=`pwd` ; cd $(PT_DIR) && \ - ( for i in $(ZOPEDIRS) ; do wget -r -nH --cut-dirs=1 "ftp://$(ZOPEUSER):$(ZOPEPASS)@$(ZOPEFTP)/$(PLONEINSTANCE)/$$i/*" ; done) ; cd $$pwd + ( for i in $(ZOPEDIRS) ; do wget -q -r -nH --cut-dirs=1 "ftp://$(ZOPEUSER):$(ZOPEPASS)@$(ZOPEFTP)/$(PLONEINSTANCE)/$$i/*" ; done) ; cd $$pwd pack: - @./make_tools/pack.py $(ZOPEINSTANCE)/var/Data.fs + @./pack.py $(ZOPEINSTANCE)/var/Data.fs cert:
luci/load_site.py +4 -1
@@ -1,5 +1,5 @@ #!/usr/bin/python -# $Id: load_site.py,v 1.6 2006/06/19 19:31:08 rmccabe Exp $ +# $Id: load_site.py,v 1.7 2006/06/30 17:45:20 rmccabe Exp $ ############################################################################## #
@@ -135,6 +135,9 @@ def upload_css(object, f): upload_txt(object, f, t='text/css') +def upload_js(object, f): + upload_txt(object, f, t='text/javascript') + def upload_pt(object, f): dir, name = os.path.split(f)
luci/homebase/index_html +5 -203
227 lines not on this page · raw message