def _handle_ticketlog_query(self, req):
        """ hander for query ticket revisions """
        jsonstr = urllib.unquote(req.read())
        req.args.update(simplejson.loads(jsonstr))

        # get ticket id
        ticket_id = req.args.get("ticket_id")

        # query ticket revisions
        data = {}
        data["ticket_id"] = ticket_id
        data["headers"] = [
            _("Changeset"),
            _("Author"),
            _("Time"), _("ChangeLog")
        ]
        data["header_width"] = ["5em", "6em", "8em", ""]
        data["revisions"] = self._get_ticket_revisions(req, ticket_id)

        return data
Ejemplo n.º 2
0
    def _handle_ticketlog_query(self, req):
        """ hander for query ticket revisions """
        jsonstr = urllib.unquote(req.read())
        req.args.update(simplejson.loads(jsonstr))

        # get ticket id
        ticket_id = req.args.get("ticket_id")

        # query ticket revisions
        data = {}
        data["ticket_id"] = ticket_id
        data["headers"] = [ _("Changeset"),
                            _("Author"),
                            _("Time"),
                            _("ChangeLog")]
        data["header_width"] = [ "5em",
                            "6em",
                            "8em",
                            ""]
        data["revisions"] = self._get_ticket_revisions(req, ticket_id)

        return data
Ejemplo n.º 3
0
 def get_admin_panels(self, req):
     if 'TT_ADMIN' in req.perm:
         yield ('ticket', _("Ticket System"), self.SECTION_NAME,
                _("Ticket Template"))
Ejemplo n.º 4
0
 def get_admin_panels(self, req):
     if 'TT_ADMIN' in req.perm:
         yield ('ticket', _('Ticket System'), 'tickettemplate',
                _('Ticket Template'))
Ejemplo n.º 5
0
 def get_admin_panels(self, req):
     if 'TT_ADMIN' in req.perm:
         yield ('ticket', _('Ticket System'), 'tickettemplate', _('Ticket Template'))
Ejemplo n.º 6
0
 def get_admin_panels(self, req):
     if 'TT_ADMIN' in req.perm:
         yield ('ticket', _("Ticket System"), self.SECTION_NAME,
                _("Ticket Template"))