Changeset 286

Show
Ignore:
Timestamp:
03/02/06 06:27:49
Author:
chervol
Message:

Blog migration added

Files:

Legend:

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

    r285 r286  
    2929            pass 
    3030 
     31def migrateToAPIs(self): 
     32    """ migrate existing SimpleBlog instance to support BloggingAPIs """ 
     33    RPCAuth = self.simpleblog_tool.findRPCAuth(self) 
     34    # Setup the MetaWeblog API 
     35    self.metaWeblog = MetaWeblogAPI.MetaWeblogAPI().__of__(self) 
     36    self.metaWeblog.setupRPCAuth(RPCAuth) 
     37    # Setup the Blogger API 
     38    self.blogger = BloggerAPI.BloggerAPI().__of__(self) 
     39    self.blogger.setupRPCAuth(RPCAuth) 
     40    # Setup the MovableTypeAPI API 
     41    self.mt = MovableTypeAPI.MovableTypeAPI().__of__(self) 
     42    self.mt.setupRPCAuth(RPCAuth)