Class Method |
new_from_zim_config |
Returns a new object based on the string representation for that path. |
Static Method |
assertValidPageName |
No summary |
Static Method |
makeValidPageName |
No summary |
Method |
__add__ |
path + name is an alias for path.child(name) |
Method |
__eq__ |
Paths are equal when their names are the same |
Method |
__hash__ |
Undocumented |
Method |
__ne__ |
Paths are not equal when their names are not the same |
Method |
__repr__ |
Undocumented |
Method |
__str__ |
Undocumented |
Method |
child |
Get a child Path |
Method |
commonparent |
Find a common parent for two Paths |
Method |
ischild |
Check whether this path is a child of a given path @param parent: a Path object @returns: True when this path is a (grand-)child of parent |
Method |
match_namespace |
Check whether this path is in a specific section of the notebook @param namespace: a Path object @returns: True when this path is equal to namespace or is a (grand-)child of namespace |
Method |
parents |
Generator function for parent Paths including root |
Method |
relname |
Get a part of this path relative to a parent path |
Method |
serialize_zim_config |
Returns the name for serializing this path |
Instance Variable |
name |
Undocumented |
Property |
basename |
Get the basename of the path (last part of the name) |
Property |
isroot |
True when this Path represents the top level namespace |
Property |
namespace |
Gives the name for the parent page. Returns an empty string for the top level namespace. |
Property |
parent |
Get the path for the parent page |
Property |
parts |
Get all the parts of the name (split on ":") |