Example #1
0
 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)
Example #2
0
 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)
Example #3
0
    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)
Example #4
0
    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,
        )
Example #5
0
 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)
Example #6
0
 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)
Example #7
0
 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
Example #8
0
 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