Premus configuration
There are two configuration files used by Premus. They are /emu/configuration.py and /emu-helpers/configuration.py
This page describes the configuration options and their default values:
/emu/configuration.py
Configuration |
Default |
Description |
DAVULATOR_VERSION |
"1.0 (+mod_python +cookies)" |
The version number sent along in the request headers |
BOOKMARK_LOCATION |
"/var/www/code/premus/emu-helpers/bookmarks.xml" |
Where the bookmarks file is kept. This file needs to be writable by your web server |
LOG_PATH |
"/var/www/code/premus/emu/hostlog.txt" |
Path to a log of all requests going through the emulator. This log has mostly been used for debugging purposes |
STATIC_URL |
URL to the static content in the emu-helpers directory |
|
SCRIPT_URL |
"index.py" |
The main script of Premus |
DEFAULT_UA |
"Nokia6680/1.0" |
The default user-agent string used by the emulator |
DEFAULT_ACCEPT_HEADERS |
'text/vnd.wap.wml, text/plain, image/gif, image/tiff, image/png, image/vnd.wap.wbmp, image/jpeg, image/x-bmp, image/x-epoc-mbm, application/xhtml+xml, application/vnd.wap.xhtml+xml, text/css, text/html' |
Default accept header string to be used unless one is provided by the user. |
FRAMEWORK_OPTION |
True |
Whether to frame the emulator with bookmarks and developer details by default |
VALIDATE_OUTPUT |
True |
Whether DTD validation is enabled. To enable this, the python wrappers for libxml2 must be installed. | |
WURFL_LOCATION |
"/var/www/code/premus/emu-helpers/wurfl.xml" |
The path to the wurfl file to use for generating a menu of phones |
COMPILE_WML |
False |
Whether to binary compile the WML and get a byte count for the compiled version |
WML_COMPILER |
"C:/wbxml/xml2wbxml.exe" |
The path to an executable that compiles WML. (I never found a python class for this and didn't have time to write one myself.) |
WML_TEMP_OUTPUT |
"C:/tmp/wbxmloutput" |
Where to put the temporary output of the wbxml command. |
BINARY_ENDINGS |
['jpg', 'jpeg', 'gif', 'bmp', 'wbmp', 'png'] |
Files that are to be considered binary and wrapped in a simple HTML page if loaded by the emulator. |
DOUBLE_MENU |
True |
This is an archaic setting from a time when I was experimenting with a different menu system. The other menu system is no longer available, so DOUBLE_MENU currently has to be set to True. |
/emu-helpers/configuration.py
STATIC_URL |
URL to the static content in the emu-helpers directory |
|
MENU_KNOCKOUT_BRANDS |
[] |
In this setting you can provide a list of brands from the WURFL list that you don't want to have included in the popup menu of phones. |
WURFL_LOCATION |
"/var/www/code/premus/emu-helpers/wurfl.xml" |
The path to the WURFL file to use for generating a menu of phones |
