telemetry.wpr.archive_info
index
telemetry/wpr/archive_info.py

# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

 
Modules
       
catapult_base.cloud_storage
json
logging
os
re
shutil
tempfile

 
Classes
       
__builtin__.object
WprArchiveInfo
exceptions.Exception(exceptions.BaseException)
ArchiveError

 
class ArchiveError(exceptions.Exception)
    
Method resolution order:
ArchiveError
exceptions.Exception
exceptions.BaseException
__builtin__.object

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Methods inherited from exceptions.Exception:
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature

Data and other attributes inherited from exceptions.Exception:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from exceptions.BaseException:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__reduce__(...)
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setstate__(...)
__str__(...)
x.__str__() <==> str(x)
__unicode__(...)

Data descriptors inherited from exceptions.BaseException:
__dict__
args
message

 
class WprArchiveInfo(__builtin__.object)
     Methods defined here:
AddNewTemporaryRecording(self, temp_wpr_file_path=None)
AddRecordedStories(self, stories, upload_to_cloud_storage=False)
DownloadArchivesIfNeeded(self)
Downloads archives iff the Archive has a bucket parameter and the user
has permission to access the bucket.
 
Raises cloud storage Permissions or Credentials error when there is no
local copy of the archive and the user doesn't have permission to access
the archive's bucket.
 
Warns when a bucket is not specified or when the user doesn't have
permission to access the archive's bucket but a local copy of the archive
exists.
WprFilePathForStory(self, story)
__init__(self, file_path, data, bucket)

Class methods defined here:
FromFile(cls, file_path, bucket) from __builtin__.type

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Functions
       
AssertValidCloudStorageBucket(bucket)