imip-agent

Annotated docs/tools/profile_prefs.sh

1122:2003934ef901
2016-04-19 Paul Boddie Support replies from attendees that refer to specific recurrences before the organiser does so, thus allowing attendees to selectively accept and decline recurrences. Allowed the test handler to refer to recurrences that have not been explicitly separated from their parent objects. Added a docstring for the Object initialiser as a reminder of how to use it. freebusy-collections
paul@999 1
#!/bin/sh
paul@999 2
paul@999 3
DIRNAME=`dirname $0`
paul@999 4
paul@999 5
BASEDIR="$DIRNAME/../.."
paul@999 6
PROFILE="$BASEDIR/imipweb/profile.py"
paul@999 7
paul@999 8
# Match the prefs_table and swap the columns for a table.
paul@999 9
paul@999 10
echo "|| '''Label''' || '''Setting''' ||"
paul@999 11
paul@999 12
  grep '^ \+("' "$PROFILE" \
paul@1008 13
| sed 's/^ \+("\(.*\)".*, \+_("\(.*\)")),$/|| \2 || [[..\/Preferences#\1|\1]] ||/'
paul@999 14
paul@999 15
# Convert    from...                    to...
paul@1008 16
#            ("setting" ,   _("label")),
paul@999 17
#                                       || label || [[../Preferences#setting|setting]] ||