Changeset 4187
- Timestamp:
- 03/01/08 09:52:59 (5 months ago)
- Files:
-
- branches/1.0/turbogears/command/base.py (modified) (4 diffs)
- branches/1.1/turbogears/command/base.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.0/turbogears/command/base.py
r4079 r4187 1 " Commands for the TurboGears command line tool."1 """Commands for the TurboGears command line tool.""" 2 2 import optparse 3 3 import sys … … 176 176 using_sqlalchemy = True 177 177 database.get_engine() 178 locals.update( session=database.session,179 metadata=database.metadata)178 locals.update(dict(session=database.session, 179 metadata=database.metadata)) 180 180 else: 181 181 using_sqlalchemy = False … … 188 188 def raw_input(self, *args, **kw): 189 189 try: 190 return \ 191 IPython.iplib.InteractiveShell.raw_input(self, 192 *args, **kw) 190 return IPython.iplib.InteractiveShell.raw_input(self, 191 *args, **kw) # needs decoding (see below)? 193 192 except EOFError: 194 193 b = raw_input("Do you wish to commit your " … … 213 212 except ImportError: 214 213 pass 215 216 214 try: 217 215 return code.InteractiveConsole.raw_input(self, 218 *args, **kw)216 *args, **kw).decode(sys.stdin.encoding) 219 217 except EOFError: 220 218 b = raw_input("Do you wish to commit your " branches/1.1/turbogears/command/base.py
r4079 r4187 1 " Commands for the TurboGears command line tool."1 """Commands for the TurboGears command line tool.""" 2 2 import optparse 3 3 import sys … … 188 188 def raw_input(self, *args, **kw): 189 189 try: 190 return \ 191 IPython.iplib.InteractiveShell.raw_input(self, 192 *args, **kw) 190 return IPython.iplib.InteractiveShell.raw_input(self, 191 *args, **kw) # needs decoding (see below)? 193 192 except EOFError: 194 193 b = raw_input("Do you wish to commit your " … … 213 212 except ImportError: 214 213 pass 215 216 214 try: 217 215 return code.InteractiveConsole.raw_input(self, 218 *args, **kw)216 *args, **kw).decode(sys.stdin.encoding) 219 217 except EOFError: 220 218 b = raw_input("Do you wish to commit your "