122
128
enable_bug_expiration = Bool(
123
129
title=_('Expire "Incomplete" bug reports when they become inactive'),
133
class IHasIcon(Interface):
134
"""An object that can have a custom icon."""
136
# Each of the objects that implements this needs a custom schema, so
137
# here we can just use Attributes
138
icon = Attribute("The 14x14 icon.")
141
class IHasLogo(Interface):
142
"""An object that can have a custom logo."""
144
# Each of the objects that implements this needs a custom schema, so
145
# here we can just use Attributes
146
logo = Attribute("The 64x64 logo.")
149
class IHasMugshot(Interface):
150
"""An object that can have a custom mugshot."""
152
# Each of the objects that implements this needs a custom schema, so
153
# here we can just use Attributes
154
mugshot = Attribute("The 192x192 mugshot.")
157
class IAging(Interface):
158
"""Something that gets older as time passes."""
160
def currentApproximateAge():
161
"""Return a human-readable string of how old this thing is.
163
Values returned are things like '2 minutes', '3 hours',
168
class IPrivacy(Interface):
169
"""Something that can be private."""
172
title=_("This is private"),
175
"Private objects are visible to members or subscribers."))
178
class IHasDateCreated(Interface):
179
"""Something created on a certain date."""
181
datecreated = Attribute("The date on which I was created.")