====== Done ======
Created Sunday 12/08/2007
This page describes things that used to be in the [[To do|to-do list]] but which have now been done.
===== Preparation for release to Sourceforge =====
* the main program needs to be generated by ProgGen.pm.
* add extra fields to globals in schema eg data root
* templatise
* generate
* decide which files are to be released
* src, doc, tests, cgi-bin (why does this [[exist?),]] a few global scripts
* clean up tree
===== Schema XML check =====
Does not check if schema meets DTD. ... this seems to be a feature of
XML::Simple.
//2007 August 18//
* coded
* schemas and DTD fixed
===== Doco =====
more doco
* //August 18// schema file format
===== Adding subdocuments =====
Adding an action produces blank (read-only) fields, should be entry
fields.
2007-08-12: Fixed, errors in Javascript.
===== Test failed =====
Parameters
action: update, qclassify: , qfrequency: once, qinstance: , qname: testproj, type: project
Software error:
/var/tmp/data//testx.xml does not exist at project.pm line 781
project::persist_retrieve('project=HASH(0xf33720)') called at project.pm line 360
project::make_update('project', '', '/testx', 'HASH(0x628cf0)') called at to_do.pm line 113
to_do::ANON('', '/testx', 'HASH(0x628cf0)') called at to_do.pm line 137
to_do::do('update', '', '/testx', 'HASH(0x628cf0)') called at
/var/www/cgi-bin/testmain.pl line 39
Maybe the document does not exist then... should return an error page
to the user. make_update: the document should already exist, should
check directory.... make sure file name is consistent, apparently
lacking a '/'.
2007-05-20: no, this happens if we press Submit in a normal
create. URL is
http://localhost/cgi-bin/testmain.pl/testx?action=new&type=project
have we set the dataroot?... yes.
/var/tmp/data does not contain anything
What should default action be? ls
Main problem fixed, required line was commented out.
===== Test failed =====
not ok 5 - Check document type
# Failed test 'Check document type'
# at tests/test4.pl line 28.
# got: 'project'
# expected: 'to_do'
Is this a problem with the 'mixin' thing for persistence? Why do we
have this?
No, the code is right and the test is wrong... fixed.
2007-05-20 checked
===== Adding subdocument =====
Add action button appears not to do anything >>>
Error: action is not defined
Source File: http://localhost/cgi-bin/testmain.pl/testx?action=new&type=project
Line: 52
Source File: http://localhost/cgi-bin/testmain.pl/testx?action=new&type=project
Line: 52
Some names seem to include '-'; this may be ok for HTML, but check
generated script using DOM inspector.
2007-05-20: still there... was coding error, fixed and checked.
-----------------------------------------------------------------------