Squeak Class Documentation category index | class index  
 
Comment
  category: Network-Pluggable Web Server
  superclass: Object
  subclasses:

A Comment space is like a bulletin board. It is a web page with a list statements from many different people. At the bottom there is a form for you to add your own statement.

Anyone may start a new comment page, just by asking for a page with a new key, and there can be any number of pages. The default Swiki has a page called 'pws' already created.

The administrator must take special action to save the accumulated comments (Comment saveTo: 'aFileName'). Comments are not automatically stored on the disk like regular Swiki pages are. So, for the moment, it is likely that Comments will get lost when the server is restarted.

URLs are of the form
machine:80/Comment.{commentKey}
machine:80/Comment.{commentKey}.{number}
machine:80/Comment.{commentKey}.note -- Does this really work??? -tk
machine:80/Comment.{commentKey}.gif

instance methods
  no messages
 

class methods
  URL processing
  comments
createComment:
process:
showAllComments:
showComment:
showNote:

  initialization
  initialize
readIn:
saveTo:
setUpExample

instance methods
  no messages top  

class methods
  URL processing top  
 

comments


 

createComment:

Create a new comment from a Web request


 

process:

URLs are of the form Comment.commentKey or
Comment.commentKey.note of Comment.commentKey.gif.

If commentKey is accessed but not created, create an empty one.
If note is accessed, display it.


 

showAllComments:


 

showComment:


 

showNote:


  initialization top  
 

initialize

Object initialize


 

readIn:


 

saveTo:


 

setUpExample