grep '"bg_datamod"' survey.rst | sed -e 's/.*name="bg_datamod" value="//' \
-e 's," />,: ",' -e 's,<br />$$,",' -e 's/ "$$/ "Other"/' > $@
+# Generic rule to extract from drop-down selections
+%-dd-list.txt: survey.rst
+ @echo "I: Extracting fields for $* into $@"
+ @sed -n -e '/bg_$*/,/\/tr/p' survey.rst \
+ | sed -ne '/option/s,.*value="\([^"]*\)" *label=\("[^"]*"\)>.*,\1: \2,gp' >| $@
+
upload: index.html results.html results_snippet.html jquery.form.js survey.css surveycollector.cgi
rsync -rvzlhp --delete \
- --exclude='*.txt' --exclude=surveydata --exclude='*.cgi' --exclude=figures \
+ --exclude='*.txt' --exclude=data --exclude='*.cgi' --exclude=figures \
--chmod=Dg+s,g+rw * neurodebian@www.pymvpa.org:/home/neurodebian/survey/
scp surveycollector.cgi neurodebian@www.pymvpa.org:/srv/neuro.debian.net/cgi-bin/
def get_nice_name(self, id):
srcs = [DB.os_dict, os_cat_names, DB.sw_dict, sw_categories,
- resource_categories, DB.datamod_dict, DB.position_dict,
- DB.employer_dict]
- resource_categories, time_categories, DB.datamod_dict]
++ resource_categories, time_categories,
++ DB.datamod_dict, DB.position_dict, DB.employer_dict]
for src in srcs:
if id in src:
return src[id]