"""
A core to just reload the RD

(this is used by Thomas to update the list of objects)
"""

from gavo import base
from gavo import rsc
from gavo import svcs

class Core(svcs.Core):
	"""is a custom core trying to delete previously uploaded data.
	"""
	inputTableXML = """
		<inputTable/>
		"""

	outputTableXML = """
		<outputTable/>"""
		
	def run(self, service, inputTable, queryMeta):
		base.caches.clearForName(service.rd.sourceId)
		return ("text/html", "Ok")
