Permalink
Browse files

Merge methods _get_info() and _parse_info().

  • Loading branch information...
1 parent 2ca1eb2 commit 01a28869f57784a568a3733f1b9e9d1204d408ba @nyuhuhuu committed Oct 10, 2011
Showing with 2 additions and 6 deletions.
  1. +2 −6 trac2kanban/__init__.py
View
@@ -110,14 +110,10 @@ def __init__(self, service, board_name, trac_env):
self.lane_id, self.card_type_id = self._get_info()
def _get_info(self):
- """Returns board info."""
+ """Returns list of lane ID and card type ID."""
board_info_url = "%s/Kanban/Api/Board/%s/GetBoardIdentifiers" % \
(self.service.base_url, self.board_id)
- content = self.service.call(board_info_url)
- return self._parse_info(content)
-
- def _parse_info(self, data):
- """Returns list of lane ID and card type ID."""
+ data = self.service.call(board_info_url)
lane_position = int(self.env.config.get(CONFIG_SECTION, 'kanban_lane_position'))
card_types = self.env.config.getlist(CONFIG_SECTION, 'kanban_card_type')
info = [data['ReplyData'][0]['Lanes'][lane_position]['Id']]

0 comments on commit 01a2886

Please sign in to comment.