def setFunctionDispatcher(): dispatcher = Dispatcher() dispatcher.add('view', actionView) dispatcher.add('add', actionAdd) dispatcher.add('edit', actionEdit) dispatcher.add('delete', actionDelete) return dispatcher
def __setServiceDispatcher(self): dispatcher = Dispatcher() dispatcher.add(AuthenticationActionType.ADD, self._verifyADD) dispatcher.add(AuthenticationActionType.EDIT, self._verifyEDIT) dispatcher.add(AuthenticationActionType.DELETE, self._verifyDELETE) dispatcher.add(AuthenticationActionType.VIEW, self._verifyVIEW) return dispatcher
def setViewDispatcher(): dispatcher = Dispatcher() dispatcher.add('add', True) dispatcher.add('edit', False) dispatcher.add('delete', False) dispatcher.add('view', True) return dispatcher
def setFunctionDispatcher(): dispatcher = Dispatcher() dispatcher.add('view', actionView()) dispatcher.add('add', actionAdd()) dispatcher.add('edit', actionEditDelete('edit')) dispatcher.add('delete', actionEditDelete('delete')) return dispatcher
def getDispatcher(): dispatcher = Dispatcher() dispatcher.add(AuthenticationType.ADMIN, AuthenticationAdmin) dispatcher.add(AuthenticationType.TEAM, AuthenticationTeam) dispatcher.add(AuthenticationType.PUBLIC, AuthenticationPublic) dispatcher.add(None, AuthenticationPublic) return dispatcher
def setViewDispatcher(self): dispatcher = Dispatcher() dispatcher.add('event', EventPage) dispatcher.add('activity', EventActivityPage) dispatcher.add('activity ranking', EventActivityRankingPage) dispatcher.add('compiler', ScoreCompilingPage) return dispatcher
def _setActionPermissionDispatcher(self): dispatcher = Dispatcher() dispatcher.add(ActionType.VIEW, True) dispatcher.add(ActionType.ADD, True) dispatcher.add(ActionType.EDIT, self.mutable) dispatcher.add(ActionType.DELETE, self.mutable) return dispatcher
def __setDispatcher(self): dispatcher = Dispatcher() dispatcher.add(AuthenticationActionType.VIEW, self.viewAuthenticate()) dispatcher.add(AuthenticationActionType.ADD, self.addAuthenticate()) dispatcher.add(AuthenticationActionType.EDIT, self.editAuthenticate()) dispatcher.add(AuthenticationActionType.DELETE, self.deleteAuthenticate()) return dispatcher
def getDataGeneralDispatcher(): dispatcher = Dispatcher() dispatcher.add('season', {'class': Season, 'form': SeasonForm}) dispatcher.add('region', {'class': Region, 'form': RegionForm}) dispatcher.add('event type', { 'class': EventType, 'form': EventTypeForm }) dispatcher.add('score mapping', { 'class': ScoreMapping, 'form': ScoreMappingForm }) dispatcher.add('log', {'class': Log, 'form': LogForm}) return dispatcher
def _setFunctionDispatcher(self): dispatcher = Dispatcher() dispatcher.add('view', self.actionView) dispatcher.add('add', partial(self.actionMutate, verify=False)) dispatcher.add('edit', partial(self.actionMutate, verify=True)) dispatcher.add('delete', partial(self.actionMutate, verify=True)) return dispatcher
def getAuthDispatcher(self, objects): dispatcher = Dispatcher() dispatcher.add( AuthenticationActionType.VIEW, self.authTypeDispatcher(objects).rootAuthenticate(AuthenticationActionType.VIEW) ) dispatcher.add( AuthenticationActionType.ADD, self.authTypeDispatcher(objects).rootAuthenticate(AuthenticationActionType.ADD) ) dispatcher.add( AuthenticationActionType.EDIT, self.authTypeDispatcher(objects).rootAuthenticate(AuthenticationActionType.EDIT) ) dispatcher.add( AuthenticationActionType.DELETE, self.authTypeDispatcher(objects).rootAuthenticate(AuthenticationActionType.DELETE) ) return dispatcher
def _setViewDispatcher(self): dispatcher = Dispatcher() dispatcher.add('fleet', FleetRaceComponent) return dispatcher
def setViewDispatcher(self): dispatcher = Dispatcher() dispatcher.add('general', GeneralView) dispatcher.add('custom', CustomView) return dispatcher
def _setAssociatedComponentClassDispatcher(self): dispatcher = Dispatcher() dispatcher.add(ComponentType.TABLE, FleetRaceTable) dispatcher.add(ComponentType.FORM, FleetRaceForm) dispatcher.add(ComponentType.PROCESS, FleetRaceProcess) return dispatcher
def setProcessDispatcher(self): dispatcher = Dispatcher() dispatcher.add('activity status', UpdateEventStatusProcess) dispatcher.add('activity ranking', EventActivityRankingProcess) dispatcher.add('compiler', ScoreCompilingProcess) return dispatcher
def __setProcessDispatcher(self): dispatcher = Dispatcher() dispatcher.add(ActionType.ADD, self._add) dispatcher.add(ActionType.EDIT, self._edit) dispatcher.add(ActionType.DELETE, self._delete) return dispatcher
def getModelAPIDispatcher(): dispatcher = Dispatcher() for api in getAllModelAPIs(): dispatcher.add(api.getBaseClass().__name__, api) return dispatcher
def setProcessDispatcher(self): dispatcher = Dispatcher() dispatcher.add('compile', LeagueOverallScoreCompileProcess) return dispatcher
def _setAssociatedComponentClassDispatcher(self): dispatcher = Dispatcher() dispatcher.add(ComponentType.TABLE, None) dispatcher.add(ComponentType.FORM, None) dispatcher.add(ComponentType.PROCESS, None) return dispatcher
def setProcessDispatcher(self): dispatcher = Dispatcher() dispatcher.add('news', SpecificNewsProcess) return dispatcher
def setViewDispatcher(self): dispatcher = Dispatcher() dispatcher.add('events', GenericClientPage) dispatcher.add('event_scoring', GenericClientPage) dispatcher.add('event_rotation', GenericClientPage) dispatcher.add('league', GenericClientPage) dispatcher.add('schools', GenericClientPage) dispatcher.add('school_specific', GenericClientPage) dispatcher.add('seasons', GenericClientPage) dispatcher.add('news', GenericClientPage) dispatcher.add('news_specific', GenericClientPage) return dispatcher
def _setPopulateDataDispatcher(self): dispatcher = Dispatcher() dispatcher.add(ActionType.ADD, False) dispatcher.add(ActionType.EDIT, True) dispatcher.add(ActionType.DELETE, True) return dispatcher
def setViewDispatcher(self): dispatcher = Dispatcher() dispatcher.add('choice', EventChoicePage) dispatcher.add('event', EventPage) dispatcher.add('activity', EventActivityPage) dispatcher.add('activity detail', EventActivityDetailPage) dispatcher.add('team', EventTeamPage) dispatcher.add('data', EventDataPage) return dispatcher
def setProcessDispatcher(self): dispatcher = Dispatcher() dispatcher.add('post', PostProcess) dispatcher.add('comment', CommentProcess) return dispatcher
def setProcessDispatcher(self): dispatcher = Dispatcher() dispatcher.add('update teams', UpdateParticipatingTeamsProcess) dispatcher.add('data', EventDataProcess) return dispatcher
def populateDispatcher(): dispatcher = Dispatcher() dispatcher.add('add', False) dispatcher.add('edit', True) dispatcher.add('delete', True) return dispatcher
def __getDispatcher(self): dispatcher = Dispatcher() dispatcher.add(model.Account.__name__, self.Account) dispatcher.add(model.Config.__name__, self.Config) dispatcher.add(model.NewsPost.__name__, self.NewsPost) dispatcher.add(model.NewsComment.__name__, self.NewsComment) dispatcher.add(model.NewsBump.__name__, self.NewsBump) dispatcher.add(model.EventType.__name__, self.EventType) dispatcher.add(model.SchoolTeam.__name__, self.SchoolTeam) dispatcher.add(model.Score.__name__, self.Score) dispatcher.add(model.EventActivity.__name__, self.EventActivity) dispatcher.add(model.Event.__name__, self.Event) dispatcher.add(model.EventTag.__name__, self.EventTag) dispatcher.add(model.EventTeam.__name__, self.EventTeam) dispatcher.add(model.Log.__name__, self.Log) dispatcher.add(model.Member.__name__, self.Member) dispatcher.add(model.MemberGroup.__name__, self.MemberGroup) dispatcher.add(model.Region.__name__, self.Region) dispatcher.add(model.School.__name__, self.School) dispatcher.add(model.ScoreMapping.__name__, self.ScoreMapping) dispatcher.add(model.Season.__name__, self.Season) dispatcher.add(model.Summary.__name__, self.Summary) dispatcher.add(model.Team.__name__, self.Team) return dispatcher
def setViewDispatcher(self): dispatcher = Dispatcher() dispatcher.add('post', PostPage) dispatcher.add('comment', CommentPage) return dispatcher
def setConfigDispatcher(self): dispatcher = Dispatcher() dispatcher.add('league_scoring', LeagueScoringConfig) return dispatcher
def getDataCustomDispatcher(): dispatcher = Dispatcher() dispatcher.add('fleet race', { 'class': FleetManagementView, 'form': EventManagementForm }) dispatcher.add('team race', { 'class': TeamManagementView, 'form': EventManagementForm }) dispatcher.add('event', {'class': EventView, 'form': EventForm}) dispatcher.add('summary', { 'class': SummaryView, 'form': SummaryForm }) dispatcher.add('event activity', { 'class': EventActivityView, 'form': EventActivityForm }) dispatcher.add('event tag', { 'class': EventTagView, 'form': EventTagForm }) dispatcher.add('event team', { 'class': EventTeamView, 'form': EventTeamForm }) dispatcher.add('school', {'class': SchoolView, 'form': SchoolForm}) dispatcher.add('team', {'class': TeamView, 'form': TeamForm}) dispatcher.add('member', {'class': MemberView, 'form': MemberForm}) dispatcher.add('member group', { 'class': MemberGroupView, 'form': MemberGroupForm }) dispatcher.add('account', { 'class': AccountView, 'form': AccountForm }) return dispatcher