From c761df2c4b21e61c742d37f32581727cdbc53d10 Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Thu, 14 Feb 2008 20:48:40 +0000 Subject: [PATCH] ActionItem154: adding two communities to the sample data --- script/anhetegua | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/script/anhetegua b/script/anhetegua index 2ee980d..7c603af 100755 --- a/script/anhetegua +++ b/script/anhetegua @@ -32,10 +32,6 @@ def new_validator(region, name, identifier, klass = Organization) org end -def new_member(org, person) - org.affiliate() -end - environment_description = <<-EOF

Boas vindas ao Anheteguá: @@ -86,7 +82,7 @@ asl = new_validator(rs, 'Associacao Software Livre.Org', 'asl') forum_rs = new_validator(rs, 'Forum Gaucho de Economia Solidaria', 'ecosolrs') # Role for own things -owner_role = Role.create!(:name => 'dono', :permissions => ['edit_profile', 'destroy_profile', 'manage_memberships', 'post_content', 'edit_profile_design', 'manage_products']) +owner_role = Profile::Roles.admin # root user of the system, admin_role for him, the assignment of the role for him and the ownership of the system homepage root = User.create!(:login => 'root', :email => 'root@noosfero.org', :password => 'root', :password_confirmation => 'root').person @@ -158,3 +154,11 @@ empa_hp = TinyMceArticle.new(:name => 'Empreendimento A - um empreendimento genà empa_hp.profile = empa empa.home_page = empa_hp empa.save! + +# creating sample communities +comm1 = Community.create!(:name => 'Outra Economia é Possível') +comm1.affiliate(ze, owner_role) + +comm2 = Community.create!(:name => 'Software Livre e Economia Solidária') +comm2.affiliate(ze, owner_role) + -- libgit2 0.21.2