[tor-commits] [arm/master] Fix AttributeError in makeViewMenu()

atagar at torproject.org atagar at torproject.org
Thu Jan 17 06:37:11 UTC 2013


commit fedce45deaff6a98a54de5922b09ae6c78814146
Author: Sathyanarayanan Gunasekaran <gsathya.ceg at gmail.com>
Date:   Tue Jan 15 12:01:44 2013 +0530

    Fix AttributeError in makeViewMenu()
    
    stem has to_camel_case() and not camel_case(), which was
    causing the attribute error.
---
 src/cli/menu/actions.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/cli/menu/actions.py b/src/cli/menu/actions.py
index 3cf7eb6..db2da5a 100644
--- a/src/cli/menu/actions.py
+++ b/src/cli/menu/actions.py
@@ -86,7 +86,7 @@ def makeViewMenu():
     
     for i in range(control.getPageCount()):
       pagePanels = control.getDisplayPanels(pageNumber = i, includeSticky = False)
-      label = " / ".join([str_tools.camel_case(panel.getName()) for panel in pagePanels])
+      label = " / ".join([str_tools.to_camel_case(panel.getName()) for panel in pagePanels])
       
       viewMenu.add(cli.menu.item.SelectionMenuItem(label, pageGroup, i))
   





More information about the tor-commits mailing list