Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #898 (closed defect: fixed)

Opened 11 years ago

Last modified 10 years ago

Default sqlite dburi in dev.cfg fails on Win32

Reported by: tlesher@… Owned by: max
Priority: normal Milestone: 1.0b1
Component: TurboGears Version: 0.9a6
Severity: normal Keywords:
Cc:

Description

Version 0.96a added a hack to database.py for turning colons in sqlite dburis into pipes, for Windows compatibility. This works fine for running the application, but doesn't patch the dburi for "tg-admin sql xxxx" scripts.

Because quickstarted projects now depend on this trick for their default dev.cfg setup, naively running "tg-admin quickstart" followed by "tg-admin sql create" will cause a traceback on Win32.

Change History

comment:1 Changed 11 years ago by max

  • Status changed from new to assigned
  • Owner changed from anonymous to max

comment:2 Changed 11 years ago by max

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

Fixed in r1500.

comment:3 Changed 11 years ago by jorge.vargas

  • Status changed from closed to reopened
  • Resolution fixed deleted

I'm reopening this because I think there is something else going on here.

why tg-admin sql xxx fail but tg-admin shell doesn't?

they both call self.find_config() which is inherited from CommandWithDbB

40 def find_config(self): 41 """Chooses the config file, trying to guess whether this is a 42 development or installed project.""" 43 load_project_config(self.config) 44 self.dburi = turbogears.config.get("sqlobject.dburi", None) 45 if self.dburi and self.dburi.startswith("notrans_"): 46 self.dburi = self.dburi[8:]

comment:4 Changed 11 years ago by jorge.vargas

  • Milestone set to 1.0b1

ahh I forgot wiki there

I'm reopening this because I think there is something else going on here.

why tg-admin sql xxx fail but tg-admin shell doesn't?

they both call self.find_config() which is inherited from CommandWithDbB

40 	    def find_config(self):
41 	        """Chooses the config file, trying to guess whether this is a
42 	        development or installed project."""
43 	        load_project_config(self.config)
44 	        self.dburi = turbogears.config.get("sqlobject.dburi", None)
45 	        if self.dburi and self.dburi.startswith("notrans_"):
46 	            self.dburi = self.dburi[8:]

comment:5 Changed 11 years ago by max

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

I'm closing this because tg-admin sql xxx works fine in r1592 on quickstarted project. Please re-open or file new ticket if new information is available.

Note: See TracTickets for help on using tickets.