Thanks for submitting this change. The work looks really good.
Please fix the small items below and then I'll (try) to land it for you, if ec2 will let me. :(
> === modified file 'lib/lp/registry/interfaces/distroseries.py'
> --- lib/lp/registry/interfaces/distroseries.py 2010-04-08 18:40:18 +0000
+++ lib/lp/registry/interfaces/distroseries.py 2010-04-21 22:30:59 +0000
> @@ -250,33 +250,33 @@
> language_pack_base = Choice(
> title=_('Language pack base'), required=False,
> description=_('''
> - Language pack export with the export of all translations available
> - for this `IDistroSeries` when it was generated. Next delta exports
> - will be generated based on this one.
> + Language pack with the export of all translations
> + available for this distribution series when it was generated. The
> + subsequent update exports will be generated based on this one.
> '''), vocabulary='FilteredFullLanguagePack')
>
> language_pack_delta = Choice(
> - title=_('Language pack delta'), required=False,
> + title=_('Language pack update'), required=False,
> description=_('''
> - Language pack export with the export of all translation updates
> - available for this `IDistroSeries` since language_pack_base was
> - generated.
> + Language pack with the export of all translation updates
> + available for this distribution series since the language pack
> + base was generated.
> '''), vocabulary='FilteredDeltaLanguagePack')
>
> language_pack_proposed = Choice(
> title=_('Proposed language pack update'), required=False,
> description=_('''
> - Base or delta language pack export that is being tested and
> - proposed to be used as the new language_pack_base or
> - language_pack_delta for this `IDistroSeries`.
> + Base or update language pack export that is being tested and
> + proposed to be used as the new language pack base or
> + language pack update for this distribution series.
> '''), vocabulary='FilteredLanguagePack')
>
> language_pack_full_export_requested = Bool(
> title=_('Request a full language pack export'), required=True,
> description=_('''
> Whether next language pack generation will be a full export. This
> - is useful when delta packages are too big and want to merge all
> - those changes in the base package.
> + is useful when update packs are too big and want to merge all
> + those changes in the base pack.
Hi Adi,
Thanks for submitting this change. The work looks really good.
Please fix the small items below and then I'll (try) to land it for you, if ec2 will let me. :(
> === modified file 'lib/lp/ registry/ interfaces/ distroseries. py' registry/ interfaces/ distroseries. py 2010-04-08 18:40:18 +0000 registry/ interfaces/ distroseries. py 2010-04-21 22:30:59 +0000 'FilteredFullLa nguagePack' ) 'FilteredDeltaL anguagePack' ) pack_proposed = Choice( 'FilteredLangua gePack' ) pack_full_ export_ requested = Bool(
> --- lib/lp/
+++ lib/lp/
> @@ -250,33 +250,33 @@
> language_pack_base = Choice(
> title=_('Language pack base'), required=False,
> description=_('''
> - Language pack export with the export of all translations available
> - for this `IDistroSeries` when it was generated. Next delta exports
> - will be generated based on this one.
> + Language pack with the export of all translations
> + available for this distribution series when it was generated. The
> + subsequent update exports will be generated based on this one.
> '''), vocabulary=
>
> language_pack_delta = Choice(
> - title=_('Language pack delta'), required=False,
> + title=_('Language pack update'), required=False,
> description=_('''
> - Language pack export with the export of all translation updates
> - available for this `IDistroSeries` since language_pack_base was
> - generated.
> + Language pack with the export of all translation updates
> + available for this distribution series since the language pack
> + base was generated.
> '''), vocabulary=
>
> language_
> title=_('Proposed language pack update'), required=False,
> description=_('''
> - Base or delta language pack export that is being tested and
> - proposed to be used as the new language_pack_base or
> - language_pack_delta for this `IDistroSeries`.
> + Base or update language pack export that is being tested and
> + proposed to be used as the new language pack base or
> + language pack update for this distribution series.
> '''), vocabulary=
>
> language_
> title=_('Request a full language pack export'), required=True,
> description=_('''
> Whether next language pack generation will be a full export. This
> - is useful when delta packages are too big and want to merge all
> - those changes in the base package.
> + is useful when update packs are too big and want to merge all
> + those changes in the base pack.
s/This is/This information is/
> ''')) language_ pack_exported = Object(
>
> last_full_
> === modified file 'lib/lp/ translations/ browser/ distroseries. py' translations/ browser/ distroseries. py 2010-02-24 18:33:18 +0000 translations/ browser/ distroseries. py 2010-04-21 22:30:59 +0000 language_ packs full_pack( self):
> --- lib/lp/
> +++ lib/lp/
> @@ -122,6 +122,28 @@
>
> return unused_
>
> + @property
> + def have_latest_
Please add a docstring here.
> + current = self.context. language_ pack_base last_full_ language_ pack_exported file.http_ url == latest. file.http_ url): delta_pack( self):
> + latest = self.context.
> + if (current is None or
> + latest is None or
> + current.
> + return False
> + else:
> + return True
> +
> + @property
> + def have_latest_
And here.
> + current = self.context. language_ pack_delta last_delta_ language_ pack_exported file.http_ url == latest. file.http_ url): full_export( self): request_ value != language_ pack_full_ export_ requested) :
> + latest = self.context.
> + if (current is None or
> + latest is None or
> + current.
> + return False
> + else:
> + return True
> +
> def _request_
> if (self.old_
> self.context.
> === modified file 'lib/lp/ translations/ templates/ distroseries- language- packs.pt' translations/ templates/ distroseries- language- packs.pt 2009-09-17 11:10:49 +0000 translations/ templates/ distroseries- language- packs.pt 2010-04-21 22:30:59 +0000
> --- lib/lp/
> +++ lib/lp/