(hooke_cli.py) fixed tab problem
authoralbertogomcas <devnull@localhost>
Wed, 18 Jun 2008 12:53:44 +0000 (12:53 +0000)
committeralbertogomcas <devnull@localhost>
Wed, 18 Jun 2008 12:53:44 +0000 (12:53 +0000)
(liboutlet.py) fixed outlet.pop()
(hooke.conf) reverted to default file (oops)

hooke.conf
hooke_cli.py
liboutlet.py

index 8b39b46a5aec8901c866cadd45b34c66c17fa553..56e042f398fa5d11ad72248f8764d42ce96cf3be 100755 (executable)
@@ -2,13 +2,13 @@
 <!-- To comment something, put dashes and ! like here -->
 <config>
 <!-- Internal variabls. -->
-    <display ext="1" colour_ext="None" ret="1" colour_ret="None" correct="1" colour_correct="None" contact_point="0" medfilt="0" xaxes="0" yaxes="0" flatten="1" temperature="293" auto_fit_points="10" auto_slope_span="10" auto_delta_force="10" fc_showphase="0" fc_showimposed="0" fc_interesting="0"/>
+    <display ext="1" colour_ext="None" ret="1" colour_ret="None" correct="1" colour_correct="None" contact_point="0" medfilt="0" xaxes="0" yaxes="0" flatten="1" temperature="293" auto_fit_points="50" auto_slope_span="20" auto_delta_force="10" fc_showphase="0" fc_showimposed="0" fc_interesting="0"/>
 
 <!-- 
 The following section defines your own work directory. Substitute your work directory.
      -->
 <workdir>
-    /home/glacierre/hooke/
+    insert directory
 </workdir>
 
 <!--
index da1379e4b06a1cec8c2291340f80276eae20dff7..d50afcfafd3d095fb18d6f0bc14e66c877892dc6 100755 (executable)
@@ -752,18 +752,30 @@ Syntax copylog [directory]
 #OUTLET management
 
 
-       def do_outlet_show(self,args):
-               self.outlet.printbuf()
+    def do_outlet_show(self,args):
+        '''OUTLET_SHOW
+        ---------
+        Shows current content of outlet with index for reference
+        '''
+        self.outlet.printbuf()
 
     def do_outlet_undo(self, args):
+        '''OUTLET_UNDO
+        ---------
+        Eliminates last entry in outlet
+        '''
         print 'Erasing last entry'
         self.outlet.pop()
 
-       def do_outlet_delete(self, args):
-               if len(args)==0:
-                       print 'Index needed!, use outlet_show to know it'
-               else:
-                       self.outlet.delete(args)
+    def do_outlet_delete(self, args):
+        '''OUTLET_DELETE
+        Eliminates a particular entry from outlet
+        Syntax: outlet_delete n
+        '''
+        if len(args)==0:
+            print 'Index needed!, use outlet_show to know it'
+        else:
+            self.outlet.delete(args)
 
 
 
index 2aed8710ecd51659c1cf3793af208358caf06e00..81f875cc6da53541e0d3cf4c7184a77fcfc801ce 100644 (file)
@@ -21,9 +21,9 @@ class Outlet(object):
     def push(self, args):
         self.buffer.append(args)
 
-    def pop(self, args):
+    def pop(self):
        return self.buffer.pop();
-     
+
     def printbuf(self):
        j=1;
         for i in self.buffer: