Did I find the right examples for you? yes no

All Samples(4)  |  Call(3)  |  Derive(0)  |  Import(1)

src/s/i/silva.core.upgrade-3.0.2/src/silva/core/upgrade/upgrade.py   silva.core.upgrade(Download)
from silva.core.interfaces.errors import UpgradeError
from silva.core.interfaces.events import UpgradeFinishedEvent
from silva.core.interfaces.events import UpgradeStartedEvent
from silva.core.interfaces.events import UpgradeTransaction, IUpgradeTransaction
from silva.core.references.interfaces import IReferenceService
            logger.info(
                u'Upgrading from %s to %s.', from_version, to_version)
            notify(UpgradeStartedEvent(content, from_version, to_version))
 
            start = datetime.datetime.now()
            u'Upgrading container %s to %s.', content_path(root), version)
        start = datetime.datetime.now()
        notify(UpgradeStartedEvent(root, 'n/a', version))
        process = UpgradeProcess(self, [version])
        try:
            logger.info(
                u'Upgrading from %s to %s.', from_version, to_version)
            notify(UpgradeStartedEvent(root, from_version, to_version))
 
            start = datetime.datetime.now()