spiderfw 0.6.16 → 0.6.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. data/CHANGELOG +9 -0
  2. data/Rakefile +8 -5
  3. data/VERSION +1 -1
  4. data/apps/core/auth/data/locale/it/LC_MESSAGES/spider_auth.mo +0 -0
  5. data/apps/core/auth/po/it/spider_auth.po +3 -3
  6. data/apps/core/auth/po/spider_auth.pot +3 -3
  7. data/apps/core/components/data/locale/it/LC_MESSAGES/spider_components.mo +0 -0
  8. data/apps/core/components/po/it/spider_components.po +7 -7
  9. data/apps/core/components/po/spider_components.pot +7 -7
  10. data/apps/core/components/public/js/spider.js +4 -2
  11. data/apps/core/forms/data/locale/it/LC_MESSAGES/spider_forms.mo +0 -0
  12. data/apps/core/forms/po/it/spider_forms.po +2 -2
  13. data/apps/core/forms/po/spider_forms.pot +2 -2
  14. data/apps/core/forms/widgets/form/form.rb +20 -6
  15. data/apps/master/_init.rb +0 -1
  16. data/apps/master/data/locale/it/LC_MESSAGES/master.mo +0 -0
  17. data/apps/master/master.rb +4 -0
  18. data/apps/master/po/it/master.po +62 -25
  19. data/apps/master/po/master.pot +45 -20
  20. data/apps/messenger/_init.rb +2 -21
  21. data/apps/messenger/backends/sms/test.rb +25 -0
  22. data/apps/messenger/config/test.config.yml +6 -1
  23. data/apps/messenger/controllers/mixins/messenger_helper.rb +30 -5
  24. data/apps/messenger/data/locale/it/LC_MESSAGES/spider_messenger.mo +0 -0
  25. data/apps/messenger/messenger.rb +40 -2
  26. data/apps/servant/lib/commands_processor.rb +1 -1
  27. data/apps/worker/worker.rb +15 -10
  28. data/data/locale/it/LC_MESSAGES/spider.mo +0 -0
  29. data/lib/spiderfw/app.rb +3 -3
  30. data/lib/spiderfw/cache/template_cache.rb +4 -0
  31. data/lib/spiderfw/cmd/cmd.rb +0 -2
  32. data/lib/spiderfw/cmd/commands/app.rb +89 -6
  33. data/lib/spiderfw/cmd/commands/setup.rb +13 -40
  34. data/lib/spiderfw/config/configuration.rb +1 -0
  35. data/lib/spiderfw/config/options/spider.rb +9 -8
  36. data/lib/spiderfw/controller/mixins/http_mixin.rb +9 -0
  37. data/lib/spiderfw/env.rb +3 -1
  38. data/lib/spiderfw/i18n/cldr.rb +39 -13
  39. data/lib/spiderfw/i18n/i18n.rb +9 -0
  40. data/lib/spiderfw/i18n/javascript_parser.rb +1 -1
  41. data/lib/spiderfw/i18n/shtml_parser.rb +1 -1
  42. data/lib/spiderfw/model/base_model.rb +1 -1
  43. data/lib/spiderfw/model/inline_model.rb +13 -1
  44. data/lib/spiderfw/model/mappers/db_mapper.rb +5 -0
  45. data/lib/spiderfw/model/mappers/mapper.rb +9 -4
  46. data/lib/spiderfw/model/migrations/drop_element.rb +26 -0
  47. data/lib/spiderfw/model/migrations/irreversible_migration.rb +9 -0
  48. data/lib/spiderfw/model/migrations/migration.rb +7 -0
  49. data/lib/spiderfw/model/migrations/replace.rb +32 -0
  50. data/lib/spiderfw/model/migrations.rb +21 -0
  51. data/lib/spiderfw/model/model.rb +4 -1
  52. data/lib/spiderfw/model/storage/db/db_storage.rb +1 -1
  53. data/lib/spiderfw/setup/app_manager.rb +281 -200
  54. data/lib/spiderfw/setup/setup_task.rb +80 -35
  55. data/lib/spiderfw/spider.rb +28 -13
  56. data/lib/spiderfw/templates/layout.rb +40 -8
  57. data/lib/spiderfw/templates/resources/sass.rb +21 -0
  58. data/lib/spiderfw/test.rb +1 -1
  59. data/lib/spiderfw/utils/events/event_source.rb +1 -2
  60. data/lib/spiderfw/utils/gems.rb +5 -1
  61. metadata +11 -4
data/CHANGELOG CHANGED
@@ -1,4 +1,13 @@
1
+ = 0.6.17
2
+ == 13 September, 2011
3
+ * AppManager rewrite, with setup tasks; Migrations
4
+ * Experimental SASS support
5
+ * CLDR 0.1.6; added Spider::I18n.list
6
+ * InlineModels can now be compared with their primary key
7
+ * Various bugfixes and enhancements
8
+
1
9
  = 0.6.16
10
+ == 22 August, 2011
2
11
  * Bugfixes
3
12
 
4
13
  = 0.6.15
data/Rakefile CHANGED
@@ -4,16 +4,19 @@ require 'pathname'
4
4
 
5
5
  def check_app_path(full, partial)
6
6
  p = Pathname.new(full)
7
- rel = p.relative_path_from(Pathname.new(Spider.paths[:core_apps]))
8
- return true if rel.to_s == partial
9
- rel = p.relative_path_from(Pathname.new(Spider.paths[:apps]))
7
+ rel = p.relative_path_from(Pathname.new($SPIDER_PATHS[:core_apps]))
8
+ return true if partial == "spider" && !rel.to_s.blank?
10
9
  return true if rel.to_s == partial
10
+ if Spider.paths[:apps]
11
+ rel = p.relative_path_from(Pathname.new(Spider.paths[:apps]))
12
+ return true if rel.to_s == partial
13
+ end
11
14
  return false
12
15
  end
13
16
 
14
17
  desc "Update pot/po files. To update a single app, call rake updatepo[app_relative_path], where app_relative_path is the path relative to the apps folder (or 'spider')."
15
18
  task :updatepo, [:app] do |t, args|
16
- require 'spiderfw'
19
+ require 'spiderfw/spider'
17
20
  require 'spiderfw/i18n/shtml_parser'
18
21
  require 'spiderfw/i18n/javascript_parser'
19
22
  require 'gettext/tools'
@@ -40,7 +43,7 @@ desc "Create mo-files. To create for a single app, call rake makemo[app_relative
40
43
  task :makemo, [:app] do |t, args|
41
44
  require 'gettext/tools'
42
45
  GetText.create_mofiles(:verbose => true) if !args[:app] || args[:app] == 'spider'
43
- require 'spiderfw'
46
+ require 'spiderfw/spider'
44
47
  apps = Spider.find_all_apps
45
48
  apps.each do |path|
46
49
  next if args[:app] && !check_app_path(path, args[:app])
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.16
1
+ 0.6.17
@@ -6,7 +6,7 @@
6
6
  msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: Spider::Auth 0.1\n"
9
- "POT-Creation-Date: 2011-05-09 17:37+0200\n"
9
+ "POT-Creation-Date: 2011-09-13 14:25+0200\n"
10
10
  "PO-Revision-Date: 2010-11-02 18:13+0100\n"
11
11
  "Last-Translator: Ivan Pirlik <ivan.pirlik@soluzionipa.it>\n"
12
12
  "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -16,7 +16,7 @@ msgstr ""
16
16
  "Content-Transfer-Encoding: 8bit\n"
17
17
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
18
18
 
19
- #: controllers/mixins/auth_helper.rb:65
19
+ #: controllers/mixins/auth_helper.rb:66
20
20
  msgid "Please login first"
21
21
  msgstr "Per favore, esegui il login"
22
22
 
@@ -48,7 +48,7 @@ msgstr "Ultima login"
48
48
  msgid "Login count"
49
49
  msgstr "Numero login"
50
50
 
51
- #: models/mixins/rbac_provider.rb:68
51
+ #: models/mixins/rbac_provider.rb:66
52
52
  msgid "%s permissions"
53
53
  msgstr "Permessi %s"
54
54
 
@@ -7,7 +7,7 @@
7
7
  msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: Spider::Auth 0.1\n"
10
- "POT-Creation-Date: 2011-05-09 17:37+0200\n"
10
+ "POT-Creation-Date: 2011-09-13 14:25+0200\n"
11
11
  "PO-Revision-Date: 2009-06-30 16:58+0200\n"
12
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -17,7 +17,7 @@ msgstr ""
17
17
  "Content-Transfer-Encoding: 8bit\n"
18
18
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
19
19
 
20
- #: controllers/mixins/auth_helper.rb:65
20
+ #: controllers/mixins/auth_helper.rb:66
21
21
  msgid "Please login first"
22
22
  msgstr ""
23
23
 
@@ -47,7 +47,7 @@ msgstr ""
47
47
  msgid "Login count"
48
48
  msgstr ""
49
49
 
50
- #: models/mixins/rbac_provider.rb:68
50
+ #: models/mixins/rbac_provider.rb:66
51
51
  msgid "%s permissions"
52
52
  msgstr ""
53
53
 
@@ -6,7 +6,7 @@
6
6
  msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: Spider::Components 0.1\n"
9
- "POT-Creation-Date: 2011-05-09 17:37+0200\n"
9
+ "POT-Creation-Date: 2011-09-13 14:25+0200\n"
10
10
  "PO-Revision-Date: 2010-11-29 12:51+0100\n"
11
11
  "Last-Translator: Ivan Pirlik <ivan.pirlik@soluzionipa.it>\n"
12
12
  "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -20,19 +20,19 @@ msgstr ""
20
20
  msgid "Administration"
21
21
  msgstr "Amministrazione"
22
22
 
23
- #: widgets/admin/admin.rb:37
23
+ #: widgets/admin/admin.rb:47
24
24
  msgid "Manage Data"
25
25
  msgstr "Gestisci i Dati"
26
26
 
27
- #: widgets/admin/admin.rb:42
27
+ #: widgets/admin/admin.rb:52
28
28
  msgid "guest"
29
29
  msgstr "ospite"
30
30
 
31
- #: widgets/crud/crud.rb:95
31
+ #: widgets/crud/crud.rb:116
32
32
  msgid "Cancel"
33
33
  msgstr "Annulla"
34
34
 
35
- #: widgets/crud/crud.rb:96
35
+ #: widgets/crud/crud.rb:117
36
36
  msgid "Ok"
37
37
  msgstr "Ok"
38
38
 
@@ -44,11 +44,11 @@ msgstr "Vai"
44
44
  msgid "Clear"
45
45
  msgstr "Pulisci"
46
46
 
47
- #: widgets/table/table.rb:150 public/js/utils.js:14
47
+ #: widgets/table/table.rb:152 public/js/utils.js:14
48
48
  msgid "Yes"
49
49
  msgstr "Sì"
50
50
 
51
- #: widgets/table/table.rb:150 public/js/utils.js:19
51
+ #: widgets/table/table.rb:152 public/js/utils.js:19
52
52
  msgid "No"
53
53
  msgstr "No"
54
54
 
@@ -7,7 +7,7 @@
7
7
  msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: Spider::Components 0.1\n"
10
- "POT-Creation-Date: 2011-05-09 17:37+0200\n"
10
+ "POT-Creation-Date: 2011-09-13 14:25+0200\n"
11
11
  "PO-Revision-Date: 2009-06-30 16:58+0200\n"
12
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -21,19 +21,19 @@ msgstr ""
21
21
  msgid "Administration"
22
22
  msgstr ""
23
23
 
24
- #: widgets/admin/admin.rb:37
24
+ #: widgets/admin/admin.rb:47
25
25
  msgid "Manage Data"
26
26
  msgstr ""
27
27
 
28
- #: widgets/admin/admin.rb:42
28
+ #: widgets/admin/admin.rb:52
29
29
  msgid "guest"
30
30
  msgstr ""
31
31
 
32
- #: widgets/crud/crud.rb:95
32
+ #: widgets/crud/crud.rb:116
33
33
  msgid "Cancel"
34
34
  msgstr ""
35
35
 
36
- #: widgets/crud/crud.rb:96
36
+ #: widgets/crud/crud.rb:117
37
37
  msgid "Ok"
38
38
  msgstr ""
39
39
 
@@ -45,11 +45,11 @@ msgstr ""
45
45
  msgid "Clear"
46
46
  msgstr ""
47
47
 
48
- #: widgets/table/table.rb:150 public/js/utils.js:14
48
+ #: widgets/table/table.rb:152 public/js/utils.js:14
49
49
  msgid "Yes"
50
50
  msgstr ""
51
51
 
52
- #: widgets/table/table.rb:150 public/js/utils.js:19
52
+ #: widgets/table/table.rb:152 public/js/utils.js:19
53
53
  msgid "No"
54
54
  msgstr ""
55
55
 
@@ -201,7 +201,7 @@ Spider.Widget = Class.extend({
201
201
  w.setLoading();
202
202
  var submitName = $this.attr('name');
203
203
  var submitValue = $this.val();
204
- form.ajaxSubmit({
204
+ var formOptions = {
205
205
  dataType: 'html',
206
206
  semantic: !isForm,
207
207
  beforeSubmit: function(data, form, options){
@@ -216,7 +216,9 @@ Spider.Widget = Class.extend({
216
216
  if (options.onLoad) options.onLoad(form);
217
217
  w.trigger('ajaxifyLoad', form);
218
218
  }
219
- });
219
+ };
220
+ if (!isForm) formOptions.type = 'POST';
221
+ form.ajaxSubmit(formOptions);
220
222
  });
221
223
  },
222
224
 
@@ -6,7 +6,7 @@
6
6
  msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: Spider::Forms 0.1\n"
9
- "POT-Creation-Date: 2011-05-09 17:37+0200\n"
9
+ "POT-Creation-Date: 2011-09-13 14:25+0200\n"
10
10
  "PO-Revision-Date: 2010-11-29 12:52+0100\n"
11
11
  "Last-Translator: Ivan Pirlik <ivan.pirlik@soluzionipa.it>\n"
12
12
  "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -36,7 +36,7 @@ msgstr "%s e rimani"
36
36
  msgid "%s is not a valid date"
37
37
  msgstr "%s non è una data valida"
38
38
 
39
- #: widgets/inputs/input/input.rb:91
39
+ #: widgets/inputs/input/input.rb:95
40
40
  msgid "%s is required"
41
41
  msgstr "Il campo %s è obbligatorio"
42
42
 
@@ -7,7 +7,7 @@
7
7
  msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: Spider::Forms 0.1\n"
10
- "POT-Creation-Date: 2011-05-09 17:37+0200\n"
10
+ "POT-Creation-Date: 2011-09-13 14:25+0200\n"
11
11
  "PO-Revision-Date: 2009-06-30 17:03+0200\n"
12
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -37,7 +37,7 @@ msgstr ""
37
37
  msgid "%s is not a valid date"
38
38
  msgstr ""
39
39
 
40
- #: widgets/inputs/input/input.rb:91
40
+ #: widgets/inputs/input/input.rb:95
41
41
  msgid "%s is required"
42
42
  msgstr ""
43
43
 
@@ -348,7 +348,6 @@ module Spider; module Forms
348
348
  end
349
349
  # obj.set(element_name, @inputs[element_name].prepare_value(@data[element_name.to_s]))
350
350
  rescue FormatError => exc
351
- # debugger
352
351
  add_error(exc.message, element_name, exc)
353
352
  end
354
353
  end
@@ -414,9 +413,8 @@ module Spider; module Forms
414
413
  @errors[element_name] ||= []
415
414
  if @inputs[element_name]
416
415
  @inputs[element_name].add_error(message)
417
- else
418
- @errors[element_name] << message
419
416
  end
417
+ @errors[element_name] << message
420
418
  end
421
419
 
422
420
  def is_new?
@@ -454,7 +452,8 @@ module Spider; module Forms
454
452
 
455
453
  def self.parse_content(doc)
456
454
  overrides = []
457
- overrides += doc.search('form:fields').to_a
455
+ form_fields = doc.search('form:fields').to_a
456
+ overrides += form_fields
458
457
  doc.search('form:fields').remove
459
458
  overrides.each{ |o| parse_override(o) }
460
459
  runtime, soverrides = super(doc)
@@ -462,12 +461,27 @@ module Spider; module Forms
462
461
  overrides.each do |ov|
463
462
  ov['search'] = '.fields' if (ov.name == 'tpl:inline-override')
464
463
  end
464
+ if form_fields.length > 0
465
+ inputs = []
466
+ form_fields.each do |ff|
467
+ ff.search('sp:run').each do |run|
468
+ obj = run.get_attribute('obj')
469
+ if obj =~ /@inputs\[:(.+)\]/
470
+ inputs << $1
471
+ end
472
+ end
473
+ end
474
+ rtdoc = Hpricot::XML(runtime)
475
+ if rtdoc.search("sp:attribute[@name=elements]").length < 1
476
+ rtdoc.root.innerHTML += "<sp:attribute name=\"elements\" value=\"#{inputs.join(',')}\" />"
477
+ runtime = rtdoc.to_s
478
+ end
479
+ end
465
480
  return [runtime, overrides]
466
481
  end
467
482
 
468
483
  def self.parse_override(el)
469
-
470
- if (el.name == 'form:fields')
484
+ if el.name == 'form:fields'
471
485
  el.name = 'tpl:override-content'
472
486
  el['search'] = '.fields'
473
487
  end
data/apps/master/_init.rb CHANGED
@@ -30,5 +30,4 @@ require 'apps/master/controllers/scout_controller'
30
30
  require 'apps/master/lib/site_type'
31
31
  require 'apps/master/plugins/site_types/spider/spider'
32
32
 
33
- Spider.home.controller.route 'clients', Spider::Master::ScoutController
34
33
 
@@ -1,6 +1,10 @@
1
1
  module Spider
2
2
 
3
3
  module Master
4
+
5
+ def self.app_init
6
+ Spider.home.controller.route 'clients', Spider::Master::ScoutController
7
+ end
4
8
 
5
9
  def self.scout_plugins
6
10
  path = Spider.conf.get('master.scout_plugins_path')
@@ -6,8 +6,8 @@
6
6
  msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: Spider::Master 0.1\n"
9
- "POT-Creation-Date: 2011-07-05 18:34+0200\n"
10
- "PO-Revision-Date: 2011-07-05 18:39+0100\n"
9
+ "POT-Creation-Date: 2011-09-13 14:25+0200\n"
10
+ "PO-Revision-Date: 2011-09-13 15:35+0100\n"
11
11
  "Last-Translator: Ivan Pirlik <ivan.pirlik@soluzionipa.it>\n"
12
12
  "Language-Team: LANGUAGE <LL@li.org>\n"
13
13
  "Language: \n"
@@ -16,26 +16,40 @@ msgstr ""
16
16
  "Content-Transfer-Encoding: 8bit\n"
17
17
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
18
18
 
19
- #: controllers/master_controller.rb:51
19
+ #: controllers/master_controller.rb:54
20
20
  #: views/customers.shtml:3
21
- #: views/index.shtml:2
22
21
  #: views/master.layout.shtml:20
23
22
  msgid "Customers"
24
23
  msgstr "Clienti"
25
24
 
26
- #: controllers/master_controller.rb:82
25
+ #: controllers/master_controller.rb:85
27
26
  msgid "No customer"
28
27
  msgstr "Nessun cliente"
29
28
 
30
- #: controllers/master_controller.rb:84
29
+ #: controllers/master_controller.rb:87
31
30
  msgid "User can't access this customer"
32
31
  msgstr "L'utente non è autorizzato a vedere questo cliente"
33
32
 
34
- #: controllers/master_controller.rb:103
33
+ #: controllers/master_controller.rb:106
35
34
  msgid "User can't list customers"
36
35
  msgstr "L'utente non è autorizzato a vedere la lista cliente"
37
36
 
37
+ #: controllers/master_controller.rb:147
38
+ msgid "Install or update gems"
39
+ msgstr "Installa o aggiorna gemme"
40
+
41
+ #: controllers/master_controller.rb:148
42
+ msgid "Install or update apps"
43
+ msgstr "Insalla o aggiorna applicazioni"
44
+
45
+ #: models/installation.rb:5
46
+ #: views/installation.shtml:9
47
+ #: views/plugin_edit.shtml:10
48
+ msgid "Name"
49
+ msgstr "Nome"
50
+
38
51
  #: models/scout_plugin_instance.rb:21
52
+ #: views/installation.shtml:67
39
53
  msgid "Ok"
40
54
  msgstr "Ok"
41
55
 
@@ -137,12 +151,12 @@ msgid "New customer"
137
151
  msgstr "Nuovo cliente"
138
152
 
139
153
  #: views/customer.shtml:8
154
+ #: views/installation.shtml:21
140
155
  #: views/server.shtml:6
141
156
  msgid "Edit"
142
157
  msgstr "Modifica"
143
158
 
144
159
  #: views/customer.shtml:21
145
- #: views/index.shtml:3
146
160
  #: views/master.layout.shtml:21
147
161
  msgid "Servers"
148
162
  msgstr "Server"
@@ -166,35 +180,50 @@ msgstr "Torna al cliente"
166
180
  msgid "New installation for %s"
167
181
  msgstr "Nuova installazione per %s"
168
182
 
169
- #: views/installation.shtml:9
170
- #: views/plugin_edit.shtml:10
171
- msgid "Name"
172
- msgstr "Nome"
183
+ #: views/installation.shtml:20
184
+ msgid "Installation \"%s\""
185
+ msgstr "Installazione \"%s\""
173
186
 
174
- #: views/installation.shtml:16
175
- msgid "Installation \"%s\" for %s"
176
- msgstr "Installazione \"%s\" per %s"
187
+ #: views/installation.shtml:25
188
+ msgid "Last check-in"
189
+ msgstr "Ultimo check-in"
177
190
 
178
- #: views/installation.shtml:18
179
- msgid "Edit installation"
180
- msgstr "Modifica installazione"
191
+ #: views/installation.shtml:27
192
+ msgid "Next check-in"
193
+ msgstr "Prossimo check-in"
181
194
 
182
- #: views/installation.shtml:20
195
+ #: views/installation.shtml:35
196
+ #: views/installation.shtml:37
183
197
  msgid "Apps"
184
198
  msgstr "Applicazioni"
185
199
 
186
- #: views/installation.shtml:28
187
- msgid "Save"
188
- msgstr "Salva"
200
+ #: views/installation.shtml:45
201
+ #: views/installation.shtml:47
202
+ msgid "Configuration"
203
+ msgstr "Configurazione"
189
204
 
190
- #: views/installation.shtml:32
191
- msgid "Targets"
192
- msgstr "Destinazioni"
205
+ #: views/installation.shtml:51
206
+ #: views/installation.shtml:53
207
+ msgid "Logs"
208
+ msgstr "Log"
209
+
210
+ #: views/installation.shtml:57
211
+ #: views/installation.shtml:59
212
+ msgid "Commands"
213
+ msgstr "Comandi"
214
+
215
+ #: views/installation.shtml:59
216
+ msgid "Add command"
217
+ msgstr "Aggiungi comando"
193
218
 
194
219
  #: views/master.layout.shtml:19
195
220
  msgid "Home"
196
221
  msgstr "Home"
197
222
 
223
+ #: views/master.layout.shtml:22
224
+ msgid "Installs"
225
+ msgstr "Installazioni"
226
+
198
227
  #: views/plugin_data.shtml:13
199
228
  msgid "Compare"
200
229
  msgstr "Confronta"
@@ -420,6 +449,14 @@ msgstr "Valore Minimo"
420
449
  msgid "Submit"
421
450
  msgstr "Salva"
422
451
 
452
+ #~ msgid "Installation \"%s\" for %s"
453
+ #~ msgstr "Installazione \"%s\" per %s"
454
+ #~ msgid "Edit installation"
455
+ #~ msgstr "Modifica installazione"
456
+ #~ msgid "Save"
457
+ #~ msgstr "Salva"
458
+ #~ msgid "Targets"
459
+ #~ msgstr "Destinazioni"
423
460
  #~ msgid "plugin %s for %s"
424
461
  #~ msgstr "plugin %s per %s"
425
462
 
@@ -7,7 +7,7 @@
7
7
  msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: Spider::Master 0.1\n"
10
- "POT-Creation-Date: 2011-07-05 18:34+0200\n"
10
+ "POT-Creation-Date: 2011-09-13 14:25+0200\n"
11
11
  "PO-Revision-Date: 2011-05-09 17:31+0200\n"
12
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -17,24 +17,37 @@ msgstr ""
17
17
  "Content-Transfer-Encoding: 8bit\n"
18
18
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
19
19
 
20
- #: controllers/master_controller.rb:51 views/customers.shtml:3
21
- #: views/index.shtml:2 views/master.layout.shtml:20
20
+ #: controllers/master_controller.rb:54 views/customers.shtml:3
21
+ #: views/master.layout.shtml:20
22
22
  msgid "Customers"
23
23
  msgstr ""
24
24
 
25
- #: controllers/master_controller.rb:82
25
+ #: controllers/master_controller.rb:85
26
26
  msgid "No customer"
27
27
  msgstr ""
28
28
 
29
- #: controllers/master_controller.rb:84
29
+ #: controllers/master_controller.rb:87
30
30
  msgid "User can't access this customer"
31
31
  msgstr ""
32
32
 
33
- #: controllers/master_controller.rb:103
33
+ #: controllers/master_controller.rb:106
34
34
  msgid "User can't list customers"
35
35
  msgstr ""
36
36
 
37
- #: models/scout_plugin_instance.rb:21
37
+ #: controllers/master_controller.rb:147
38
+ msgid "Install or update gems"
39
+ msgstr ""
40
+
41
+ #: controllers/master_controller.rb:148
42
+ msgid "Install or update apps"
43
+ msgstr ""
44
+
45
+ #: models/installation.rb:5 views/installation.shtml:9
46
+ #: views/plugin_edit.shtml:10
47
+ msgid "Name"
48
+ msgstr ""
49
+
50
+ #: models/scout_plugin_instance.rb:21 views/installation.shtml:67
38
51
  msgid "Ok"
39
52
  msgstr ""
40
53
 
@@ -134,11 +147,11 @@ msgstr ""
134
147
  msgid "New customer"
135
148
  msgstr ""
136
149
 
137
- #: views/customer.shtml:8 views/server.shtml:6
150
+ #: views/customer.shtml:8 views/installation.shtml:21 views/server.shtml:6
138
151
  msgid "Edit"
139
152
  msgstr ""
140
153
 
141
- #: views/customer.shtml:21 views/index.shtml:3 views/master.layout.shtml:21
154
+ #: views/customer.shtml:21 views/master.layout.shtml:21
142
155
  msgid "Servers"
143
156
  msgstr ""
144
157
 
@@ -159,34 +172,46 @@ msgstr ""
159
172
  msgid "New installation for %s"
160
173
  msgstr ""
161
174
 
162
- #: views/installation.shtml:9 views/plugin_edit.shtml:10
163
- msgid "Name"
175
+ #: views/installation.shtml:20
176
+ msgid "Installation \"%s\""
164
177
  msgstr ""
165
178
 
166
- #: views/installation.shtml:16
167
- msgid "Installation \"%s\" for %s"
179
+ #: views/installation.shtml:25
180
+ msgid "Last check-in"
168
181
  msgstr ""
169
182
 
170
- #: views/installation.shtml:18
171
- msgid "Edit installation"
183
+ #: views/installation.shtml:27
184
+ msgid "Next check-in"
172
185
  msgstr ""
173
186
 
174
- #: views/installation.shtml:20
187
+ #: views/installation.shtml:35 views/installation.shtml:37
175
188
  msgid "Apps"
176
189
  msgstr ""
177
190
 
178
- #: views/installation.shtml:28
179
- msgid "Save"
191
+ #: views/installation.shtml:45 views/installation.shtml:47
192
+ msgid "Configuration"
193
+ msgstr ""
194
+
195
+ #: views/installation.shtml:51 views/installation.shtml:53
196
+ msgid "Logs"
180
197
  msgstr ""
181
198
 
182
- #: views/installation.shtml:32
183
- msgid "Targets"
199
+ #: views/installation.shtml:57 views/installation.shtml:59
200
+ msgid "Commands"
201
+ msgstr ""
202
+
203
+ #: views/installation.shtml:59
204
+ msgid "Add command"
184
205
  msgstr ""
185
206
 
186
207
  #: views/master.layout.shtml:19
187
208
  msgid "Home"
188
209
  msgstr ""
189
210
 
211
+ #: views/master.layout.shtml:22
212
+ msgid "Installs"
213
+ msgstr ""
214
+
190
215
  #: views/plugin_data.shtml:13
191
216
  msgid "Compare"
192
217
  msgstr ""
@@ -21,28 +21,9 @@ require 'apps/messenger/messenger'
21
21
  require 'apps/messenger/controllers/messenger_controller'
22
22
  require 'apps/messenger/controllers/mixins/messenger_helper'
23
23
 
24
- available_backends = {}
25
- base = File.join(Spider::Messenger.path, 'backends')
26
- Dir.new(base).each do |type|
27
- next if type[0].chr == '.'
28
- type_dir = File.join(base, type)
29
- next unless File.directory?(type_dir)
30
- available_backends[type.to_sym] = []
31
- Dir.new(type_dir).each do |bcknd|
32
- next if bcknd[0].chr == '.'
33
- name = File.basename(bcknd, '.rb')
34
- available_backends[type.to_sym] << name
35
- end
36
- end
37
- available_backends.each do |type, backends|
38
- Spider.config_option("messenger.#{type}.backends")[:params][:choices] = backends
39
- Spider.config_option("messenger.#{type}.backend")[:params][:choices] = backends
40
- end
41
-
42
-
43
- Spider.conf.get('messenger.email.backends').each do |backend|
24
+ (Spider.conf.get('messenger.email.backends') || []).each do |backend|
44
25
  require File.join('apps/messenger/backends/email/', backend)
45
26
  end
46
- Spider.conf.get('messenger.sms.backends').each do |backend|
27
+ (Spider.conf.get('messenger.sms.backends') || []).each do |backend|
47
28
  require File.join('apps/messenger/backends/sms/', backend)
48
29
  end