## Controller Python Script "txn_add" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind state=state ##bind subpath=traverse_subpath ##parameters=post_date='', description='', amount='', buyer='', users=[] ##title=Add a transaction from Products.CMFPlone import transaction_note if post_date == '': post_date = None context.addTransaction(description=description, amount=float(amount), buyer=buyer, users=users, post_date=post_date) transaction_note('Added transaction at %s' % context.absolute_url()) return state.set(portal_status_message='New transaction added.')