Example #1
0
	def ransom_fund_share(self, fund, money):
		application = RansomApplication(
				fund = fund,
				money = money,
				owner = self
		)
		application.save()
		send_notification(recipient = fund.account.profile.user, verb = u'申请赎回份额', actor = self.profile.user, action = 'delete', target=application)
Example #2
0
	def ransom_fund_share(self, fund, money):
		application = RansomApplication(
				fund = fund,
				money = money,
				owner = self
		)
		application.save()
		dispatcher.send('ransom', {
				'actor': self,
				'money': money,
		}, recipient = fund.account.profile.user, action = 'delete', important = True)