Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow request parameter overrides for template, orientation and paperformat #86

Merged
merged 4 commits into from
Feb 27, 2020

Conversation

ramonski
Copy link
Contributor

Description of the issue/feature this PR addresses

This PR allows to override the default settings for template, orientation and paperformat by request parameters:

You can now set the following parameters:

  • paperformat: One of the defined paperformats, e.g. paperformat=letter
  • orientation: Either landscape or portrait, e.g. orientation=landscape
  • template: An existing template with prefix, e.g. senaite.impress:MultiDefaultByColumn.pt

Current behavior before PR

Template, Orientation and Paperformat could be only set in the settings

Desired behavior after PR is merged

Request Parameters can override Template, Orientation and Paperformat from the settings

--
I confirm I have tested this PR thoroughly and coded it according to PEP8
and Plone's Python styleguide standards.

@xispa xispa merged commit 7c5889a into master Feb 27, 2020
@xispa xispa deleted the request-parameter-overrides branch February 27, 2020 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants