Exemplo n.º 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')
Exemplo n.º 2
0
 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')
Exemplo n.º 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)
Exemplo n.º 4
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.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')
Exemplo n.º 5
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)
Exemplo n.º 6
0
 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')
Exemplo n.º 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')
Exemplo n.º 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')
Exemplo n.º 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']
Exemplo n.º 10
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec, False)
     self.define_property('message')
Exemplo n.º 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)
Exemplo n.º 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')
Exemplo n.º 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)
Exemplo n.º 14
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec, True)
Exemplo n.º 15
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec)
     self.define_property('osascript')
Exemplo n.º 16
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec, False)
     self.share_property('tz', plugin_spec=PLUGIN_SPEC)
Exemplo n.º 17
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec, False)
     self.share_property('scrivener_project_count')
Exemplo n.º 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)
Exemplo n.º 19
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec)
     self.define_property('owners', required=False)
Exemplo n.º 20
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec, True)
     self.share_property('location_location')
Exemplo n.º 21
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec, False)
     self.define_property('message')
Exemplo n.º 22
0
 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'))
Exemplo n.º 23
0
 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)
Exemplo n.º 24
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec, False)
     self.define_property('ignored', required=False)
Exemplo n.º 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)
Exemplo n.º 26
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec)
     self.define_property('period', int, required=False)
Exemplo n.º 27
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec, False)
     self.share_property('tz', plugin_spec=PLUGIN_SPEC)
Exemplo n.º 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')
Exemplo n.º 29
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec, False)
     self.share_property('scrivener_project_count')
Exemplo n.º 30
0
 def __init__(self, plugin_spec):
     AbstractMessagePlugin.__init__(self, plugin_spec, True)
     self.share_property('location_location')