131
122
enable_bug_expiration = Bool(
132
123
title=_('Expire "Incomplete" bug reports when they become inactive'),
136
class IPrivateApplication(ILaunchpadApplication):
137
"""Launchpad private XML-RPC application root."""
139
authserver = Attribute("""Old Authserver API end point.""")
141
codeimportscheduler = Attribute("""Code import scheduler end point.""")
143
codehosting = Attribute("""Codehosting end point.""")
145
mailinglists = Attribute("""Mailing list XML-RPC end point.""")
147
bugs = Attribute("""Launchpad Bugs XML-RPC end point.""")
149
softwarecenteragent = Attribute(
150
"""Software center agent XML-RPC end point.""")
152
featureflags = Attribute("""Feature flag information endpoint""")
155
class IAuthServerApplication(ILaunchpadApplication):
156
"""Launchpad legacy AuthServer application root."""
159
class IHasIcon(Interface):
160
"""An object that can have a custom icon."""
162
# Each of the objects that implements this needs a custom schema, so
163
# here we can just use Attributes
164
icon = Attribute("The 14x14 icon.")
167
class IHasLogo(Interface):
168
"""An object that can have a custom logo."""
170
# Each of the objects that implements this needs a custom schema, so
171
# here we can just use Attributes
172
logo = Attribute("The 64x64 logo.")
175
class IHasMugshot(Interface):
176
"""An object that can have a custom mugshot."""
178
# Each of the objects that implements this needs a custom schema, so
179
# here we can just use Attributes
180
mugshot = Attribute("The 192x192 mugshot.")
183
class IAging(Interface):
184
"""Something that gets older as time passes."""
186
def currentApproximateAge():
187
"""Return a human-readable string of how old this thing is.
189
Values returned are things like '2 minutes', '3 hours',
194
class IPrivacy(Interface):
195
"""Something that can be private."""
198
title=_("This is private"),
201
"Private objects are visible to members or subscribers."))
204
class IHasDateCreated(Interface):
205
"""Something created on a certain date."""
207
datecreated = Attribute("The date on which I was created.")