]> git.llucax.com Git - software/pymin.git/log
software/pymin.git
17 years agoMake Host iterable so it can be used as a sequence when serializing.
Leandro Lucarella [Wed, 26 Sep 2007 21:15:39 +0000 (18:15 -0300)]
Make Host iterable so it can be used as a sequence when serializing.

17 years agoRemove old commented code.
Leandro Lucarella [Tue, 25 Sep 2007 17:17:18 +0000 (14:17 -0300)]
Remove old commented code.

17 years agoAdd DhcpHandler.get() and HostHandler.get() to get a single value.
Leandro Lucarella [Mon, 24 Sep 2007 20:59:20 +0000 (17:59 -0300)]
Add DhcpHandler.get() and HostHandler.get() to get a single value.

As a show() companion, new get() commands are added to get the information
about a single DHCP parameter or host.

17 years agoUpdate TODO list.
Leandro Lucarella [Mon, 24 Sep 2007 20:58:25 +0000 (17:58 -0300)]
Update TODO list.

17 years agoImprove error reporting.
Leandro Lucarella [Mon, 24 Sep 2007 20:58:02 +0000 (17:58 -0300)]
Improve error reporting.

Add new exception classes with better description of errors.

17 years agoBugfix: close() files after use them so the changes get flushed to disk.
Leandro Lucarella [Mon, 24 Sep 2007 20:55:49 +0000 (17:55 -0300)]
Bugfix: close() files after use them so the changes get flushed to disk.

17 years agoAdd a simple error reporting to the protocol.
Leandro Lucarella [Mon, 24 Sep 2007 20:55:15 +0000 (17:55 -0300)]
Add a simple error reporting to the protocol.

A new response type is added "ERROR", which indicates a failure in the
command execution. In the future different types of error could be defined.

17 years agoAdd a missing handler decorator to PyminDaemon test.
Leandro Lucarella [Mon, 24 Sep 2007 17:46:23 +0000 (14:46 -0300)]
Add a missing handler decorator to PyminDaemon test.

17 years agoAdd a simple response to all commands.
Leandro Lucarella [Mon, 24 Sep 2007 17:11:33 +0000 (14:11 -0300)]
Add a simple response to all commands.

The response consist of a success indicator ("OK") followed by the response
body lenght. The response body is command-dependant.

17 years agoAdd a decorator to mark which callables are exported by the dispatcher.
Leandro Lucarella [Mon, 24 Sep 2007 17:09:37 +0000 (14:09 -0300)]
Add a decorator to mark which callables are exported by the dispatcher.

All callables which should handle a command should be maked with the
@handler decorator. This is for the sake of security, so users can't call
arbitrary python code (like a constructor).

17 years agoDhcpHandler documentation and improvements.
Leandro Lucarella [Mon, 24 Sep 2007 17:04:42 +0000 (14:04 -0300)]
DhcpHandler documentation and improvements.

The path where to store pickled configuration and generated config files
is configurable when constructing the instance.

If there's a pickled configuration it's automatically loaded at
construction time. If not, a new configuration based on defaults is dumped
to disk.

New methods are added: restart(), reload() and rollback() and DhcpHandler
is published in the services module and included in the pymin daemon
command tree.

17 years agoBugfix: wrong variable usage.
Leandro Lucarella [Mon, 24 Sep 2007 16:52:13 +0000 (13:52 -0300)]
Bugfix: wrong variable usage.

17 years agoAdd a LoopInterruptedError to the EventLoop.
Leandro Lucarella [Mon, 24 Sep 2007 16:51:02 +0000 (13:51 -0300)]
Add a LoopInterruptedError to the EventLoop.

This error is raised as a translation for the select.error, raised when
the system call is interrupted by a signal, so EventLoop users don't have
to know the details about the loop.

17 years agoUpdate TODO list.
Leandro Lucarella [Mon, 24 Sep 2007 16:48:54 +0000 (13:48 -0300)]
Update TODO list.

17 years agoImplement DhcpdHandler class.
Leandro Lucarella [Sat, 22 Sep 2007 22:44:14 +0000 (19:44 -0300)]
Implement DhcpdHandler class.

A complete example of a handler class. It uses mako for templates and (c)Pickle
for configuration persistence. There is some more work to be done (loading
pickled configuration and other details) but the class is pretty functional.

17 years agoBig repository (and source) rebump.
Leandro Lucarella [Sat, 22 Sep 2007 04:50:53 +0000 (01:50 -0300)]
Big repository (and source) rebump.

A lot was changed, is allmost a new repo import =P

17 years agoSe crea el repo del pymin.
or3st3s [Thu, 20 Sep 2007 17:50:16 +0000 (17:50 +0000)]
Se crea el repo del pymin.