Commits

Jason R. Coombs committed 9bc43af

Changed __str__ of Agent to simply print the name and code.

  • Participants
  • Parent commits f69fea4

Comments (0)

Files changed (2)

File jaraco/financial/merchant.py

 	def __repr__(self):
 		return '{name} ({id})'.format(**vars(self))
 
-	def __str__(self):
-		return str(unicode(self))
-
-	def __unicode__(self):
+	def __details__(self):
 		lines = [repr(self)]
 		lines.extend(indent(self.merchant_lines()))
 		return '\n'.join(lines)
 		while True:
 			if raw_input('Add new obligation? ') != 'y':
 				break
-			agent_menu = ui.Menu(list(self),
-				formatter=operator.attrgetter('name'))
+			agent_menu = ui.Menu(list(self))
 			agent = agent_menu.get_choice('which agent? ')
-			merchant_menu = ui.Menu(list(agent.accounts),
-				formatter=operator.attrgetter('name'))
+			merchant_menu = ui.Menu(list(agent.accounts))
 			merchant = merchant_menu.get_choice('which merchant? ')
 			other_agents = set(self) - set([agent])
-			agent_menu = ui.Menu(list(other_agents),
-				formatter=operator.attrgetter('name'))
+			agent_menu = ui.Menu(list(other_agents))
 			obl_agent = agent_menu.get_choice('pays to whom? ')
 			amount = raw_input('what percentage? ')
 			amount = int(amount)/100
 	},
 	install_requires=[
 		'keyring',
-		'jaraco.util>=5.3',
+		'jaraco.util>=6.2.1',
 		'path.py',
 		'ofxparse',
 	] + argparse_req + dateutil_req,