Skip to main content

XSD parser tools for the curator core project

Project description

XSD parser, renderers and modules for the curator core project.

Quick start

1. Add “core_parser_app” to your INSTALLED_APPS setting

INSTALLED_APPS = [
    ...
    "core_parser_app",
    "core_parser_app.tools.modules",
    "core_parser_app.tools.parser",
]

2. Include the core_parser_app URLconf in your project urls.py

url(r'^parser/', include("core_parser_app.urls")),

Migration to the Bootstrap modal

Breaking changes during the migration from the jQuery UI modal to the Bootstrap modal for the module :

  • The JavaScript global variables openModule, openPopUp and initialState from the popup.js file have been deleted.
  • The JavaScript variable openModule has been renamed to moduleElement.
  • The modal management has been changed. JQuery UI reused the same DOM element for all modal loaded in the page. Bootstrap use a unique DOM element for each modal. Consequently the main modal container will have the following unique ID : modal-{{module_id}}.
  • The save callback uses the new variable openModule to get the unique DOM container and get the value to save.
  • The Django form id must be changed be because it is not unique and can create conflict if the page includes a module more than one time (example with the BLOBHostForm):
form = BLOBHostForm()
form.fields["file"].widget.attrs.update(
    {"id": "file-input-%s" % str(module_id)}
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for core-parser-app, version 1.13.0
Filename, size File type Python version Upload date Hashes
Filename, size core_parser_app-1.13.0.tar.gz (63.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page