lp:pressly
- Get this branch:
- bzr branch lp:pressly
Recent revisions
- 31. By Baggers
-
The WPComments code has had redundant code removed..it was also causing an
issue with taking slices of commentsThere 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 sucksaside 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 pantsComments 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 postI have remove the get_comment_count and get_comments
methods from the post object as this was not appropriateThe WPComments class has been fleshed out to a very
similar style to the Blog classWPComment 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!
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)