Changeset 322 in tailor for vcpx/session.py
- Timestamp:
- 05/24/05 01:04:26 (8 years ago)
- Hash name:
- 20050523230426-97f81-6b302f6ff9ca5090e879545fbbea544d84d3621f
- File:
-
- 1 edited
-
vcpx/session.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vcpx/session.py
r320 r322 27 27 """ 28 28 29 29 def yesno(arg): 30 "Return True for '1', 'true' or 'yes', False otherwise." 31 32 try: 33 return bool(int(arg)) 34 except ValueError: 35 return arg.lower() in ('true', 'yes') 36 30 37 class Session(Cmd): 31 38 """Tailor interactive session.""" … … 185 192 186 193 if arg: 187 SystemCommand.VERBOSE = bool(arg)194 SystemCommand.VERBOSE = yesno(arg) 188 195 189 196 self.__log('Print executed commands: %s\n' % SystemCommand.VERBOSE) … … 225 232 226 233 if arg: 227 SyncronizableTargetWorkingDir.REMOVE_FIRST_LOG_LINE = bool(arg)234 SyncronizableTargetWorkingDir.REMOVE_FIRST_LOG_LINE = yesno(arg) 228 235 229 236 self.__log('Remove first log line: %s\n' % … … 241 248 242 249 if arg: 243 Changeset.REFILL_MESSAGE = bool(arg)250 Changeset.REFILL_MESSAGE = yesno(arg) 244 251 245 252 self.__log('Refill changelogs: %s\n' % Changeset.REFILL_MESSAGE)
Note: See TracChangeset
for help on using the changeset viewer.
