~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/canonical/codehosting/smartserver.py

  • Committer: Aaron Bentley
  • Date: 2008-01-21 01:51:58 UTC
  • mto: This revision was merged to the branch mainline in revision 5586.
  • Revision ID: aaron@canonical.com-20080121015158-dq8oxj0xnbeflnqw
Get existing tests passing

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
from twisted.python import log
18
18
 
19
19
from canonical.config import config
 
20
from canonical.codehosting import get_bzr_path, get_bzr_plugins_path
20
21
 
21
22
 
22
23
class ForbiddenCommand(Exception):
136
137
            % {'avatarId': self.avatar.avatarId})
137
138
 
138
139
 
139
 
def get_rocketfuel_root():
140
 
    import bzrlib
141
 
    return os.path.dirname(os.path.dirname(os.path.dirname(bzrlib.__file__)))
142
 
 
143
 
 
144
 
def get_bzr_path():
145
 
    return get_rocketfuel_root() + '/sourcecode/bzr/bzr'
146
 
 
147
 
 
148
 
def get_bzr_plugins_path():
149
 
    return get_rocketfuel_root() + '/bzr-plugins'
150
 
 
151
 
 
152
140
def launch_smart_server(avatar):
153
141
    import sys
154
142
    from canonical.codehosting import plugins