lib/lp/soyuz/interfaces/archive.py
40: [F0401] Unable to import 'lazr.enum' (No module named enum)
53: [F0401] Unable to import 'lazr.restful.declarations' (No module named
restful)
59: [F0401] Unable to import 'lazr.restful.fields' (No module named
restful)
444: [C0322, IArchivePublic.newPackagesetUploader] Operator not preceded
by a space
@export_factory_operation(Interface, [])
def newPackagesetUploader(person, packageset, explicit=False):
468: [C0322, IArchivePublic.getUploadersForPackageset] Operator not
preceded by a space
packageset=Reference(
^
Interface, title=_("Package set"), required=True),
direct_permissions=Bool(
title=_("Ignore package set hierarchy"), required=False))
@operation_returns_collection_of(Interface)
@export_read_operation()
def getUploadersForPackageset(packageset, direct_permissions=True):
490: [C0322, IArchivePublic.deletePackagesetUploader] Operator not
preceded by a space
packageset=Reference(
^
Interface, title=_("Package set"), required=True),
explicit=Bool(
title=_("Explicit"), required=False))
@export_write_operation()
def deletePackagesetUploader(person, packageset, explicit=False):
525: [C0322, IArchivePublic.getPackagesetsForSourceUploader] Operator not
preceded by a space
person=Reference(schema=IPerson))
^
@operation_returns_collection_of(Interface)
@export_read_operation()
def getPackagesetsForSourceUploader(sourcepackagename, person):
554: [C0322, IArchivePublic.getPackagesetsForSource] Operator not preceded
by a space
direct_permissions=Bool(
^
title=_("Ignore package set hierarchy"), required=False))
@operation_returns_collection_of(Interface)
@export_read_operation()
def getPackagesetsForSource(
sourcepackagename, direct_permissions=True):
583: [C0322, IArchivePublic.isSourceUploadAllowed] Operator not preceded
by a space
title=_("Source package name"), required=True),
^
person=Reference(schema=IPerson),
distroseries=Reference(
Interface,
title=_("The distro series"), required=False))
@export_read_operation()
def isSourceUploadAllowed(sourcepackagename, person, distroseries=None):
654: [C0322, IArchiveView.getPublishedSources] Operator not preceded by a
space
status=Choice(
^
title=_('Package Publishing Status'),
description=_('The status of this publishing record'),
Interface,
title=_("Distroseries name"), required=False),
pocket=Choice(
title=_("Pocket"),
description=_("The pocket into which this entry is published"),
vocabulary=DBEnumeratedType,
required=False, readonly=True),
exact_match=Bool(
title=_("Exact Match"),
description=_("Whether or not to filter source names by exact"
" matching."),
required=False),
created_since_date=Datetime(
title=_("Created Since Date"),
description=_("Return entries whose `date_created` is greater "
"than or equal to this date."),
required=False))
@operation_returns_collection_of(Interface)
@export_read_operation()
def getPublishedSources(name=None, version=None, status=None,
distroseries=None, pocket=None,
exact_match=False, created_since_date=None):
708: [C0322, IArchiveView.getAllPublishedBinaries] Operator not preceded
by a space
status=Choice(
^
title=_("Package Publishing Status"),
description=_("The status of this publishing record"),
Interface,
title=_("Distro Arch Series"), required=False),
pocket=Choice(
title=_("Pocket"),
description=_("The pocket into which this entry is published"),
vocabulary=DBEnumeratedType,
required=False, readonly=True),
exact_match=Bool(
description=_("Whether or not to filter binary names by exact "
"matching."),
required=False))
@operation_returns_collection_of(Interface)
@export_operation_as("getPublishedBinaries")
@export_read_operation()
def getAllPublishedBinaries(name=None, version=None, status=None,
distroarchseries=None, pocket=None,
exact_match=False):
752: [C0322, IArchiveView.getBuildCounters] Operator not preceded by a
space
title=_("Include builds with state NEEDSBUILD"), required=False))
^
@export_read_operation()
def getBuildCounters(include_needsbuild=True):
780: [C0322, IArchiveView.getBuildSummariesForSourceIds] Operator not
preceded by a space
title=_("A list of source publishing history record ids."),
^
value_type=Int()))
@export_read_operation()
def getBuildSummariesForSourceIds(source_ids):
878: [C0322, IArchiveAppend.syncSources] Operator not preceded by a space
title=_("Source package names"),
^
value_type=TextLine()),
from_archive=Reference(schema=Interface), #Really IArchive, see below
to_pocket=TextLine(title=_("Pocket name")),
to_series=TextLine(title=_("Distroseries name"), required=False),
include_binaries=Bool(
title=_("Include Binaries"),
description=_("Whether or not to copy binaries already built for"
" this source"),
required=False))
@export_write_operation()
def syncSources(source_names, from_archive, to_pocket,
to_series=None, include_binaries=False):
919: [C0322, IArchiveAppend.syncSource] Operator not preceded by a space
version=TextLine(title=_("Version")),
^
from_archive=Reference(schema=Interface), #Really IArchive, see below
to_pocket=TextLine(title=_("Pocket name")),
to_series=TextLine(title=_("Distroseries name"), required=False),
include_binaries=Bool(
title=_("Include Binaries"),
description=_("Whether or not to copy binaries already built for"
" this source"),
required=False))
@export_write_operation()
def syncSource(source_name, version, from_archive, to_pocket,
to_series=None, include_binaries=False):
959: [C0322, IArchiveAppend.newSubscription] Operator not preceded by a
space
title=_("Subscriber"),
^
required=True,
vocabulary='ValidPersonOrTeam',
description=_("The person who is subscribed.")),
date_expires=Datetime(title=_("Date of Expiration"), required=False,
description=_("The timestamp when the subscription will "
"expire.")),
description=Text(title=_("Description"), required=False,
description=_("Free text describing this subscription.")))
@export_factory_operation(Interface, [])
def newSubscription(subscriber, registrant, date_expires=None,
description=None):
998: [C0322, IArchiveEdit.newPackageUploader] Operator not preceded by a
space
source_package_name=TextLine(
^
title=_("Source Package Name"), required=True))
@export_factory_operation(Interface, [])
def newPackageUploader(person, source_package_name):
1014: [C0322, IArchiveEdit.newComponentUploader] Operator not preceded by
a space
component_name=TextLine(
^
title=_("Component Name"), required=True))
@export_factory_operation(Interface, [])
def newComponentUploader(person, component_name):
1031: [C0322, IArchiveEdit.newQueueAdmin] Operator not preceded by a space
component_name=TextLine(
^
title=_("Component Name"), required=True))
@export_factory_operation(Interface, [])
def newQueueAdmin(person, component_name):
1049: [C0322, IArchiveEdit.deletePackageUploader] Operator not preceded by
a space
source_package_name=TextLine(
^
title=_("Source Package Name"), required=True))
@export_write_operation()
def deletePackageUploader(person, source_package_name):
1062: [C0322, IArchiveEdit.deleteComponentUploader] Operator not preceded
by a space
component_name=TextLine(
^
title=_("Component Name"), required=True))
@export_write_operation()
def deleteComponentUploader(person, component_name):
1074: [C0322, IArchiveEdit.deleteQueueAdmin] Operator not preceded by a
space
component_name=TextLine(
^
title=_("Component Name"), required=True))
@export_write_operation()
def deleteQueueAdmin(person, component_name):
= Summary =
Enable the archive +edit form to set the 'publish' flag
== Proposed fix ==
Simple addition to the form fields on the +edit page.
== Pre-implementation notes ==
== Implementation details ==
It's trivial!
== Tests ==
bin/test -cvvt xx-ppa-workflow.txt
== Demo and Q/A ==
= Launchpad lint =
This lint is all crack. I'm ignoring it. We really need to fix the linter.
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: soyuz/stories/ ppa/xx- ppa-workflow. txt soyuz/interface s/archive. py soyuz/configure .zcml soyuz/browser/ archive. py
lib/lp/
lib/lp/
lib/lp/
lib/lp/
== Pylint notices ==
lib/lp/ soyuz/interface s/archive. py declarations' (No module named fields' (No module named newPackagesetUp loader] Operator not preceded
40: [F0401] Unable to import 'lazr.enum' (No module named enum)
53: [F0401] Unable to import 'lazr.restful.
restful)
59: [F0401] Unable to import 'lazr.restful.
restful)
444: [C0322, IArchivePublic.
by a space
packageset= Reference( _("Explicit" ), required=False))
^
Interface, title=_("Package set"), required=True),
explicit=Bool(
title=
@export_ factory_ operation( Interface, []) loader( person, packageset, explicit=False): getUploadersFor Packageset] Operator not Reference( permissions= Bool(
def newPackagesetUp
468: [C0322, IArchivePublic.
preceded by a space
packageset=
^
Interface, title=_("Package set"), required=True),
direct_
title=_("Ignore package set hierarchy"), required=False))
@operation_ returns_ collection_ of(Interface) read_operation( ) Packageset( packageset, direct_ permissions= True): deletePackagese tUploader] Operator not
@export_
def getUploadersFor
490: [C0322, IArchivePublic.
preceded by a space
packageset= Reference( _("Explicit" ), required=False)) write_operation () tUploader( person, packageset, explicit=False): getPackagesetsF orSourceUploade r] Operator not Reference( schema= IPerson) )
^
Interface, title=_("Package set"), required=True),
explicit=Bool(
title=
@export_
def deletePackagese
525: [C0322, IArchivePublic.
preceded by a space
person=
^
@operation_ returns_ collection_ of(Interface) read_operation( ) orSourceUploade r(sourcepackage name, person): getPackagesetsF orSource] Operator not preceded permissions= Bool(
@export_
def getPackagesetsF
554: [C0322, IArchivePublic.
by a space
direct_
^
title=_("Ignore package set hierarchy"), required=False))
@operation_ returns_ collection_ of(Interface) read_operation( ) orSource( gename, direct_ permissions= True): isSourceUploadA llowed] Operator not preceded Reference( schema= IPerson) , s=Reference(
@export_
def getPackagesetsF
sourcepacka
583: [C0322, IArchivePublic.
by a space
title=_("Source package name"), required=True),
^
person=
distroserie
Interface, read_operation( ) llowed( sourcepackagena me, person, distroseries=None): getPublishedSou rces] Operator not preceded by a _('Package Publishing Status'), =_('The status of this publishing record'),
title=_("The distro series"), required=False))
@export_
def isSourceUploadA
654: [C0322, IArchiveView.
space
status=Choice(
^
title=
description
vocabulary= DBEnumeratedTyp e, False), s=Reference(
required=
distroserie
Interface, _("Distroseries name"), required=False), _("Pocket" ), =_("The pocket into which this entry is published"),
title=
pocket=Choice(
title=
description
vocabulary= DBEnumeratedTyp e, match=Bool( =_("Whether or not to filter source names by exact" False), since_date= Datetime( _("Created Since Date"), =_("Return entries whose `date_created` is greater " False))
required=False, readonly=True),
exact_
title=_("Exact Match"),
description
" matching."),
required=
created_
title=
description
"than or equal to this date."),
required=
@operation_ returns_ collection_ of(Interface) read_operation( ) rces(name= None, version=None, status=None, s=None, pocket=None, match=False, created_ since_date= None): getAllPublished Binaries] Operator not preceded _("Package Publishing Status"), =_("The status of this publishing record"),
@export_
def getPublishedSou
distroserie
exact_
708: [C0322, IArchiveView.
by a space
status=Choice(
^
title=
description
vocabulary= DBEnumeratedTyp e, False), eries=Reference (
required=
distroarchs
Interface, _("Pocket" ), =_("The pocket into which this entry is published"),
title=_("Distro Arch Series"), required=False),
pocket=Choice(
title=
description
vocabulary= DBEnumeratedTyp e, match=Bool( =_("Whether or not to filter binary names by exact " False))
required=False, readonly=True),
exact_
description
"matching."),
required=
@operation_ returns_ collection_ of(Interface) operation_ as("getPublishe dBinaries" ) read_operation( ) Binaries( name=None, version=None, status=None, eries=None, pocket=None, match=False) : getBuildCounter s] Operator not preceded by a _("Include builds with state NEEDSBUILD"), required=False)) read_operation( ) s(include_ needsbuild= True): getBuildSummari esForSourceIds] Operator not type=Int( ))) read_operation( ) esForSourceIds( source_ ids): syncSources] Operator not preceded by a space type=TextLine( )), archive= Reference( schema= Interface) , #Really IArchive, see below pocket= TextLine( title=_ ("Pocket name")), series= TextLine( title=_ ("Distroseries name"), required=False), binaries= Bool( _("Include Binaries"), =_("Whether or not to copy binaries already built for" False)) write_operation ()
@export_
@export_
def getAllPublished
distroarchs
exact_
752: [C0322, IArchiveView.
space
title=
^
@export_
def getBuildCounter
780: [C0322, IArchiveView.
preceded by a space
title=_("A list of source publishing history record ids."),
^
value_
@export_
def getBuildSummari
878: [C0322, IArchiveAppend.
title=_("Source package names"),
^
value_
from_
to_
to_
include_
title=
description
" this source"),
required=
@export_
def syncSources( source_ names, from_archive, to_pocket, binaries= False): syncSource] Operator not preceded by a space TextLine( title=_ ("Version" )), archive= Reference( schema= Interface) , #Really IArchive, see below pocket= TextLine( title=_ ("Pocket name")), series= TextLine( title=_ ("Distroseries name"), required=False), binaries= Bool( _("Include Binaries"), =_("Whether or not to copy binaries already built for" False)) write_operation ()
to_series=None, include_
919: [C0322, IArchiveAppend.
version=
^
from_
to_
to_
include_
title=
description
" this source"),
required=
@export_
def syncSource( source_ name, version, from_archive, to_pocket, binaries= False): newSubscription ] Operator not preceded by a _("Subscriber" ), 'ValidPersonOrT eam', =_("The person who is subscribed.")), expires= Datetime( title=_ ("Date of Expiration"), required=False, =_("The timestamp when the subscription will " =Text(title= _("Description" ), required=False, =_("Free text describing this subscription.")))
to_series=None, include_
959: [C0322, IArchiveAppend.
space
title=
^
required=True,
vocabulary=
description
date_
description
"expire.")),
description
description
@export_ factory_ operation( Interface, []) (subscriber, registrant, date_expires=None, =None): newPackageUploa der] Operator not preceded by a package_ name=TextLine(
def newSubscription
description
998: [C0322, IArchiveEdit.
space
source_
^
title=_("Source Package Name"), required=True))
@export_ factory_ operation( Interface, []) der(person, source_ package_ name): newComponentUpl oader] Operator not preceded by name=TextLine( _("Component Name"), required=True))
def newPackageUploa
1014: [C0322, IArchiveEdit.
a space
component_
^
title=
@export_ factory_ operation( Interface, []) oader(person, component_name): newQueueAdmin] Operator not preceded by a space name=TextLine( _("Component Name"), required=True))
def newComponentUpl
1031: [C0322, IArchiveEdit.
component_
^
title=
@export_ factory_ operation( Interface, []) person, component_name): deletePackageUp loader] Operator not preceded by package_ name=TextLine( write_operation () loader( person, source_ package_ name): deleteComponent Uploader] Operator not preceded name=TextLine( _("Component Name"), required=True)) write_operation () Uploader( person, component_name): deleteQueueAdmi n] Operator not preceded by a name=TextLine( _("Component Name"), required=True)) write_operation () n(person, component_name):
def newQueueAdmin(
1049: [C0322, IArchiveEdit.
a space
source_
^
title=_("Source Package Name"), required=True))
@export_
def deletePackageUp
1062: [C0322, IArchiveEdit.
by a space
component_
^
title=
@export_
def deleteComponent
1074: [C0322, IArchiveEdit.
space
component_
^
title=
@export_
def deleteQueueAdmi