def _get_signature_string(self): _val = lambda name: to_unicode(self.cleaned_data[name]) standard_part = ':'.join( [_val('OutSum'), _val('InvId'), self.password1]) return self._append_extra_part(standard_part, _val)
def _val(name): if name in self.initial: value = self.initial[name] else: value = self.fields[name].initial return '' if value is None else to_unicode(value)
def _initial(key, fld): val = self.initial.get(key, fld.initial) if not val: return val return to_unicode(val).encode('1251')
def _get_signature_string(self): _val = lambda name: to_unicode(self.cleaned_data[name]) standard_part = ':'.join( [_val('OutSum'), _val('InvId'), self.password1]) return self._append_extra_part(standard_part, _val)
def _val(name): if name in self.initial: value = self.initial[name] else: value = self.fields[name].initial return '' if value is None else to_unicode(value)
def _initial(key, fld): val = self.initial.get(key, fld.initial) if not val: return val return to_unicode(val).encode('1251')