Ticket #933 (closed task: fixed)

Opened 14 years ago

Last modified 14 years ago

DublinCore support in Xqueries and scripts

Reported by: selatham Owned by: selatham
Priority: required Milestone: Updated NERC Data Discovey Service
Component: MOLES Version:
Keywords: Cc:


Change scripts etc. to utilise the pythonic Dublin Core xquery.

Change History

comment:1 Changed 14 years ago by selatham

Tried in badc straight off and got :-

[badc@chinook xml_creation]$ /usr/local/bin/python2.5 /home/badc/software/xml_creation/discovery_recs_creation.py badc.nerc.ac.uk DC passwords.txt 2>&1> suetemp
Traceback (most recent call last):
  File "/home/badc/software/xml_creation/discovery_recs_creation.py", line 95, in <module>
  File "build/bdist.linux-i686/egg/ndgUtils/eXistConnector.py", line 74, in executeQuery
  File "/usr/local/lib/python2.5/xmlrpclib.py", line 1147, in __call__
    return self.__send(self.__name, args)
  File "/usr/local/lib/python2.5/xmlrpclib.py", line 1437, in __request
  File "/usr/local/lib/python2.5/xmlrpclib.py", line 1201, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/local/lib/python2.5/xmlrpclib.py", line 1340, in _parse_response
    return u.close()
  File "/usr/local/lib/python2.5/xmlrpclib.py", line 787, in close
    raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault 0: 'org.exist.xquery.XPathException: xs:date must not have hour, minute or second fields set [at line 40, column 10]'>
[badc@chinook xml_creation]$ more suetemp
 Procedure discovery_recs_creation.py starts at 080115_1932
Executing : ls -1 ./outputDC | xargs -i rm ./outputDC/{\}
INFO: internal id = dataent_11642968801511608
INFO: filename = dataent_11642968801511608_DC

comment:2 Changed 14 years ago by selatham

  • Status changed from new to closed
  • Resolution set to fixed

Done.(actually just needed some bug fixes.)

Note: See TracTickets for help on using tickets.