Changeset 286 in products


Ignore:
Timestamp:
Mar 2, 2006 12:27:49 PM (18 years ago)
Author:
chervol
Message:

Blog migration added

File:
1 edited

Legend:

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

    • Property svn:eol-style deleted
    r28 r286  
    3030 
    3131 
     32from Products.SimpleBlog import MetaWeblogAPI 
     33from Products.SimpleBlog import BloggerAPI 
     34from Products.SimpleBlog import MovableTypeAPI 
    3235 
    33 #from Products.SimpleBlog import MetaWeblogAPI 
    34 #from Products.SimpleBlog import BloggerAPI 
    35 #from Products.SimpleBlog import MovableTypeAPI 
    36  
    37 #def migrateToAPIs(self): 
    38     #""" migrate existing SimpleBlog instance to support BloggingAPIs """ 
    39     #RPCAuth = self.simpleblog_tool.findRPCAuth(self) 
    40     ## Setup the MetaWeblog API 
    41     #self.metaWeblog = MetaWeblogAPI.MetaWeblogAPI().__of__(self) 
    42     #self.metaWeblog.setupRPCAuth(RPCAuth) 
    43     ## Setup the Blogger API 
    44     #self.blogger = BloggerAPI.BloggerAPI().__of__(self) 
    45     #self.blogger.setupRPCAuth(RPCAuth) 
    46     ## Setup the MovableTypeAPI API 
    47     #self.mt = MovableTypeAPI.MovableTypeAPI().__of__(self) 
    48     #self.mt.setupRPCAuth(RPCAuth)     
     36def migrateToAPIs(self): 
     37    """ migrate existing SimpleBlog instance to support BloggingAPIs """ 
     38    RPCAuth = self.simpleblog_tool.findRPCAuth(self) 
     39    # Setup the MetaWeblog API 
     40    self.metaWeblog = MetaWeblogAPI.MetaWeblogAPI().__of__(self) 
     41    self.metaWeblog.setupRPCAuth(RPCAuth) 
     42    # Setup the Blogger API 
     43    self.blogger = BloggerAPI.BloggerAPI().__of__(self) 
     44    self.blogger.setupRPCAuth(RPCAuth) 
     45    # Setup the MovableTypeAPI API 
     46    self.mt = MovableTypeAPI.MovableTypeAPI().__of__(self) 
     47    self.mt.setupRPCAuth(RPCAuth)     
Note: See TracChangeset for help on using the changeset viewer.