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

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

Return list of Entry(reversed indexing).

Definition at line 675 of file COREBlog.py.

00675                                                                       :
        """Return list of Entry(reversed indexing)."""
      start = r2i(start,0)
      count = r2i(count,-1)
      consider_moderation = r2i(consider_moderation,1)
        l = []
        if count == -1:
            count = len(self.entry_list)
        l_e = len(self.entry_list) - 1
        for c in range(start,start+count):
            if l_e < c:
                #index out of range
                break
            id = self.entry_list[l_e - c]
            obj = self.getEntry(id)
            if (not consider_moderation) or obj.moderated:
                l.append(obj)
        return l



    security.declareProtected(View, 'day_entry_items')
    def day_entry_items(self,year,month,day):


Generated by  Doxygen 1.6.0   Back to index