I'd like to add a new field (
chosenDate) to all of my Archetypes content types - which is not problem so far - but to the standard ATFolder type as well (I have plenty of them already in my site, so I'd rather not invent a new type).
Here is my method, for catalog metadata creation:
def getChosenDate(self): """ Return the date which was explicitly set for usage in lists """ getField = self.getField for name in [ 'chosenDate', 'effectiveDate', ]: field = getField(name) if field: val = field.get(self) if val: return val return self.created()
I'd like the ATFolder type to have that
chosenDate field as well.
How would I achieve this? Thank you!