Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Refactor user, skill and cert data into separate modules #8

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

fastolfe
Copy link

This is for #4. No new functionality is being added and so this should behave exactly as it does today.

Some of the changes don't really simplify main.py very much (trade one line for another), but some of the code gets re-used by other modules and I didn't really want a circular dependency on main. I also couldn't think of a good way to consistently use dicts in lieu of model instances on one side of the split versus the other. Feedback welcome.


if not (key_id and vcode):
if not (key_id and user_data.validate_vcode(vcode)):
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason why you have one validation function return a new value and call it outside the conditional, and the other validation return a truth value and call it inside the conditional? I think it'd be a bit nicer to read to call both validation functions outside the conditional.

@ayust
Copy link
Member

ayust commented Feb 27, 2013

I've added some comments within the code itself.

@ayust
Copy link
Member

ayust commented Jun 4, 2013

Heya @fastolfe - I realized I never circled back to this. I think I might have dropped some context though - were there any pending issues we had discussed that haven't been addressed? If not, I can look into merging this.

@fastolfe
Copy link
Author

fastolfe commented Jun 4, 2013

I thought I'd left it in a 'done-ish' state but I admit I lost track of it
as well. I can take a look this evening to see what else needed to be done
here. It also would not hurt my feelings if this were deemed the Wrong
Direction, because IIRC the change did complicate the code somewhat.

On Tue Jun 04 2013 at 2:34:10 PM, Amber Yust [email protected]
wrote:

Heya @fastolfe https://github.com/fastolfe - I realized I never circled
back to this. I think I might have dropped some context though - were there
any pending issues we had discussed that haven't been addressed? If not, I
can look into merging this.


Reply to this email directly or view it on GitHubhttps://github.com//pull/8#issuecomment-18940698
.

@ayust
Copy link
Member

ayust commented Jun 15, 2013

Ping! Penny for your thoughts. :)

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

Successfully merging this pull request may close these issues.

2 participants