"Publishing" service records -- grammar-type stuff and
UI.
This module basically turns "publishable things" --
services, resource records, data items -- into row dictionaries that can
be entered into the database.
This is one half of getting them into the registry. The other half is
done in identifiers and builders; these take the stuff from the database,
rebuilds actual objects and creates registry records from them. So, the
content of the service table is not actually used to build resource
records.
|
|
|
makeBaseRecord(res,
keepTimestamp=False)
returns a dictionary giving the metadata common to resource records. |
source code
|
|
|
|
|
iterSvcRecs(service,
keepTimestamp=False)
iterates over records suitable for importing into the service list
for service. |
source code
|
|
|
iterResRecs(res,
keepTimestamp=False)
as iterSvcRecs, just for ResRecs rather than Services. |
source code
|
|
|
iterDataRecs(res,
keepTimestamp=False)
as iterSvcRecs, just for DataDescriptors rather than Services. |
source code
|
|
|
|
|
updateServiceList(rds,
metaToo=False,
connection=None,
onlyWarn=True,
keepTimestamp=False,
unpublish=False)
updates the services defined in rds in the services table in the
database. |
source code
|
|
|
makeDeletedRecord(ivoid,
conn)
enters records into the internal service tables to mark ivoid as
deleted. |
source code
|
|
|
findAllRDs()
returns ids of all RDs (inputs and built-in) known to the system. |
source code
|
|
|
findPublishedRDs()
returns the ids of all RDs which have been published before. |
source code
|
|
|
getRDs(args)
returns a list of RDs from a list of RD ids or paths. |
source code
|
|
|
|
|
updateRegistryTimestamp()
edits the dateupdated field for the registry service in servicelist. |
source code
|
|
|
main()
handles the user interaction for gavo publish. |
source code
|
|