FIXUP extension props
This commit is contained in:
@@ -90,6 +90,8 @@ def attract_project_view(extra_project_projections=None, extension_props=False):
|
|||||||
" extension properties.", wrapped, project_url)
|
" extension properties.", wrapped, project_url)
|
||||||
return error_project_not_setup_for_attract()
|
return error_project_not_setup_for_attract()
|
||||||
|
|
||||||
|
return wrapped(project, pprops, *args, **kwargs)
|
||||||
|
|
||||||
return wrapped(project, *args, **kwargs)
|
return wrapped(project, *args, **kwargs)
|
||||||
|
|
||||||
return wrapper
|
return wrapper
|
||||||
@@ -99,12 +101,10 @@ def attract_project_view(extra_project_projections=None, extension_props=False):
|
|||||||
|
|
||||||
@blueprint.route('/<project_url>/subversion/kick')
|
@blueprint.route('/<project_url>/subversion/kick')
|
||||||
@attract_project_view(extension_props=True)
|
@attract_project_view(extension_props=True)
|
||||||
def subversion_kick(project):
|
def subversion_kick(project, attract_props):
|
||||||
from . import subversion
|
from . import subversion
|
||||||
|
|
||||||
pprops = project.extension_props.attract
|
svn_server_url = attract_props.svn_url # 'svn://localhost/agent327'
|
||||||
|
|
||||||
svn_server_url = pprops.svn_url # 'svn://localhost/agent327'
|
|
||||||
log.info('Re-examining SVN server %s', svn_server_url)
|
log.info('Re-examining SVN server %s', svn_server_url)
|
||||||
client = subversion.obtain(svn_server_url)
|
client = subversion.obtain(svn_server_url)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user