Modify

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#1533 closed enhancement (fixed)

Calendar doesn't work with PostgreSQL

Reported by: anonymous Owned by: Petr Machata
Priority: normal Component: CalendarPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description (last modified by Alec Thomas)

Now when I add new event I see this error:

2007-05-12 21:06:18,108 Trac[main] ERROR: global name 'sqlite' is not defined
Traceback (most recent call last):
  File "K:\DevEnvironment\Python\Lib\site-packages\trac\web\main.py", line 387, in dispatch_request
    dispatcher.dispatch(req)
  File "K:\DevEnvironment\Python\Lib\site-packages\trac\web\main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "build\bdist.win32\egg\azcalendar\azcalendar.py", line 313, in process_request
  File "build\bdist.win32\egg\azcalendar\azcalendar.py", line 63, in process_add
  File "build\bdist.win32\egg\azcalendar\event.py", line 160, in save
NameError: global name 'sqlite' is not defined

It would be great if we could use calendar with PostgreSQL also

Attachments (0)

Change History (5)

comment:1 Changed 18 years ago by Igor

I've entered this bug, but forgot to eneter my email. Please, be free to send any questions to entered above email.

comment:2 Changed 18 years ago by Petr Machata

Resolution: fixed
Status: newclosed

We actually depend very little on particular SQL backend, only for error reporting. (SQL is hopefully generic enough.) When we reduce the amount of error reporting to mere "database failure", sqlite isn't required anymore. r2235 implements this, please go ahead and try if it does the job for you.

comment:3 Changed 18 years ago by Alec Thomas

Description: modified (diff)

comment:4 Changed 18 years ago by Petr Machata

athomas, are you sure about the bug still occuring? I'm looking at event.py, and there is no mention of sqlite at all. Similarly for azcalendar.py. Are you sure you are trying the latest svn?

comment:5 Changed 18 years ago by Alec Thomas

I was just updating the description :)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Petr Machata.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.