Browse files

Use self.context instead of self in getToolByName

  • Loading branch information...
1 parent c230dd8 commit bdfe3018e47d2e2f671222eec6feedf4f793dc77 @csenger csenger committed Jul 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Products/EasyNewsletter/browser/newsletter.py
View
2 Products/EasyNewsletter/browser/newsletter.py
@@ -70,7 +70,7 @@ def confirm_newsletter(self):
def change_email(self):
putils = getToolByName(self.context, "plone_utils")
catalog = getToolByName(self.context, "reference_catalog")
- registration_tool = getToolByName(self, 'portal_registration')
+ registration_tool = getToolByName(self.context, 'portal_registration')
uid = self.request.get("subscriber")
subscriber = catalog.lookupObject(uid)

0 comments on commit bdfe301

Please sign in to comment.