Edgewall Software
Modify

Opened 20 years ago

Closed 20 years ago

Last modified 20 years ago

#808 closed defect (worksforme)

database should be addes as argument to the macros

Reported by: tonib Owned by: Jonas Borgström
Priority: normal Milestone:
Component: wiki system Version: 0.7.1
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

When writing macros you also want to be able to access the database.

Now you have to create a new connection, but I think it is better if the current connection was passed as argument.

Any reason the database connection isnt in the Env?

Cheers,

Toni

Attachments (0)

Change History (2)

comment:1 by daniel, 20 years ago

Resolution: worksforme
Status: newclosed
env.get_db_cnx

Perhaps it should be a property in the future, but the above method will work.

comment:2 by daniel, 20 years ago

To clarify:

Environment.get_db_cnx

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.