easyworship

The easyworship module provides the functionality for importing EasyWorship song databases into OpenLP.

class openlp.plugins.songs.lib.importers.easyworship.EasyWorshipSongImport(manager, **kwargs)[source]

Bases: openlp.plugins.songs.lib.importers.songimport.SongImport

The EasyWorshipSongImport class provides OpenLP with the ability to import EasyWorship song files.

db_find_field(field_name)[source]

Find a field in the descriptions

Parameters:field_name – field to find
db_get_field(field_desc_index)[source]

Extract the field

Parameters:field_desc_index – Field index value
Returns:The field value
db_set_record_struct(field_descriptions)[source]

Save the record structure

Parameters:field_descriptions – An array of field descriptions
do_import()[source]

Determines the type of file to import and calls the appropiate method

ews_get_bytes(pos, length)[source]

Get bytes from ews_file

Parameters:
  • pos – Position to read from
  • length – Bytes to read
Returns:

Bytes read

ews_get_i16(pos)[source]

Get short int from ews_file

Parameters:pos – Position to read from
Returns:Short integer read
ews_get_i32(pos)[source]

Get long int from ews_file

Parameters:pos – Position to read from
Returns:Long integer read
ews_get_string(pos, length)[source]

Get string from ews_file

Parameters:
  • pos – Position to read from
  • length – Characters to read
Returns:

String read

import_db()[source]

Import the songs from the database

import_ews()[source]

Import the songs from service file The full spec of the ews files can be found here: https://github.com/meinders/lithium-ews/blob/master/docs/ews%20file%20format.md or here: http://wiki.openlp.org/Development:EasyWorship_EWS_Format

import_sqlite_db()[source]

Import the songs from an EasyWorship 6 SQLite database

set_song_import_object(authors, words)[source]

Set the SongImport object members.

Parameters:
  • authors – String with authons
  • words – Bytes with rtf-encoding
class openlp.plugins.songs.lib.importers.easyworship.FieldDescEntry(name, field_type, size)[source]

Bases: object

class openlp.plugins.songs.lib.importers.easyworship.FieldType[source]

Bases: object

An enumeration class for different field types that can be expected in an EasyWorship song file.

Blob = 13
Int16 = 3
Int32 = 4
Logical = 9
Memo = 12
String = 1
Timestamp = 21