~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/doc/archive.txt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-06-25 08:55:37 UTC
  • mfrom: (13287.1.8 bug-800652)
  • Revision ID: launchpad@pqm.canonical.com-20110625085537-moikyoo2pe98zs7r
[r=jcsackett, julian-edwards][bug=800634,
        800652] Enable and display overrides on sync package uploads.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
publication lookups and the complete publishing-pipeline from database
6
6
records to disk, including configuration and indexes.
7
7
 
8
 
    >>> from lp.services.webapp.testing import verifyObject
 
8
    >>> from canonical.launchpad.webapp.testing import verifyObject
9
9
    >>> from lp.registry.interfaces.distribution import (
10
10
    ...     IDistributionSet)
11
11
    >>> from lp.registry.interfaces.person import (
756
756
Now we will emulate a duplicated reference to the same 'orig.tar.gz',
757
757
upstream tarball, as if it was part of two different SourcePackageRelease.
758
758
 
759
 
    >>> from lp.services.librarian.interfaces import (
 
759
    >>> from canonical.launchpad.interfaces.librarian import (
760
760
    ...     ILibraryFileAliasSet,
761
761
    ...     )
762
762
    >>> huge_firefox_orig_file = getUtility(ILibraryFileAliasSet)[3]
904
904
Flush the database caches to invalidate old caches from the
905
905
corresponding publishing Postgres views.
906
906
 
907
 
    >>> from lp.services.database.sqlbase import flush_database_caches
 
907
    >>> from canonical.database.sqlbase import flush_database_caches
908
908
    >>> flush_database_caches()
909
909
 
910
910
 
2067
2067
As important as the right to upload packages to Joe's PPA, Carlos
2068
2068
also got the corresponding permissions on it.
2069
2069
 
2070
 
    >>> from lp.services.webapp.authorization import check_permission
 
2070
    >>> from canonical.launchpad.webapp.authorization import check_permission
2071
2071
    >>> login("carlos@canonical.com")
2072
2072
 
2073
2073
    >>> check_permission('launchpad.View', joes_ppa)