[GeoNetwork-devel] Delete operation

Hi all again,

this time I'm trying out different CSW transaction requests.

To that end, I've wrote a python script based on Wolfang Grunberg's example[1], that's attached together with the sample requests I'm working with (my first python ever so no wonder it's uggly).

It needs a GN trunk running on localhost.

So the thing is, insert works just well, but I can't make delete work if not with an AnyText constraint (the way to involve the lucene search I guess).

But I don't seem able to adress the fileIdentifier any other way in order to delete a specific record by fileId.

Does somebody know how should I formulate the constraint in order to do so, or what steps should I follow to enable that?

The test record is one of the sample ones provided with GN trunk through GAST, just with another fileIdentifier, btw.

Thanks in advance and merry Christmas,

Gabriel

[1] <http://lab.usgin.org/groups/etl-debug-blog/geonetwork-authentication-and-csw-transactions-through-python&gt;

--
Gabriel Roldan
OpenGeo - http://opengeo.org
Expert service straight from the developers.

(attachments)

gn_csw.py (7.05 KB)
transaction_delete_cql_equals.xml (560 Bytes)
transaction_delete_cql_like.xml (562 Bytes)
transaction_delete.xml (737 Bytes)
transaction_insert.xml (17.8 KB)