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

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

Return list of Entry.

Definition at line 654 of file COREBlog.py.

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


    security.declareProtected(View, 'rev_entry_items')
    def rev_entry_items(self,start=0,count=-1,consider_moderation = 1):


Generated by  Doxygen 1.6.0   Back to index