Changeset 468
- Timestamp:
- 11/27/07 04:44:41 (1 year ago)
- Files:
-
- cly/trunk/cly/builder.py (modified) (4 diffs)
- cly/trunk/cly/interactive.py (modified) (1 diff)
- cly/trunk/cly/rlext.py (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cly/trunk/cly/builder.py
r467 r468 16 16 17 17 18 __all__ = ['Node', 'Alias', ' Set', 'Action', 'Variable', 'Grammar', 'Help',18 __all__ = ['Node', 'Alias', 'Group', 'Action', 'Variable', 'Grammar', 'Help', 19 19 'LazyHelp', 'Word', 'String', 'URI', 'LDAPDN', 'Integer', 'Float', 'IP', 20 20 'Hostname', 'Host', 'EMail', 'File'] … … 398 398 399 399 400 class Set(Node):400 class Group(Node): 401 401 """Apply settings to all ancestor nodes. 402 402 403 Terminates application of settings on any deeper Setnode.403 Terminates application of settings on any deeper Group node. 404 404 405 405 Before applying settings: … … 412 412 And after applying settings: 413 413 414 >>> apply = Set(traversals=0)(top)414 >>> apply = Group(traversals=0)(top) 415 415 >>> [node.traversals for node in top.walk()] 416 416 [0, 0, 0, 0] … … 426 426 427 427 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) 429 429 430 430 for child in self.walk(predicate=stop_on_ancestors): cly/trunk/cly/interactive.py
r455 r468 261 261 help.format(sys.stdout) 262 262 cly.rlext.force_redisplay() 263 return 0 263 264 except Exception, e: 264 265 Interact._dump_traceback(e)
