db.Snapshots Class Reference

Pack utilities for snapshots table. More...

List of all members.

Classes

class  DoesNotExist
 Raised when a database object does not exist. More...

Public Member Functions

def new_base
 Adds a new base snapshot.
def new_incremental
 Adds a new incremental snapshot.
def new_delete
 Adds a new delete snapshot.
def new_rename
 Adds a new rename snapshot.
def new_move
 Adds a new move snapshot.


Detailed Description

Pack utilities for snapshots table.

Definition at line 154 of file db.py.


Member Function Documentation

def db.Snapshots.new_base (   timeline,
  timestamp,
  path 
)

Adds a new base snapshot.

Parameters:
timeline,: timeline the snapshot belongs to
timestamp,: time of the snapshot
path,: path where base snapshot file was stored

Definition at line 171 of file db.py.

def db.Snapshots.new_delete (   timeline,
  timestamp,
  related_to = None 
)

Adds a new delete snapshot.

Parameters:
timeline,: timeline the snapshot belongs to
timestamp,: time of the snapshot
related_to,: optional, if exists, it indicates the deletion is related to a move operation. Then related_to is the id of the destination timeline

Definition at line 202 of file db.py.

def db.Snapshots.new_incremental (   timeline,
  timestamp,
  path 
)

Adds a new incremental snapshot.

Parameters:
timeline,: timeline the snapshot belongs to
timestamp,: time of the snapshot
path,: path where incremental snapshot file was stored

Definition at line 186 of file db.py.

def db.Snapshots.new_move (   old_timeline,
  new_timeline,
  timestamp 
)

Adds a new move snapshot.

Parameters:
old_timeline,: timeline of the previous name
new_timeline,: timeline of the new name
timestamp,: time of the snapshot

Definition at line 238 of file db.py.

def db.Snapshots.new_rename (   old_timeline,
  new_timeline,
  timestamp 
)

Adds a new rename snapshot.

Parameters:
old_timeline,: timeline of the previous name
new_timeline,: timeline of the new name
timestamp,: time of the snapshot

Definition at line 220 of file db.py.


The documentation for this class was generated from the following file:

Generated on Sun Jun 21 18:39:45 2009 for Flux by  doxygen 1.5.8