Ignore:
Timestamp:
Apr 12, 2006 3:24:08 PM (18 years ago)
Author:
mylan
Message:

plone 2.1 version with blogging APIs support.

File:
1 edited

Legend:

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

    • Property svn:eol-style deleted
    r28 r319  
    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.