Hi, as you suggested, I moved „active” from ISeries to IDistroSeries.
Here is the latest diff:
=== modified file 'lib/lp/registry/interfaces/distroseries.py'
--- lib/lp/registry/interfaces/distroseries.py 2010-03-06 01:24:05 +0000
+++ lib/lp/registry/interfaces/distroseries.py 2010-03-08 09:08:46 +0000
@@ -164,6 +164,12 @@ description=_( "The title of this series. It should be distinctive " "and designed to look good at the top of a page.")))
+ active = exported(Bool(
+ title=_("Active"),
+ description=_(
+ "Whether or not this series is stable and supported, or "
+ "under current development. This excludes series which "
+ "are experimental or obsolete.")))
description = exported( Description(title=_("Description"), required=True, description=_("A detailed description of this series, with "
- active = exported(Bool(
- title=_("Active"),
- description=_(
- "Whether or not this series is stable and supported, or "
- "under current development. This excludes series which "
- "are experimental or obsolete.")))
-
summary = exported( Summary(title=_("Summary"), description=_('A single paragraph that explains the goals of '
Hi, as you suggested, I moved „active” from ISeries to IDistroSeries.
Here is the latest diff: registry/ interfaces/ distroseries. py' registry/ interfaces/ distroseries. py 2010-03-06 01:24:05 +0000 registry/ interfaces/ distroseries. py 2010-03-08 09:08:46 +0000
descripti on=_(
"The title of this series. It should be distinctive "
"and designed to look good at the top of a page.")))
Description( title=_ ("Description" ), required=True,
descripti on=_("A detailed description of this series, with "
=== modified file 'lib/lp/
--- lib/lp/
+++ lib/lp/
@@ -164,6 +164,12 @@
+ active = exported(Bool(
+ title=_("Active"),
+ description=_(
+ "Whether or not this series is stable and supported, or "
+ "under current development. This excludes series which "
+ "are experimental or obsolete.")))
description = exported(
=== modified file 'lib/lp/ registry/ interfaces/ series. py' registry/ interfaces/ series. py 2010-03-06 01:24:05 +0000 registry/ interfaces/ series. py 2010-03-08 09:07:19 +0000 IHasDrivers) :
--- lib/lp/
+++ lib/lp/
@@ -92,13 +92,6 @@
class ISeriesMixin(
"""Methods & properties shared between distro & product series."""
- active = exported(Bool(
Summary( title=_ ("Summary" ),
description= _('A single paragraph that explains the goals of '
- title=_("Active"),
- description=_(
- "Whether or not this series is stable and supported, or "
- "under current development. This excludes series which "
- "are experimental or obsolete.")))
-
summary = exported(
=== modified file 'lib/lp/ registry/ model/distroser ies.py' registry/ model/distroser ies.py 2010-03-05 15:50:47 +0000 registry/ model/distroser ies.py 2010-03-08 09:09:20 +0000
intermediateT able='SectionSe lection' )
--- lib/lp/
+++ lib/lp/
@@ -183,6 +183,15 @@
@property DEVELOPMENT, FROZEN, CURRENT, SUPPORTED, self):
+ def active(self):
+ return self.status in [
+ SeriesStatus.
+ SeriesStatus.
+ SeriesStatus.
+ SeriesStatus.
+ ]
+
+ @property
def named_version(
return '%s (%s)' % (self.displayname, self.version)
=== modified file 'lib/lp/ registry/ model/series. py' registry/ model/series. py 2010-03-05 13:14:49 +0000 registry/ model/series. py 2010-03-08 09:08:56 +0000 notNull= True)
--- lib/lp/
+++ lib/lp/
@@ -25,15 +25,6 @@
summary = StringCol(
@property DEVELOPMENT, FROZEN, CURRENT, SUPPORTED, self): bug_supervisor
- def active(self):
- return self.status in [
- SeriesStatus.
- SeriesStatus.
- SeriesStatus.
- SeriesStatus.
- ]
-
- @property
def bug_supervisor(
"""See `ISeriesMixin`."""
return self.parent.
=== modified file 'lib/lp/ registry/ stories/ webservice/ xx-project- registry. txt' registry/ stories/ webservice/ xx-project- registry. txt 2010-03-05 13:14:49 +0000 registry/ stories/ webservice/ xx-project- registry. txt 2010-03-08 09:11:47 +0000
--- lib/lp/
+++ lib/lp/
@@ -810,7 +810,6 @@
>>> babadoo_foobadoo = webservice. get('/babadoo/ foobadoo' ).jsonBody( ) entry(babadoo_ foobadoo) milestones_ collection_ link: u'http:// .../babadoo/ foobadoo/ active_ milestones' milestones_ collection_ link: u'http:// .../babadoo/ foobadoo/ all_milestones' .../~babadoo- owner/babadoo/ fooey'
>>> pprint_
- active: True
active_
all_
branch_link: u'http://