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 BlogImpl.BlogImpl(system, config)¶
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
- exit(save=False)¶
Exit for the forum
Parameters:
save: ignored, just accepted to maintain function prototype
- logout()¶
Log the current user out
- open()¶
Open the browser and go to the forum
- post(title, content)¶
Create a new post with the given content
Parameters:
title: the string title of this post
content: the string text to enter as the body of the new 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()¶
Randomly pick a blog post to read. This includes navigating into the post.
- BlogImpl.get_blog(system, config, blog_type=None)¶
This is the factory method that will create instances of the correct type for the given request.
Parameters:
system: a <no title> instance to talk to the target system
config: a <no title> instance defining this user
forum_type: a string specifying the type to create, overriding any value in the config param