Changeset 468

Show
Ignore:
Timestamp:
11/27/07 04:44:41 (1 year ago)
Author:
athomas
Message:

cly: Renamed Set to Group and added a pure Python cly.rlext based on ctypes.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cly/trunk/cly/builder.py

    r467 r468  
    1616 
    1717 
    18 __all__ = ['Node', 'Alias', 'Set', 'Action', 'Variable', 'Grammar', 'Help', 
     18__all__ = ['Node', 'Alias', 'Group', 'Action', 'Variable', 'Grammar', 'Help', 
    1919           'LazyHelp', 'Word', 'String', 'URI', 'LDAPDN', 'Integer', 'Float', 'IP', 
    2020           'Hostname', 'Host', 'EMail', 'File'] 
     
    398398 
    399399 
    400 class Set(Node): 
     400class Group(Node): 
    401401    """Apply settings to all ancestor nodes. 
    402402 
    403     Terminates application of settings on any deeper Set node. 
     403    Terminates application of settings on any deeper Group node. 
    404404 
    405405    Before applying settings: 
     
    412412    And after applying settings: 
    413413 
    414     >>> apply = Set(traversals=0)(top) 
     414    >>> apply = Group(traversals=0)(top) 
    415415    >>> [node.traversals for node in top.walk()] 
    416416    [0, 0, 0, 0] 
     
    426426 
    427427        def stop_on_ancestors(node): 
    428             return node is self or not isinstance(node, Set
     428            return node is self or not isinstance(node, Group
    429429 
    430430        for child in self.walk(predicate=stop_on_ancestors): 
  • cly/trunk/cly/interactive.py

    r455 r468  
    261261            help.format(sys.stdout) 
    262262            cly.rlext.force_redisplay() 
     263            return 0 
    263264        except Exception, e: 
    264265            Interact._dump_traceback(e)