def set_last_state(self, method):
     """ Store the last selected event state on the session. """
     session.set_session(self.context, 'state', method)
Esempio n. 2
0
def remove_from_session():
    set_session(getSite(), 'events-access-token', None)
 def set_last_daterange(self, method):
     """ Store the last selected daterange on the session. """
     session.set_session(self.context, 'daterange', method)
Esempio n. 4
0
 def set_last_import_source(self, source):
     """ Store the last selected import source on the session. """
     session.set_session(self.context, 'source', source)
Esempio n. 5
0
def store_on_session(context):
    assert context.access_token
    set_session(getSite(), 'events-access-token', context.access_token)
Esempio n. 6
0
 def set_last_state(self, method):
     """ Store the last selected event state on the session. """
     session.set_session(self.context, 'state', method)
Esempio n. 7
0
 def set_last_custom_dates(self, start, end):
     """ Store the last selected custom dates on the session. """
     session.set_session(self.context, 'custom_date_start', start)
     session.set_session(self.context, 'custom_date_end', end)
Esempio n. 8
0
 def set_last_daterange(self, method):
     """ Store the last selected daterange on the session. """
     session.set_session(self.context, 'daterange', method)
Esempio n. 9
0
def remove_from_session():
    set_session(getSite(), 'events-access-token', None)
Esempio n. 10
0
def store_on_session(context):
    assert context.access_token
    set_session(getSite(), 'events-access-token', context.access_token)