l.a.b.l.MaintenanceMessage : class documentation

Part of lp.app.browser.launchpad View In Hierarchy

Display a maintenance message if the control file is present and it contains a valid iso format time.

The maintenance message shows the approximate time before launchpad will be taken offline for maintenance.

The control file is +maintenancetime.txt in the launchpad root.

If there is no maintenance message, an empty string is returned.

If the maintenance time is too far in the future, then an empty string is returned.

If the maintenance time is in the past, then the maintenance message says that Launchpad will go offline "very very soon".

If the text in the maintenance message is poorly formatted, then an empty string is returned, and a warning should be logged.

Method __call__ Undocumented
def __call__(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.