Logo Search packages:      
Sourcecode: zope-coreblog version File versions

def zope-coreblog-1.0::COREBlog::COREBlog::rev_trackback_items (   self,
  start = 0,
  count = -1 
)

Return list of Trackback(reversed indexing).

Definition at line 1138 of file COREBlog.py.

01138                                                   :
        """Return list of Trackback(reversed indexing)."""
      start = r2i(start,0)
      count = r2i(count,-1)
        l = []
        if count == -1:
            count = len(self.trackback_list)
        l_e = len(self.trackback_list) - 1
        while count > 0:
            if l_e < 0:
                #index out of range
                break
            id = self.trackback_list[l_e]
            obj = self.getTrackback(id)
            l_e = l_e - 1
            if obj.moderated:
                l.append(obj)
                count = count - 1
        return l


    security.declareProtected(View, 'count_blog_trackback')
    def count_blog_trackback(self):


Generated by  Doxygen 1.6.0   Back to index