import sys, os, re, unicodedata, urllib, zipfile, StringIO from datetime import date from django.core.management import setup_environ sys.path.append( os.path.join(os.path.dirname(os.path.abspath(__file__)), "../../../") ) # There's probably a better way of doing this from openscriptures import settings setup_environ(settings) from openscriptures.core.models import * from openscriptures.data import import_helpers # Abort if MS has already been added (or --force not supplied) import_helpers.abort_if_imported(msQereID) # Download the source file source_url = "http://files.morphgnt.org/tischendorf/Tischendorf-2.5.zip" import_helpers.download_resource(source_url) # Work for Kethiv edition (base text for qere) import_helpers.delete_work(msKethivID) msKethivWork = Work( id=msKethivID, title="Tischendorf 8th ed. v2.5 (Kethiv)", language=Language("grc"), type="Bible", osis_slug="Tischendorf", publish_date=date(2009, 1, 1),
msID = 2 varMsID = 3 import sys, os, re, unicodedata, difflib, zipfile, StringIO from datetime import date from django.core.management import setup_environ from django.utils.encoding import smart_str, smart_unicode sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), '../../../')) #There's probably a better way of doing this from openscriptures import settings setup_environ(settings) from openscriptures.data.unbound_bible import UNBOUND_CODE_TO_OSIS_CODE # Why does this have to be explicit? from openscriptures.data import import_helpers from openscriptures.core.models import * # Abort if MS has already been added (or --force not supplied) import_helpers.abort_if_imported(msID) # Download the source file source_url = "http://www.unboundbible.org/downloads/bibles/greek_WH_UBS4_parsed.zip" import_helpers.download_resource(source_url) # Delete existing works and their contents import_helpers.delete_work(msID, varMsID) msWork = Work( id = msID, title = "Westcott/Hort", abbreviation = "W/H", language = Language('grc'), type = 'Bible', osis_slug = 'WH',
import sys, os, re, unicodedata, difflib, zipfile, StringIO from datetime import date from django.core.management import setup_environ from django.utils.encoding import smart_str, smart_unicode sys.path.append( os.path.join(os.path.dirname(os.path.abspath(__file__)), "../../../") ) # There's probably a better way of doing this from openscriptures import settings setup_environ(settings) from openscriptures.core.models import * from openscriptures.data import import_helpers # Abort if MS has already been added (or --force not supplied) import_helpers.abort_if_imported(TNT1_ID) # Download the source file source_url = "http://www.tyndalehouse.com/Download/TNT 1.0.0.zip" var_source_url = "http://www.tyndalehouse.com/Download/TNT2 1.0.0.zip" # import_helpers.download_resource(source_url) # import_helpers.download_resource(var_source_url) # Delete existing works and their contents import_helpers.delete_work(TNT1_ID, TNT2_ID) workTNT1 = Work( id=TNT1_ID, title="Tregelles' Greek New Testament", abbreviation="Tregelles", language=Language("grc"),