Home | Trees | Indices | Help |
|
---|
|
object --+ | Magma
A Magma List.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
data All data inside the Magma list |
|||
magnets All magnets inside the Magma list. |
|||
metadata The metadata of this Magma list (excluding the files). |
|
|||
Inherited from |
|
A Magma list.
|
Return a human readable representation of the yaml file. In effect return the yaml data with the magic header.
|
Create a magma file from given file paths.
|
Return the yaml data.
|
Get the files from the magma data.
|
Get the magnet links of the files. # TODO: Include Alt-Locs.
|
Get only the metadata, without the list of files.
|
Return the yaml representation of the data.
|
Check, if a given yaml data begins with the Magma header.
|
|
|
Print the magma file in the yaml format.
|
Readout a magma list from the file_path
|
Readout a magma list from data in yaml format.
|
Remove empty entries in the Magma, for example empty alt-locs. We remove each entry by hand, because we should know which entries can be created by this program - and if we don't we know that have to change our coding practice :) . |
Save the magma list to the path. If the folder to save in doesn't exist, just raise an Exception. TODO: Clean out empty entries in the files and the metadata before saving. self.data["gnutella"]["alt-locs"] = [] should disappear (if there are no other keys than alt-locs in gnutella, the gnutella dict should completely disappear, too).
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Jan 7 11:36:57 2009 | http://epydoc.sourceforge.net |