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

Improve paging: Less config in template, add generic arguments for producer #228

Merged
merged 1 commit into from
May 24, 2014

Conversation

d22
Copy link

@d22 d22 commented May 24, 2014

  • Move config to views, add key to config to template tag (similar to producer)
  • Add generic arguments for the list producer

@d22 d22 added this to the Iteration 7 milestone May 24, 2014
@d22 d22 self-assigned this May 24, 2014
@cfaessler cfaessler assigned d22 and unassigned d22 May 24, 2014
@d22 d22 assigned cfaessler and unassigned d22 May 24, 2014

# get page count from stat producer
sp = stat_producer_dict.get(stat_producer)
sp = conf['stat_producer']

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If no value for the key 'stat_producer' is found, a KeyError is raised. Is this what you want to check, or is there a default value of None?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, you're right. I'll fix this (for this, and the follwing occurences).

@cfaessler
Copy link

Good to merge!

@d22 d22 merged commit 2ad9547 into master May 24, 2014
@d22 d22 deleted the issue228-improve-paging branch May 24, 2014 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants