[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit fedce45deaff6a98a54de5922b09ae6c78814146
Author: Sathyanarayanan Gunasekaran <gsathya.ceg@xxxxxxxxx>
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))
   



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits