+ def update_split(self):
+ """
+ Re-split an expenditure using the same percentages as what is
+ currently in the database
+ """
+
+ old_splits = meta.Session.query(Split).filter(Split.expenditure==self)
+ split_dict = dict((s.user, Decimal(int(s.share))) for s in old_splits)
+ self.split(split_dict)
+