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 #26 (closed defect: fixed)

Opened 14 years ago

Last modified 12 years ago

tg-admin should tell you when you're in the wrong directory

Reported by: kevin Owned by: elvelind@…
Priority: normal Milestone: 0.9
Component: TurboGears Version:
Severity: normal Keywords:
Cc:

Description

The bug here is that turbogears-admin isn't doing enough to either:

  • tell you that you're in the wrong directory
  • or, figure out the right directory to look in

The code right now does a simple check to find your model module, and it assumes that you're in the top level directory of your project.

Kevin

On 10/10/05, djmike@bo2k.net <djmike@bo2k.net> wrote:
> 
> ok, the tutorial tells ya to try this:
> turbogears-admin.py shell
>     hub.begin()
>     Page(pagename="FrontPage", data="Welcome to my front page")
>     hub.commit()
> 
> but when I do, I get this:
> fuzzy@vash:~/bo2k/bo2k/templates$ turbogears-admin.py shell
> Python 2.4.2 (#2, Sep 30 2005, 21:19:01)
> [GCC 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> (InteractiveConsole)
> >>> hub.start()
> Traceback (most recent call last):
>   File "<console>", line 1, in ?
> NameError: name 'hub' is not defined
> >>>
> 
> I'm trying to track down where the python interpreter is called to see
> if I can find the issue, but if anyone has any suggestions I'd be
> grateful.
> 
> 

Change History

comment:1 Changed 14 years ago by anonymous

  • Owner changed from kevin to elvelind@…

comment:2 Changed 14 years ago by elvelind grandin

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

fixed now. perhaps not the most beautiful way but it works.

Note: See TracTickets for help on using tickets.