Doctype Extension Language (Script):

The BSn Script doctype provides a powerfull OO mechanism for extending the engine to support new document types and formats. It features a very powerfull portable, interpreted, interactive, object-oriented programming environment. One has full access to all BSn doctype classes. This allows one to develop custom doctypes via scripts. One can not only develop new doctypes but also children of any other, even builtin, doctype.

To associate a Script with a document one must specify SCRIPT=ScriptAlias as the DOCTYPE during indexing. The file /opt/BSN/config/script.ini contains the resolution to the Script on the local file system. If the script is not defined the directory /opt/BSN/scripts is searched.

Example

Iindex -t SCRIPT=films 0000001.dvb
[Scripts]
films=/var/adm/dvb/scripts/film.py
If the script is not defined the directory /opt/BSN/scripts is searched.

Language

The scripting language is ``Python''. Originally developed at the State Mathematics Institute in Amsterdam it is an increasingly popular language for a wide range of applications from text to WWW browsers to the development of GUIs (eg. wxPython and wxPresso). It incorporates modules, exceptions, dynamic typing, very high level dynamic data types, and classes. Python combines remarkable power with very clear syntax.
© Copyright 1995-1996   Basis Systeme netzwerk, Munich. All Rights Reserved.