Commit 218970564be3a15640bff20e4fc0af4fbbbbcf6b
1 parent
194e8212
Exists in
master
and in
23 other branches
ActionItem184: removing products from anhetegua sample data
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1507 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
2 additions
and
33 deletions
Show diff stats
script/anhetegua
| ... | ... | @@ -10,7 +10,6 @@ Profile.destroy_all |
| 10 | 10 | Role.destroy_all |
| 11 | 11 | RoleAssignment.destroy_all |
| 12 | 12 | Category.destroy_all |
| 13 | -Product.destroy_all | |
| 14 | 13 | Article.destroy_all |
| 15 | 14 | |
| 16 | 15 | def new_category(parent, name, color = nil) |
| ... | ... | @@ -50,9 +49,9 @@ O Anheteguá é uma plataforma livre e colaborativa que visa contribuir para o f |
| 50 | 49 | O menu superior é o principal instrumento de navegação: |
| 51 | 50 | </p> |
| 52 | 51 | <ul> |
| 53 | - <li>Do lado esquerdo, estão os recortes. <strong>Temáticas</strong> reune os principais temas debatidos. <strong>Territórios</strong> limita sua navegação a um estado de sua escolha. <strong>Cadeias</strong> exibe apenas informação relacionada à cadeia produtiva de sua preferência. <strong>Produtos</strong> permite visualizar produtos por sua categoria.</li> | |
| 52 | + <li>Do lado esquerdo, estão os recortes. <strong>Temáticas</strong> reune os principais temas debatidos. <strong>Territórios</strong> limita sua navegação a um estado de sua escolha. <strong>Cadeias</strong> exibe apenas informação relacionada à cadeia produtiva de sua preferência. </li> | |
| 54 | 53 | |
| 55 | - <li>Do lado direito, estão as opções do usuário, bem como a nevegação por tipo de conteúdo. <strong>Busca</strong> permite que você procure conteúdo por palavras chave. <strong>Blogs</strong> te levará a ver blogs de outros usuário, etc. </li> | |
| 54 | + <li>Do lado direito, estão as opções do usuário, bem como a nevegação por tipo de conteúdo. <strong>Busca</strong> permite que você procure conteúdo por palavras chave. <strong>Blogs</strong> te levará a ver blogs de outros usuário. <strong>Produtos</strong> permitirá nevegar pelos produtos ... etc. </li> | |
| 56 | 55 | </ul> |
| 57 | 56 | EOF |
| 58 | 57 | |
| ... | ... | @@ -109,36 +108,6 @@ colivre.affiliate(ze, owner_role) |
| 109 | 108 | member_role = Profile::Roles.member |
| 110 | 109 | moderator_role = Profile::Roles.moderator |
| 111 | 110 | |
| 112 | -# product categories | |
| 113 | -produtos = ProductCategory.create!(:name => 'Produtos', :environment => Environment.default, :display_color => 4) | |
| 114 | - | |
| 115 | -alimentacao = ProductCategory.create!(:name => 'Alimentação', :environment => Environment.default, :parent => produtos) | |
| 116 | -vegetais = ProductCategory.create!(:name => 'Vegetais', :environment => Environment.default, :parent => alimentacao) | |
| 117 | - | |
| 118 | -feijao = ProductCategory.create!(:name => 'Feijão', :environment => Environment.default, :parent => vegetais) | |
| 119 | - | |
| 120 | -arroz = ProductCategory.create!(:name => 'Arroz', :environment => Environment.default, :parent => vegetais) | |
| 121 | - | |
| 122 | -batata = ProductCategory.create!(:name => 'Batata', :environment => Environment.default, :parent => vegetais) | |
| 123 | - | |
| 124 | -carnes = ProductCategory.create!(:name => 'Carnes', :environment => Environment.default, :parent => alimentacao) | |
| 125 | - | |
| 126 | -boi = ProductCategory.create!(:name => 'Boi', :environment => Environment.default, :parent => carnes) | |
| 127 | - | |
| 128 | -frango = ProductCategory.create!(:name => 'Frango', :environment => Environment.default, :parent => carnes) | |
| 129 | - | |
| 130 | -vestuario = ProductCategory.create!(:name => 'Vestuário', :environment => Environment.default, :parent => produtos) | |
| 131 | - | |
| 132 | -camisetas = ProductCategory.create!(:name => 'Camisetas', :environment => Environment.default, :parent => vestuario) | |
| 133 | - | |
| 134 | -calcas = ProductCategory.create!(:name => 'Calças', :environment => Environment.default, :parent => vestuario) | |
| 135 | - | |
| 136 | -software_livre = ProductCategory.create!(:name => 'Software Livre', :environment => Environment.default, :parent => produtos) | |
| 137 | - | |
| 138 | -desenv = ProductCategory.create!(:name => 'Desenvolvimento', :environment => Environment.default, :parent => software_livre) | |
| 139 | -capacitacao = ProductCategory.create!(:name => 'Capacitação', :environment => Environment.default, :parent => software_livre) | |
| 140 | -admin_de_sistemas = ProductCategory.create!(:name => 'Administração de sistemas', :environment => Environment.default, :parent => software_livre) | |
| 141 | -arte_digital = ProductCategory.create!(:name => 'Arte Digital', :environment => Environment.default, :parent => software_livre) | |
| 142 | 111 | |
| 143 | 112 | |
| 144 | 113 | # actual products | ... | ... |