Opened 10 years ago

Last modified 10 years ago

#12094 new task

On 0.12 I get with all examples the error: AttributeError: 'Environment' object has no attribute 'db_query' — at Initial Version

Reported by: anonymous Owned by: Chris Nelson
Priority: normal Component: TracJsGanttPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description

Hello! I get this error and maybe my environment has a problem? I hope someone will give me a hint to solve this error.

Thanks a lot Michael

2014-12-05 14:02:16,016 Trac[query] DEBUG: Query SQL: SELECT t.id AS id,t.priority AS priority,t.owner AS owner,t.milestone AS milestone,t.description AS description,t.status AS status,t.summary AS summary,t.type AS type,t.time AS time,t.changetime AS changetime,priority.value AS priority_value,blocking.value AS blocking,blockedby.value AS blockedby FROM ticket AS t

LEFT OUTER JOIN ticket_custom AS blocking ON (id=blocking.ticket AND blocking.name='blocking') LEFT OUTER JOIN ticket_custom AS blockedby ON (id=blockedby.ticket AND blockedby.name='blockedby') LEFT OUTER JOIN enum AS priority ON (priority.type='priority' AND priority.name=priority)

ORDER BY COALESCE(priority.value,)=,CAST(priority.value AS integer),t.id 2014-12-05 14:02:16,032 Trac[formatter] ERROR: Macro TracJSGanttChart(root=self) failed: Traceback (most recent call last):

File "build/bdist.linux-x86_64/egg/trac/wiki/formatter.py", line 720, in _macro_formatter

return macro.process(args, in_paragraph=True)

File "build/bdist.linux-x86_64/egg/trac/wiki/formatter.py", line 304, in process

text = self.processor(text)

File "build/bdist.linux-x86_64/egg/trac/wiki/formatter.py", line 291, in _macro_processor

text)

File "build/bdist.linux-x86_64/egg/tracjsgantt/tracjsgantt.py", line 739, in expand_macro

tasks = self._add_tasks(options)

File "build/bdist.linux-x86_64/egg/tracjsgantt/tracjsgantt.py", line 672, in _add_tasks

self.tickets = self._query_tickets(options)

File "build/bdist.linux-x86_64/egg/tracjsgantt/tracjsgantt.py", line 328, in _query_tickets

rawtickets = self.pm.query(query_options, fields, self.req)

File "build/bdist.linux-x86_64/egg/tracjsgantt/tracpm.py", line 1197, in query

self.postQuery(options, tickets)

File "build/bdist.linux-x86_64/egg/tracjsgantt/tracpm.py", line 1093, in postQuery

with self.env.db_query as db:

AttributeError: 'Environment' object has no attribute 'db_query'

Change History (0)

Note: See TracTickets for help on using tickets.