Modify

Opened 4 years ago

Closed 4 years ago

#7122 closed defect (fixed)

ERROR: text/x-trac-wiki

Reported by: StefanSimroth Owned by: rjollos
Priority: normal Component: GanttChartPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

I am receiving this error on every wiki page request:

Trac[build\bdist.win32\egg\gantt\gantt] ERROR: text/x-trac-wiki

It doesn't hinder the plugin from working, but indicates some issue?

Another line I get when I actually use the macro is:

Trac[formatter] WARNING:
Executing pre-0.11 Wiki macro gantt by provider <gantt.gantt.GanttMacro object at 0x1bdce90>

Maybe this is related?

Attachments (0)

Change History (4)

comment:1 Changed 4 years ago by StefanSimroth

  • Owner changed from malsmith to StefanSimroth
  • Status changed from new to assigned

Digging a bit through the source code, I found the log statement in line 373:

    MIME_TYPES = ('application/gantt')

    # IHTMLPreviewRenderer methods
    
    def get_quality_ratio(self, mimetype):
        self.log.error(mimetype)
        if mimetype in self.MIME_TYPES:
            return 2
        return 0

Looking at the API doc for get_quality_ratio, it should "return the level of support this renderer provides for the content of the specified MIME type. The return value must be a number between 0 and 9, where 0 means no support and 9 means "perfect" support."

So, I just think this error log statement is misplaced there and I'll remove it.

comment:2 Changed 4 years ago by StefanSimroth

See also #7129

comment:3 Changed 4 years ago by rjollos

  • Owner changed from StefanSimroth to rjollos
  • Status changed from assigned to new

Fixed in #7129.

comment:4 Changed 4 years ago by rjollos

  • Resolution set to fixed
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from rjollos. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.