Changeset 277

Show
Ignore:
Timestamp:
02/17/06 15:36:21
Author:
mylan
Message:

Fix publishing bug

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • SimpleBlog/branches/plone-2.0.5-Blogging-APIs/MetaWeblogAPI.py

    r276 r277  
    121121        wf_tool=getToolByName(self, 'portal_workflow') 
    122122        wf_state = wf_tool.getInfoFor(entry, 'review_state', '') 
    123         if publish and wf_state != 'publish':  # todo!!!! 
     123        if publish and wf_state != 'published':  # todo!!!! 
    124124            wf_tool.doActionFor(entry, 'publish') 
    125125 
  • SimpleBlog/branches/plone-2.0.5-Blogging-APIs/MovableTypeAPI.py

    r276 r277  
    4949            wf_tool=getToolByName(self, 'portal_workflow') 
    5050            wf_state = wf_tool.getInfoFor(post, 'review_state', '') 
    51             if wf_state != 'publish': 
     51            if wf_state != 'published': 
    5252                wf_tool.doActionFor(post, 'publish')  # todo 
    5353            return XMLRPCTRUE