Fix create_project XML-RPC and comment project_to_repository symlinks

This commit is contained in:
konstantin.grabar 2011-10-28 16:40:38 +04:00
parent 5f71c6b56a
commit 6147ebf79e
2 changed files with 3 additions and 3 deletions

View File

@ -134,7 +134,7 @@ class Project < ActiveRecord::Base
end
def xml_rpc_create
result = BuildServer.create_project unixname, "#{owner.uname}_personal", 'main'
result = BuildServer.create_project unixname, "#{owner.uname}_personal", 'main', path
if result == BuildServer::SUCCESS
return true
else

View File

@ -5,9 +5,9 @@ class ProjectToRepository < ActiveRecord::Base
delegate :path, :to => :project
#before_save :create_link
before_save :add_compability_link
#before_save :add_compability_link
#after_destroy :remove_link
after_destroy :remove_compability_link
#after_destroy :remove_compability_link
after_create lambda {
project.xml_rpc_create