chiral.git
2 years agoadd header to readme master
Jacob Potter [Thu, 15 Apr 2010 20:40:07 +0000]
add header to readme

2 years agoput README in repo
Jacob Potter [Thu, 15 Apr 2010 19:41:40 +0000]
put README in repo

2 years agoREADME test
Jacob Potter [Thu, 15 Apr 2010 19:06:42 +0000]
README test

4 years agodoc
jacob [Sun, 18 May 2008 18:51:54 +0000]
doc

git-svn-id: http://chiral.j4cbo.com/svn/trunk@110 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoinitial checkin of doc tools
jacob [Sun, 18 May 2008 18:40:35 +0000]
initial checkin of doc tools

git-svn-id: http://chiral.j4cbo.com/svn/trunk@109 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agotest commit
jacob [Sun, 18 May 2008 18:30:47 +0000]
test commit

git-svn-id: http://chiral.j4cbo.com/svn/trunk@108 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agotest commit
jacob [Sun, 18 May 2008 18:30:16 +0000]
test commit

git-svn-id: http://chiral.j4cbo.com/svn/trunk@107 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agotest commit
jacob [Sun, 18 May 2008 18:29:10 +0000]
test commit

git-svn-id: http://chiral.j4cbo.com/svn/trunk@106 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agofix incorrect wait_for_readable call in TCPConnection
jacob [Mon, 10 Mar 2008 04:07:45 +0000]
fix incorrect wait_for_readable call in TCPConnection

git-svn-id: http://chiral.j4cbo.com/svn/trunk@105 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoMore doc updates.
jacob [Sat, 5 Jan 2008 00:16:43 +0000]
More doc updates.

git-svn-id: http://chiral.j4cbo.com/svn/trunk@104 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoDocumentation for chiral.web.framework
jacob [Fri, 4 Jan 2008 08:00:32 +0000]
Documentation for chiral.web.framework
Fix docstring for chiral.os.sendfile

git-svn-id: http://chiral.j4cbo.com/svn/trunk@103 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoDocs for chiral.web.servers
jacob [Fri, 4 Jan 2008 07:25:01 +0000]
Docs for chiral.web.servers

git-svn-id: http://chiral.j4cbo.com/svn/trunk@102 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoMore documentation fixes.
jacob [Fri, 4 Jan 2008 07:08:53 +0000]
More documentation fixes.

git-svn-id: http://chiral.j4cbo.com/svn/trunk@101 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years ago- chiral.web.httpd documentation updates
jacob [Fri, 4 Jan 2008 07:03:48 +0000]
- chiral.web.httpd documentation updates
- start refactoring HTTPServer to make the horrible connection_handler routine a little nicer

git-svn-id: http://chiral.j4cbo.com/svn/trunk@100 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoDocumentation updates.
jacob [Fri, 4 Jan 2008 02:13:03 +0000]
Documentation updates.

git-svn-id: http://chiral.j4cbo.com/svn/trunk@99 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoThread pool:
jacob [Thu, 3 Jan 2008 22:20:27 +0000]
Thread pool:
- More docs
- Improve the anti-reload mechanism

git-svn-id: http://chiral.j4cbo.com/svn/trunk@98 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoDocstring fixes.
jacob [Thu, 3 Jan 2008 08:28:56 +0000]
Docstring fixes.

git-svn-id: http://chiral.j4cbo.com/svn/trunk@97 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoCombine the redundant as_coro and as_coro_waitcondition. They were identical, except for
jacob [Thu, 3 Jan 2008 02:11:19 +0000]
Combine the redundant as_coro and as_coro_waitcondition. They were identical, except for
docstring modification and the fact that as_coro set autostart=True where as_coro_waitcondition
didn't.

Change that such that as_coro does not autostart; remove as_coro_waitcondition, and replace all uses
of it with as_coro.

git-svn-id: http://chiral.j4cbo.com/svn/trunk@96 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoDocumentation improvements to chiral.core.coroutine
jacob [Thu, 3 Jan 2008 00:29:52 +0000]
Documentation improvements to chiral.core.coroutine

git-svn-id: http://chiral.j4cbo.com/svn/trunk@95 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years ago- netcore: WaitForEvent: if unbind() is called on WaitCondition for a socket that...
jacob [Tue, 1 Jan 2008 22:10:35 +0000]
- netcore: WaitForEvent: if unbind() is called on WaitCondition for a socket that has somehow already been removed
from the epoll/kqueue set, an ENOENT will be returned. Ignore this, rather than causing breakage.
- coroutine: doc fixes
- coroutine: add context manager methods to automatically start() and kill() a coroutine.
- new net tests

git-svn-id: http://chiral.j4cbo.com/svn/trunk@94 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years ago- More Reactor fixes
jacob [Tue, 1 Jan 2008 21:03:53 +0000]
- More Reactor fixes
- Make TCPServers automatically close their listening socket upon kill
- Add a helper routine, "swallow_kill", that can be added as a completion callback
  to swallow CoroutineKilledExceptions.

git-svn-id: http://chiral.j4cbo.com/svn/trunk@93 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoBig reactor fixes.
jacob [Tue, 1 Jan 2008 05:27:21 +0000]
Big reactor fixes.

git-svn-id: http://chiral.j4cbo.com/svn/trunk@92 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoRearrange constants to be defined as such, rather than dict trickery; this makes...
jacob [Tue, 1 Jan 2008 05:11:55 +0000]
Rearrange constants to be defined as such, rather than dict trickery; this makes pylint happier.

git-svn-id: http://chiral.j4cbo.com/svn/trunk@91 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoFinish refactor for epoll and kqueue reactors.
jacob [Tue, 1 Jan 2008 04:57:49 +0000]
Finish refactor for epoll and kqueue reactors.

git-svn-id: http://chiral.j4cbo.com/svn/trunk@90 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoAdd coroutine.kill() and CoroutineKilledException. Also incomplete (doesn't behave...
jacob [Sun, 30 Dec 2007 07:15:41 +0000]
Add coroutine.kill() and CoroutineKilledException. Also incomplete (doesn't behave properly when you kill a running coro.)

git-svn-id: http://chiral.j4cbo.com/svn/trunk@89 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoFirst pass checkin of netcore WaitCondition refactor. INCOMPLETE AND POORLY TESTED...
jacob [Sun, 30 Dec 2007 07:14:49 +0000]
First pass checkin of netcore WaitCondition refactor. INCOMPLETE AND POORLY TESTED - this doesn't include
epoll/kqueue reactor support yet and is probably broken in strange ways. It works enough to serve HTTP, though...

git-svn-id: http://chiral.j4cbo.com/svn/trunk@88 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agochiral.net.tcp: change TCPConnection.connection_handler() to raise NotImplementedErro...
jacob [Sun, 30 Dec 2007 05:07:30 +0000]
chiral.net.tcp: change TCPConnection.connection_handler() to raise NotImplementedError within a generator
function. As a result, one may create and manipulate a bare TCPConnection as long as it is never actually
start()ed.

git-svn-id: http://chiral.j4cbo.com/svn/trunk@87 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoFix the test suite for chiral.core.coroutine
jacob [Fri, 28 Dec 2007 23:52:59 +0000]
Fix the test suite for chiral.core.coroutine

git-svn-id: http://chiral.j4cbo.com/svn/trunk@86 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoCheck-in extra files from melkor:
jacob [Fri, 28 Dec 2007 04:21:38 +0000]
Check-in extra files from melkor:
- sendfile module
- cometlib.js
- more test apps

git-svn-id: http://chiral.j4cbo.com/svn/trunk@85 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoi are python coder
jacob [Fri, 28 Dec 2007 00:07:52 +0000]
i are python coder

(re-fix epoll/kqueue-without-libc handling)

git-svn-id: http://chiral.j4cbo.com/svn/trunk@84 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agowin32 fixes
jacob [Thu, 27 Dec 2007 21:52:59 +0000]
win32 fixes

git-svn-id: http://chiral.j4cbo.com/svn/trunk@83 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years ago- Add templates directory
jacob [Tue, 25 Dec 2007 19:58:03 +0000]
- Add templates directory
- test.py fixes: rename /tp to /asyncpagetest, add -prof flag to enable/disable profiler

git-svn-id: http://chiral.j4cbo.com/svn/trunk@82 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoCoroutine fix
jacob [Mon, 24 Dec 2007 19:32:30 +0000]
Coroutine fix

git-svn-id: http://chiral.j4cbo.com/svn/trunk@81 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years ago- Change Reactor.schedule() to do what the docstring says it will when delay and...
jacob [Mon, 24 Dec 2007 02:18:29 +0000]
- Change Reactor.schedule() to do what the docstring says it will when delay and callbacktime are both None (i.e. run during next event loop)
- Clarify coroutine module docstring

git-svn-id: http://chiral.j4cbo.com/svn/trunk@80 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years ago- Documentation: remove old references to Tasklet; it's Coroutine now.
jacob [Sun, 23 Dec 2007 20:43:59 +0000]
- Documentation: remove old references to Tasklet; it's Coroutine now.
- Lint fixes to threadpool, coroutine
- Remove chiral.core.coroutine.dump(); the new introspection framework makes it redundant.
- Remove "force" option from Coroutine.start(), as it was confusing and never used.
  start() now always throws an assertion if the coroutine is already running.

git-svn-id: http://chiral.j4cbo.com/svn/trunk@79 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years ago- Introspection refactor
jacob [Sun, 23 Dec 2007 20:14:30 +0000]
- Introspection refactor
- Threadpool is now reloadable and introspectable

git-svn-id: http://chiral.j4cbo.com/svn/trunk@78 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years ago- chiral.messaging.irc: use connect() on the new socket properly
jacob [Sun, 9 Sep 2007 00:46:59 +0000]
- chiral.messaging.irc: use connect() on the new socket properly
- chiral.net.tcp: fix connect() to properly return the WaitForCallback and set the new socket nonblocking properly

git-svn-id: http://chiral.j4cbo.com/svn/trunk@77 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoUse uint32/uint64 types (more semantically correct)
jacob [Fri, 7 Sep 2007 20:07:51 +0000]
Use uint32/uint64 types (more semantically correct)

git-svn-id: http://chiral.j4cbo.com/svn/trunk@76 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years ago- Convert EpollLooper to use new epoll binding
jacob [Thu, 6 Sep 2007 03:12:45 +0000]
- Convert EpollLooper to use new epoll binding
- Remove py-epoll C module

git-svn-id: http://chiral.j4cbo.com/svn/trunk@75 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoAdd ctypes-based epoll binding
jacob [Thu, 6 Sep 2007 03:11:55 +0000]
Add ctypes-based epoll binding

git-svn-id: http://chiral.j4cbo.com/svn/trunk@74 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoAdd kqueue wrapper and KqueueReactor
jacob [Wed, 5 Sep 2007 20:23:26 +0000]
Add kqueue wrapper and KqueueReactor

git-svn-id: http://chiral.j4cbo.com/svn/trunk@73 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years ago- Shell rewrite
jacob [Wed, 5 Sep 2007 20:13:01 +0000]
- Shell rewrite
- chiral.core.coroutine: get rid of __slots__; add dump() method again
- chiral.net.tcp: improve ConnectionClosedException handling

git-svn-id: http://chiral.j4cbo.com/svn/trunk@72 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoInitial checkin of IRC COMET demo. Not fully working yet.
jacob [Mon, 3 Sep 2007 16:41:42 +0000]
Initial checkin of IRC COMET demo. Not fully working yet.

git-svn-id: http://chiral.j4cbo.com/svn/trunk@71 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoChange coroutines to /not/ start by default.
jacob [Thu, 16 Aug 2007 02:40:08 +0000]
Change coroutines to /not/ start by default.

git-svn-id: http://chiral.j4cbo.com/svn/trunk@70 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoRemove some debugging from Introspector
jacob [Thu, 16 Aug 2007 02:39:14 +0000]
Remove some debugging from Introspector

git-svn-id: http://chiral.j4cbo.com/svn/trunk@69 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoFix EpollReactor
jacob [Thu, 16 Aug 2007 02:38:10 +0000]
Fix EpollReactor

git-svn-id: http://chiral.j4cbo.com/svn/trunk@68 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoRemove some GC cycles in coroutine handling. Failed HTTP connections should now be...
jacob [Tue, 14 Aug 2007 21:39:54 +0000]
Remove some GC cycles in coroutine handling. Failed HTTP connections should now be picked up by the reference counter, rather than having to wait for mark-and-sweep garbage collection.

:iia:

git-svn-id: http://chiral.j4cbo.com/svn/trunk@67 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoUse new schedule in comet.py, to go with changes in [65]
jacob [Tue, 14 Aug 2007 21:35:34 +0000]
Use new schedule in comet.py, to go with changes in [65]

git-svn-id: http://chiral.j4cbo.com/svn/trunk@66 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoRemove application tracking from Reactor classes
jacob [Tue, 14 Aug 2007 21:33:37 +0000]
Remove application tracking from Reactor classes
Fix shabang in test.py
Framework fixes

git-svn-id: http://chiral.j4cbo.com/svn/trunk@65 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years ago- Add CoroutineRestart exception
jacob [Mon, 13 Aug 2007 07:08:06 +0000]
- Add CoroutineRestart exception
- Make autostart mandatory, pending change to default False

git-svn-id: http://chiral.j4cbo.com/svn/trunk@64 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoShell: use new TCPConnection exception system
jacob [Tue, 7 Aug 2007 07:41:04 +0000]
Shell: use new TCPConnection exception system

git-svn-id: http://chiral.j4cbo.com/svn/trunk@63 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoMake Coroutine a WaitCondition. This helps simplify things for API integration.
jacob [Tue, 7 Aug 2007 04:12:19 +0000]
Make Coroutine a WaitCondition. This helps simplify things for API integration.

git-svn-id: http://chiral.j4cbo.com/svn/trunk@62 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years ago- Rearrange TCPConnection to create its own socket for connections to remote boxes
jacob [Tue, 7 Aug 2007 00:25:42 +0000]
- Rearrange TCPConnection to create its own socket for connections to remote boxes
- Add asynchronous connect()
- Make memcached properly reconnect to down servers

git-svn-id: http://chiral.j4cbo.com/svn/trunk@61 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoThreadpool: works now. Still need to manage auto-growing and shrinking of the pool...
jacob [Sun, 5 Aug 2007 08:01:51 +0000]
Threadpool: works now. Still need to manage auto-growing and shrinking of the pool; limited to 1 worker thread at the moment.

git-svn-id: http://chiral.j4cbo.com/svn/trunk@60 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoFirst pass at thread pool. Untested.
jacob [Sun, 5 Aug 2007 07:20:26 +0000]
First pass at thread pool. Untested.

git-svn-id: http://chiral.j4cbo.com/svn/trunk@59 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoMemcached improvements. Comes close to working now; does NOT yet handle server discon...
jacob [Sun, 5 Aug 2007 00:48:03 +0000]
Memcached improvements. Comes close to working now; does NOT yet handle server disconnections prperly.

git-svn-id: http://chiral.j4cbo.com/svn/trunk@58 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years ago- Get rid of "Done." message when Reactor terminates
jacob [Sun, 5 Aug 2007 00:47:22 +0000]
- Get rid of "Done." message when Reactor terminates
- Coroutine: as_coro_waitcondition coroutines should be started with autostart=False.

git-svn-id: http://chiral.j4cbo.com/svn/trunk@57 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoFirst pass at memcached. Still very, very broken.
jacob [Sat, 4 Aug 2007 09:15:11 +0000]
First pass at memcached. Still very, very broken.

git-svn-id: http://chiral.j4cbo.com/svn/trunk@56 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoAdd coroutine mutex class
jacob [Sat, 4 Aug 2007 08:51:52 +0000]
Add coroutine mutex class

git-svn-id: http://chiral.j4cbo.com/svn/trunk@55 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoProper handling of WSGI write()
jacob [Sat, 4 Aug 2007 00:19:40 +0000]
Proper handling of WSGI write()

git-svn-id: http://chiral.j4cbo.com/svn/trunk@54 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoRemove the yield-value-directly option, to be more compliant with coroutine standard.
jacob [Sat, 4 Aug 2007 00:14:44 +0000]
Remove the yield-value-directly option, to be more compliant with coroutine standard.

git-svn-id: http://chiral.j4cbo.com/svn/trunk@53 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoDoc improvements to coroutine.py
jacob [Fri, 3 Aug 2007 23:40:32 +0000]
Doc improvements to coroutine.py

git-svn-id: http://chiral.j4cbo.com/svn/trunk@52 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoAdd GPL header.
jacob [Fri, 3 Aug 2007 22:02:45 +0000]
Add GPL header.

git-svn-id: http://chiral.j4cbo.com/svn/trunk@51 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years ago- dbus: get rid of the SyntaxError
jacob [Fri, 3 Aug 2007 22:00:15 +0000]
- dbus: get rid of the SyntaxError
- xreaload: prefix unused unpack variables with _, to prevent pylint from complaining
- coroutine: docstring fixes

git-svn-id: http://chiral.j4cbo.com/svn/trunk@50 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoFixes to tests, coroutine, pylint validation
jacob [Fri, 3 Aug 2007 21:02:52 +0000]
Fixes to tests, coroutine, pylint validation

git-svn-id: http://chiral.j4cbo.com/svn/trunk@49 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoVery incomplete version of DBus interface.
jacob [Fri, 3 Aug 2007 20:13:15 +0000]
Very incomplete version of DBus interface.

git-svn-id: http://chiral.j4cbo.com/svn/trunk@48 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years ago- Fix app handling in SelectReactor
jacob [Fri, 3 Aug 2007 20:04:12 +0000]
- Fix app handling in SelectReactor
- Handle Exceptions in a coroutine_page properly

git-svn-id: http://chiral.j4cbo.com/svn/trunk@47 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoMove from Tasklet to new Coroutine library. Similar in concept, all-new implementatio...
jacobdp [Fri, 3 Aug 2007 17:43:03 +0000]
Move from Tasklet to new Coroutine library. Similar in concept, all-new implementation, cleaner.

git-svn-id: http://chiral.j4cbo.com/svn/trunk@46 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoShell improvements
jacobdp [Fri, 3 Aug 2007 06:14:11 +0000]
Shell improvements

git-svn-id: http://chiral.j4cbo.com/svn/trunk@45 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoChange to \r\n default for tcp.read_line()
jacobdp [Wed, 1 Aug 2007 18:43:57 +0000]
Change to \r\n default for tcp.read_line()

git-svn-id: http://chiral.j4cbo.com/svn/trunk@44 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoFirst pass at messaging framework
jacobdp [Mon, 30 Jul 2007 23:24:39 +0000]
First pass at messaging framework

git-svn-id: http://chiral.j4cbo.com/svn/trunk@43 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoHTTP: handle no-data tasklet pages correctly
jacobdp [Mon, 30 Jul 2007 23:24:27 +0000]
HTTP: handle no-data tasklet pages correctly

git-svn-id: http://chiral.j4cbo.com/svn/trunk@42 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years ago- Rename TCPConnection.handler() to connection_handler()
jacobdp [Mon, 30 Jul 2007 16:05:01 +0000]
- Rename TCPConnection.handler() to connection_handler()
- Get rid of handle_*_close, as they were unused and broken
- Generalize TCPConnection to work with locally-initiated connections as well as TCPServer
  - Rename client_sock to remote_sock
- Better METHOD_JS: as an html doc with <script> tags, not bare js
- lint fixes

git-svn-id: http://chiral.j4cbo.com/svn/trunk@41 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoMove chiral.inet to chiral.net
jacobdp [Sun, 29 Jul 2007 02:09:37 +0000]
Move chiral.inet to chiral.net

git-svn-id: http://chiral.j4cbo.com/svn/trunk@40 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agopylint fixes
jacobdp [Sun, 29 Jul 2007 02:04:15 +0000]
pylint fixes

git-svn-id: http://chiral.j4cbo.com/svn/trunk@39 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years ago- Use the decorator module for signature-preserving decorators
jacobdp [Sat, 28 Jul 2007 00:55:47 +0000]
- Use the decorator module for signature-preserving decorators
- New 'tasklet.returns_waitcondition' decorator which replaces non-WaitConditions with WaitForNot
hing in debug mode
- Add __all__ to inet.tcp, core.tasklet, core.stats
- Unit test fixes
- Fix content-type of CometClock

git-svn-id: http://chiral.j4cbo.com/svn/trunk@38 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years ago- Lint improvements
jacobdp [Wed, 25 Jul 2007 06:56:09 +0000]
- Lint improvements
- Doc improvements
- Add "parameters" kwarg to Tasklet.__init__; alows some arbitrary data (generally a tuple) to be stored in the Tasklet object
- Change completion callbacks to a list, so it's ordered
- Result may be modified by a completion callback
- Beginnings of a web framework

git-svn-id: http://chiral.j4cbo.com/svn/trunk@37 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoMove introspector and wsgihttpd out of http; get rid of the old http.httpd.
jacobdp [Tue, 24 Jul 2007 00:28:38 +0000]
Move introspector and wsgihttpd out of http; get rid of the old http.httpd.

git-svn-id: http://chiral.j4cbo.com/svn/trunk@36 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoTasklets may now return any object. If it is not a WaitCondition, it will be treated...
jacobdp [Mon, 23 Jul 2007 23:33:43 +0000]
Tasklets may now return any object. If it is not a WaitCondition, it will be treated as a WaitForNothing used to be.

git-svn-id: http://chiral.j4cbo.com/svn/trunk@35 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoOptimizations:
jacobdp [Mon, 23 Jul 2007 04:36:50 +0000]
Optimizations:
- Use __slots__ again
- Don't call __init__ on the base WaitCondition class, as it doesn't help
- In sendfile(), only create the blocked_operation_handler closure if it will be used

git-svn-id: http://chiral.j4cbo.com/svn/trunk@34 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoAdd sendfile() optimization for static file serving
jacobdp [Mon, 23 Jul 2007 04:27:25 +0000]
Add sendfile() optimization for static file serving

git-svn-id: http://chiral.j4cbo.com/svn/trunk@33 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years ago- Netcore now tracks the application associated with each callback
jacobdp [Mon, 23 Jul 2007 02:47:11 +0000]
- Netcore now tracks the application associated with each callback
- Add new writeall() function to TCPConnection; use it properly in wsgihttpd
- Introspector lists all applications
- Fix occasional "dictionary changed size during iteration" in introspector
- Tasklet: WaitForCallback can have a description, which shows up in repr
- Include StaticFileServer in test.py

git-svn-id: http://chiral.j4cbo.com/svn/trunk@32 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years ago- New static file server
jacobdp [Sun, 22 Jul 2007 11:44:02 +0000]
- New static file server
- Doc improvemnets to tasklet
- WSGI HTTPd compliance fixes, etc.

git-svn-id: http://chiral.j4cbo.com/svn/trunk@31 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoBeginnings of the comet framework; change demo to serve up an HTML page with MXMR.
jacobdp [Thu, 19 Jul 2007 05:09:31 +0000]
Beginnings of the comet framework; change demo to serve up an HTML page with MXMR.

git-svn-id: http://chiral.j4cbo.com/svn/trunk@30 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoMove the whole "for data in result" loop in wsgihttpd inside the try/except block.
jacobdp [Thu, 19 Jul 2007 04:58:54 +0000]
Move the whole "for data in result" loop in wsgihttpd inside the try/except block.

git-svn-id: http://chiral.j4cbo.com/svn/trunk@29 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years ago- Add a new option to Tasklet class, "autostart" If a tasklet is created with autosta...
jacobdp [Thu, 19 Jul 2007 03:30:28 +0000]
- Add a new option to Tasklet class, "autostart" If a tasklet is created with autostart=False, it will not start running immediately, but be in the TASKLET_UNSTARTED state.
- Add a new start() method to Tasklet, to cause the tasklet to start executing. Has an option force, default True. The tasklet must be in the UNSTARTED state; otherwise, start() will do nothing (force=False) or raise an AssertionError (force=True / default).
- wsgihttpd calls tasklet.start() after the request headers have been sent, on tasklets passed to set_tasklet.
- wsgihttpd: don't call close() until after the child tasklet has completed.

git-svn-id: http://chiral.j4cbo.com/svn/trunk@28 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoUse Paste's URL mapper for dispatching. Accordingly, introspector now sits at logical...
jacobdp [Thu, 19 Jul 2007 02:05:49 +0000]
Use Paste's URL mapper for dispatching. Accordingly, introspector now sits at logical root.

git-svn-id: http://chiral.j4cbo.com/svn/trunk@27 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years ago- Rename "Looper" to "Reactor"
jacobdp [Thu, 19 Jul 2007 01:37:57 +0000]
- Rename "Looper" to "Reactor"
- Reactor is now a singleton, chiral.inet.reactor

git-svn-id: http://chiral.j4cbo.com/svn/trunk@26 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years ago- Introspector: s/inspector/introspector
jacobdp [Thu, 19 Jul 2007 01:28:07 +0000]
- Introspector: s/inspector/introspector
- Netcore: round milliseconds to int before passing to epoll
- COMET: change to use CSS position:absoltute overlays rather than JS

git-svn-id: http://chiral.j4cbo.com/svn/trunk@25 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years ago- TCP shell-like thing
jacobdp [Wed, 18 Jul 2007 06:10:58 +0000]
- TCP shell-like thing
- Some unit tests for tasklets

git-svn-id: http://chiral.j4cbo.com/svn/trunk@24 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years ago- TCP: move read_line_tasklet out into its own method, rather than being an inner...
jacobdp [Wed, 18 Jul 2007 06:07:39 +0000]
- TCP: move read_line_tasklet out into its own method, rather than being an inner function
- Make TCPServer.connections a WeakValueDictionary, just like tasklet._TASKLETS
- Introspector application: allow chaining to other apps
- wsgihttpd: waiting_tasklet fixes
- tasklet: let's try making it reloadable. Getting rid of __slots__ temporarily.
- Add some COMET code
- overhauls to test.py

git-svn-id: http://chiral.j4cbo.com/svn/trunk@23 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years ago- httpd: properly quote errors
jacobdp [Wed, 18 Jul 2007 01:34:41 +0000]
- httpd: properly quote errors
- Add HTTP Introspector

git-svn-id: http://chiral.j4cbo.com/svn/trunk@22 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years ago- Tasklet: get rid of __slots__; add master tasklet list; use self.__class__.__name__...
jacobdp [Tue, 17 Jul 2007 14:40:45 +0000]
- Tasklet: get rid of __slots__; add master tasklet list; use self.__class__.__name__ in repr()
- TCP: Connection and Server are both subclasses of Tasklet now; makes tasklet lists more informative

git-svn-id: http://chiral.j4cbo.com/svn/trunk@21 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years ago- Get rid of psyco; it causes breakage
jacobdp [Tue, 17 Jul 2007 12:55:11 +0000]
- Get rid of psyco; it causes breakage
- Add xreload module
- WSGI HTTPd improvements to error handling

git-svn-id: http://chiral.j4cbo.com/svn/trunk@20 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years ago- Make netcore and tasklet modules use Psyco if available
jacobdp [Mon, 16 Jul 2007 03:01:20 +0000]
- Make netcore and tasklet modules use Psyco if available
- Remove tasklet dump (weakrefs aren't compatible with psyco)
- Change HTTPServer to not subclass Tasklet

git-svn-id: http://chiral.j4cbo.com/svn/trunk@19 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoAdd WSGI-compliant HTTP server.
jacobdp [Mon, 16 Jul 2007 01:38:12 +0000]
Add WSGI-compliant HTTP server.

git-svn-id: http://chiral.j4cbo.com/svn/trunk@18 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agowrite_out() doesn't need to be its own tasklet.
jacobdp [Mon, 16 Jul 2007 01:37:52 +0000]
write_out() doesn't need to be its own tasklet.

git-svn-id: http://chiral.j4cbo.com/svn/trunk@17 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years ago- TCP: fixes to real_line, read_exactly; cleanup; set nonblocking on client sockets...
jacobdp [Mon, 16 Jul 2007 01:37:27 +0000]
- TCP: fixes to real_line, read_exactly; cleanup; set nonblocking on client sockets as well as master
- Tasklet: passing an object that evaluated as False into a tasklet would previously call next(),
  rather than send(value), causing "" to be replaced with None. Fix to only use next() if the incoming
  value is None.

git-svn-id: http://chiral.j4cbo.com/svn/trunk@16 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoMove isinstance test for Message in with the rest of the checks, to reduce call count
jacobdp [Sun, 15 Jul 2007 01:02:44 +0000]
Move isinstance test for Message in with the rest of the checks, to reduce call count

git-svn-id: http://chiral.j4cbo.com/svn/trunk@15 a827fe29-2235-0410-a7a9-cacdfe24a5d3

4 years agoTasklet: optimize to reduce unnecessary calls to isinstance()
jacobdp [Sun, 15 Jul 2007 00:37:24 +0000]
Tasklet: optimize to reduce unnecessary calls to isinstance()

git-svn-id: http://chiral.j4cbo.com/svn/trunk@14 a827fe29-2235-0410-a7a9-cacdfe24a5d3