예제 #1
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec, True)
     self.define_property('city')
     self.define_property('units', required=False, default='imperial')
     self.share_property('tz', plugin_spec=timezone.PLUGIN_SPEC)
     ## plugin uses location_location from Location plugin
     self.share_property('location_location')
예제 #2
0
파일: music.py 프로젝트: gldnspud/flashbake
 def __init__(self, plugin_spec):
     """ Add an optional property for specifying a different location for the
         Banshee database. """
     AbstractMessagePlugin.__init__(self, plugin_spec)
     self.define_property('db', default=os.path.join(os.path.expanduser('~'), '.config', 'banshee-1', 'banshee.db'))
     self.define_property('limit', int, default=3)
     self.define_property('last_played_format')
예제 #3
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec, True)
     self.define_property('consumer_key', required=False)
     self.define_property('consumer_secret', required=False)
     self.define_property('access_key', required=False)
     self.define_property('access_secret', required=False)
     self.define_property('tweet_limit', required=True)
     self.define_property('username', required=True)
예제 #4
0
파일: weather.py 프로젝트: rkabir/flashbake
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec, True)
     self.define_property('city')
     self.define_property('units', required=False, default='imperial')
     self.define_property('appid', required=False)
     self.share_property('tz', plugin_spec=timezone.PLUGIN_SPEC)
     ## plugin uses location_location from Location plugin
     self.share_property('location_location')
예제 #5
0
파일: twitter.py 프로젝트: rkabir/flashbake
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec, True)
     self.define_property('consumer_key', required=False)
     self.define_property('consumer_secret', required=False)
     self.define_property('access_key', required=False)
     self.define_property('access_secret', required=False)
     self.define_property('tweet_limit', required=True)
     self.define_property('username', required=True)
예제 #6
0
파일: music.py 프로젝트: sahwar/flashbake
 def __init__(self, plugin_spec):
     """ Add an optional property for specifying a different location for the
         Banshee database. """
     AbstractMessagePlugin.__init__(self, plugin_spec)
     self.define_property('db',
                          default=os.path.join(os.path.expanduser('~'),
                                               '.config', 'banshee-1',
                                               'banshee.db'))
     self.define_property('limit', int, default=3)
     self.define_property('last_played_format')
예제 #7
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec, True)
     self.service_url = 'http://twitter.com'
     self.optional_field_info = { \
         'source':{'path':'source', 'transform':propercase}, \
         'location':{'path':'user/location', 'transform':propercase}, \
         'favorited':{'path':'favorited', 'transform':propercase}, \
         'tweeted_on': {'path':'created_at', 'transform':utc_to_local}, \
     }
     self.define_property('user', required=True)
     self.define_property('limit', int, False, 5)
     self.define_property('optional_fields')
예제 #8
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec, True)
     self.service_url = 'http://twitter.com'
     self.optional_field_info = { \
         'source':{'path':'source', 'transform':propercase}, \
         'location':{'path':'user/location', 'transform':propercase}, \
         'favorited':{'path':'favorited', 'transform':propercase}, \
         'tweeted_on': {'path':'created_at', 'transform':utc_to_local}, \
     }
     self.define_property('user', required=True)
     self.define_property('limit', int, False, 5)
     self.define_property('optional_fields')
예제 #9
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec, True)
     self.service_name = plugin_spec.split(':')[-1]
     self.property_prefix = '_'.join(self.service_name.lower().strip().split(' '))
     self.service_url = 'http://twitter.com'
     self.optional_field_info = { \
         'source':{'path':'source', 'transform':propercase}, \
         'location':{'path':'user/location', 'transform':propercase}, \
         'favorited':{'path':'favorited', 'transform':propercase}, \
         'tweeted_on': {'path':'created_at', 'transform':utc_to_local}, \
     }
     self.requiredproperties = [self.property_prefix+'_user']
     self.optionalproperties = [self.property_prefix+'_limit', self.property_prefix+'_optional_fields']
예제 #10
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec, False)
     self.define_property('message')
예제 #11
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec, False)
     self.define_property('time_format', required=False)
     self.define_property('time_hours', required=False)
예제 #12
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec, True)
     self.define_property('city')
     self.share_property('tz', plugin_spec=timezone.PLUGIN_SPEC)
     ## plugin uses location_location from Location plugin
     self.share_property('location_location')
예제 #13
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec, False)
     self.define_property('time_format', required=False)
     self.define_property('time_hours', required=False)
예제 #14
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec, True)
예제 #15
0
파일: music.py 프로젝트: ianpaul/flashbake
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec)
     self.define_property('osascript')
예제 #16
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec, False)
     self.share_property('tz', plugin_spec=PLUGIN_SPEC)
예제 #17
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec, False)
     self.share_property('scrivener_project_count')
예제 #18
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec, True)
     self.define_property('user_name', required=True)
     self.define_property('api_key', required=True)
     self.define_property('limit', int, False, 5)
예제 #19
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec)
     self.define_property('owners', required=False)
예제 #20
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec, True)
     self.share_property('location_location')
예제 #21
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec, False)
     self.define_property('message')
예제 #22
0
파일: music.py 프로젝트: ianpaul/flashbake
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec)
     self.define_property('db',
                          default=os.path.join(os.path.expanduser('~'),
                                               '.local', 'share',
                                               'rhythmbox', 'rhythmdb.xml'))
예제 #23
0
파일: feed.py 프로젝트: sahwar/flashbake
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec, True)
     self.define_property('url', required=True)
     self.define_property('author')
     self.define_property('limit', int, False, 5)
예제 #24
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec, False)
     self.define_property('ignored', required=False)
예제 #25
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec, True)
     self.define_property('user_name', required=True)
     self.define_property('api_key', required=True)
     self.define_property('limit', int, False, 5)
예제 #26
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec)
     self.define_property('period', int, required=False)
예제 #27
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec, False)
     self.share_property('tz', plugin_spec=PLUGIN_SPEC)
예제 #28
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec, True)
     self.define_property('city')
     self.share_property('tz', plugin_spec=timezone.PLUGIN_SPEC)
     ## plugin uses location_location from Location plugin
     self.share_property('location_location')
예제 #29
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec, False)
     self.share_property('scrivener_project_count')
예제 #30
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec, True)
     self.share_property('location_location')