Ticket #245 (closed task: fixed)

Opened 2 years ago

Last modified 23 months ago

Interactive Python shell in Flex

Reported by: thijs Owned by: nick
Priority: major Milestone: 0.3.1
Component: Examples Version: 0.3
Keywords: Cc:
Fixed in revision: Branch:
Author:

Description (last modified by thijs) (diff)

Create a Python shell example similar to this one done with ajax:  http://shell.appspot.com

We also need syntax highlighting with  Pygments.

See ShellExample

Change History

  Changed 2 years ago by thijs

  • status changed from new to accepted

  Changed 2 years ago by thijs

  • version changed from 0.2 to 0.3
  • milestone changed from 0.3 to 0.4

  Changed 2 years ago by thijs

  • description modified (diff)
  • milestone changed from 0.4 to 0.3.1

follow-up: ↓ 5   Changed 23 months ago by nick

Typing Ctrl+[Up] or [Down] should cycle through the history of the statements entered in the input box. Apart from that I think we are good to go, although we need to decide wth to do about 'sensitive' modules or data in the app.

in reply to: ↑ 4   Changed 23 months ago by thijs

  • owner changed from thijs to feisley
  • status changed from accepted to assigned

Replying to nick:

Typing Ctrl+[Up] or [Down] should cycle through the history of the statements entered in the input box.

This was fixed in r1241. What is left to do is fixing this example so it's generic and not GAE specific. feisley suggested to copy the python code from the google_appengine folder to the shell/python folder and adapt the code there. Assigning to feisley

follow-up: ↓ 7   Changed 23 months ago by thijs

  • owner changed from feisley to nick

As soon as Nick updated the ShellExample page with the additional instructions for setting up the required database stuff this ticket can be closed. Getting this error with the dev server till then:

  File "/Volumes/collab1/Sites/software/django/django/db/backends/dummy/base.py", line 14, in complain
    raise ImproperlyConfigured, "You haven't set the DATABASE_ENGINE setting yet."
ImproperlyConfigured: You haven't set the DATABASE_ENGINE setting yet.

in reply to: ↑ 6   Changed 23 months ago by thijs

Replying to thijs:

Getting this error with the dev server till then: {{{ File "/Volumes/collab1/Sites/software/django/django/db/backends/dummy/base.py", line 14, in complain raise ImproperlyConfigured, "You haven't set the DATABASE_ENGINE setting yet." ImproperlyConfigured: You haven't set the DATABASE_ENGINE setting yet. }}}

Fixed that error in r1291 but now getting this error during the startup call:

>>> import pyamf
Traceback (most recent call last):
  File "/Volumes/collab1/Sites/software/pyamf/examples/trunk/shell/python/../python/gateway.py", line 192, in evalCode
    session.put()
AttributeError: 'ShellSession' object has no attribute 'put'
>>> 

  Changed 23 months ago by nick

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in r1294.

Note: See TracTickets for help on using tickets.