forked from openlp/openlp
replaced 'permission' with permissions since the db uses permissions
This commit is contained in:
parent
f515dc60d0
commit
59b387b9d0
@ -275,14 +275,14 @@ class Ui_BibleImportWizard(object):
|
|||||||
self.CopyrightEdit.setObjectName(u'CopyrightEdit')
|
self.CopyrightEdit.setObjectName(u'CopyrightEdit')
|
||||||
self.LicenseDetailsLayout.setWidget(1, QtGui.QFormLayout.FieldRole,
|
self.LicenseDetailsLayout.setWidget(1, QtGui.QFormLayout.FieldRole,
|
||||||
self.CopyrightEdit)
|
self.CopyrightEdit)
|
||||||
self.PermissionLabel = QtGui.QLabel(self.LicenseDetailsPage)
|
self.PermissionsLabel = QtGui.QLabel(self.LicenseDetailsPage)
|
||||||
self.PermissionLabel.setObjectName(u'PermissionLabel')
|
self.PermissionsLabel.setObjectName(u'PermissionsLabel')
|
||||||
self.LicenseDetailsLayout.setWidget(2, QtGui.QFormLayout.LabelRole,
|
self.LicenseDetailsLayout.setWidget(2, QtGui.QFormLayout.LabelRole,
|
||||||
self.PermissionLabel)
|
self.PermissionsLabel)
|
||||||
self.PermissionEdit = QtGui.QLineEdit(self.LicenseDetailsPage)
|
self.PermissionsEdit = QtGui.QLineEdit(self.LicenseDetailsPage)
|
||||||
self.PermissionEdit.setObjectName(u'PermissionEdit')
|
self.PermissionsEdit.setObjectName(u'PermissionsEdit')
|
||||||
self.LicenseDetailsLayout.setWidget(2, QtGui.QFormLayout.FieldRole,
|
self.LicenseDetailsLayout.setWidget(2, QtGui.QFormLayout.FieldRole,
|
||||||
self.PermissionEdit)
|
self.PermissionsEdit)
|
||||||
BibleImportWizard.addPage(self.LicenseDetailsPage)
|
BibleImportWizard.addPage(self.LicenseDetailsPage)
|
||||||
self.ImportPage = QtGui.QWizardPage()
|
self.ImportPage = QtGui.QWizardPage()
|
||||||
self.ImportPage.setObjectName(u'ImportPage')
|
self.ImportPage.setObjectName(u'ImportPage')
|
||||||
@ -372,8 +372,8 @@ class Ui_BibleImportWizard(object):
|
|||||||
translate('BiblesPlugin.ImportWizardForm', 'Version name:'))
|
translate('BiblesPlugin.ImportWizardForm', 'Version name:'))
|
||||||
self.CopyrightLabel.setText(
|
self.CopyrightLabel.setText(
|
||||||
translate('BiblesPlugin.ImportWizardForm', 'Copyright:'))
|
translate('BiblesPlugin.ImportWizardForm', 'Copyright:'))
|
||||||
self.PermissionLabel.setText(
|
self.PermissionsLabel.setText(
|
||||||
translate('BiblesPlugin.ImportWizardForm', 'Permission:'))
|
translate('BiblesPlugin.ImportWizardForm', 'Permissions:'))
|
||||||
self.ImportPage.setTitle(
|
self.ImportPage.setTitle(
|
||||||
translate('BiblesPlugin.ImportWizardForm', 'Importing'))
|
translate('BiblesPlugin.ImportWizardForm', 'Importing'))
|
||||||
self.ImportPage.setSubTitle(
|
self.ImportPage.setSubTitle(
|
||||||
|
@ -282,7 +282,7 @@ class ImportWizardForm(QtGui.QWizard, Ui_BibleImportWizard):
|
|||||||
self.LicenseDetailsPage.registerField(
|
self.LicenseDetailsPage.registerField(
|
||||||
u'license_copyright', self.CopyrightEdit)
|
u'license_copyright', self.CopyrightEdit)
|
||||||
self.LicenseDetailsPage.registerField(
|
self.LicenseDetailsPage.registerField(
|
||||||
u'license_permission', self.PermissionEdit)
|
u'license_permissions', self.PermissionsEdit)
|
||||||
|
|
||||||
def setDefaults(self):
|
def setDefaults(self):
|
||||||
settings = QtCore.QSettings()
|
settings = QtCore.QSettings()
|
||||||
@ -308,8 +308,8 @@ class ImportWizardForm(QtGui.QWizard, Ui_BibleImportWizard):
|
|||||||
QtCore.QVariant(self.VersionNameEdit.text()))
|
QtCore.QVariant(self.VersionNameEdit.text()))
|
||||||
self.setField(u'license_copyright',
|
self.setField(u'license_copyright',
|
||||||
QtCore.QVariant(self.CopyrightEdit.text()))
|
QtCore.QVariant(self.CopyrightEdit.text()))
|
||||||
self.setField(u'license_permission',
|
self.setField(u'license_permissions',
|
||||||
QtCore.QVariant(self.PermissionEdit.text()))
|
QtCore.QVariant(self.PermissionsEdit.text()))
|
||||||
self.onLocationComboBoxChanged(WebDownload.Crosswalk)
|
self.onLocationComboBoxChanged(WebDownload.Crosswalk)
|
||||||
settings.endGroup()
|
settings.endGroup()
|
||||||
|
|
||||||
@ -391,8 +391,8 @@ class ImportWizardForm(QtGui.QWizard, Ui_BibleImportWizard):
|
|||||||
bible_type = self.field(u'source_format').toInt()[0]
|
bible_type = self.field(u'source_format').toInt()[0]
|
||||||
license_version = unicode(self.field(u'license_version').toString())
|
license_version = unicode(self.field(u'license_version').toString())
|
||||||
license_copyright = unicode(self.field(u'license_copyright').toString())
|
license_copyright = unicode(self.field(u'license_copyright').toString())
|
||||||
license_permission = \
|
license_permissions = \
|
||||||
unicode(self.field(u'license_permission').toString())
|
unicode(self.field(u'license_permissions').toString())
|
||||||
importer = None
|
importer = None
|
||||||
if bible_type == BibleFormat.OSIS:
|
if bible_type == BibleFormat.OSIS:
|
||||||
# Import an OSIS bible
|
# Import an OSIS bible
|
||||||
@ -436,7 +436,7 @@ class ImportWizardForm(QtGui.QWizard, Ui_BibleImportWizard):
|
|||||||
)
|
)
|
||||||
if importer.do_import():
|
if importer.do_import():
|
||||||
self.manager.save_meta_data(license_version, license_version,
|
self.manager.save_meta_data(license_version, license_version,
|
||||||
license_copyright, license_permission)
|
license_copyright, license_permissions)
|
||||||
self.manager.reload_bibles()
|
self.manager.reload_bibles()
|
||||||
self.ImportProgressLabel.setText(
|
self.ImportProgressLabel.setText(
|
||||||
translate('BiblesPlugin.ImportWizardForm', 'Finished import.'))
|
translate('BiblesPlugin.ImportWizardForm', 'Finished import.'))
|
||||||
|
Loading…
Reference in New Issue
Block a user