Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/p/y/pyon-HEAD/pyon/container/management.py   pyon(Download)
 
from pyon.core.bootstrap import CFG
from pyon.container.snapshot import ContainerSnapshot
from pyon.core import bootstrap
from pyon.core.bootstrap import IonObject
    def handle_request(self, action):
        try:
            cs = ContainerSnapshot(bootstrap.container_instance)
            if action.clear_all:
                cs.clear_snapshots()