Commit e8fdb7153e81505588ab1bca76b20a13e676e8bd

Authored by Luciano Prestes
1 parent 61e9587f

Set sisp_template on import_sisp_software task

Signed-off-by: Luciano Prestes Cavalcanti <lucianopcbr@gmail.com>
src/noosfero-spb/software_communities/lib/tasks/import_sisp_software.rake
... ... @@ -31,6 +31,8 @@ namespace :software do
31 31  
32 32 $created_software={}
33 33  
  34 + $sisp_template = Community.find_by_identifier("sisp-software")
  35 +
34 36 print 'Creating SISP Softwares: '
35 37 $imported_data.keys.each do |key|
36 38  
... ... @@ -74,11 +76,8 @@ def create_sisp_community name
74 76 community = Community.find_or_initialize_by_name(name)
75 77  
76 78 community.identifier = identifier
  79 + community.template = $sisp_template
77 80  
78   - #p "achei? #{!community.id.nil?}"
79   - #p "nome: #{name}"
80   - #p "iden: #{identifier}"
81   - #p " "
82 81 community.save!
83 82 community
84 83 end
... ...