Merge lp:~jelmer/launchpad/613468-xb-ppa-db into lp:launchpad/db-devel
| Status: | Merged |
|---|---|
| Approved by: | Jelmer Vernooij on 2010-08-12 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 9651 |
| Proposed branch: | lp:~jelmer/launchpad/613468-xb-ppa-db |
| Merge into: | lp:launchpad/db-devel |
| Diff against target: |
404 lines (+147/-40) 14 files modified
database/schema/comments.sql (+2/-0) database/schema/patch-2207-82-0.sql (+11/-0) lib/lp/registry/interfaces/distroseries.py (+3/-1) lib/lp/registry/model/distroseries.py (+3/-2) lib/lp/soyuz/doc/binarypackagebuild.txt (+11/-22) lib/lp/soyuz/interfaces/binarypackagebuild.py (+5/-4) lib/lp/soyuz/interfaces/binarypackagerelease.py (+3/-1) lib/lp/soyuz/interfaces/sourcepackagerelease.py (+3/-3) lib/lp/soyuz/model/binarypackagebuild.py (+7/-5) lib/lp/soyuz/model/binarypackagerelease.py (+18/-0) lib/lp/soyuz/model/sourcepackagerelease.py (+17/-0) lib/lp/soyuz/tests/test_binarypackagerelease.py (+51/-0) lib/lp/soyuz/tests/test_sourcepackagerelease.py (+9/-0) lib/lp/testing/factory.py (+4/-2) |
| To merge this branch: | bzr merge lp:~jelmer/launchpad/613468-xb-ppa-db |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Michael Nelson (community) | code | 2010-08-11 | Approve on 2010-08-12 |
| Stuart Bishop | db | 2010-08-11 | Approve on 2010-08-11 |
| Robert Collins | db | 2010-08-11 | Pending |
|
Review via email:
|
|||
Commit Message
Add SourcePackageRe
Description of the Change
This adds a database field for user_defined_fields to SourcePackageRe
Pre-implementation call: with bigjools
Tests:
./bin/test lp.soyuz.
| Michael Nelson (michael.nelson) wrote : | # |
Hi Jelmer! Nice clean branch :)
> === modified file 'lib/lp/
> --- lib/lp/
> +++ lib/lp/
> @@ -125,10 +125,11 @@
>
> def createBinaryPac
> binarypackagename, version, summary, description, binpackageformat,
> - component, section, priority, shlibdeps, depends, recommends,
> - suggests, conflicts, replaces, provides, pre_depends, enhances,
> - breaks, essential, installedsize, architecturespe
> - debug_package):
> + component, section, priority, installedsize, architecturespe
> + shlibdeps=None, depends=None, recommends=None, suggests=None,
> + conflicts=None, replaces=None, provides=None, pre_depends=None,
> + enhances=None, breaks=None, essential=False, debug_package=None,
> + user_defined_
I'm assuming you've checked that all call-sites use kwargs before re-ordering... and my next question was going to be are you sure that all those kwargs are really optional, but your test_provides() ensures that too :)
> """Create and return a `BinaryPackageR
>
> The binarypackagere
>
> === modified file 'lib/lp/
> --- lib/lp/
> +++ lib/lp/
> @@ -56,6 +56,8 @@
> title=_("Debug package"), schema=Interface, required=False,
> description=_("The corresponding package containing debug symbols "
> "for this binary."))
> + user_defined_fields = Attribute(
> + "Sequence of user-defined fields as key-value pairs.")
you could use zope.schema.List instead of attribute:
user_
if that's what it is.
>
> files = Attribute("Related list of IBinaryPackageFile entries")
>
>
> === modified file 'lib/lp/
> --- lib/lp/
> +++ lib/lp/
> @@ -96,8 +96,8 @@
> "was first uploaded in Launchpad")
> publishings = Attribute(
>
> -
> -
> + user_defined_fields = Attribute(
> + "Sequence of user-defined fields as key-value pairs.")
Same here.
> # read-only properties
> name = Attribute('The sourcepackagename for this release, as text')
> title = Attribute('The title of this sourcepackagere
>
> === modified file 'lib/lp/
> --- lib/lp/
> +++ lib/lp/
> @@ -13,6...

Fine, but needs comments on the new columns in comments.sql
patch-2207-82-0.sql