Changeset 2562
- Timestamp:
- 07/03/09 01:54:14 (9 months ago)
- Location:
- examples/branches/clients-603/shell/python
- Files:
-
- 1 added
- 1 modified
-
client.py (added)
-
gateway.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
examples/branches/clients-603/shell/python/gateway.py
r2413 r2562 14 14 import StringIO 15 15 16 import pyamf 16 17 from pyamf.remoting.gateway.django import DjangoGateway 17 18 … … 173 174 buffer = StringIO.StringIO() 174 175 175 buffer.write(statement + '\n')176 177 176 try: 178 177 session = request.session['shell_session'] … … 193 192 except: 194 193 buffer.write(traceback.format_exc()) 195 196 buffer.write('>>> ')197 194 198 195 return buffer.getvalue() 199 196 200 197 def startup(self, request): 201 return "Welcome to the PyAMF Python Shell Demo!\n\n>>> " 198 header = 'Welcome to the PyAMF %s Shell Demo!\n' \ 199 'Python %s on %s\n' \ 200 'Type "help", "copyright", "credits" or "license" for more information.' % \ 201 (pyamf.version, sys.version, sys.platform) 202 203 return header 202 204 203 205
