Part of lpltk.attachments View In Hierarchy
Method | __init__ | Undocumented |
Method | __len__ | Undocumented |
Method | __getitem__ | Undocumented |
Method | __iter__ | Undocumented |
Method | __contains__ | Undocumented |
Method | download_in_dir | Undocumented |
Method | extract_archives | Undocumented |
Method | try_gzip | Undocumented |
Method | force_mimetype | Undocumented |
Method | add_filter | Add filter f to constrain the list of attachments. |
Method | check_required_files | Check that collection includes required filenames |
Method | __fetch_if_needed | Undocumented |
Method | __gzip_if_needed | Undocumented |
Method | __find_mime_type | Undocumented |
Method | __get_tar_members | Undocumented |
Method | __exceeds_tar_limit | Undocumented |
Method | __get_zip_members | Undocumented |
Method | __exceeds_zip_limit | Undocumented |
f is a function which takes as arguments an Attachment object, and a list of parameters specific to the given filter.
Given a list of glob filename patterns, looks through the attachments to verify at least one attachment fulfils the required file pattern. Returns a list of globs that were not matched. Returns an empty list if all requirements were met.