예제 #1
0
    def run(self):
        from submin.models import options
        from submin.template.shortcuts import evaluate
        from submin.diagnostics import trac, git, svn, email

        localvars = {}

        diagnostics = {}
        if len(self.argv) > 0:
            which = self.argv[0]
        else:
            which = 'all'

        if which in ('all', 'email'):
            diagnostics.update(email.diagnostics())
        if which in ('all', 'git'):
            diagnostics.update(git.diagnostics())
        if which in ('all', 'svn'):
            diagnostics.update(svn.diagnostics())
        if which in ('all', 'trac'):
            diagnostics.update(trac.diagnostics())
        localvars['diag'] = diagnostics
        localvars['subminenv'] = options.env_path()

        formatted = evaluate('diagnostics.%s.print' % (which, ), localvars)
        print(formatted)
예제 #2
0
	def run(self):
		from submin.models import options
		from submin.template.shortcuts import evaluate
		from submin.diagnostics import trac, git, svn, email

		localvars = {}

		diagnostics = {}
		if len(self.argv) > 0:
			which = self.argv[0]
		else:
			which = 'all'

		if which in ('all', 'email'):
			diagnostics.update(email.diagnostics())
		if which in ('all', 'git'):
			diagnostics.update(git.diagnostics())
		if which in ('all', 'svn'):
			diagnostics.update(svn.diagnostics())
		if which in ('all', 'trac'):
			diagnostics.update(trac.diagnostics())
		localvars['diag'] = diagnostics
		localvars['subminenv'] = options.env_path()

		formatted = evaluate('diagnostics.%s.print' % (which,), localvars)
		print(formatted)
예제 #3
0
    def handler(self, req, path):
        localvars = {}

        diagnostics = {}
        diagnostics.update(trac.diagnostics())
        diagnostics.update(svn.diagnostics())
        diagnostics.update(git.diagnostics())
        diagnostics.update(email.diagnostics())
        localvars['diag'] = diagnostics
        localvars['subminenv'] = options.env_path()

        formatted = evaluate_main('diagnostics.html', localvars, request=req)
        return Response(formatted)
예제 #4
0
	def handler(self, req, path):
		localvars = {}

		diagnostics = {}
		diagnostics.update(trac.diagnostics())
		diagnostics.update(svn.diagnostics())
		diagnostics.update(git.diagnostics())
		diagnostics.update(email.diagnostics())
		localvars['diag'] = diagnostics
		localvars['subminenv'] = options.env_path()

		formatted = evaluate_main('diagnostics.html', localvars, request=req)
		return Response(formatted)