Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

bug 1042820 - moor tidy of apps/amo #2460

Merged
merged 1 commit into from Sep 3, 2014
Merged

Conversation

eviljeff
Copy link
Member

Not all of it, by a long way, but the bits I could clearly see were used or unused. Also I figured I better push the progress so far while its still (semi-) understandable.

@@ -170,3 +170,41 @@ def escalate_prerelease_permissions(app, validation, version):
app, version, nobody, 'App uses prerelease permissions',
'developers/emails/prerelease_escalation.ltxt',
amo.LOG.ESCALATION_PRERELEASE_APP)


class SeparatedValuesField(fields.Field):
Copy link
Member

Choose a reason for hiding this comment

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

I'd prefer to move this to mkt/developers/fields.py (which doesn't exist yet). Also, fix the import issue (fields is not imported)

@eviljeff eviljeff force-pushed the moreamotidy branch 12 times, most recently from 0a5d7f2 to 75db70c Compare September 1, 2014 17:41
@eviljeff
Copy link
Member Author

eviljeff commented Sep 1, 2014

okay, this is finished for now. I could add more of course, at the risk of introducing more breakage and having a more confusing diff.

@eviljeff eviljeff force-pushed the moreamotidy branch 2 times, most recently from 249cd18 to 883009f Compare September 2, 2014 11:20
if value:
self.value_list.append(base_field.clean(value))

return u', '.join(self.value_list)
Copy link
Member

Choose a reason for hiding this comment

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

This is generally useful. I'd vote we put this in mkt/site/fields.py as it's not just a devhub thing even if that's the only place it might be used now.

@robhudson
Copy link
Member

I took a look and everything looks pretty good. Just one comment about a Field I think should be in a more general location.

@eviljeff
Copy link
Member Author

eviljeff commented Sep 2, 2014

@robhudson done.

@robhudson
Copy link
Member

r+ from me

robhudson added a commit that referenced this pull request Sep 3, 2014
bug 1042820 - moor tidy of apps/amo
@robhudson robhudson merged commit b79a77b into mozilla:master Sep 3, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants