Skip to content

Commit

Permalink
remove pdb's
Browse files Browse the repository at this point in the history
  • Loading branch information
pbauer committed Jun 15, 2018
1 parent a7ae5f3 commit 5c43c5f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions plone/namedfile/marshaler.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,11 @@ def postProcessMessage(self, message):
"""Encode message as base64 and set content disposition
"""
value = self._query()
import pdb; pdb.set_trace

if value is not None:
filename = value.filename

if filename:
import pdb; pdb.set_trace

message.add_header('Content-Disposition', 'attachment')
message.set_param(
Expand Down
2 changes: 0 additions & 2 deletions plone/namedfile/marshaler.rst
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ refuses to encode non-primary fields::
>>> from zope.interface import alsoProvides
>>> alsoProvides(ITestContent['_file'], IPrimaryField)
>>> message = constructMessageFromSchema(t, ITestContent)
>>> import pdb; pdb.set_trace()
>>> messageBody = renderMessage(message)
>>> print(messageBody)
MIME-Version: 1.0
Expand Down Expand Up @@ -175,7 +174,6 @@ Let's now use this message to construct a new object::
If we have two primary fields, they will be encoded as a multipart message::

>>> alsoProvides(ITestContent['_image'], IPrimaryField)
>>> import pdb; pdb.set_trace();
>>> message = constructMessageFromSchema(t, ITestContent)
>>> messageBody = renderMessage(message)
>>> print(messageBody) # doctest: +ELLIPSIS
Expand Down

0 comments on commit 5c43c5f

Please sign in to comment.