From: <jfi...@us...> - 2003-01-09 01:50:42
|
Update of /cvsroot/modus/sampleapps/pressrelease In directory sc8-pr-cvs1:/tmp/cvs-serv5060 Modified Files: index.cfm modus_settings.cfm Log Message: content types had the wrong path - now set to org.bacfug.sampleapps Index: index.cfm =================================================================== RCS file: /cvsroot/modus/sampleapps/pressrelease/index.cfm,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** index.cfm 8 Jan 2003 16:09:21 -0000 1.1.1.1 --- index.cfm 9 Jan 2003 01:50:39 -0000 1.2 *************** *** 5,12 **** if(form.isNew){ //Load a new pressrelease ! pr = server.modus.get("sampleapps.pressrelease.contenttypes.pressrelease"); }else{ //Load an existing pressrelease ! pr = server.modus.get("sampleapps.pressrelease.contenttypes.pressrelease",form.id); } // persist the changes - this calls the contentobject which will validate as required by the descriptor --- 5,12 ---- if(form.isNew){ //Load a new pressrelease ! pr = server.modus.get("org.bacfug.sampleapps.pressrelease.pressrelease"); }else{ //Load an existing pressrelease ! pr = server.modus.get("org.bacfug.sampleapps.pressrelease.pressrelease",form.id); } // persist the changes - this calls the contentobject which will validate as required by the descriptor *************** *** 15,30 **** if(NOT server.modus.hasErrors(pr)){ //reinitialize it ! pr = server.modus.get("sampleapps.pressrelease.contenttypes.pressrelease"); } } //all releases ! all = server.modus.getAll("sampleapps.pressrelease.contenttypes.pressrelease", "featured desc,title"); //if a URL id exists if(isDefined("url.id")){ ! pr = server.modus.get("sampleapps.pressrelease.contenttypes.pressrelease",url.id); //otherwise, server.modus.get a new pressrelease if one does not exist }else if(NOT isDefined('pr')){ ! pr = server.modus.get("sampleapps.pressrelease.contenttypes.pressrelease"); } //get all the errors --- 15,30 ---- if(NOT server.modus.hasErrors(pr)){ //reinitialize it ! pr = server.modus.get("org.bacfug.sampleapps.pressrelease.pressrelease"); } } //all releases ! all = server.modus.getAll("org.bacfug.sampleapps.pressrelease.pressrelease", "featured desc,title"); //if a URL id exists if(isDefined("url.id")){ ! pr = server.modus.get("org.bacfug.sampleapps.pressrelease.pressrelease",url.id); //otherwise, server.modus.get a new pressrelease if one does not exist }else if(NOT isDefined('pr')){ ! pr = server.modus.get("org.bacfug.sampleapps.pressrelease.pressrelease"); } //get all the errors Index: modus_settings.cfm =================================================================== RCS file: /cvsroot/modus/sampleapps/pressrelease/modus_settings.cfm,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** modus_settings.cfm 8 Jan 2003 16:09:21 -0000 1.1.1.1 --- modus_settings.cfm 9 Jan 2003 01:50:39 -0000 1.2 *************** *** 9,14 **** <!--- Content type descriptors ---> <contentTypes> ! <contentType name="sampleapps.pressrelease.contenttypes.pressrelease"/> ! <contentType name="sampleapps.pressrelease.contenttypes.specialrelease"/> </contentTypes> </modus> --- 9,14 ---- <!--- Content type descriptors ---> <contentTypes> ! <contentType name="org.bacfug.sampleapps.pressrelease.pressrelease"/> ! <contentType name="org.bacfug.sampleapps.pressrelease.specialrelease"/> </contentTypes> </modus> |