|
From: John S. J. A. <ja...@ge...> - 2000-07-17 02:58:37
|
Greetings -- I've actually managed to get some BOP hacking done this weekend, so I thought I'd share my progress, and see if I can't flush out some feedback. I've fixed several stupid typo-level bugs, and flushed out a logic error or two along the way. There are now scripts in the bin/ directory that should make the process of adding things to the database a little easier to stomach. Finally, I've laid out the road to the next couple of releases in the TODO file -- I've got another 4 or 5 hours of work (total guesstimate), including getting the bop.sourceforge.net site working under bop, before the 0.1 release will be finished. (I've included the Changelog for these updates below, in case anyone's interested.) WHAT YOU CAN DO: Grab the CVS sources, play around a little bit, and send feedback, feedback, feedback! If you're feeling really ambitious, pick an item from the TODO file, and talk to me about implementing it. See ya later -- john. <CHANGELOG> 2000-07-16 John S. J. Anderson <ja...@ge...> * TODO: Revised list to reflect work that I've done. * bin/add_glossary_item: Finished this script. Removed edit_glossary, because calling add_glossary with a template name as argument does the same thing. * Template.pm (get_template_object_by_name): Improved error handling. * Glossary.pm (edit): Fixed brain-dead error where template was being writen to STDOUT instead of tmp file. (error_save): Wrote this function, which dumps the information from a Glossary object to disk. It should be called when an error prevents inserting the information into the database. (insert): Refined error handling; fixed error in return() call. (get_gloss_object_by_name): Refined error handling. * Template.pm (edit): Fixed brain-dead error that made editing existing objects fail. (error_save): Wrote this function, which dumps the information from a Template object to disk. It should be called when an error prevents inserting the information into the database. (get_template_object_by_uin): Fixed typo that made return of true into return of false. * bin/add_template: Finished this script. Removed edit_template, because calling add_template with a template name as argument does the same thing. * bin/add_page: Finished this script. Removed edit_page, because calling add_page with a page title as argument does the same thing. * Page.pm (error_save): Wrote this function, which dumps the information from a Page object to disk. It should be called when an error prevents inserting the information into the database. (get_page_object_by_title): Modified error handling so that when no rows match, the Right Thing happens. (insert): Fixed typo in SQL UPDATE statement. * Bop.pm (init_env): Moved the code from this function into the 'global' section of the file, so that it gets run when the file is use()'d. Also moved the $dbh from the main namespace into Bop's. No more need to call this function; just use Bop(). 8^)= (global): Added use() calls for Entry.pm (commented out at the moment), Glossary.pm, Page.pm, and Template.pm. This way, scripts just have to 'use Bop;' and they get everything; no need to remember what's where. (misc): Code clean-ups and tweaks. </CHANGELOG> -- ---------------------------------------------------------------------------- [ John S Jacobs Anderson ]------><URL:mailto:ja...@ge...> [ Genehack: Not your daddy's weblog ]------><URL:http://genehack.org> |