Commit Graph

155 Commits

Author SHA1 Message Date
ian%hixie.ch
2c7f039451 Slight changes to make output code more flexible
git-svn-id: svn://10.0.0.236/trunk@94104 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-07 07:04:17 +00:00
ian%hixie.ch
d33e786523 * fixed the methodMissing() method so that it actually is possible to use it to do method dispatching;
* factored out some of the method dispatching code by adding a dispatchMethod() method to the controller;
* turned the Dispatcher class into simply a function on the base Service class and removed Dispatcher.pm;
* made it possible for services to be both services and objects and provide different services depending on which context they were called in (and used this to make the AdminCommands module actually do what it was intended to in the first place, namely, only work for CommandLine access);
* fixed it so if a service is first created by getServiceList the constructed version will actually be cached;
* made output more generic by allowing services to implement arbitrary parts of the output API, used that to make AdminCommands usable without requiring additional code to support it;
* added some documentation;
* added some dump(10) statements to help debugging;
* fixed the string datasource SQL;
* fixed the DBI database so it can handle errors;
* added tableExists API to the DBI database helper.
Thanks to myk, justdave and zach for some ideas.


git-svn-id: svn://10.0.0.236/trunk@94080 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-06 06:26:24 +00:00
ian%hixie.ch
2cb0e0a8bf Made the lack of a configuration file be non-fatal (and factored out the low level code while I was at it). We need that so that the configuration data source can actually go in and create the configuration file if it is missing; otherwise the program exits with "no configuration file! waah!" before you get to the configuration-file-creation code!
git-svn-id: svn://10.0.0.236/trunk@94067 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-05 19:00:06 +00:00
ian%hixie.ch
ad0bceba08 Implementing (and documenting!) PLIF::debug() as suggested by zach. a=hixie
git-svn-id: svn://10.0.0.236/trunk@94066 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-05 18:28:08 +00:00
ian%hixie.ch
72c3f78013 work in progress
git-svn-id: svn://10.0.0.236/trunk@94031 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-05 07:12:56 +00:00