Re: [Wyonacms-cvs-commit] wyonacms/src/webapp/wyona/cms/pubs/forum/java/src/org/wyona/cms/pubs/forum NewArticleCreator.java,1.11,1.12

Michael Wechner <[email protected]> Sat, 01 Mar 2003 00:42:10 +0100
Newsgroups gmane.comp.cms.wyona.devel
Message-ID <[email protected]>
Christian Egli wrote:

>Michael Wechner <[email protected]> writes:
>
>  
>
>>Update of /repository/wyonacms/src/webapp/wyona/cms/pubs/forum/java/src/org/wyona/cms/pubs/forum
>>In directory erbium:/tmp/cvs-serv26052/src/webapp/wyona/cms/pubs/forum/java/src/org/wyona/cms/pubs/forum
>>
>>Modified Files:
>>	NewArticleCreator.java 
>>Log Message:
>>creators fixed
>>
>>Index: NewArticleCreator.java
>>===================================================================
>>RCS file: /repository/wyonacms/src/webapp/wyona/cms/pubs/forum/java/src/org/wyona/cms/pubs/forum/NewArticleCreator.java,v
>>retrieving revision 1.11
>>retrieving revision 1.12
>>diff -C2 -d -r1.11 -r1.12
>>*** NewArticleCreator.java	27 Feb 2003 15:59:34 -0000	1.11
>>--- NewArticleCreator.java	28 Feb 2003 01:04:40 -0000	1.12
>>***************
>>*** 106,117 ****
>>          // Replace id
>>          du.setElementValue(doc, "/article/meta/id", childId);
>>- 	
>>-         log.debug("system_name = " +
>>- 		  du.getElementValue(doc.getDocumentElement(), 
>>- 				     new org.wyona.xml.XPath("system_name")));
>>  
>>          // Replace editor
>>!         du.setElementValue(doc, "/article/meta/editor",
>>! 			   (String) parameters.get("editor"));
>>  
>>          Calendar cal = new GregorianCalendar();
>>--- 106,114 ----
>>          // Replace id
>>          du.setElementValue(doc, "/article/meta/id", childId);
>>  
>>          // Replace editor
>>!         org.wyona.cms.ac.Identity identity = (org.wyona.cms.ac.Identity)parameters.get("org.wyona.cms.ac.Identity");
>>!         du.setElementValue(doc, "/article/meta/editor", identity.getUsername());
>>!         //du.setElementValue(doc, "/article/meta/editor", (String) parameters.get("editor"));
>>  
>>          Calendar cal = new GregorianCalendar();
>>    
>>
>
>Call me a nitpick but I'd actually prefer if you delete above line
>instead of commenting it out.
>
>I spent some time deleting code that was commented out and I'd rather
>not do it again.
>
>  
>
Please apologize my bad habit. I am working on it :-)

Thanks

Michael