예제 #1
0
 def set_last_state(self, method):
     """ Store the last selected event state on the session. """
     session.set_session(self.context, 'state', method)
예제 #2
0
def remove_from_session():
    set_session(getSite(), 'events-access-token', None)
예제 #3
0
 def set_last_daterange(self, method):
     """ Store the last selected daterange on the session. """
     session.set_session(self.context, 'daterange', method)
예제 #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)
예제 #5
0
def store_on_session(context):
    assert context.access_token
    set_session(getSite(), 'events-access-token', context.access_token)
예제 #6
0
 def set_last_state(self, method):
     """ Store the last selected event state on the session. """
     session.set_session(self.context, 'state', method)
예제 #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)
예제 #8
0
 def set_last_daterange(self, method):
     """ Store the last selected daterange on the session. """
     session.set_session(self.context, 'daterange', method)
예제 #9
0
def remove_from_session():
    set_session(getSite(), 'events-access-token', None)
예제 #10
0
def store_on_session(context):
    assert context.access_token
    set_session(getSite(), 'events-access-token', context.access_token)