grr/server/grr_response_server/gui/archive_generator_aff4.py
def _GenerateClientInfo(self, client_fd):
    """Yields chucks of archive information for given client."""
    summary_dict = client_fd.GetSummary().ToPrimitiveDict(
        stringify_leaf_fields=True)
    summary = yaml.Dump(summary_dict).encode("utf-8")

    client_info_path = os.path.join(self.prefix, client_fd.urn.Basename(),
                                    "client_info.yaml")
    st = os.stat_result((0o644, 0, 0, 0, 0, 0, len(summary), 0, 0, 0))
    yield self.archive_generator.WriteFileHeader(client_info_path, st=st)
    yield self.archive_generator.WriteFileChunk(summary)
    yield self.archive_generator.WriteFileFooter()
Yields chucks of archive information for given client.
Yields chucks of archive information for given client.
Yields chucks of archive information for given client .
def _GenerateClientInfo(self, client_fd):
    summary_dict = client_fd.GetSummary().ToPrimitiveDict(
        stringify_leaf_fields=True)
    summary = yaml.Dump(summary_dict).encode("utf-8")
    client_info_path = os.path.join(self.prefix, client_fd.urn.Basename(),
                                    "client_info.yaml")
    st = os.stat_result((0o644, 0, 0, 0, 0, 0, len(summary), 0, 0, 0))
    yield self.archive_generator.WriteFileHeader(client_info_path, st=st)
    yield self.archive_generator.WriteFileChunk(summary)
    yield self.archive_generator.WriteFileFooter()
def _GenerateClientInfo ( self , client_fd ) : summary_dict = client_fd . GetSummary ( ) . ToPrimitiveDict ( stringify_leaf_fields = True ) summary = yaml . Dump ( summary_dict ) . encode ( "utf-8" ) client_info_path = os . path . join ( self . prefix , client_fd . urn . Basename ( ) , "client_info.yaml" ) st = os . stat_result ( ( 0o644 , 0 , 0 , 0 , 0 , 0 , len ( summary ) , 0 , 0 , 0 ) ) yield self . archive_generator . WriteFileHeader ( client_info_path , st = st ) yield self . archive_generator . WriteFileChunk ( summary ) yield self . archive_generator . WriteFileFooter ( )
Yields chucks of archive information for given client.
Yields chucks of archive information for given client .
"""Yields chucks of archive information for given client."""
self
client_fd