Skip to content

Commit

Permalink
The big rename from knoboo to codenodegit s
Browse files Browse the repository at this point in the history
  • Loading branch information
clemesha committed Jun 8, 2009
1 parent be333e5 commit 235e91b
Show file tree
Hide file tree
Showing 410 changed files with 310 additions and 310 deletions.
14 changes: 7 additions & 7 deletions MANIFEST.in
@@ -1,9 +1,9 @@
include knoboo/twisted/plugins/knoboo_plugin.py
include knoboo/data/knoboo.db
include codenode/twisted/plugins/codenode_plugin.py
include codenode/data/codenode.db

graft knoboo/frontend/static
recursive-include knoboo/frontend/static/js *
recursive-include knoboo/frontend/static/css *
recursive-include knoboo/frontend/static/img *
graft codenode/frontend/static
recursive-include codenode/frontend/static/js *
recursive-include codenode/frontend/static/css *
recursive-include codenode/frontend/static/img *

recursive-include knoboo/frontend/templates *
recursive-include codenode/frontend/templates *
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Expand Up @@ -3,8 +3,8 @@
import urlparse

from twisted.internet import defer, protocol, reactor
from knoboo.external.twisted.web.xmlrpc import QueryProtocol, payloadTemplate
from knoboo.external.twisted.web.xmlrpc import Proxy
from codenode.external.twisted.web.xmlrpc import QueryProtocol, payloadTemplate
from codenode.external.twisted.web.xmlrpc import Proxy
from twisted.python import failure

class RPCQueryFactory(protocol.ReconnectingClientFactory):
Expand Down
File renamed without changes.
Expand Up @@ -13,7 +13,7 @@
import os

def build_env(config):
"""PYTHONPATH is usefull when knoboo is not installed in the system
"""PYTHONPATH is usefull when codenode is not installed in the system
"""
#env = {'PYTHONPATH':os.getenv('PYTHONPATH'),
# 'HOME':os.getenv('HOME')}
Expand All @@ -38,7 +38,7 @@ def build_jailed_env(config):
return env

def build_namespace():
from knoboo.backend.kernel.engine.python.introspection import introspect
from codenode.backend.kernel.engine.python.introspection import introspect
try:
USERNAMESPACE = locals()
USERNAMESPACE.update({"introspect":introspect})
Expand Down Expand Up @@ -116,9 +116,9 @@ def write_startup_file(self):
def engine_startup(self, port):
ENGINE_STARTUP="""
import sys
from knoboo.backend.kernel.engine.server import EngineRPCServer
from knoboo.backend.kernel.engine.python.interpreter import Interpreter
from knoboo.backend.kernel.engine.python.runtime import build_namespace
from codenode.backend.kernel.engine.server import EngineRPCServer
from codenode.backend.kernel.engine.python.interpreter import Interpreter
from codenode.backend.kernel.engine.python.runtime import build_namespace
namespace = build_namespace
server = EngineRPCServer(('127.0.0.1', %s), Interpreter, namespace)
server.serve_forever()
Expand All @@ -128,10 +128,10 @@ def engine_startup(self, port):
def jailed_engine_startup(self, port, root, pythonpath, uid, gid):
ENGINE_STARTUP="""
import sys
from knoboo.backend.kernel.engine import base
from knoboo.backend.kernel.engine.server import EngineRPCServer
from knoboo.backend.kernel.engine.python.interpreter import Interpreter
from knoboo.backend.kernel.engine.python.runtime import build_namespace
from codenode.backend.kernel.engine import base
from codenode.backend.kernel.engine.server import EngineRPCServer
from codenode.backend.kernel.engine.python.interpreter import Interpreter
from codenode.backend.kernel.engine.python.runtime import build_namespace
jail = base.Jail('%s', '%s', %s, %s)
entered = jail.enter_jail()
if not entered:
Expand Down
Expand Up @@ -18,17 +18,17 @@
import sys
from code import softspace, InteractiveInterpreter

#from knoboo.kernel.engine.python.outputtrap import OutputTrap
#from knoboo.kernel.engine.python.completer import Completer
#from knoboo.kernel.engine.python.introspection import introspect
#from codenode.kernel.engine.python.outputtrap import OutputTrap
#from codenode.kernel.engine.python.completer import Completer
#from codenode.kernel.engine.python.introspection import introspect
from outputtrap import OutputTrap
from completer import Completer
from introspection import introspect

class KnobooError(Exception):
class codenodeError(Exception):
pass

class OperationAborted(KnobooError):
class OperationAborted(codenodeError):
def __init__(self, value):
self.value = value

Expand Down
@@ -1,9 +1,9 @@
import os
from django.conf import settings
from knoboo.backend.kernel.engine import base
from codenode.backend.kernel.engine import base

def build_env():
"""PYTHONPATH is usefull when knoboo is not installed in the system
"""PYTHONPATH is usefull when codenode is not installed in the system
"""
#env = {'PYTHONPATH':os.getenv('PYTHONPATH'),
# 'HOME':os.getenv('HOME')}
Expand All @@ -18,14 +18,14 @@ def build_env():


def build_namespace():
from knoboo.backend.kernel.engine.python.introspection import introspect
from codenode.backend.kernel.engine.python.introspection import introspect
try:
import matplotlib
matplotlib.use('Agg')
from knoboo.external.mmaplotlib import knoboo_plot
from codenode.external.mmaplotlib import codenode_plot
from pylab import *
USERNAMESPACE = locals()
USERNAMESPACE.update({"show":knoboo_plot.show, "introspect":introspect})
USERNAMESPACE.update({"show":codenode_plot.show, "introspect":introspect})
except ImportError:
USERNAMESPACE={"introspect":introspect}
return USERNAMESPACE
Expand Down
@@ -1,5 +1,5 @@

from knoboo.kernel.engine.python.interpreter import Interpreter as Python
from codenode.kernel.engine.python.interpreter import Interpreter as Python
from sage.misc.preparser import preparse


Expand Down
@@ -1,6 +1,6 @@
import os
from django.conf import settings
from knoboo.kernel.engine import base
from codenode.backend.kernel.engine import base



Expand Down Expand Up @@ -88,20 +88,20 @@ def build_path_list(env_variables, other_paths):
return path

def build_namespace():
from knoboo.kernel.engine.python.introspection import introspect
from codenode.backend.kernel.engine.python.introspection import introspect
from sage.all import *
try:
from knoboo.external.mmaplotlib.knoboo_plot import show
from codenode.external.mmaplotlib.codenode_plot import show
except ImportError:
pass
return locals()

def engine_startup():
ENGINE_STARTUP="""
import sys
from knoboo.kernel.engine.server import EngineRPCServer
from knoboo.kernel.engine.sage.interpreter import Interpreter
from knoboo.kernel.engine.sage.runtime import build_namespace
from codenode.backend.kernel.engine.server import EngineRPCServer
from codenode.backend.kernel.engine.sage.interpreter import Interpreter
from codenode.backend.kernel.engine.sage.runtime import build_namespace
if __name__ == "__main__":
port = int(sys.argv[1])
namespace = build_namespace
Expand All @@ -120,9 +120,9 @@ def executable(self):
def engine_startup(self, port):
ENGINE_STARTUP="""\
import sys
from knoboo.kernel.engine.server import EngineRPCServer
from knoboo.kernel.engine.sage.interpreter import Interpreter
from knoboo.kernel.engine.sage.runtime import build_namespace
from codenode.backend.kernel.engine.server import EngineRPCServer
from codenode.backend.kernel.engine.sage.interpreter import Interpreter
from codenode.backend.kernel.engine.sage.runtime import build_namespace
namespace = build_namespace
server = EngineRPCServer(('127.0.0.1', int(%s)), Interpreter, namespace)
server.serve_forever()""" % (port)
Expand All @@ -131,14 +131,14 @@ def engine_startup(self, port):
def jailed_engine_startup(self, port, root, uid):
ENGINE_STARTUP="""
import sys
from knoboo.kernel.engine import base
from codenode.backend.kernel.engine import base
jail = base.Jail('%s', %s)
entered = jail.enter_jail()
if not entered:
sys.exit(1)
from knoboo.kernel.engine.server import EngineRPCServer
from knoboo.kernel.engine.sage.interpreter import Interpreter
from knoboo.kernel.engine.sage.runtime import build_namespace
from codenode.backend.kernel.engine.server import EngineRPCServer
from codenode.backend.kernel.engine.sage.interpreter import Interpreter
from codenode.backend.kernel.engine.sage.runtime import build_namespace
namespace = build_namespace
server = EngineRPCServer(('127.0.0.1', %s), Interpreter, namespace)
server.serve_forever()
Expand Down
File renamed without changes.
Expand Up @@ -12,8 +12,8 @@

from twisted.internet import defer

from knoboo.backend.kernel.process import EngineProcessControl, KernelProcessControl
from knoboo.backend.kernel.client import RPCClient
from codenode.backend.kernel.process import EngineProcessControl, KernelProcessControl
from codenode.backend.kernel.client import RPCClient

class IEngine(Interface):

Expand Down Expand Up @@ -104,9 +104,9 @@ def __init__(self, id, mind, config, procman, user_pool=False):
def start(self, system):
self.defer_ready = defer.Deferred()
if system == 'python':
from knoboo.backend.kernel.engine.python import runtime
from codenode.backend.kernel.engine.python import runtime
elif system == 'sage':
from knoboo.backend.kernel.engine.sage import runtime
from codenode.backend.kernel.engine.sage import runtime
if self.user_pool:
try:
self.uid = self.user_pool.pop()
Expand Down
Expand Up @@ -10,7 +10,7 @@

from twisted.internet import protocol, reactor, defer, error

from knoboo.backend.kernel.engine.python.runtime import build_env
from codenode.backend.kernel.engine.python.runtime import build_env

MIN_PORT = 9000
MAX_PORT = 10000
Expand Down Expand Up @@ -211,7 +211,7 @@ def cancel_interrupt(self):
class KernelProcessControl(BaseProcessControl):

processProtocol = KernelProcessProtocol
pidfilename = 'knoboo-kernel.pid'
pidfilename = 'codenode-kernel.pid'

def __init__(self, config):
self.config = config
Expand Down Expand Up @@ -239,6 +239,6 @@ def buildProcess(self):
self.config.kernel['kernel_port'] = self.server_port
else:
self.server_port = self.config.kernel['kernel_port']
self.args = (self.executable, '-n', '--pidfile=%s' % self.pidfilename, 'knoboo-kernel',)
self.args = (self.executable, '-n', '--pidfile=%s' % self.pidfilename, 'codenode-kernel',)
self.env = build_env()

Expand Up @@ -83,7 +83,7 @@ def _checkConsistency(self):
self._checkConsistency)

def addProcess(self, process):
"""add process by actually passing in a knoboo-kernel-engine
"""add process by actually passing in a codenode-kernel-engine
process object
"""
name = process.name
Expand Down
File renamed without changes.
Expand Up @@ -12,7 +12,7 @@
from twisted.cred import portal, checkers, credentials
from twisted.internet import reactor

from knoboo.backend.kernel.interface import EngineManager
from codenode.backend.kernel.interface import EngineManager

# what should this be called?
class KernelManagerRealm(object):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,8 +1,8 @@
# This file is originally from Sage ( sagemath.org )
# I (Alex Clemesha) hold the original licence on it, with William Stein.
#
# It is included in Knoboo right now for 2 reasons:
# 1) It is helping us get going quickly testing plotting with Knoboo.
# It is included in codenode right now for 2 reasons:
# 1) It is helping us get going quickly testing plotting with codenode.
# 2) We hope to improve and generalize certain parts, then contribute back to Sage.
#
#
Expand Down
File renamed without changes.
@@ -1,8 +1,8 @@
# This file is originally from Sage ( sagemath.org )
# I (Alex Clemesha) hold the original licence on it, with William Stein.
#
# It is included in Knoboo right now for 2 reasons:
# 1) It is helping us get going quickly testing plotting with Knoboo.
# It is included in codenode right now for 2 reasons:
# 1) It is helping us get going quickly testing plotting with codenode.
# 2) We hope to improve and generalize certain parts, then contribute back to Sage.
#
#
Expand Down
File renamed without changes.
File renamed without changes.
Expand Up @@ -4,7 +4,7 @@
import re
import sys

from knoboo.external.simplejson.scanner import Scanner, pattern
from codenode.external.simplejson.scanner import Scanner, pattern
try:
from simplejson.scanner import Scanner, pattern #use installed simplejson if it exists
from simplejson import _speedups
Expand Down
File renamed without changes.
@@ -1,7 +1,7 @@
try:
import simplejson
except:
from knoboo.external import simplejson
from codenode.external import simplejson
import cgi

class JSONFilter(object):
Expand Down
File renamed without changes.
File renamed without changes.
@@ -1,6 +1,6 @@
"""
Recursive;y search all .py files for twisted.web2 and replace with
knoboo.external.twisted.web2
codenode.external.twisted.web2
"""

import os
Expand All @@ -9,7 +9,7 @@
import re

serep = re.compile('(twisted\.web)')
replace = 'knoboo.external.twisted.web'
replace = 'codenode.external.twisted.web'



Expand Down
13 changes: 13 additions & 0 deletions codenode/external/twisted/web/__init__.py
@@ -0,0 +1,13 @@
# -*- test-case-name: codenode.external.twisted.web.test -*-
# Copyright (c) 2001-2008 Twisted Matrix Laboratories.
# See LICENSE for details.

"""
Twisted Web: a L{web server<codenode.external.twisted.web.server>} (including an
L{HTTP implementation<codenode.external.twisted.web.http>} and a
L{resource model<codenode.external.twisted.web.resource>}) and
a L{web client<codenode.external.twisted.web.client>}.
"""

from codenode.external.twisted.web._version import version
__version__ = version.short()
@@ -1,4 +1,4 @@
# -*- test-case-name: knoboo.external.twisted.web.test.test_httpauth -*-
# -*- test-case-name: codenode.external.twisted.web.test.test_httpauth -*-
# Copyright (c) 2008 Twisted Matrix Laboratories.
# See LICENSE for details.

Expand Down
@@ -1,4 +1,4 @@
# -*- test-case-name: knoboo.external.twisted.web.test.test_httpauth -*-
# -*- test-case-name: codenode.external.twisted.web.test.test_httpauth -*-
# Copyright (c) 2008 Twisted Matrix Laboratories.
# See LICENSE for details.

Expand All @@ -15,7 +15,7 @@
from zope.interface import implements

from twisted.cred import credentials, error
from knoboo.external.twisted.web.iweb import ICredentialFactory
from codenode.external.twisted.web.iweb import ICredentialFactory


class BasicCredentialFactory(object):
Expand Down
@@ -1,4 +1,4 @@
# -*- test-case-name: knoboo.external.twisted.web.test.test_httpauth -*-
# -*- test-case-name: codenode.external.twisted.web.test.test_httpauth -*-
# Copyright (c) 2009 Twisted Matrix Laboratories.
# See LICENSE for details.

Expand All @@ -10,7 +10,7 @@

from zope.interface import implements
from twisted.cred import credentials
from knoboo.external.twisted.web.iweb import ICredentialFactory
from codenode.external.twisted.web.iweb import ICredentialFactory

class DigestCredentialFactory(object):
"""
Expand Down
@@ -1,4 +1,4 @@
# -*- test-case-name: knoboo.external.twisted.web.test.test_httpauth -*-
# -*- test-case-name: codenode.external.twisted.web.test.test_httpauth -*-
# Copyright (c) 2008-2009 Twisted Matrix Laboratories.
# See LICENSE for details.

Expand All @@ -15,8 +15,8 @@

from twisted.python import log
from twisted.python.components import proxyForInterface
from knoboo.external.twisted.web.resource import IResource, ErrorPage
from knoboo.external.twisted.web import util
from codenode.external.twisted.web.resource import IResource, ErrorPage
from codenode.external.twisted.web import util
from twisted.cred import error


Expand Down
@@ -1,3 +1,3 @@
# This is an auto-generated file. Do not edit it.
from twisted.python import versions
version = versions.Version('knoboo.external.twisted.web', 8, 2, 0)
version = versions.Version('codenode.external.twisted.web', 8, 2, 0)

0 comments on commit 235e91b

Please sign in to comment.