Return a new |CorePropertiesPart| object initialized with default values for its base properties.
(cls, package: OpcPackage)
| 24 | |
| 25 | @classmethod |
| 26 | def default(cls, package: OpcPackage): |
| 27 | """Return a new |CorePropertiesPart| object initialized with default values for |
| 28 | its base properties.""" |
| 29 | core_properties_part = cls._new(package) |
| 30 | core_properties = core_properties_part.core_properties |
| 31 | core_properties.title = "Word Document" |
| 32 | core_properties.last_modified_by = "python-docx" |
| 33 | core_properties.revision = 1 |
| 34 | core_properties.modified = dt.datetime.now(dt.timezone.utc) |
| 35 | return core_properties_part |
| 36 | |
| 37 | @property |
| 38 | def core_properties(self): |
no test coverage detected