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

feat(request): Add function to get param as date #498

Closed
wants to merge 1 commit into from

Conversation

mcm
Copy link
Contributor

@mcm mcm commented Apr 14, 2015

A user requested a feature where a param could be automatically parsed into a date.

closes #293
Supersedes #487

"""
Args:
name (str): Parameter name, case-sensitive (e.g., 'ids').
format_string (str): String used to parse the param value into a date. # NOQA
Copy link
Member

Choose a reason for hiding this comment

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

The NOQA actually gets rendered in the sphinx docs, so we'll have to come up with a different solution. For this line, it can simply be wrapped.

@kgriffs
Copy link
Member

kgriffs commented Apr 14, 2015

Once the docstring is fixed up, LGTM

A user requested a feature where a param could be automatically parsed into a date.

closes falconry#293
@mcm
Copy link
Contributor Author

mcm commented Apr 14, 2015

Docstring cleaned up, let me know how it looks.

Args:
name (str): Parameter name, case-sensitive (e.g., 'ids').
format_string (str): String used to parse the param value into a
date.
Copy link
Member

Choose a reason for hiding this comment

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

Looks like you'll need to indent this line to make sphinx happy (see attached). You can make the docs to check your changes:

pip install -r tools/doc-requires
cd doc
make html
open _built/html/index.html

screen shot 2015-04-15 at 10 53 30 am

@mcm mcm closed this Apr 16, 2015
@mcm mcm deleted the hl/feature_293 branch April 16, 2015 13:04
@necaris
Copy link

necaris commented Apr 18, 2015

Did this get merged? I can't tell if I need to rebase #493 on top of this functionality.

@mcm mcm restored the hl/feature_293 branch April 18, 2015 19:17
@mcm
Copy link
Contributor Author

mcm commented Apr 18, 2015

Nope looks like I killed this prematurely. @kgriffs @jmvrbanac I submitted a new PR #519 for these changes, rebased to current master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a helper to the Request class for getting a param as a date
3 participants