This page contains some basic documentation for the Online Linguistic Database project.
Contains all the controllers, model and templates as sub-modules.
Contains all the controllers. The three most important of which are FormController, FileController and CollectionController.
Messages
Custom validator. Ensures that the first gloss field, ‘gloss-0.text’, has some content.
Messages
Form Controller contains actions about OLD Forms. Authorization and authentication are implemented by the helper decorators authenticate and authorize which can be found in lib/auth.py.
Export a set of one or more BLD Forms.
If id is None, export all Forms from last search (using session[‘formSearchValues’]); if id is ‘memory’, export Forms in Memory; otherwise, export Form with id == id.
This action renders an html form (templates/base/export) where the user chooses an export type.
Produce an export document based on the export type chosen by the user in the form rendered by the export action.
An empty id indicates that the set of forms to be exported should be queried from the database based on the values of session[‘formSearchValues’].
An id of ‘memory’ indicates that we should export everything in Memory.
To add new export types, add a def to ‘/base/exporter.html’ and add your def name and description to app_globals.exportOptions.
Keyword validator ensures that keywords are unicode strings.
Messages
NewFormForm is a Schema for validating the data entered at the Add Form page.
Messages
Messages
SearchForm is a Schema for validating the search terms entered at the Search Forms page.
Messages
Messages
Helper functions
Consists of functions to typically be used within templates, but also available to Controllers. This module is available to templates as ‘h’.
Query Builder
Functions used to add filters to an SQLAlchemy query based on the search options set by a user.