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')
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')
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)
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')
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')
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']
def __init__(self, plugin_spec): AbstractMessagePlugin.__init__(self, plugin_spec, False) self.define_property('message')
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)
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')
def __init__(self, plugin_spec): AbstractMessagePlugin.__init__(self, plugin_spec, True)
def __init__(self, plugin_spec): AbstractMessagePlugin.__init__(self, plugin_spec) self.define_property('osascript')
def __init__(self, plugin_spec): AbstractMessagePlugin.__init__(self, plugin_spec, False) self.share_property('tz', plugin_spec=PLUGIN_SPEC)
def __init__(self, plugin_spec): AbstractMessagePlugin.__init__(self, plugin_spec, False) self.share_property('scrivener_project_count')
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)
def __init__(self, plugin_spec): AbstractMessagePlugin.__init__(self, plugin_spec) self.define_property('owners', required=False)
def __init__(self, plugin_spec): AbstractMessagePlugin.__init__(self, plugin_spec, True) self.share_property('location_location')
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'))
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)
def __init__(self, plugin_spec): AbstractMessagePlugin.__init__(self, plugin_spec, False) self.define_property('ignored', required=False)
def __init__(self, plugin_spec): AbstractMessagePlugin.__init__(self, plugin_spec) self.define_property('period', int, required=False)