MOAI Update Module

class moai.update.DatabaseUpdater(content, content_class, database, log)

Default implementation of IDatabaseUpdater.

This class can update something implementing IDatabase given a contentprovider and content object class (implementations of IContentProvider and IContentObject)

set_content_object_class(content_class)
set_content_provider(content_provider)
set_database(database)
set_logger(log)
update_database(validate=True, supress_errors=False)
update_database_iterate(validate=True, supress_errors=False)
update_provider(from_date=None)
update_provider_iterate(from_date=None)
"Moai at Tongariki", photo: Vera & Jean-Christophe. Creative Commons License

Previous topic

MOAI OAI Module

Next topic

MOAI Core Module

This Page

Quick search