lp:pressly

Created by Baggers and last modified
Get this branch:
bzr branch lp:pressly
Only Baggers can upload to this branch. If you are Baggers please log in for upload directions.

Related bugs

Related blueprints

Branch information

Owner:
Baggers
Project:
Pressly
Status:
Development

Recent revisions

31. By Baggers

The WPComments code has had redundant code removed..it was also causing an
issue with taking slices of comments

There are some real things on the todo list including:
* Get decent error catching everywhere
* Updating/adding docstrings across the board
* make printing comments look like printing a list rather than just
  a standard object
* I want to be able to iterate through every post/comment regardless of
  what is in the cache. This shouldnt be too hard.
* Work out what we do about deleting. Posts don't seem to be deletable,
  comments are but I'd like more constistancy than we have right now
* Talking of which we need to do a better job of keeping the library
  consitant, this will mean making sure the 'dicts' have predictable
  keys etc.. we want this to be very transparent
* Update the tour.py

30. By Baggers

Well I have looked at the comments code again
Annoyingly the limits of the wordpress api kill the
idea of representing the comments as a true tree as
there is no way to retrieve just the comments that
are children of another comment.
So aye that sucks

aside from that I have removed an unnecessary call
to the get_comments function, hopefully that will save
a few seconds off fetching posts.

29. By Baggers

Have added the first draft of the comment funtionality
Needs some work as I have treated comments like a list,
but comments can have child comments. I have sorted this
by adding an append method to WPComment class...but if
the user can add comments as if its a list them why can
they access them like its a list?..yeah a bit pants

Comments really are a tree based on lists of lists and
you should be able to access them in that way.

I have added code to check if a post object is valid
and if so to create a WPComments object for that post

I have remove the get_comment_count and get_comments
methods from the post object as this was not appropriate

The WPComments class has been fleshed out to a very
similar style to the Blog class

WPComment class has been created styled is the same
way as Post

28. By Baggers

Well I'm experimenting further so guess I should
commit what I've been up to. It's bloody ugly
as I keep having to pass the parent object into
the child....I don't like this atall as it feels
like there is no compartmentalisation.
Bah
Anyhoo I'll experiment with this and then go back
for a mighty refactor and fix my brain!

27. By Baggers

Damn I missed of the things that needed fixing from before.
Sorted

26. By Baggers

fixed some silly mistakes with the append.
Also have started the comments code

25. By Baggers

Added a tiny bit to the tour

24. By Baggers

Objects are now iterable. :)

23. By Baggers

test commit for learning merge

22. By Baggers

test commit for learning merge

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
This branch contains Public information 
Everyone can see this information.

Subscribers