parameters: (self)
return_statement: return self.cleaned_data['old_password']
docstring: Validate that the email is not already registered with another user
docstring_summary: Validate that the email is not already registered with another user
docstring_tokens: Validate that the email is not already registered with another user
function: def clean_old_password(self):
          """ Validate that the email is not already registered with another user """
          if not self.user.check_password(self.cleaned_data['old_password']):
              raise django_forms.ValidationError(_(u'Invalid password.'))
          return self.cleaned_data['old_password']
function_tokens: def clean_old_password ( self ) : if not self . user . check_password ( self . cleaned_data [ 'old_password' ] ) : raise django_forms . ValidationError ( _ ( u'Invalid password.' ) ) return self . cleaned_data [ 'old_password' ]