A Package with Resources.
| 1912 | |
| 1913 | @attr.attributes(slots=True) |
| 1914 | class PackageWithResources(Package): |
| 1915 | """ |
| 1916 | A Package with Resources. |
| 1917 | """ |
| 1918 | |
| 1919 | resources = List( |
| 1920 | item_type=Resource, |
| 1921 | label='List of Resources', |
| 1922 | help='List of Resources for this package.', |
| 1923 | ) |
| 1924 | |
| 1925 | def to_dict(self): |
| 1926 | package_data = super().to_dict() |
| 1927 | package_data['resources'] = [resource.to_dict() for resource in self.resources] |
| 1928 | return package_data |
| 1929 | |
| 1930 | |
| 1931 | def get_files_for_packages(codebase): |