File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -240,10 +240,10 @@ class TmuxRelationalObject(object):
240240 :class:`Window`)
241241
242242 Children of :class:`TmuxRelationalObject` are going to have a
243- ``self.children``, ``self.childIdAttribute `` and ``self.list_children``.
243+ ``self.children``, ``self.child_id_attribute `` and ``self.list_children``.
244244
245245 ================ ================== ===================== ============================
246- Object ``.children`` ``.childIdAttribute `` method
246+ Object ``.children`` ``.child_id_attribute `` method
247247 ================ ================== ===================== ============================
248248 :class:`Server` ``self._sessions`` 'session_id' :meth:`Server.list_sessions`
249249 :class:`Session` ``self._windows`` 'window_id' :meth:`Session.list_windows`
@@ -297,7 +297,7 @@ def by(val, *args):
297297 return list (filter (by , self .children ))
298298
299299 def get_by_id (self , id ):
300- """Return object based on ``childIdAttribute ``.
300+ """Return object based on ``child_id_attribute ``.
301301
302302 Based on `.get()`_ from `backbone.js`_.
303303
@@ -310,7 +310,7 @@ def get_by_id(self, id):
310310
311311 """
312312 for child in self .children :
313- if child [self .childIdAttribute ] == id :
313+ if child [self .child_id_attribute ] == id :
314314 return child
315315 else :
316316 continue
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ class Server(TmuxRelationalObject, EnvironmentMixin):
4444 #: ``-2`` or ``-8``
4545 colors = None
4646 #: unique child ID key
47- childIdAttribute = 'session_id'
47+ child_id_attribute = 'session_id'
4848 #: namespace used by tmux formatter variables
4949 formatter_prefix = 'server_'
5050
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ class Session(
2929
3030 """
3131
32- childIdAttribute = 'window_id'
32+ child_id_attribute = 'window_id'
3333 formatter_prefix = 'session'
3434
3535 def __init__ (self , server = None , ** kwargs ):
Original file line number Diff line number Diff line change 2121class Window (TmuxMappingObject , TmuxRelationalObject ):
2222 """:term:`tmux(1)` window."""
2323
24- childIdAttribute = 'pane_id'
24+ child_id_attribute = 'pane_id'
2525 formatter_prefix = 'window'
2626
2727 def __init__ (self , session = None , ** kwargs ):
You can’t perform that action at this time.
0 commit comments