Modify ↓
      
        Opened 11 years ago
Closed 11 years ago
#12101 closed defect (fixed)
Not compatible with Trac 1.1.2
| Reported by: | Owned by: | Geert | |
|---|---|---|---|
| Priority: | normal | Component: | WantedPagesMacro | 
| Severity: | normal | Keywords: | |
| Cc: | Trac Release: | 
Description
Because get_db_cnx is no longer supported on Trac 1.1.2 (see http://trac.edgewall.org/wiki/TracDev/DatabaseApi), macro does not work on Trac 1.1.2.
Attachments (1)
Change History (4)
comment:1 Changed 11 years ago by
comment:2 Changed 11 years ago by
There are some minor improvements that could be made:
- Use db_queryrather thandb_transactionsince only a read-only connection is needed.
- It's not necessary to call cursor.closeand probably not even necessary to work directly with a cursor.
Also, for the future please take a look at the documentation on how to create a patch: trac:TracDev/SubmittingPatches.
comment:3 Changed 11 years ago by
| Resolution: | → fixed | 
|---|---|
| Status: | new → closed | 
This was fixed in changeset r14409.
The macro now uses try/except to find out which call to use.
Note: See
        TracTickets for help on using
        tickets.
    



I have created a patch, updated macro is attached. Please check it, I'm not much used to Python.