def __init__(self, name, password, *a, **k): self.location = name EventMixin.__init__(self) self.proto = RssProtocol(self) SocialNetwork.__init__(self, name=name, password=password, *a, **k) self._dirty = True self.change_state(self.Statuses.ONLINE)
def __init__(self, **options): self.time_offset = None options['password'] = None oauth_util.OAuthAccountBase.__init__(self, **options) self.connection = None self._dirty = False SocialNetwork.__init__(self, **options) self.social_feed = SocialFeed('linkedin_' + self.username, 'linkedin_' + self.username, self.get_newsfeed_iter, self.generate_newsfeed_html, lambda: self.set_infobox_dirty)
def __init__(self, **options): self.time_offset = None options["password"] = None oauth_util.OAuthAccountBase.__init__(self, **options) self.connection = None self._dirty = False SocialNetwork.__init__(self, **options) self.social_feed = SocialFeed( "linkedin_" + self.username, "linkedin_" + self.username, self.get_newsfeed_iter, self.generate_newsfeed_html, lambda: self.set_infobox_dirty, )
def update_info(self, **info): filters = info.pop('filters', None) if filters is not None: self.update_filters(filters) self.set_dirty() SocialNetwork.update_info(self, **info)
def get_options(self): opts = {'informed_ach': True, 'post_ach_all': False} opts.update(SocialNetwork.get_options(self)) opts.update(oauth_util.OAuthAccountBase.get_options(self)) return opts
def get_options(self): opts = {"informed_ach": True, "post_ach_all": False} opts.update(SocialNetwork.get_options(self)) opts.update(oauth_util.OAuthAccountBase.get_options(self)) return opts