Did I find the right examples for you? yes no

All Samples(101)  |  Call(101)  |  Derive(0)  |  Import(0)

src/s/e/sentry-youtrack-0.2.1/sentry_youtrack/plugin.py   sentry-youtrack(Download)
    def is_configured(self, request, project, **kwargs):
        return bool(self.get_option('project', project))
 
    def get_youtrack_client(self, project):
        settings = {
            'url': self.get_option('url', project),
            'username': self.get_option('username', project),
            'password': self.get_option('password', project),
        def cached_fields(ignore_fields):
            yt_client = self.get_youtrack_client(project)
            return yt_client.get_project_fields(
                self.get_option('project', project), ignore_fields)
 

src/s/e/sentry-youtrack-0.2.1/sentry_youtrack (kopia)/plugin.py   sentry-youtrack(Download)
    def is_configured(self, request, project, **kwargs):
        return bool(self.get_option('project', project))
 
    def get_youtrack_client(self, project):
        settings = {
            'url': self.get_option('url', project),
            'username': self.get_option('username', project),
            'password': self.get_option('password', project),
    def get_initial_form_data(self, request, group, event, **kwargs):
        initial = {
            'project': self.get_option('project', group.project),
            'title': self._get_group_title(request, group, event),
            'description': self._get_group_description(request, group, event),

src/s/e/sentry-jira-0.8.0/sentry_jira/plugin.py   sentry-jira(Download)
    def is_configured(self, request, project, **kwargs):
        if not self.get_option('default_project', project):
            return False
        return True
 
    def get_jira_client(self, project):
        instance = self.get_option('instance_url', project)
        username = self.get_option('username', project)
        pw = self.get_option('password', project)
    def get_initial_form_data(self, request, group, event, **kwargs):
        initial = {
            'summary': self._get_group_title(request, group, event),
            'description': self._get_group_description(request, group, event),
            'project_key': self.get_option('default_project', group.project),

src/s/e/sentry-jira-HEAD/sentry_jira/plugin.py   sentry-jira(Download)
    def is_configured(self, request, project, **kwargs):
        if not self.get_option('default_project', project):
            return False
        return True
 
    def get_jira_client(self, project):
        instance = self.get_option('instance_url', project)
        username = self.get_option('username', project)
        pw = self.get_option('password', project)
    def get_initial_form_data(self, request, group, event, **kwargs):
        initial = {
            'summary': self._get_group_title(request, group, event),
            'description': self._get_group_description(request, group, event),
            'project_key': self.get_option('default_project', group.project),

src/s/e/sentry-redmine-0.1.0/sentry_redmine/plugin.py   sentry-redmine(Download)
    def is_configured(self, project, **kwargs):
        return all((self.get_option(k, project) for k in ('host', 'key', 'project_id', 'tracker_id')))
 
    def get_new_issue_title(self, **kwargs):
        return 'Create Redmine Task'
    def create_issue(self, group, form_data, **kwargs):
        """Create a Redmine issue"""
        headers = { "X-Redmine-API-Key": self.get_option('key', group.project),
                    'content-type': 'application/json' }
        url = urlparse.urljoin(self.get_option('host', group.project), "/issues.json")
        payload = {
            'project_id': self.get_option('project_id', group.project),
            'tracker_id': self.get_option('tracker_id', group.project),

src/s/e/sentry-redmine-HEAD/sentry_redmine/plugin.py   sentry-redmine(Download)
    def is_configured(self, project, **kwargs):
        return all((self.get_option(k, project) for k in ('host', 'key', 'project_id', 'tracker_id')))
 
    def get_new_issue_title(self, **kwargs):
        return 'Create Redmine Task'
    def create_issue(self, group, form_data, **kwargs):
        """Create a Redmine issue"""
        headers = { "X-Redmine-API-Key": self.get_option('key', group.project),
                    'content-type': 'application/json' }
        url = urlparse.urljoin(self.get_option('host', group.project), "issues.json")
        payload = {
            'project_id': self.get_option('project_id', group.project),
            'tracker_id': self.get_option('tracker_id', group.project),

src/s/e/sentry-penelope-0.1.1/src/sentry_penelope/plugin.py   sentry-penelope(Download)
    def get_trac(self, group):
        penelope = self.get_option('penelope', group.project)
        site = dict(group.get_latest_event().data['tags']).get('site')
        return '%s/trac/%s' % (penelope, site)
 
    def is_configured(self, request, project, **kwargs):
        return bool(self.get_option('trac_base', project))
 
    def get_new_issue_title(self, **kwargs):
        return 'Create Penelope Issue'

src/s/e/sentry-trello-1.1.7/sentry_trello/plugin.py   sentry-trello(Download)
    def is_configured(self, request, project, **kwargs):
        return all((self.get_option(key, project) for key in ('key', 'token', 'organization')))
 
    def get_initial_form_data(self, request, group, event, **kwargs):
        initial = super(TrelloCard, self).get_initial_form_data(request, group, event, **kwargs)
        try:
            trello = TrelloSentry(self.get_option('key', group.project), self.get_option('token', group.project))
            boards = trello.boards_to_options(self.get_option('organization', group.project))
            raise forms.ValidationError(_('Error adding Trello card: %s') % str(e))
        initial.update({
            'board_list': self.get_option('board_list', group.project),
            'trello_list': boards
        })

src/s/e/sentry-trello-HEAD/sentry_trello/plugin.py   sentry-trello(Download)
    def is_configured(self, request, project, **kwargs):
        return all((self.get_option(key, project) for key in ('key', 'token', 'organization')))
 
    def get_initial_form_data(self, request, group, event, **kwargs):
        initial = super(TrelloCard, self).get_initial_form_data(request, group, event, **kwargs)
        try:
            trello = TrelloSentry(self.get_option('key', group.project), self.get_option('token', group.project))
            boards = trello.boards_to_options(self.get_option('organization', group.project))
            raise forms.ValidationError(_('Error adding Trello card: %s') % str(e))
        initial.update({
            'board_list': self.get_option('board_list', group.project),
            'trello_list': boards
        })

src/s/e/sentry-bitbucket-0.1.5/src/sentry_bitbucket/plugin.py   sentry-bitbucket(Download)
    def is_configured(self, request, project, **kwargs):
        return bool(self.get_option('repo', project))
 
    def get_new_issue_title(self, **kwargs):
        return 'Create Bitbucket Issue'
            raise forms.ValidationError(_('You have not yet associated Bitbucket with your account.'))
 
        repo = self.get_option('repo', group.project)
 
        url = u'https://api.bitbucket.org/1.0/repositories/%s/issues/' % (repo,)
    def get_issue_url(self, group, issue_id, **kwargs):
        repo = self.get_option('repo', group.project)
        return 'https://bitbucket.org/%s/issue/%s/' % (repo, issue_id)
 

  1 | 2  Next