Changeset 695
- Timestamp:
- 12/15/06 08:56:20
- Files:
-
- SimpleBlog/trunk/Extensions/Install.py (modified) (3 diffs)
- SimpleBlog/trunk/content/blogentry.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
SimpleBlog/trunk/Extensions/Install.py
r694 r695 6 6 from Products.CMFDynamicViewFTI.migrate import migrateFTIs 7 7 from Products.SimpleBlog.config import * 8 from Products.RPCAuth.RPCAuth import manage_addRPCAuth 8 9 9 10 portlets=['here/portlet_simpleblog/macros/portletBlogFull_local', … … 11 12 'here/portlet_simpleblog/macros/portletBlogRecent_local', 12 13 'here/portlet_simpleblog/macros/portletBlogRecent_global'] 14 15 def addRPCAuth(self, out): 16 """ Add RPC Auth object to the root of the site. 17 """ 18 portal = getToolByName(self, 'portal_url').getPortalObject() 19 rpcauth = getToolByName(portal, 'RPCAuth', None) 20 if rpcauth is None: 21 manage_addRPCAuth(portal,'RPCAuth') 22 print >>out, 'Installing RPC Auth' 23 else: 24 print >>out, 'RPC Auth already installed' 25 13 26 14 27 def install(self): … … 128 141 wf_tool.setChainForPortalTypes(('Blog','BlogFolder'), 'folder_workflow') 129 142 143 addRPCAuth(self, out) 144 130 145 print >> out, "Successfully installed %s." % PROJECTNAME 131 146 return out.getvalue() SimpleBlog/trunk/content/blogentry.py
r694 r695 275 275 return tuple(tags) 276 276 277 def getBody(self): 278 return self.getField('body').get(self) 277 279 278 280 registerType(BlogEntry)
