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.

Source Distribution

core_parser_app-1.19.0.tar.gz (67.0 kB view details)

Uploaded Source

File details

Details for the file core_parser_app-1.19.0.tar.gz.

File metadata

  • Download URL: core_parser_app-1.19.0.tar.gz
  • Upload date:
  • Size: 67.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.0 importlib_metadata/3.7.3 packaging/20.9 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.10

File hashes

Hashes for core_parser_app-1.19.0.tar.gz
Algorithm Hash digest
SHA256 7dabb795722a5c7195efbbb5eb6d549fecdd340f4268d7428bc3628b1727623b
MD5 d86b817b7f07db48c5cd2a51937cb6c4
BLAKE2b-256 bda85c9780f9d97d112d76b6470e7f4a3f710706113845f1e77930711e59d78e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page