[Karrigell-main] Release of Karrigell-2.0.3
Brought to you by:
quentel
From: <que...@fr...> - 2004-06-19 12:46:08
|
(sent from another mail address - wanadoo seems to be on sourceforge blac= k=20 list !?) I've just released the version 2.0.3 of Karrigell. No major change this t= ime=20 but a number of bug fixes, and a couple of new features : *Bug fixes* - add handling of urls without extensions in the debugger and Include - in the name space, the field names with a leading undercore were not cl= eaned=20 after script execution ! - restore original sys.path after script execution (once a script named=20 myScript.py had been imported from a directory, it was impossible to impo= rt=20 another myScript.py from another directory) - debug level could not be set to 0 ! - bug in update() method for objects in dbStorage - error classes in gadflyStorage and sqliteStorage were not correctly set - the query string of the caller url was not included in the qs generated= by=20 the join() method for Components - removed the cache mechanism in Include**Component : event if the script= has=20 not changed, its output may have (search in a database for instance) - when a script is cached, the query string attribute must be reset * New features * - in init file, in the "global" option of section "Server", specify Pytho= n=20 scripts which will be imported before each script execution (allowing for= user- defined values available for all scripts). this is an implentation of a=20 suggestion by Fred Pacquier - better exception handling if parsing error in PIH scripts - */terrific database management demo !/* I haven't documented it yet, an= d it's=20 still bugged, but I'll go on working on it. Most of the bugs fixed in thi= s=20 release were found as I worked on this demo. The basic idea is to describ= e the=20 structure of a database in a text file, such as : Title: Association Danser Name Surname Birth: type=3Ddate Courses: type=3DCourse; multiple; view=3DTeacher,Day Course Course number: type=3Dinteger Teacher: type=3DTeacher Day: type=3Ddate Hour start: type=3Dhour Hour end: type=3Dhour Teacher Name Surname Then a Python script generates all the Karrigell scripts needed to handle= the=20 base and the tables (here Danser, Course and Teacher) : you can browse th= e=20 tables, add and remove items. All this uses gadflyStorage of course, maki= ng the=20 scripts rather simple. An object can have attributes which are themselves= =20 objects (here, a Danser instance has an attribute Courses, which is a lis= t of=20 instances of the table Course) Thanks for your advice, feedback and bug reports on this new version A+ Pierre=20 |