comparison cmd2.py @ 216:dcc5f871a5b6

more postparse hook work
author catherine@dellzilla
date Mon, 16 Mar 2009 12:32:39 -0400
parents e9091d9a3a60
children 0a2fd4b5dad7
comparison
equal deleted inserted replaced
215:e9091d9a3a60 216:dcc5f871a5b6
543 statement = self.parsed(statement) 543 statement = self.parsed(statement)
544 except Exception, e: 544 except Exception, e:
545 print e 545 print e
546 return 0 546 return 0
547 547
548 (stop, statement) = self.postparsing_precmd(statement) 548 try:
549 (stop, statement) = self.postparsing_precmd(statement)
550 except Exception, e:
551 print str(e)
552 return 0
549 if stop: 553 if stop:
550 return self.postparsing_postcmd(stop) 554 return self.postparsing_postcmd(stop)
551 555
552 if not statement.parsed.command: 556 if not statement.parsed.command:
553 return self.postparsing_postcmd(stop=0) 557 return self.postparsing_postcmd(stop=0)