refagateway.blogg.se

Installing opensong bible in open lp
Installing opensong bible in open lp




installing opensong bible in open lp
  1. #INSTALLING OPENSONG BIBLE IN OPEN LP SOFTWARE#
  2. #INSTALLING OPENSONG BIBLE IN OPEN LP LICENSE#

Worship software evaluation: SongSelect, OnSong, ZionWorx and Power Music – what do they do and which is best? We compare some of the great but less well known options. exception ( 'Loading Bible from OpenSong file failed' ) success = False finally : if import_file : import_file. exception ( inst ) success = False except ( IOError, AttributeError ): log.

installing opensong bible in open lp

You must decompress them before import.' )) log. XMLSynta圎rror as inst : trace_error_handler ( log ) critical_error_message_box ( message = translate ( 'BiblesPlugin.OpenSongImport', 'Incorrect Bible file type supplied. increment_progress_bar ( translate ( 'BiblesPlugin.Opensong', 'Importing %(bookname)s %(chapter)s. id, chapter_number, verse_number, self. attrib )) verse_number = number else : verse_number += 1 self. warning ( 'Illegal verse number: %s ', str ( verse. split ( '-' ) if len ( verse_parts ) > 1 : number = int ( verse_parts ) except TypeError : log.

installing opensong bible in open lp

attrib if number : try : number = int ( number ) except ValueError : verse_parts = number. split ()) else : chapter_number += 1 verse_number = 0 for verse in chapter. attrib if number : chapter_number = int ( number. stop_import_flag : break number = chapter. attrib, book_ref_id, book_details ) chapter_number = 0 for chapter in book. get_book_by_id ( book_ref_id ) db_book = self. filename ) return False book_details = BiblesResourcesDB. error ( 'Importing books from " %s " failed' % self.

installing opensong bible in open lp

b ), language_id ) if not book_ref_id : log. stop_import_flag : break book_ref_id = self. filename ) return False for book in bible. get_language ( bible_name ) if not language_id : log. This looks like a Zefania XML bible, ' 'please use the Zefania import option.' )) return False # No language info in the opensong format, so ask the user language_id = self. upper () = 'XMLBIBLE' : critical_error_message_box ( message = translate ( 'BiblesPlugin.OpenSongImport', 'Incorrect Bible file type supplied. getroot () # Check that we're not trying to import a Zefania XML bible, it is sometimes refered to as 'OpenSong' if bible. filename, 'utf8' ) import_file = None success = True try : # NOTE: We don't need to do any of the normal encoding detection here, because lxml does it's own encoding # detection, and the two mechanisms together interfere with each other. debug ( 'Starting OpenSong import from " %s "' % self. def do_import ( self, bible_name = None ): """ Loads a Bible from file.

#INSTALLING OPENSONG BIBLE IN OPEN LP LICENSE#

# You should have received a copy of the GNU General Public License along # with this program if not, write to the Free Software Foundation, Inc., 59 # Temple Place, Suite 330, Boston, MA 02111-1307 USA # import logging from lxml import etree, objectify from import translate, trace_error_handler from import critical_error_message_box from .db import BibleDB, BiblesResourcesDB log = logging. See the GNU General Public License for # more details. # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. # -*- coding: utf-8 -*- # vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4 # OpenLP - Open Source Lyrics Projection # - # Copyright (c) 2008-2016 OpenLP Developers # - # This program is free software you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the Free # Software Foundation version 2 of the License.






Installing opensong bible in open lp