~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/doc/bugattachments.txt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2012-01-06 12:11:50 UTC
  • mfrom: (14625.2.7 gina-dsc-binaries)
  • Revision ID: launchpad@pqm.canonical.com-20120106121150-e0bucmb5qeyytnn9
[r=wgrant][bug=911943] Fix SourcePackageReleaseDscBinariesUpdater:
        round chunk_size to int (and document this issue).

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
    >>> from StringIO import StringIO
30
30
 
31
 
    >>> from canonical.lazr.testing.event import TestEventListener
 
31
    >>> from lp.testing.event import TestEventListener
32
32
    >>> from lazr.lifecycle.event import IObjectCreatedEvent
33
33
    >>> def attachment_added(attachment, event):
34
34
    ...     print "Attachment added: %r" % attachment.libraryfile.filename
173
173
If we set the limit to 0 we can upload it, though, since a value of 0
174
174
means no limit:
175
175
 
176
 
    >>> from canonical.config import config
 
176
    >>> from lp.services.config import config
177
177
    >>> max_attachment_size = """
178
178
    ...     [launchpad]
179
179
    ...     max_attachment_size: 0
423
423
 
424
424
Let's make our attachment a patch and search again:
425
425
 
426
 
    >>> from canonical.database.sqlbase import flush_database_updates
 
426
    >>> from lp.services.database.sqlbase import flush_database_updates
427
427
    >>> login('test@canonical.com')
428
428
    >>> attachment.type = BugAttachmentType.PATCH
429
429
    >>> flush_database_updates()