Lines 71-77
class Snapshots( object ):
|
Link Here
|
---|
|
71 |
if success and data.snapshots is not None: |
71 |
if success and data.snapshots is not None: |
72 |
for name, info in data.snapshots.items(): |
72 |
for name, info in data.snapshots.items(): |
73 |
creation = datetime.fromtimestamp( info.ctime ) |
73 |
creation = datetime.fromtimestamp( info.ctime ) |
74 |
snapshot = { 'id' : name, 'label' : name, 'time' : creation.strftime( "%x %X" ) } |
74 |
snapshot = { |
|
|
75 |
'id': name, |
76 |
'label': name, |
77 |
'time': creation.isoformat(' '), |
78 |
} |
75 |
snapshot_list.append( snapshot ) |
79 |
snapshot_list.append( snapshot ) |
76 |
|
80 |
|
77 |
self.finished( request.id, snapshot_list ) |
81 |
self.finished( request.id, snapshot_list ) |