aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-04-12 13:54:50 +0000
committerNicolas Vigier <boklm@mageia.org>2013-04-12 13:54:50 +0000
commit6cf1d4304b81442790be9126e9b4e4ff89955905 (patch)
tree0a7c7dd1e49b0fa1a69dea908e439b3556faaf14
parent48c18b7e133b126c77bc6fb8c2880cb8ff7e0925 (diff)
downloadmgapeople-6cf1d4304b81442790be9126e9b4e4ff89955905.tar
mgapeople-6cf1d4304b81442790be9126e9b4e4ff89955905.tar.gz
mgapeople-6cf1d4304b81442790be9126e9b4e4ff89955905.tar.bz2
mgapeople-6cf1d4304b81442790be9126e9b4e4ff89955905.tar.xz
mgapeople-6cf1d4304b81442790be9126e9b4e4ff89955905.zip
Add txt output for userindex
-rw-r--r--mgapeople.conf1
-rw-r--r--tmpl/userindex.txt3
2 files changed, 4 insertions, 0 deletions
diff --git a/mgapeople.conf b/mgapeople.conf
index 1c09027..592df4e 100644
--- a/mgapeople.conf
+++ b/mgapeople.conf
@@ -5,6 +5,7 @@ groupbase: ou=Group,dc=mageia,dc=org
output_dir: /var/www/vhosts/mgapeople.mageia.org
output_format:
- html
+ - txt
tmpl_dir: /usr/share/mgapeople/tmpl
maintdburl: http://pkgsubmit.mageia.org/data/maintdb.txt
sitename: people.mageia.org
diff --git a/tmpl/userindex.txt b/tmpl/userindex.txt
new file mode 100644
index 0000000..54eb705
--- /dev/null
+++ b/tmpl/userindex.txt
@@ -0,0 +1,3 @@
+[% FOREACH user IN users -%]
+[% user.value.uid.0 %]:[% user.value.cn.0 %]
+[% END %]