Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
proc
/
thread-self
/
root
/
usr
/
lib
/
python2.7
/
site-packages
/
boto
/
File Content:
plugin.pyc
� �Wc @ sh d Z d d l Z d d l Z d d l Z d e f d � � YZ d d � Z d � Z e a d � Z d S( s Implements plugin related api. To define a new plugin just subclass Plugin, like this. class AuthPlugin(Plugin): pass Then start creating subclasses of your new plugin. class MyFancyAuth(AuthPlugin): capability = ['sign', 'vmac'] The actual interface is duck typed. i����Nt Pluginc B s# e Z d Z g Z e d � � Z RS( s Base class for all plugins.c C s( x! | D] } | | j k r t Sq Wt S( sM Returns true if the requested capability is supported by this plugin ( t capabilityt Falset True( t clst requested_capabilityt c( ( s/ /usr/lib/python2.7/site-packages/boto/plugin.pyt is_capable1 s ( t __name__t __module__t __doc__R t classmethodR ( ( ( s/ /usr/lib/python2.7/site-packages/boto/plugin.pyR , s c C sO | s g } n g } x3 | j � D]% } | j | � r"