ConsoleUser

Copyright (c) 2010-2023 Skaion Corporarion, www.skaion.com

This project was developed in part by numerous sponsorships from the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints of Governmental purposes notwithstanding any copyright notation thereon.

All content reflects those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of the U.S. Government or Skaion Corporation.

class Blog.Blog(system, config, blog_type=None)

This class contains the interface that lets a <no title> interact with a blog without knowing any details about the actual blog type being used.

comment(content)

Add a comment to the current blog post that is being read.

Parameters:

  • content: the string content of this comment

login()

Login to the forum.

logout()

Log the current user out

post(title, content)

Create a new post

Parameters:

  • title: the string title of this post

  • content: the string content of this post

read(title)

Find the blog with the given title then click on it to read it

Parameters:

  • title: the string of the title of the post to read

read_random()

Pick a random available post and click on it to read it