Changeset 4491 for exist


Ignore:
Timestamp:
26/11/08 10:06:40 (11 years ago)
Author:
cbyrom
Message:

Create new class, AtomValidator?, to act as a utility class for the Atom class - allowing validation of the following data:
i) External links

ii) Vocab data
iii) Schema compliance
iv) unicode compliance - with utf-8 encoding
v) data consistency within the atom data model


Store an instance in a global MILK variable for easy re-use by the atom-editor. Also, remove redundant geoUtilities class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • exist/trunk/python/ndgUtils/lib/atomvalidator.py

    r4489 r4491  
    251251        atomPath = self._atom.getDefaultCollectionPath() + self._atom.atomName 
    252252        try: 
    253             errors = self._eXist.validateAtom(atomPath, atom = self._atom) 
     253            errors = self._eXist.checkAtomSchemaCompliance(atomPath, atom = self._atom) 
    254254            for error in errors: 
    255255                self.__addError(self.SCHEMA_VALIDATION_FAILURE, error) 
Note: See TracChangeset for help on using the changeset viewer.