2014-06-02 Finalize Lab20

posted Jun 2, 2014, 5:32 AM by Samuel Konstantinovich   [ updated Jun 2, 2014, 5:32 AM ]
Lab 20 final component:

Create a text file for posts. Make it writeable. 

Format:
PostID,UserName,IP,Post Content
0,bob,102.32.64.2,This is my first post,
1,bob,102.32.64.2,OMG!!! Blargh!
2,dave,132.32.62.1,This is my first post
3,bob,102.32.64.2,If I fits - i sits.
4,dave,132.32.62.1,Bob is dumb...

Feature 1: POSTING STUFF!
Everyone's main page has a form to add a new post to their own site. They are the only one that can see this. Just append a new line to the posts.txt file.
Feature 2: VIEW OTHER PEOPLE's STUFF
Make a viewProfile.py  that will allow you to view any other person's posts. There will be no form on this, just display all posts by that person.
Feature 3: SEE OTHER PEOPLE
On your main page, have a link to all other users profile.

Optional stuff:
4: Make a separate file userList.py  that allows non-logged-in users to view the list.
5: Make viewProfile.py allow non-logged-in users to view.
6. Make userlist.py and viewProfile.py 


Comments