User Preferences

User preferences are set by user actions while running tmda-cgi. Many of these parameters may be set on tmda-cgi's theme page (Settings menu). These settings override any settings in both the defaults.ini and theme.ini files.

User preferences are saved in a file located at CGI_SETTINGS.

There is no reason to edit this file by hand, although you may delete the file to return to all default preferences. No error will be reported if this file does not exist.

tmda-cgi must have permission to create/update this file. If the CGI does not have rights to create files in the directory, then you will want to manually create a blank file (with touch) and chown, chgrp, and/or chmod it so that CGI may write updates to it.

Overriding Defaults

Overriding Defaults

Most user preferences may be changed from within the tmda-cgi interface, a few of them are not, intentionally. However, you may override these settings with a tmda-cgi program called override.py. The syntax is as follows:

./override.py <SettingsFile> <Section:Setting> <Value>

Typically, you would use this program to grant a user privileges other than the defaults. For example, suppose you wanted only user karen to be able to change her templates. In defaults.ini you would set:

[NoOverride]
MayEditTemplates = No

to disallow users from modifying their templates, and then at the shell you would type:

./override.py /home/karen/.tmda/tmda-cgi.ini NoOverride:MayEditTemplates Yes

to grant this right back to karen.