CVSROOT: /cvs/gnome Module name: yarrr Changes by: walters 05/04/06 16:37:29
Modified files: src/org/gnome/yarrr: ReferencableObject.java Whiteboard.java Person.java Statement.java ActiveTopicObject.java Chat.java YarrrXmlRpcMethods.java JSBuilder.java LiveComment.java ClosedComment.java YarrrServlet.java Discussion.java ActiveTopic.java . : ChangeLog web : topic.js topic.jsp referencableobject.js src/org/gnome/yarrr/tests: JSBuilderTest.java ChatTests.java WhiteboardTests.java Added files: src/org/gnome/yarrr/xmlrpc: XmlRpcSerializable.java Removed files: src/org/gnome/yarrr: JavaScriptMarshaller.java Log message: 2005-04-06 Colin Walters <[EMAIL PROTECTED]> * JavaScriptMarshaller.java: Deleted in favor of xmlRpcSerializable. * XmlRpcSerializable.java: An interface for "serializing" a class to a data structure that XML-RPC likes. We also use this for generating JavaScript code for a class later. * ActiveTopic.java: Implement xmlRpcSerializable. Also create buildReferencableObjectPreCache method which recursively serializes a topic into a reference map which JavaScript can use. * ActiveTopicObject.java: Implement xmlRpcSerializable by delegating to superclass. * Chat.java: Implement xmlRpcSerializable. Change ArrayList to List. * ClosedComment.java: Implement xmlRpcSerializable. Entirely delete internal class Content and getContents method; they are not necessary anymore. * Discussion.java: Implement xmlRpcSerializable. * JSBuilder.java: Delete generated comment goo. Add appendObject method. Rename appendArray to appendCollection. Add appendStringMap method. * LiveComment.java: Implement xmlRpcSerializable. * Person.java: Implement xmlRpcSerializable (which is semi-bogus atm). * ReferencableObject.java: Implement xmlRpcSerializable; add in object id and version. * Statement.java: Implement xmlRpcSerializable. * Whiteboard.java: Implement xmlRpcSerializable. * YarrrServlet.java: Use buildReferencableObjectPreCache. * YarrrXmlRpcMethods.java: Delete now-redundant methods: getPresentPersons, getDiscussions, getChat, getClosedComments, getClosedCommentContents, getWhiteboards. * ChatTests.java: Serialization test. * JSBuilderTest.java: Generated goo. * WhiteboardTests.java: Generated goo. * referencableobject.js: Add referencableObjectPreCache. Make default update method of ReferencableObject invoke the dumpObjects xml-rpc method and call the sync method on self with result. * topic.js: Massive changes here. We get rid of the multiple constructor/update paths for various objects. Instead of having a special 3rd argument which we pass down, each constructor looks in the precache for itself. Since we can now dump many objects automatically, get rid of the update method and various xml-rpc calls they make. Now objects overriding update are the ones which know how to intelligently update (Chat, LiveComment). * topic.jsp: Init precache. URL : http://cvs.gnome.org/bonsai/cvsquery.cgi?branch=&dir=yarrr&who=walters&date=explicit&mindate=2005-04-06%2016:36&maxdate=2005-04-06%2016:38 _______________________________________________ cvs-commits-list mailing list cvs-commits-list@gnome.org http://mail.gnome.org/mailman/listinfo/cvs-commits-list