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

def zope-coreblog-1.0::COREBlog::COREBlog::publishPost (   self,
  postid,
  username,
  password,
  REQUEST = None 
)

Method to publish entry if it closed. 

Definition at line 2027 of file COREBlog.py.

02027                                                                :
        """ Method to publish entry if it closed. """
        import xmlrpclib
        try:
            int_id = int(postid)
            #get entry
            ent = self.getEntry(int_id)
          if not ent.moderated:
            ent.setModeration(1)
            return xmlrpclib.True
        except:
            return xmlrpclib.False

#
# Factory method for COREBlog instance.
#


def manage_addCOREBlog(parent,REQUEST=None,RESPONSE=None):


Generated by  Doxygen 1.6.0   Back to index