Ignore:
Timestamp:
06/11/13 15:05:18 (11 years ago)
Author:
jripsl
Message:

Repository I/O implementation (suite).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Monitoring/smon/repo_io.py

    r871 r875  
    8787 
    8888def test(): 
     89        """ 
     90        not used 
     91        """ 
     92 
    8993        repo.create_message("test2", 2, "bla2") 
    9094        commit() 
     
    9599        repo.create_message("test3", 3, "bla3") 
    96100        rollback() 
     101 
     102def cleanup(): 
     103        if mode==CSTE_MODE_LOCAL_REPO: 
     104                repo.cleanup() 
     105        elif mode==CSTE_MODE_REMOTE_REPO: 
     106                raise Exception("ERR707") 
     107        elif mode==CSTE_MODE_REMOTE_REPO_STUB: 
     108                pass 
     109        else: 
     110                raise Exception("ERR007 - incorrect mode") 
    97111 
    98112def commit(): 
Note: See TracChangeset for help on using the changeset viewer.