~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to scripts/upload2librarian.py

  • Committer: William Grant
  • Date: 2011-12-22 23:28:30 UTC
  • mfrom: (14585 devel)
  • mto: This revision was merged to the branch mainline in revision 14586.
  • Revision ID: william.grant@canonical.com-20111222232830-qjyioyjc3lqnxrka
Merge devel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
# pylint: disable-msg=W0403
7
7
"""Simple tool to upload arbitrary files into Librarian."""
8
8
 
9
 
import _pythonpath
10
 
 
11
9
import logging
12
10
import os
13
11
 
 
12
import _pythonpath
14
13
from zope.component import getUtility
15
14
 
16
 
from canonical.launchpad.interfaces.librarian import ILibraryFileAliasSet
17
15
from canonical.launchpad.helpers import filenameToContentType
 
16
from lp.services.librarian.interfaces import ILibraryFileAliasSet
18
17
from lp.services.scripts.base import (
19
 
    LaunchpadScript, LaunchpadScriptFailure)
 
18
    LaunchpadScript,
 
19
    LaunchpadScriptFailure,
 
20
    )
20
21
 
21
22
 
22
23
class LibrarianUploader(LaunchpadScript):