def on_start(self): self.facebook = Facebook(FACEBOOK_APP_ID, permissions=['publish_actions', 'basic_info']) global modal_ctl modal_ctl = ModalCtl() netcheck.set_prompt(modal_ctl.ask_connect) self.facebook.set_retry_prompt(modal_ctl.ask_retry_facebook)
def on_start(self): netcheck.set_prompt(self.ask_connect) creds = { 'consumer_key': '4N5RNkH9Zkm3qtxbYbi6Fg', 'consumer_secret': 'YjyTa1hHExzWSVQqkuR4JAK2yFPrgD3dDl6sjulg' } self.twitter = Twitter(creds) self.twitter.set_retry_prompt(self.ask_retry_tweet)
def on_start(self): global modal_ctl modal_ctl = ModalCtl() netcheck.set_prompt(modal_ctl.ask_connect) b_key = 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArYf73V3aCHtA1C7Kg3FO/ofDujXJj34YVlYMSvvQ2voKV6oKGXHKb+7F9MuYTbEIm1RK9q1K3qW7hXTZMZtE6BYpM6xpDejj7sd09LkFSsOI8DKls/xfwXSElZn7AgA0eI3dI73tqVfE8hXfXWhcHISeY41/XJcSJA74Vz9SdjDg6dedTYsMHfHBgsAxW3PkdOZBUTyYcTGrjb57GqUvtGE+ollJoaHB4Bg8VCyjA5n03qGAYXc/rdBPaMaLlIdrmmx95pa2PzSaHlZ5UHziHsd58RVf4hFKmxDN0KyAYXsceDPnRTy8d0jAIjLhhsAw0sEj7giM31ES0nbZHIsRCwIDAQAB' # these have to be provided ahead of time skus = ['test.mock.bs1', 'test.mock.bs2', 'test.mock.bs3', 'android.test.purchased',] global billing self.billing = billing = Billing(b_key, skus) billing.set_retry_prompt(modal_ctl.ask_retry_purchase)
def on_start(self): ''' Load Modules required for Facebook Login ''' self.facebook = Facebook(FACEBOOK_APP_ID,permissions=['publish_actions', 'basic_info']) #Sets up the AskUser() and PopUp() to ask for connection global modal_ctlon_start modal_ctl = ModalCtl() #Define callback as modal_ctl.ask_connect() netcheck.set_prompt(modal_ctl.ask_connect) self.facebook.set_retry_prompt(modal_ctl.ask_retry_facebook) ''' Load Bus Stop Directory ''' #Retrieve Bus Stop Details from CSV self.datamall_bus_stop = datamall_bus_stop.BusStop() ''' Load Facebook Profile ''' #Check if this is the first login self.fb_userprofile = userprofile.UserProfile(self.user_data_dir) #If existing user, IS_EXISTINGUSER=True self.IS_EXISTINGUSER = self.fb_userprofile.isExistingUser #If existing user, USER_PROFILE will not be an empty dict self.USER_PROFILE = self.fb_userprofile._user_profile if platform == 'android': if self.IS_EXISTINGUSER: #Loads Screen for existing Users self.root_widget.current = 'searchscreen' self._facebookid = self.USER_PROFILE['facebook_id'] self._firstname = self.USER_PROFILE['firstname'] self._lastname = self.USER_PROFILE['lastname'] else: #Loads Screen for new users self.root_widget.current = 'accountsettings' #Not on android else: self.root_widget.current = 'PCaccountsettings' ''' Update Footer for Search Screen(the main screen) ''' self.root_widget.ids['searchbusscreen'].ids['footer'].ids['footer_search_button'].ids['footer_search_button_image'].source = 'data/Searches Folder_inactive.png'
def on_start(self): global modal_ctl modal_ctl = ModalCtl() netcheck.set_prompt(modal_ctl.ask_connect) b_key = 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArYf73V3aCHtA1C7Kg3FO/ofDujXJj34YVlYMSvvQ2voKV6oKGXHKb+7F9MuYTbEIm1RK9q1K3qW7hXTZMZtE6BYpM6xpDejj7sd09LkFSsOI8DKls/xfwXSElZn7AgA0eI3dI73tqVfE8hXfXWhcHISeY41/XJcSJA74Vz9SdjDg6dedTYsMHfHBgsAxW3PkdOZBUTyYcTGrjb57GqUvtGE+ollJoaHB4Bg8VCyjA5n03qGAYXc/rdBPaMaLlIdrmmx95pa2PzSaHlZ5UHziHsd58RVf4hFKmxDN0KyAYXsceDPnRTy8d0jAIjLhhsAw0sEj7giM31ES0nbZHIsRCwIDAQAB' # these have to be provided ahead of time skus = [ 'test.mock.bs1', 'test.mock.bs2', 'test.mock.bs3', 'android.test.purchased', ] global billing self.billing = billing = Billing(b_key, skus) billing.set_retry_prompt(modal_ctl.ask_retry_purchase)
def on_start(self): netcheck.set_prompt(self.ask_connect) creds = {'consumer_key' : '4N5RNkH9Zkm3qtxbYbi6Fg', 'consumer_secret' : 'YjyTa1hHExzWSVQqkuR4JAK2yFPrgD3dDl6sjulg'} self.twitter = Twitter(creds) self.twitter.set_retry_prompt(self.ask_retry_tweet)
def on_start(self): self.facebook = Facebook(FACEBOOK_APP_ID) global modal_ctl modal_ctl = ModalCtl() netcheck.set_prompt(modal_ctl.ask_connect) self.facebook.set_retry_prompt(modal_ctl.ask_retry_facebook)
def __init__(self, **kwargs): super(NetCheckUI, self).__init__(**kwargs) if platform() != 'android': self.output.add_widget(DebugPanel(self)) netcheck.set_prompt(self.ask_connect)