##// END OF EJS Templates
- Ejecutando el script de cambio de apunte....
jsalyrosas -
r204:205
parent child
Show More
@@ -0,0 +1,131
1 # -*- coding: utf-8 -*-
No newline at end of file
2 import datetime
No newline at end of file
3 from south.db import db
No newline at end of file
4 from south.v2 import SchemaMigration
No newline at end of file
5 from django.db import models
No newline at end of file
6
No newline at end of file
7
No newline at end of file
8 class Migration(SchemaMigration):
No newline at end of file
9
No newline at end of file
10 def forwards(self, orm):
No newline at end of file
11 # Adding model 'Profile'
No newline at end of file
12 db.create_table('abs_profile_antenna', (
No newline at end of file
13 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
No newline at end of file
14 ('name', self.gf('django.db.models.fields.CharField')(max_length=250)),
No newline at end of file
15 ('date_create', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
No newline at end of file
16 ('date_modified', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
No newline at end of file
17 ('hits', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)),
No newline at end of file
18 ('state', self.gf('django.db.models.fields.PositiveSmallIntegerField')(default=0)),
No newline at end of file
19 ))
No newline at end of file
20 db.send_create_signal('abscontrol', ['Profile'])
No newline at end of file
21
No newline at end of file
22 # Adding model 'Pattern'
No newline at end of file
23 db.create_table('abs_pattern_antenna', (
No newline at end of file
24 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
No newline at end of file
25 ('profile', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['abscontrol.Profile'])),
No newline at end of file
26 ('value', self.gf('django.db.models.fields.PositiveIntegerField')()),
No newline at end of file
27 ('date_create', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
No newline at end of file
28 ('date_modified', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
No newline at end of file
29 ('hits', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)),
No newline at end of file
30 ('state', self.gf('django.db.models.fields.PositiveSmallIntegerField')(default=1)),
No newline at end of file
31 ))
No newline at end of file
32 db.send_create_signal('abscontrol', ['Pattern'])
No newline at end of file
33
No newline at end of file
34 # Adding model 'AntennaUp'
No newline at end of file
35 db.create_table('abs_antenna_up', (
No newline at end of file
36 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
No newline at end of file
37 ('pattern', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['abscontrol.Pattern'])),
No newline at end of file
38 ('value', self.gf('django.db.models.fields.TextField')()),
No newline at end of file
39 ('tx', self.gf('django.db.models.fields.TextField')(null=True)),
No newline at end of file
40 ('rx', self.gf('django.db.models.fields.TextField')(null=True)),
No newline at end of file
41 ('ues', self.gf('django.db.models.fields.CharField')(max_length=120, null=True)),
No newline at end of file
42 ('only_rx', self.gf('django.db.models.fields.PositiveSmallIntegerField')(default=0)),
No newline at end of file
43 ('date_create', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
No newline at end of file
44 ('date_modified', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
No newline at end of file
45 ('hits', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)),
No newline at end of file
46 ('state', self.gf('django.db.models.fields.PositiveSmallIntegerField')(default=1)),
No newline at end of file
47 ))
No newline at end of file
48 db.send_create_signal('abscontrol', ['AntennaUp'])
No newline at end of file
49
No newline at end of file
50 # Adding model 'AntennaDown'
No newline at end of file
51 db.create_table('abs_antenna_down', (
No newline at end of file
52 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
No newline at end of file
53 ('pattern', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['abscontrol.Pattern'])),
No newline at end of file
54 ('value', self.gf('django.db.models.fields.TextField')()),
No newline at end of file
55 ('tx', self.gf('django.db.models.fields.TextField')(null=True)),
No newline at end of file
56 ('rx', self.gf('django.db.models.fields.TextField')(null=True)),
No newline at end of file
57 ('ues', self.gf('django.db.models.fields.CharField')(max_length=120, null=True)),
No newline at end of file
58 ('only_rx', self.gf('django.db.models.fields.PositiveSmallIntegerField')(default=0)),
No newline at end of file
59 ('date_create', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
No newline at end of file
60 ('date_modified', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
No newline at end of file
61 ('hits', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)),
No newline at end of file
62 ('state', self.gf('django.db.models.fields.PositiveSmallIntegerField')(default=1)),
No newline at end of file
63 ))
No newline at end of file
64 db.send_create_signal('abscontrol', ['AntennaDown'])
No newline at end of file
65
No newline at end of file
66
No newline at end of file
67 def backwards(self, orm):
No newline at end of file
68 # Deleting model 'Profile'
No newline at end of file
69 db.delete_table('abs_profile_antenna')
No newline at end of file
70
No newline at end of file
71 # Deleting model 'Pattern'
No newline at end of file
72 db.delete_table('abs_pattern_antenna')
No newline at end of file
73
No newline at end of file
74 # Deleting model 'AntennaUp'
No newline at end of file
75 db.delete_table('abs_antenna_up')
No newline at end of file
76
No newline at end of file
77 # Deleting model 'AntennaDown'
No newline at end of file
78 db.delete_table('abs_antenna_down')
No newline at end of file
79
No newline at end of file
80
No newline at end of file
81 models = {
No newline at end of file
82 'abscontrol.antennadown': {
No newline at end of file
83 'Meta': {'object_name': 'AntennaDown', 'db_table': "'abs_antenna_down'"},
No newline at end of file
84 'date_create': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
No newline at end of file
85 'date_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
No newline at end of file
86 'hits': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
No newline at end of file
87 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
No newline at end of file
88 'only_rx': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}),
No newline at end of file
89 'pattern': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['abscontrol.Pattern']"}),
No newline at end of file
90 'rx': ('django.db.models.fields.TextField', [], {'null': 'True'}),
No newline at end of file
91 'state': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '1'}),
No newline at end of file
92 'tx': ('django.db.models.fields.TextField', [], {'null': 'True'}),
No newline at end of file
93 'ues': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': 'True'}),
No newline at end of file
94 'value': ('django.db.models.fields.TextField', [], {})
No newline at end of file
95 },
No newline at end of file
96 'abscontrol.antennaup': {
No newline at end of file
97 'Meta': {'object_name': 'AntennaUp', 'db_table': "'abs_antenna_up'"},
No newline at end of file
98 'date_create': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
No newline at end of file
99 'date_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
No newline at end of file
100 'hits': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
No newline at end of file
101 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
No newline at end of file
102 'only_rx': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}),
No newline at end of file
103 'pattern': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['abscontrol.Pattern']"}),
No newline at end of file
104 'rx': ('django.db.models.fields.TextField', [], {'null': 'True'}),
No newline at end of file
105 'state': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '1'}),
No newline at end of file
106 'tx': ('django.db.models.fields.TextField', [], {'null': 'True'}),
No newline at end of file
107 'ues': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': 'True'}),
No newline at end of file
108 'value': ('django.db.models.fields.TextField', [], {})
No newline at end of file
109 },
No newline at end of file
110 'abscontrol.pattern': {
No newline at end of file
111 'Meta': {'object_name': 'Pattern', 'db_table': "'abs_pattern_antenna'"},
No newline at end of file
112 'date_create': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
No newline at end of file
113 'date_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
No newline at end of file
114 'hits': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
No newline at end of file
115 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
No newline at end of file
116 'profile': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['abscontrol.Profile']"}),
No newline at end of file
117 'state': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '1'}),
No newline at end of file
118 'value': ('django.db.models.fields.PositiveIntegerField', [], {})
No newline at end of file
119 },
No newline at end of file
120 'abscontrol.profile': {
No newline at end of file
121 'Meta': {'object_name': 'Profile', 'db_table': "'abs_profile_antenna'"},
No newline at end of file
122 'date_create': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
No newline at end of file
123 'date_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
No newline at end of file
124 'hits': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
No newline at end of file
125 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
No newline at end of file
126 'name': ('django.db.models.fields.CharField', [], {'max_length': '250'}),
No newline at end of file
127 'state': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'})
No newline at end of file
128 }
No newline at end of file
129 }
No newline at end of file
130
No newline at end of file
131 complete_apps = ['abscontrol'] No newline at end of file
@@ -0,0 +1,73
1 # -*- coding: utf-8 -*-
No newline at end of file
2 import datetime
No newline at end of file
3 from south.db import db
No newline at end of file
4 from south.v2 import SchemaMigration
No newline at end of file
5 from django.db import models
No newline at end of file
6
No newline at end of file
7
No newline at end of file
8 class Migration(SchemaMigration):
No newline at end of file
9
No newline at end of file
10 def forwards(self, orm):
No newline at end of file
11 # Adding field 'Profile.is_active'
No newline at end of file
12 db.add_column('abs_profile_antenna', 'is_active',
No newline at end of file
13 self.gf('django.db.models.fields.PositiveSmallIntegerField')(default=0),
No newline at end of file
14 keep_default=False)
No newline at end of file
15
No newline at end of file
16
No newline at end of file
17 def backwards(self, orm):
No newline at end of file
18 # Deleting field 'Profile.is_active'
No newline at end of file
19 db.delete_column('abs_profile_antenna', 'is_active')
No newline at end of file
20
No newline at end of file
21
No newline at end of file
22 models = {
No newline at end of file
23 'abscontrol.antennadown': {
No newline at end of file
24 'Meta': {'object_name': 'AntennaDown', 'db_table': "'abs_antenna_down'"},
No newline at end of file
25 'date_create': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
No newline at end of file
26 'date_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
No newline at end of file
27 'hits': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
No newline at end of file
28 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
No newline at end of file
29 'only_rx': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}),
No newline at end of file
30 'pattern': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['abscontrol.Pattern']"}),
No newline at end of file
31 'rx': ('django.db.models.fields.TextField', [], {'null': 'True'}),
No newline at end of file
32 'state': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '1'}),
No newline at end of file
33 'tx': ('django.db.models.fields.TextField', [], {'null': 'True'}),
No newline at end of file
34 'ues': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': 'True'}),
No newline at end of file
35 'value': ('django.db.models.fields.TextField', [], {})
No newline at end of file
36 },
No newline at end of file
37 'abscontrol.antennaup': {
No newline at end of file
38 'Meta': {'object_name': 'AntennaUp', 'db_table': "'abs_antenna_up'"},
No newline at end of file
39 'date_create': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
No newline at end of file
40 'date_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
No newline at end of file
41 'hits': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
No newline at end of file
42 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
No newline at end of file
43 'only_rx': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}),
No newline at end of file
44 'pattern': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['abscontrol.Pattern']"}),
No newline at end of file
45 'rx': ('django.db.models.fields.TextField', [], {'null': 'True'}),
No newline at end of file
46 'state': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '1'}),
No newline at end of file
47 'tx': ('django.db.models.fields.TextField', [], {'null': 'True'}),
No newline at end of file
48 'ues': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': 'True'}),
No newline at end of file
49 'value': ('django.db.models.fields.TextField', [], {})
No newline at end of file
50 },
No newline at end of file
51 'abscontrol.pattern': {
No newline at end of file
52 'Meta': {'object_name': 'Pattern', 'db_table': "'abs_pattern_antenna'"},
No newline at end of file
53 'date_create': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
No newline at end of file
54 'date_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
No newline at end of file
55 'hits': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
No newline at end of file
56 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
No newline at end of file
57 'profile': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['abscontrol.Profile']"}),
No newline at end of file
58 'state': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '1'}),
No newline at end of file
59 'value': ('django.db.models.fields.PositiveIntegerField', [], {})
No newline at end of file
60 },
No newline at end of file
61 'abscontrol.profile': {
No newline at end of file
62 'Meta': {'object_name': 'Profile', 'db_table': "'abs_profile_antenna'"},
No newline at end of file
63 'date_create': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
No newline at end of file
64 'date_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
No newline at end of file
65 'hits': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
No newline at end of file
66 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
No newline at end of file
67 'is_active': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}),
No newline at end of file
68 'name': ('django.db.models.fields.CharField', [], {'max_length': '250'}),
No newline at end of file
69 'state': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'})
No newline at end of file
70 }
No newline at end of file
71 }
No newline at end of file
72
No newline at end of file
73 complete_apps = ['abscontrol'] No newline at end of file
@@ -0,0 +1,74
1 # -*- coding: utf-8 -*-
No newline at end of file
2 import datetime
No newline at end of file
3 from south.db import db
No newline at end of file
4 from south.v2 import SchemaMigration
No newline at end of file
5 from django.db import models
No newline at end of file
6
No newline at end of file
7
No newline at end of file
8 class Migration(SchemaMigration):
No newline at end of file
9
No newline at end of file
10 def forwards(self, orm):
No newline at end of file
11 # Adding field 'Pattern.is_active'
No newline at end of file
12 db.add_column('abs_pattern_antenna', 'is_active',
No newline at end of file
13 self.gf('django.db.models.fields.PositiveSmallIntegerField')(default=0),
No newline at end of file
14 keep_default=False)
No newline at end of file
15
No newline at end of file
16
No newline at end of file
17 def backwards(self, orm):
No newline at end of file
18 # Deleting field 'Pattern.is_active'
No newline at end of file
19 db.delete_column('abs_pattern_antenna', 'is_active')
No newline at end of file
20
No newline at end of file
21
No newline at end of file
22 models = {
No newline at end of file
23 'abscontrol.antennadown': {
No newline at end of file
24 'Meta': {'object_name': 'AntennaDown', 'db_table': "'abs_antenna_down'"},
No newline at end of file
25 'date_create': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
No newline at end of file
26 'date_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
No newline at end of file
27 'hits': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
No newline at end of file
28 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
No newline at end of file
29 'only_rx': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}),
No newline at end of file
30 'pattern': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['abscontrol.Pattern']"}),
No newline at end of file
31 'rx': ('django.db.models.fields.TextField', [], {'null': 'True'}),
No newline at end of file
32 'state': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '1'}),
No newline at end of file
33 'tx': ('django.db.models.fields.TextField', [], {'null': 'True'}),
No newline at end of file
34 'ues': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': 'True'}),
No newline at end of file
35 'value': ('django.db.models.fields.TextField', [], {})
No newline at end of file
36 },
No newline at end of file
37 'abscontrol.antennaup': {
No newline at end of file
38 'Meta': {'object_name': 'AntennaUp', 'db_table': "'abs_antenna_up'"},
No newline at end of file
39 'date_create': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
No newline at end of file
40 'date_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
No newline at end of file
41 'hits': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
No newline at end of file
42 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
No newline at end of file
43 'only_rx': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}),
No newline at end of file
44 'pattern': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['abscontrol.Pattern']"}),
No newline at end of file
45 'rx': ('django.db.models.fields.TextField', [], {'null': 'True'}),
No newline at end of file
46 'state': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '1'}),
No newline at end of file
47 'tx': ('django.db.models.fields.TextField', [], {'null': 'True'}),
No newline at end of file
48 'ues': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': 'True'}),
No newline at end of file
49 'value': ('django.db.models.fields.TextField', [], {})
No newline at end of file
50 },
No newline at end of file
51 'abscontrol.pattern': {
No newline at end of file
52 'Meta': {'object_name': 'Pattern', 'db_table': "'abs_pattern_antenna'"},
No newline at end of file
53 'date_create': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
No newline at end of file
54 'date_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
No newline at end of file
55 'hits': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
No newline at end of file
56 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
No newline at end of file
57 'is_active': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}),
No newline at end of file
58 'profile': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['abscontrol.Profile']"}),
No newline at end of file
59 'state': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '1'}),
No newline at end of file
60 'value': ('django.db.models.fields.PositiveIntegerField', [], {})
No newline at end of file
61 },
No newline at end of file
62 'abscontrol.profile': {
No newline at end of file
63 'Meta': {'object_name': 'Profile', 'db_table': "'abs_profile_antenna'"},
No newline at end of file
64 'date_create': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
No newline at end of file
65 'date_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
No newline at end of file
66 'hits': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
No newline at end of file
67 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
No newline at end of file
68 'is_active': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}),
No newline at end of file
69 'name': ('django.db.models.fields.CharField', [], {'max_length': '250'}),
No newline at end of file
70 'state': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'})
No newline at end of file
71 }
No newline at end of file
72 }
No newline at end of file
73
No newline at end of file
74 complete_apps = ['abscontrol'] No newline at end of file
1 NO CONTENT: new file 10644
NO CONTENT: new file 10644
1 NO CONTENT: new file 10644
NO CONTENT: new file 10644
@@ -1,164 +1,165
1 # Django settings for abs_webapp_dev project. No newline at end of file
1 # Django settings for abs_webapp_dev project.
2 No newline at end of file
2
3 import os, sys No newline at end of file
3 import os, sys
4 PROJECT_DIR = os.path.split(os.path.dirname(__file__))[0] No newline at end of file
4 PROJECT_DIR = os.path.split(os.path.dirname(__file__))[0]
5 API_DIR = "/home/dev/workspace/absclient" No newline at end of file
5 API_DIR = "/home/dev/workspace/absclient"
6 OVERJRO_DIR = "/home/dev/workspace/weboverjro" No newline at end of file
6 OVERJRO_DIR = "/home/dev/workspace/weboverjro"
7 sys.path.append(API_DIR) No newline at end of file
7 sys.path.append(API_DIR)
8 sys.path.append(OVERJRO_DIR) No newline at end of file
8 sys.path.append(OVERJRO_DIR)
9 No newline at end of file
9
10 DEBUG = True No newline at end of file
10 DEBUG = True
11 TEMPLATE_DEBUG = DEBUG No newline at end of file
11 TEMPLATE_DEBUG = DEBUG
12 No newline at end of file
12
13 ADMINS = ( No newline at end of file
13 ADMINS = (
14 # ('Your Name', 'your_email@example.com'), No newline at end of file
14 # ('Your Name', 'your_email@example.com'),
15 ) No newline at end of file
15 )
16 No newline at end of file
16
17 MANAGERS = ADMINS No newline at end of file
17 MANAGERS = ADMINS
18 No newline at end of file
18
19 DATABASES = { No newline at end of file
19 DATABASES = {
20 'default': { No newline at end of file
20 'default': {
21 'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. No newline at end of file
21 'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
22 'NAME': 'db_jrowebapp_dev', # Or path to database file if using sqlite3. No newline at end of file
22 'NAME': 'db_jrowebapp_dev', # Or path to database file if using sqlite3.
23 'USER': 'abscontrol', # Not used with sqlite3. No newline at end of file
23 'USER': 'abscontrol', # Not used with sqlite3.
24 'PASSWORD': 'abscontrol', # Not used with sqlite3. No newline at end of file
24 'PASSWORD': 'abscontrol', # Not used with sqlite3.
25 'HOST': 'localhost', # Set to empty string for localhost. Not used with sqlite3. No newline at end of file
25 'HOST': 'localhost', # Set to empty string for localhost. Not used with sqlite3.
26 'PORT': '3306', # Set to empty string for default. Not used with sqlite3. No newline at end of file
26 'PORT': '3306', # Set to empty string for default. Not used with sqlite3.
27 } No newline at end of file
27 }
28 } No newline at end of file
28 }
29 No newline at end of file
29
30 # Local time zone for this installation. Choices can be found here: No newline at end of file
30 # Local time zone for this installation. Choices can be found here:
31 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name No newline at end of file
31 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
32 # although not all choices may be available on all operating systems. No newline at end of file
32 # although not all choices may be available on all operating systems.
33 # In a Windows environment this must be set to your system time zone. No newline at end of file
33 # In a Windows environment this must be set to your system time zone.
34 TIME_ZONE = 'America/Lima' No newline at end of file
34 TIME_ZONE = 'America/Lima'
35 No newline at end of file
35
36 # Language code for this installation. All choices can be found here: No newline at end of file
36 # Language code for this installation. All choices can be found here:
37 # http://www.i18nguy.com/unicode/language-identifiers.html No newline at end of file
37 # http://www.i18nguy.com/unicode/language-identifiers.html
38 LANGUAGE_CODE = 'en-us' No newline at end of file
38 LANGUAGE_CODE = 'en-us'
39 No newline at end of file
39
40 SITE_ID = 1 No newline at end of file
40 SITE_ID = 1
41 No newline at end of file
41
42 # If you set this to False, Django will make some optimizations so as not No newline at end of file
42 # If you set this to False, Django will make some optimizations so as not
43 # to load the internationalization machinery. No newline at end of file
43 # to load the internationalization machinery.
44 USE_I18N = True No newline at end of file
44 USE_I18N = True
45 No newline at end of file
45
46 # If you set this to False, Django will not format dates, numbers and No newline at end of file
46 # If you set this to False, Django will not format dates, numbers and
47 # calendars according to the current locale. No newline at end of file
47 # calendars according to the current locale.
48 USE_L10N = True No newline at end of file
48 USE_L10N = True
49 No newline at end of file
49
50 # If you set this to False, Django will not use timezone-aware datetimes. No newline at end of file
50 # If you set this to False, Django will not use timezone-aware datetimes.
51 USE_TZ = True No newline at end of file
51 USE_TZ = True
52 No newline at end of file
52
53 # Absolute filesystem path to the directory that will hold user-uploaded files. No newline at end of file
53 # Absolute filesystem path to the directory that will hold user-uploaded files.
54 # Example: "/home/media/media.lawrence.com/media/" No newline at end of file
54 # Example: "/home/media/media.lawrence.com/media/"
55 MEDIA_ROOT = os.path.join(PROJECT_DIR, 'media').replace('\\', '/') No newline at end of file
55 MEDIA_ROOT = os.path.join(PROJECT_DIR, 'media').replace('\\', '/')
56 No newline at end of file
56
57 # URL that handles the media served from MEDIA_ROOT. Make sure to use a No newline at end of file
57 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
58 # trailing slash. No newline at end of file
58 # trailing slash.
59 # Examples: "http://media.lawrence.com/media/", "http://example.com/media/" No newline at end of file
59 # Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
60 MEDIA_URL = '/media/' No newline at end of file
60 MEDIA_URL = '/media/'
61 No newline at end of file
61
62 # Absolute path to the directory static files should be collected to. No newline at end of file
62 # Absolute path to the directory static files should be collected to.
63 # Don't put anything in this directory yourself; store your static files No newline at end of file
63 # Don't put anything in this directory yourself; store your static files
64 # in apps' "static/" subdirectories and in STATICFILES_DIRS. No newline at end of file
64 # in apps' "static/" subdirectories and in STATICFILES_DIRS.
65 # Example: "/home/media/media.lawrence.com/static/" No newline at end of file
65 # Example: "/home/media/media.lawrence.com/static/"
66 #STATIC_ROOT = os.path.join(PROJECT_DIR, 'static-serve').replace('\\', '/'), No newline at end of file
66 #STATIC_ROOT = os.path.join(PROJECT_DIR, 'static-serve').replace('\\', '/'),
67 STATIC_ROOT = '' No newline at end of file
67 STATIC_ROOT = ''
68 No newline at end of file
68
69 # URL prefix for static files. No newline at end of file
69 # URL prefix for static files.
70 # Example: "http://media.lawrence.com/static/" No newline at end of file
70 # Example: "http://media.lawrence.com/static/"
71 STATIC_URL = '/static/' No newline at end of file
71 STATIC_URL = '/static/'
72 No newline at end of file
72
73 # Additional locations of static files No newline at end of file
73 # Additional locations of static files
74 STATICFILES_DIRS = ( No newline at end of file
74 STATICFILES_DIRS = (
75 # Put strings here, like "/home/html/static" or "C:/www/django/static". No newline at end of file
75 # Put strings here, like "/home/html/static" or "C:/www/django/static".
76 # Always use forward slashes, even on Windows. No newline at end of file
76 # Always use forward slashes, even on Windows.
77 # Don't forget to use absolute paths, not relative paths. No newline at end of file
77 # Don't forget to use absolute paths, not relative paths.
78 #os.path.join(PROJECT_DIR, "static").replace('\\', '/'), No newline at end of file
78 #os.path.join(PROJECT_DIR, "static").replace('\\', '/'),
79 ("static", os.path.join(PROJECT_DIR, "static").replace('\\', '/')), No newline at end of file
79 ("static", os.path.join(PROJECT_DIR, "static").replace('\\', '/')),
80 ) No newline at end of file
80 )
81 No newline at end of file
81
82 # List of finder classes that know how to find static files in No newline at end of file
82 # List of finder classes that know how to find static files in
83 # various locations. No newline at end of file
83 # various locations.
84 STATICFILES_FINDERS = ( No newline at end of file
84 STATICFILES_FINDERS = (
85 'django.contrib.staticfiles.finders.FileSystemFinder', No newline at end of file
85 'django.contrib.staticfiles.finders.FileSystemFinder',
86 'django.contrib.staticfiles.finders.AppDirectoriesFinder', No newline at end of file
86 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
87 # 'django.contrib.staticfiles.finders.DefaultStorageFinder', No newline at end of file
87 # 'django.contrib.staticfiles.finders.DefaultStorageFinder',
88 ) No newline at end of file
88 )
89 No newline at end of file
89
90 # Make this unique, and don't share it with anybody. No newline at end of file
90 # Make this unique, and don't share it with anybody.
91 SECRET_KEY = '=^abu)gd=)7hf#rme_vw=tv!bdh7+tts*^&)h(n=7@7(9#__@e' No newline at end of file
91 SECRET_KEY = '=^abu)gd=)7hf#rme_vw=tv!bdh7+tts*^&)h(n=7@7(9#__@e'
92 No newline at end of file
92
93 # List of callables that know how to import templates from various sources. No newline at end of file
93 # List of callables that know how to import templates from various sources.
94 TEMPLATE_LOADERS = ( No newline at end of file
94 TEMPLATE_LOADERS = (
95 'django.template.loaders.filesystem.Loader', No newline at end of file
95 'django.template.loaders.filesystem.Loader',
96 'django.template.loaders.app_directories.Loader', No newline at end of file
96 'django.template.loaders.app_directories.Loader',
97 # 'django.template.loaders.eggs.Loader', No newline at end of file
97 # 'django.template.loaders.eggs.Loader',
98 ) No newline at end of file
98 )
99 No newline at end of file
99
100 MIDDLEWARE_CLASSES = ( No newline at end of file
100 MIDDLEWARE_CLASSES = (
101 'django.middleware.common.CommonMiddleware', No newline at end of file
101 'django.middleware.common.CommonMiddleware',
102 'django.contrib.sessions.middleware.SessionMiddleware', No newline at end of file
102 'django.contrib.sessions.middleware.SessionMiddleware',
103 'django.middleware.csrf.CsrfViewMiddleware', No newline at end of file
103 'django.middleware.csrf.CsrfViewMiddleware',
104 'django.contrib.auth.middleware.AuthenticationMiddleware', No newline at end of file
104 'django.contrib.auth.middleware.AuthenticationMiddleware',
105 'django.contrib.messages.middleware.MessageMiddleware', No newline at end of file
105 'django.contrib.messages.middleware.MessageMiddleware',
106 # Uncomment the next line for simple clickjacking protection: No newline at end of file
106 # Uncomment the next line for simple clickjacking protection:
107 # 'django.middleware.clickjacking.XFrameOptionsMiddleware', No newline at end of file
107 # 'django.middleware.clickjacking.XFrameOptionsMiddleware',
108 ) No newline at end of file
108 )
109 No newline at end of file
109
110 ROOT_URLCONF = 'abs_webapp_dev.urls' No newline at end of file
110 ROOT_URLCONF = 'abs_webapp_dev.urls'
111 No newline at end of file
111
112 # Python dotted path to the WSGI application used by Django's runserver. No newline at end of file
112 # Python dotted path to the WSGI application used by Django's runserver.
113 WSGI_APPLICATION = 'abs_webapp_dev.wsgi.application' No newline at end of file
113 WSGI_APPLICATION = 'abs_webapp_dev.wsgi.application'
114 No newline at end of file
114
115 TEMPLATE_DIRS = ( No newline at end of file
115 TEMPLATE_DIRS = (
116 # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". No newline at end of file
116 # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
117 # Always use forward slashes, even on Windows. No newline at end of file
117 # Always use forward slashes, even on Windows.
118 # Don't forget to use absolute paths, not relative paths. No newline at end of file
118 # Don't forget to use absolute paths, not relative paths.
119 os.path.join(PROJECT_DIR, "templates").replace('\\', '/'), No newline at end of file
119 os.path.join(PROJECT_DIR, "templates").replace('\\', '/'),
120 ) No newline at end of file
120 )
121 No newline at end of file
121
122 INSTALLED_APPS = ( No newline at end of file
122 INSTALLED_APPS = (
123 'django.contrib.auth', No newline at end of file
123 'django.contrib.auth',
124 'django.contrib.contenttypes', No newline at end of file
124 'django.contrib.contenttypes',
125 'django.contrib.sessions', No newline at end of file
125 'django.contrib.sessions',
126 'django.contrib.sites', No newline at end of file
126 'django.contrib.sites',
127 'django.contrib.messages', No newline at end of file
127 'django.contrib.messages',
128 'django.contrib.staticfiles', No newline at end of file
128 'django.contrib.staticfiles',
129 # Uncomment the next line to enable the admin: No newline at end of file
129 # Uncomment the next line to enable the admin:
130 'django.contrib.admin', No newline at end of file
130 'django.contrib.admin',
131 # Uncomment the next line to enable admin documentation: No newline at end of file
131 # Uncomment the next line to enable admin documentation:
132 # 'django.contrib.admindocs', No newline at end of file
132 # 'django.contrib.admindocs',
133 'abscontrol', No newline at end of file
133 'abscontrol',
134 'audit', No newline at end of file
134 'audit',
135 'south', No newline at end of file
135 ) No newline at end of file
136 )
136 No newline at end of file
137
137 # A sample logging configuration. The only tangible logging No newline at end of file
138 # A sample logging configuration. The only tangible logging
138 # performed by this configuration is to send an email to No newline at end of file
139 # performed by this configuration is to send an email to
139 # the site admins on every HTTP 500 error when DEBUG=False. No newline at end of file
140 # the site admins on every HTTP 500 error when DEBUG=False.
140 # See http://docs.djangoproject.com/en/dev/topics/logging for No newline at end of file
141 # See http://docs.djangoproject.com/en/dev/topics/logging for
141 # more details on how to customize your logging configuration. No newline at end of file
142 # more details on how to customize your logging configuration.
142 LOGGING = { No newline at end of file
143 LOGGING = {
143 'version': 1, No newline at end of file
144 'version': 1,
144 'disable_existing_loggers': False, No newline at end of file
145 'disable_existing_loggers': False,
145 'filters': { No newline at end of file
146 'filters': {
146 'require_debug_false': { No newline at end of file
147 'require_debug_false': {
147 '()': 'django.utils.log.RequireDebugFalse' No newline at end of file
148 '()': 'django.utils.log.RequireDebugFalse'
148 } No newline at end of file
149 }
149 }, No newline at end of file
150 },
150 'handlers': { No newline at end of file
151 'handlers': {
151 'mail_admins': { No newline at end of file
152 'mail_admins': {
152 'level': 'ERROR', No newline at end of file
153 'level': 'ERROR',
153 'filters': ['require_debug_false'], No newline at end of file
154 'filters': ['require_debug_false'],
154 'class': 'django.utils.log.AdminEmailHandler' No newline at end of file
155 'class': 'django.utils.log.AdminEmailHandler'
155 } No newline at end of file
156 }
156 }, No newline at end of file
157 },
157 'loggers': { No newline at end of file
158 'loggers': {
158 'django.request': { No newline at end of file
159 'django.request': {
159 'handlers': ['mail_admins'], No newline at end of file
160 'handlers': ['mail_admins'],
160 'level': 'ERROR', No newline at end of file
161 'level': 'ERROR',
161 'propagate': True, No newline at end of file
162 'propagate': True,
162 }, No newline at end of file
163 },
163 } No newline at end of file
164 }
164 } No newline at end of file
165 }
@@ -1,79 +1,81
1 from django.db import models No newline at end of file
1 from django.db import models
2 No newline at end of file
2
3 class Profile(models.Model): No newline at end of file
3 class Profile(models.Model):
4 No newline at end of file
4
5 name = models.CharField(max_length=250) No newline at end of file
5 name = models.CharField(max_length=250)
6 date_create = models.DateTimeField(auto_now_add=True) No newline at end of file
6 date_create = models.DateTimeField(auto_now_add=True)
7 date_modified = models.DateTimeField(auto_now=True) No newline at end of file
7 date_modified = models.DateTimeField(auto_now=True)
8 hits = models.PositiveIntegerField(default=0) No newline at end of file
8 hits = models.PositiveIntegerField(default=0)
9 state = models.PositiveSmallIntegerField(default=0) No newline at end of file
9 state = models.PositiveSmallIntegerField(default=0)
10 is_active = models.PositiveSmallIntegerField(default=0) No newline at end of file
10 No newline at end of file
11
11 class Meta: No newline at end of file
12 class Meta:
12 db_table = "abs_profile_antenna" No newline at end of file
13 db_table = "abs_profile_antenna"
13 No newline at end of file
14
14 def __unicode__(self): No newline at end of file
15 def __unicode__(self):
15 return u'%s' % self.name No newline at end of file
16 return u'%s' % self.name
16 No newline at end of file
17
17 class Pattern(models.Model): No newline at end of file
18 class Pattern(models.Model):
18 No newline at end of file
19
19 profile = models.ForeignKey(Profile) No newline at end of file
20 profile = models.ForeignKey(Profile)
20 value = models.PositiveIntegerField() No newline at end of file
21 value = models.PositiveIntegerField()
21 date_create = models.DateTimeField(auto_now_add=True) No newline at end of file
22 date_create = models.DateTimeField(auto_now_add=True)
22 date_modified = models.DateTimeField(auto_now=True) No newline at end of file
23 date_modified = models.DateTimeField(auto_now=True)
23 hits = models.PositiveIntegerField(default=0) No newline at end of file
24 hits = models.PositiveIntegerField(default=0)
24 state = models.PositiveSmallIntegerField(default=1) No newline at end of file
25 state = models.PositiveSmallIntegerField(default=1)
26 is_active = models.PositiveSmallIntegerField(default=0) No newline at end of file
25 No newline at end of file
27
26 class Meta: No newline at end of file
28 class Meta:
27 db_table = "abs_pattern_antenna" No newline at end of file
29 db_table = "abs_pattern_antenna"
28 No newline at end of file
30
29 def __unicode__(self): No newline at end of file
31 def __unicode__(self):
30 return u'%s' % self.value No newline at end of file
32 return u'%s' % self.value
31 No newline at end of file
33
32 No newline at end of file
34
33 class AntennaUp(models.Model): No newline at end of file
35 class AntennaUp(models.Model):
34 No newline at end of file
36
35 pattern = models.ForeignKey(Pattern) No newline at end of file
37 pattern = models.ForeignKey(Pattern)
36 value = models.TextField() No newline at end of file
38 value = models.TextField()
37 tx = models.TextField(null=True) No newline at end of file
39 tx = models.TextField(null=True)
38 rx = models.TextField(null=True) No newline at end of file
40 rx = models.TextField(null=True)
39 ues = models.CharField(max_length=120, null=True) No newline at end of file
41 ues = models.CharField(max_length=120, null=True)
40 only_rx = models.PositiveSmallIntegerField(default=0) No newline at end of file
42 only_rx = models.PositiveSmallIntegerField(default=0)
41 date_create = models.DateTimeField(auto_now_add=True) No newline at end of file
43 date_create = models.DateTimeField(auto_now_add=True)
42 date_modified = models.DateTimeField(auto_now=True) No newline at end of file
44 date_modified = models.DateTimeField(auto_now=True)
43 hits = models.PositiveIntegerField(default=0) No newline at end of file
45 hits = models.PositiveIntegerField(default=0)
44 state = models.PositiveSmallIntegerField(default=1) No newline at end of file
46 state = models.PositiveSmallIntegerField(default=1)
45 No newline at end of file
47
46 class Meta: No newline at end of file
48 class Meta:
47 db_table = "abs_antenna_up" No newline at end of file
49 db_table = "abs_antenna_up"
48 No newline at end of file
50
49 def __unicode__(self): No newline at end of file
51 def __unicode__(self):
50 return u'%s' % self.value No newline at end of file
52 return u'%s' % self.value
51 No newline at end of file
53
52 No newline at end of file
54
53 class AntennaDown(models.Model): No newline at end of file
55 class AntennaDown(models.Model):
54 No newline at end of file
56
55 pattern = models.ForeignKey(Pattern) No newline at end of file
57 pattern = models.ForeignKey(Pattern)
56 value = models.TextField() No newline at end of file
58 value = models.TextField()
57 tx = models.TextField(null=True) No newline at end of file
59 tx = models.TextField(null=True)
58 rx = models.TextField(null=True) No newline at end of file
60 rx = models.TextField(null=True)
59 ues = models.CharField(max_length=120, null=True) No newline at end of file
61 ues = models.CharField(max_length=120, null=True)
60 only_rx = models.PositiveSmallIntegerField(default=0) No newline at end of file
62 only_rx = models.PositiveSmallIntegerField(default=0)
61 date_create = models.DateTimeField(auto_now_add=True) No newline at end of file
63 date_create = models.DateTimeField(auto_now_add=True)
62 date_modified = models.DateTimeField(auto_now=True) No newline at end of file
64 date_modified = models.DateTimeField(auto_now=True)
63 hits = models.PositiveIntegerField(default=0) No newline at end of file
65 hits = models.PositiveIntegerField(default=0)
64 state = models.PositiveSmallIntegerField(default=1) No newline at end of file
66 state = models.PositiveSmallIntegerField(default=1)
65 No newline at end of file
67
66 class Meta: No newline at end of file
68 class Meta:
67 db_table = "abs_antenna_down" No newline at end of file
69 db_table = "abs_antenna_down"
68 No newline at end of file
70
69 def save(self, *args, **kwargs): No newline at end of file
71 def save(self, *args, **kwargs):
70 ''' No newline at end of file
72 '''
71 if self.pk is None: No newline at end of file
73 if self.pk is None:
72 pass No newline at end of file
74 pass
73 else: No newline at end of file
75 else:
74 pass No newline at end of file
76 pass
75 ''' No newline at end of file
77 '''
76 super(AntennaDown, self).save(*args, **kwargs) No newline at end of file
78 super(AntennaDown, self).save(*args, **kwargs)
77 No newline at end of file
79
78 def __unicode__(self): No newline at end of file
80 def __unicode__(self):
79 return u'%s' % self.value No newline at end of file
81 return u'%s' % self.value
@@ -1,27 +1,28
1 from django.conf.urls import patterns, url No newline at end of file
1 from django.conf.urls import patterns, url
2 No newline at end of file
2
3 urlpatterns = patterns('abscontrol.views', No newline at end of file
3 urlpatterns = patterns('abscontrol.views',
4 url(r'^$', 'index'), No newline at end of file
4 url(r'^$', 'index'),
5 url(r'^new/$', 'new'), No newline at end of file
5 url(r'^new/$', 'new'),
6 url(r'^save/$', 'save'), No newline at end of file
6 url(r'^save/$', 'save'),
7 url(r'^view/(?P<profile_id>\d+)/$', 'view'), No newline at end of file
7 url(r'^view/(?P<profile_id>\d+)/$', 'view'),
8 url(r'^edit/(?P<profile_id>\d+)/$', 'edit'), No newline at end of file
8 url(r'^edit/(?P<profile_id>\d+)/$', 'edit'),
9 url(r'^update/(?P<profile_id>\d+)/$', 'update'), No newline at end of file
9 url(r'^update/(?P<profile_id>\d+)/$', 'update'),
10 url(r'^upgrade/(?P<profile_id>\d+)/$', 'upgrade'), No newline at end of file
10 url(r'^upgrade/(?P<profile_id>\d+)/$', 'upgrade'),
11 url(r'^changeName/(?P<profile_id>\d+)/$', 'changeName'), No newline at end of file
11 url(r'^changeName/(?P<profile_id>\d+)/$', 'changeName'),
12 #url(r'^(?P<profile_id>\d+)/$', 'detail'), No newline at end of file
12 #url(r'^(?P<profile_id>\d+)/$', 'detail'),
13 url(r'^(?P<profile_id>\d+)/add/$', 'addPattern'), No newline at end of file
13 url(r'^(?P<profile_id>\d+)/add/$', 'addPattern'),
14 url(r'^(?P<profile_id>\d+)/save/$', 'savePattern'), No newline at end of file
14 url(r'^(?P<profile_id>\d+)/save/$', 'savePattern'),
15 url(r'^(?P<profile_id>\d+)/edit/(?P<pattern_id>\d+)/$', 'editPattern'), No newline at end of file
15 url(r'^(?P<profile_id>\d+)/edit/(?P<pattern_id>\d+)/$', 'editPattern'),
16 url(r'^(?P<profile_id>\d+)/view/(?P<pattern_id>\d+)/$', 'viewPattern'), No newline at end of file
16 url(r'^(?P<profile_id>\d+)/view/(?P<pattern_id>\d+)/$', 'viewPattern'),
17 url(r'^(?P<profile_id>\d+)/delete/(?P<pattern_id>\d+)/$', 'deletePattern'), No newline at end of file
17 url(r'^(?P<profile_id>\d+)/delete/(?P<pattern_id>\d+)/$', 'deletePattern'),
18 #url(r'^(?P<poll_id>\d+)/results/$', 'results'), No newline at end of file
18 #url(r'^(?P<poll_id>\d+)/results/$', 'results'),
19 #url(r'^(?P<poll_id>\d+)/vote/$', 'vote'), No newline at end of file
19 #url(r'^(?P<poll_id>\d+)/vote/$', 'vote'),
20 url(r'^import/$', 'importProfile'), No newline at end of file
20 url(r'^import/$', 'importProfile'),
21 url(r'^upload/$', 'upload'), No newline at end of file
21 url(r'^upload/$', 'upload'),
22 #url(r'^saveImport/$', 'saveImport'), No newline at end of file
22 #url(r'^saveImport/$', 'saveImport'),
23 url(r'^(?P<profile_id>\d+)/(?P<pattern_id>\d+)/overjroUp/(?P<antenna_id>\d+)/$', 'overJROUp'), No newline at end of file
23 url(r'^(?P<profile_id>\d+)/(?P<pattern_id>\d+)/overjroUp/(?P<antenna_id>\d+)/$', 'overJROUp'),
24 url(r'^(?P<profile_id>\d+)/(?P<pattern_id>\d+)/overjroDown/(?P<antenna_id>\d+)/$', 'overJRODown'), No newline at end of file
24 url(r'^(?P<profile_id>\d+)/(?P<pattern_id>\d+)/overjroDown/(?P<antenna_id>\d+)/$', 'overJRODown'),
25 url(r'^export/(?P<profile_id>\d+)/$', 'export'), No newline at end of file
25 url(r'^export/(?P<profile_id>\d+)/$', 'export'),
26 url(r'^send/(?P<profile_id>\d+)/$', 'send'), No newline at end of file
26 url(r'^send/(?P<profile_id>\d+)/$', 'send'),
27 url(r'^change/(?P<profile_id>\d+)/(?P<pattern_id>\d+)/$', 'changePattern'), No newline at end of file
27 ) No newline at end of file
28 )
@@ -1,475 +1,519
1 from django.shortcuts import render_to_response, redirect No newline at end of file
1 from django.shortcuts import render_to_response, redirect
2 from django.http import HttpResponse No newline at end of file
2 from django.http import HttpResponse
3 from django.conf import settings No newline at end of file
3 from django.conf import settings
4 from django.utils.encoding import smart_str No newline at end of file
4 from django.utils.encoding import smart_str
5 from django.core.servers.basehttp import FileWrapper No newline at end of file
5 from django.core.servers.basehttp import FileWrapper
6 import mimetypes No newline at end of file
6 import mimetypes
7 from django.contrib.auth.decorators import login_required No newline at end of file
7 from django.contrib.auth.decorators import login_required
8 from django.template import RequestContext No newline at end of file
8 from django.template import RequestContext
9 No newline at end of file
9
10 from datetime import datetime No newline at end of file
10 from datetime import datetime
11 import os No newline at end of file
11 import os
12 from abscontrol.models import Profile, Pattern, AntennaDown, AntennaUp No newline at end of file
12 from abscontrol.models import Profile, Pattern, AntennaDown, AntennaUp
13 No newline at end of file
13
14 from util.readABSFile import readABSFile No newline at end of file
14 from util.readABSFile import readABSFile
15 from util.saveABSFile import saveABSFile No newline at end of file
15 from util.saveABSFile import saveABSFile
16 from util.ABSData import ABSData No newline at end of file
16 from util.ABSData import ABSData
17 from util.OverJRO import OverJRO No newline at end of file
17 from util.OverJRO import OverJRO
18 from scripts.sendFile import sendFile No newline at end of file
18 from scripts.sendFile import sendFile
19 from scripts.changeBeam import changeBeam No newline at end of file
19 from overJroShow import overJroShow No newline at end of file
20 from overJroShow import overJroShow
20 No newline at end of file
21
21 arrayTx = [["0","0","0","0","0","0","0","0"],\ No newline at end of file
22 arrayTx = [["0","0","0","0","0","0","0","0"],\
22 ["0","0","0","0","0","0","0","0"],\ No newline at end of file
23 ["0","0","0","0","0","0","0","0"],\
23 ["0","0","0","0","0","0","0","0"],\ No newline at end of file
24 ["0","0","0","0","0","0","0","0"],\
24 ["0","0","0","0","0","0","0","0"],\ No newline at end of file
25 ["0","0","0","0","0","0","0","0"],\
25 ["0","0","0","0","0","0","0","0"],\ No newline at end of file
26 ["0","0","0","0","0","0","0","0"],\
26 ["0","0","0","0","0","0","0","0"],\ No newline at end of file
27 ["0","0","0","0","0","0","0","0"],\
27 ["0","0","0","0","0","0","0","0"],\ No newline at end of file
28 ["0","0","0","0","0","0","0","0"],\
28 ["0","0","0","0","0","0","0","0"]] No newline at end of file
29 ["0","0","0","0","0","0","0","0"]]
29 No newline at end of file
30
30 arrayUes = ["0.533333","0.00000","1.06667","0.00000"] No newline at end of file
31 arrayUes = ["0.533333","0.00000","1.06667","0.00000"]
31 No newline at end of file
32
32 @login_required(login_url='/accounts/login/') No newline at end of file
33 @login_required(login_url='/accounts/login/')
33 def index(request): No newline at end of file
34 def index(request):
34 #latest_poll_list = profileAntenna.objects.all().order_by('-pub_date')[:5] No newline at end of file
35 #latest_poll_list = profileAntenna.objects.all().order_by('-pub_date')[:5]
35 profile_list = Profile.objects.filter(state=1) No newline at end of file
36 profile_list = Profile.objects.filter(state=1)
36 return render_to_response('abscontrol/index.html', {'profile_list': profile_list}, context_instance=RequestContext(request)) No newline at end of file
37 return render_to_response('abscontrol/index.html', {'profile_list': profile_list}, context_instance=RequestContext(request))
37 No newline at end of file
38
38 def new(request): No newline at end of file
39 def new(request):
39 profile_list = Profile.objects.filter(state=1) No newline at end of file
40 profile_list = Profile.objects.filter(state=1)
40 txtProfile = datetime.now().strftime("%Y%m%d%H%M%S%f") No newline at end of file
41 txtProfile = datetime.now().strftime("%Y%m%d%H%M%S%f")
41 newprofile = Profile(name=txtProfile) No newline at end of file
42 newprofile = Profile(name=txtProfile)
42 newprofile.save() No newline at end of file
43 newprofile.save()
43 No newline at end of file
44
44 lsPatterns = None No newline at end of file
45 lsPatterns = None
45 No newline at end of file
46
46 return render_to_response('abscontrol/new.html', {'profile_list': profile_list, No newline at end of file
47 return render_to_response('abscontrol/new.html', {'profile_list': profile_list,
47 'profile_name' : newprofile.name, No newline at end of file
48 'profile_name' : newprofile.name,
48 'profile_id' : newprofile.id, No newline at end of file
49 'profile_id' : newprofile.id,
49 'lsPatterns' : lsPatterns, No newline at end of file
50 'lsPatterns' : lsPatterns,
50 'range' : range(8), 'arrayUes' : arrayUes, No newline at end of file
51 'range' : range(8), 'arrayUes' : arrayUes,
51 }, context_instance=RequestContext(request)) No newline at end of file
52 }, context_instance=RequestContext(request))
52 No newline at end of file
53
53 def save(request): No newline at end of file
54 def save(request):
54 No newline at end of file
55
55 txtProfile = request.POST["txtProfile"] No newline at end of file
56 txtProfile = request.POST["txtProfile"]
56 No newline at end of file
57
57 txtAntennaUp = request.POST["txtAntennaUp"] No newline at end of file
58 txtAntennaUp = request.POST["txtAntennaUp"]
58 txtTxUp = request.POST["txtTxUp"] No newline at end of file
59 txtTxUp = request.POST["txtTxUp"]
59 txtRxUp = request.POST["txtRxUp"] No newline at end of file
60 txtRxUp = request.POST["txtRxUp"]
60 txtUesUp = request.POST["txtUesUp"] No newline at end of file
61 txtUesUp = request.POST["txtUesUp"]
61 No newline at end of file
62
62 txtAntennaDown = request.POST["txtAntennaDown"] No newline at end of file
63 txtAntennaDown = request.POST["txtAntennaDown"]
63 txtTxDown = request.POST["txtTxDown"] No newline at end of file
64 txtTxDown = request.POST["txtTxDown"]
64 txtRxDown = request.POST["txtRxDown"] No newline at end of file
65 txtRxDown = request.POST["txtRxDown"]
65 txtUesDown = request.POST["txtUesDown"] No newline at end of file
66 txtUesDown = request.POST["txtUesDown"]
66 No newline at end of file
67
67 newprofile = Profile(name=txtProfile) No newline at end of file
68 newprofile = Profile(name=txtProfile)
68 newprofile.save() No newline at end of file
69 newprofile.save()
69 No newline at end of file
70
70 newpattern = newprofile.pattern_set.create(value=1) No newline at end of file
71 newpattern = newprofile.pattern_set.create(value=1)
71 newpattern.antennaup_set.create(value=txtAntennaUp,tx=txtTxUp,rx=txtRxUp,ues=txtUesUp) No newline at end of file
72 newpattern.antennaup_set.create(value=txtAntennaUp,tx=txtTxUp,rx=txtRxUp,ues=txtUesUp)
72 newpattern.antennadown_set.create(value=txtAntennaDown,tx=txtTxDown,rx=txtRxDown,ues=txtUesDown) No newline at end of file
73 newpattern.antennadown_set.create(value=txtAntennaDown,tx=txtTxDown,rx=txtRxDown,ues=txtUesDown)
73 No newline at end of file
74
74 newurl = '/abscontrol/view/%d' % newprofile.id No newline at end of file
75 newurl = '/abscontrol/view/%d' % newprofile.id
75 No newline at end of file
76
76 return redirect(newurl) No newline at end of file
77 return redirect(newurl)
77 No newline at end of file
78
78 # Update temporal experiment No newline at end of file
79 # Update temporal experiment
79 def upgrade(request, profile_id): No newline at end of file
80 def upgrade(request, profile_id):
80 txtAntennaUp = request.POST["txtAntennaUp"] No newline at end of file
81 txtAntennaUp = request.POST["txtAntennaUp"]
81 txtTxUp = request.POST["txtTxUp"] No newline at end of file
82 txtTxUp = request.POST["txtTxUp"]
82 txtRxUp = request.POST["txtRxUp"] No newline at end of file
83 txtRxUp = request.POST["txtRxUp"]
83 txtUesUp = request.POST["txtUesUp"] No newline at end of file
84 txtUesUp = request.POST["txtUesUp"]
84 No newline at end of file
85
85 txtAntennaDown = request.POST["txtAntennaDown"] No newline at end of file
86 txtAntennaDown = request.POST["txtAntennaDown"]
86 txtTxDown = request.POST["txtTxDown"] No newline at end of file
87 txtTxDown = request.POST["txtTxDown"]
87 txtRxDown = request.POST["txtRxDown"] No newline at end of file
88 txtRxDown = request.POST["txtRxDown"]
88 txtUesDown = request.POST["txtUesDown"] No newline at end of file
89 txtUesDown = request.POST["txtUesDown"]
89 No newline at end of file
90
90 objProfile = Profile.objects.get(pk=profile_id) No newline at end of file
91 objProfile = Profile.objects.get(pk=profile_id)
91 newpattern = objProfile.pattern_set.create(value=1) No newline at end of file
92 newpattern = objProfile.pattern_set.create(value=1)
92 newpattern.antennaup_set.create(value=txtAntennaUp,tx=txtTxUp,rx=txtRxUp,ues=txtUesUp) No newline at end of file
93 newpattern.antennaup_set.create(value=txtAntennaUp,tx=txtTxUp,rx=txtRxUp,ues=txtUesUp)
93 newpattern.antennadown_set.create(value=txtAntennaDown,tx=txtTxDown,rx=txtRxDown,ues=txtUesDown) No newline at end of file
94 newpattern.antennadown_set.create(value=txtAntennaDown,tx=txtTxDown,rx=txtRxDown,ues=txtUesDown)
94 No newline at end of file
95
95 newurl = '/abscontrol/%d/edit/%d' % (int(profile_id), newpattern.id) No newline at end of file
96 newurl = '/abscontrol/%d/edit/%d' % (int(profile_id), newpattern.id)
96 return redirect(newurl) No newline at end of file
97 return redirect(newurl)
97 No newline at end of file
98
98 def update(request, profile_id): No newline at end of file
99 def update(request, profile_id):
99 txtProfile = request.POST["txtProfile"] No newline at end of file
100 txtProfile = request.POST["txtProfile"]
100 No newline at end of file
101
101 objProfile = Profile.objects.get(pk=profile_id) No newline at end of file
102 objProfile = Profile.objects.get(pk=profile_id)
102 objProfile.name = txtProfile No newline at end of file
103 objProfile.name = txtProfile
103 objProfile.state = 1 No newline at end of file
104 objProfile.state = 1
104 objProfile.save() No newline at end of file
105 objProfile.save()
105 No newline at end of file
106
106 newurl = '/abscontrol/view/%d' % objProfile.id No newline at end of file
107 newurl = '/abscontrol/view/%d' % objProfile.id
107 return redirect(newurl) No newline at end of file
108 return redirect(newurl)
108 No newline at end of file
109
109 def changeName(request, profile_id): No newline at end of file
110 def changeName(request, profile_id):
110 profile_list = Profile.objects.filter(state=1) No newline at end of file
111 profile_list = Profile.objects.filter(state=1)
111 objProfile = Profile.objects.get(pk=profile_id) No newline at end of file
112 objProfile = Profile.objects.get(pk=profile_id)
112 lsPatterns = objProfile.pattern_set.all() No newline at end of file
113 lsPatterns = objProfile.pattern_set.all()
113 No newline at end of file
114
114 return render_to_response('abscontrol/changeName.html', {'profile_list': profile_list, No newline at end of file
115 return render_to_response('abscontrol/changeName.html', {'profile_list': profile_list,
115 'objProfile': objProfile, No newline at end of file
116 'objProfile': objProfile,
116 'lsPatterns' : lsPatterns, No newline at end of file
117 'lsPatterns' : lsPatterns,
117 }, context_instance=RequestContext(request)) No newline at end of file
118 }, context_instance=RequestContext(request))
118 No newline at end of file
119
119 def view(request, profile_id): No newline at end of file
120 def view(request, profile_id):
120 if request.method == 'GET' and 'pattern' in request.GET: No newline at end of file
121 if request.method == 'GET' and 'pattern' in request.GET:
121 pattern_value = request.GET["pattern"] No newline at end of file
122 pattern_value = request.GET["pattern"]
122 else: No newline at end of file
123 else:
123 pattern_value = 1 No newline at end of file
124 pattern_value = 1
124 No newline at end of file
125
125 profile_list = Profile.objects.filter(state=1) No newline at end of file
126 profile_list = Profile.objects.filter(state=1)
126 objProfile = Profile.objects.get(pk=profile_id) No newline at end of file
127 objProfile = Profile.objects.get(pk=profile_id)
127 No newline at end of file
128
128 lsPatterns = objProfile.pattern_set.all() No newline at end of file
129 lsPatterns = objProfile.pattern_set.all()
129 patternChoosen = objProfile.pattern_set.get(value=pattern_value) No newline at end of file
130 patternChoosen = objProfile.pattern_set.get(value=pattern_value)
130 objAntennaUp = patternChoosen.antennaup_set.get() No newline at end of file
131 objAntennaUp = patternChoosen.antennaup_set.get()
131 objAntennaDown = patternChoosen.antennadown_set.get() No newline at end of file
132 objAntennaDown = patternChoosen.antennadown_set.get()
132 No newline at end of file
133
133 return render_to_response('abscontrol/view.html', {'objProfile': objProfile, 'profile_list': profile_list, No newline at end of file
134 return render_to_response('abscontrol/view.html', {'objProfile': objProfile, 'profile_list': profile_list,
134 'patternChoosen' : patternChoosen, 'lsPatterns' : lsPatterns, No newline at end of file
135 'patternChoosen' : patternChoosen, 'lsPatterns' : lsPatterns,
135 'antennaUp' : objAntennaUp, 'antennaDown' : objAntennaDown, No newline at end of file
136 'antennaUp' : objAntennaUp, 'antennaDown' : objAntennaDown,
136 }, context_instance=RequestContext(request)) No newline at end of file
137 }, context_instance=RequestContext(request))
137 No newline at end of file
138
138 def edit(request, profile_id): No newline at end of file
139 def edit(request, profile_id):
139 if request.method == 'GET' and 'pattern' in request.GET: No newline at end of file
140 if request.method == 'GET' and 'pattern' in request.GET:
140 pattern_value = request.GET["pattern"] No newline at end of file
141 pattern_value = request.GET["pattern"]
141 else: No newline at end of file
142 else:
142 pattern_value = 1 No newline at end of file
143 pattern_value = 1
143 No newline at end of file
144
144 absData = ABSData() No newline at end of file
145 absData = ABSData()
145 profile_list = Profile.objects.filter(state=1) No newline at end of file
146 profile_list = Profile.objects.filter(state=1)
146 objProfile = Profile.objects.get(pk=profile_id) No newline at end of file
147 objProfile = Profile.objects.get(pk=profile_id)
147 No newline at end of file
148
148 lsPatterns = objProfile.pattern_set.all() No newline at end of file
149 lsPatterns = objProfile.pattern_set.all()
149 patternChoosen = objProfile.pattern_set.get(value=pattern_value) No newline at end of file
150 patternChoosen = objProfile.pattern_set.get(value=pattern_value)
150 objAntennaUp = patternChoosen.antennaup_set.get() No newline at end of file
151 objAntennaUp = patternChoosen.antennaup_set.get()
151 objAntennaDown = patternChoosen.antennadown_set.get() No newline at end of file
152 objAntennaDown = patternChoosen.antennadown_set.get()
152 No newline at end of file
153
153 arrayAntennaUp = absData.convertStringtoList2(objAntennaUp.value) No newline at end of file
154 arrayAntennaUp = absData.convertStringtoList2(objAntennaUp.value)
154 if objAntennaUp.tx != None: No newline at end of file
155 if objAntennaUp.tx != None:
155 arrayTxUp = absData.convertStringtoList2(objAntennaUp.tx) No newline at end of file
156 arrayTxUp = absData.convertStringtoList2(objAntennaUp.tx)
156 else: No newline at end of file
157 else:
157 arrayTxUp = arrayTx No newline at end of file
158 arrayTxUp = arrayTx
158 if objAntennaUp.rx != None: No newline at end of file
159 if objAntennaUp.rx != None:
159 arrayRxUp = absData.convertStringtoList2(objAntennaUp.rx) No newline at end of file
160 arrayRxUp = absData.convertStringtoList2(objAntennaUp.rx)
160 else: No newline at end of file
161 else:
161 arrayRxUp = arrayTx No newline at end of file
162 arrayRxUp = arrayTx
162 if objAntennaUp.ues != None: No newline at end of file
163 if objAntennaUp.ues != None:
163 arrayUesUp = absData.convertStringtoList1(objAntennaUp.ues) No newline at end of file
164 arrayUesUp = absData.convertStringtoList1(objAntennaUp.ues)
164 else: No newline at end of file
165 else:
165 arrayUesUp = arrayUes No newline at end of file
166 arrayUesUp = arrayUes
166 No newline at end of file
167
167 arrayAntennaDown = absData.convertStringtoList2(objAntennaDown.value) No newline at end of file
168 arrayAntennaDown = absData.convertStringtoList2(objAntennaDown.value)
168 if objAntennaDown.tx != None: No newline at end of file
169 if objAntennaDown.tx != None:
169 arrayTxDown = absData.convertStringtoList2(objAntennaDown.tx) No newline at end of file
170 arrayTxDown = absData.convertStringtoList2(objAntennaDown.tx)
170 else: No newline at end of file
171 else:
171 arrayTxDown = arrayTx No newline at end of file
172 arrayTxDown = arrayTx
172 if objAntennaDown.rx != None: No newline at end of file
173 if objAntennaDown.rx != None:
173 arrayRxDown = absData.convertStringtoList2(objAntennaDown.rx) No newline at end of file
174 arrayRxDown = absData.convertStringtoList2(objAntennaDown.rx)
174 else: No newline at end of file
175 else:
175 arrayRxDown = arrayTx No newline at end of file
176 arrayRxDown = arrayTx
176 if objAntennaDown.ues != None: No newline at end of file
177 if objAntennaDown.ues != None:
177 arrayUesDown = absData.convertStringtoList1(objAntennaDown.ues) No newline at end of file
178 arrayUesDown = absData.convertStringtoList1(objAntennaDown.ues)
178 else: No newline at end of file
179 else:
179 arrayUesDown = arrayUes No newline at end of file
180 arrayUesDown = arrayUes
180 No newline at end of file
181
181 return render_to_response('abscontrol/edit.html', {'objProfile': objProfile, 'profile_list': profile_list, No newline at end of file
182 return render_to_response('abscontrol/edit.html', {'objProfile': objProfile, 'profile_list': profile_list,
182 'patternChoosen' : patternChoosen, 'lsPatterns' : lsPatterns, No newline at end of file
183 'patternChoosen' : patternChoosen, 'lsPatterns' : lsPatterns,
183 'antennaUp' : objAntennaUp, 'antennaDown' : objAntennaDown, No newline at end of file
184 'antennaUp' : objAntennaUp, 'antennaDown' : objAntennaDown,
184 'arrayAntennaUp' : arrayAntennaUp, 'arrayTxUp' : arrayTxUp, No newline at end of file
185 'arrayAntennaUp' : arrayAntennaUp, 'arrayTxUp' : arrayTxUp,
185 'arrayRxUp' : arrayRxUp, 'arrayRxDown' : arrayRxDown, No newline at end of file
186 'arrayRxUp' : arrayRxUp, 'arrayRxDown' : arrayRxDown,
186 'arrayAntennaDown' : arrayAntennaDown, 'arrayTxDown' : arrayTxDown, No newline at end of file
187 'arrayAntennaDown' : arrayAntennaDown, 'arrayTxDown' : arrayTxDown,
187 'arrayUesUp' : arrayUesUp, 'arrayUesDown' : arrayUesDown, No newline at end of file
188 'arrayUesUp' : arrayUesUp, 'arrayUesDown' : arrayUesDown,
188 }, context_instance=RequestContext(request)) No newline at end of file
189 }, context_instance=RequestContext(request))
189 No newline at end of file
190
190 def addPattern(request, profile_id): No newline at end of file
191 def addPattern(request, profile_id):
191 profile_list = Profile.objects.filter(state=1) No newline at end of file
192 profile_list = Profile.objects.filter(state=1)
192 objProfile = Profile.objects.get(pk=profile_id) No newline at end of file
193 objProfile = Profile.objects.get(pk=profile_id)
193 No newline at end of file
194
194 return render_to_response('abscontrol/addPattern.html', {'objProfile': objProfile, 'profile_list': profile_list, No newline at end of file
195 return render_to_response('abscontrol/addPattern.html', {'objProfile': objProfile, 'profile_list': profile_list,
195 'range' : range(8), 'arrayUes' : arrayUes, No newline at end of file
196 'range' : range(8), 'arrayUes' : arrayUes,
196 }, context_instance=RequestContext(request)) No newline at end of file
197 }, context_instance=RequestContext(request))
197 No newline at end of file
198
198 def editPattern(request, profile_id, pattern_id): No newline at end of file
199 def editPattern(request, profile_id, pattern_id):
199 absData = ABSData() No newline at end of file
200 absData = ABSData()
200 profile_list = Profile.objects.filter(state=1) No newline at end of file
201 profile_list = Profile.objects.filter(state=1)
201 objProfile = Profile.objects.get(pk=profile_id) No newline at end of file
202 objProfile = Profile.objects.get(pk=profile_id)
202 lsPatterns = objProfile.pattern_set.all() No newline at end of file
203 lsPatterns = objProfile.pattern_set.all()
203 patternChoosen = Pattern.objects.get(pk=pattern_id) No newline at end of file
204 patternChoosen = Pattern.objects.get(pk=pattern_id)
204 objAntennaUp = patternChoosen.antennaup_set.get() No newline at end of file
205 objAntennaUp = patternChoosen.antennaup_set.get()
205 objAntennaDown = patternChoosen.antennadown_set.get() No newline at end of file
206 objAntennaDown = patternChoosen.antennadown_set.get()
206 No newline at end of file
207
207 arrayAntennaUp = absData.convertStringtoList2(objAntennaUp.value) No newline at end of file
208 arrayAntennaUp = absData.convertStringtoList2(objAntennaUp.value)
208 if objAntennaUp.tx != None: No newline at end of file
209 if objAntennaUp.tx != None:
209 arrayTxUp = absData.convertStringtoList2(objAntennaUp.tx) No newline at end of file
210 arrayTxUp = absData.convertStringtoList2(objAntennaUp.tx)
210 else: No newline at end of file
211 else:
211 arrayTxUp = arrayTx No newline at end of file
212 arrayTxUp = arrayTx
212 if objAntennaUp.rx != None: No newline at end of file
213 if objAntennaUp.rx != None:
213 arrayRxUp = absData.convertStringtoList2(objAntennaUp.rx) No newline at end of file
214 arrayRxUp = absData.convertStringtoList2(objAntennaUp.rx)
214 else: No newline at end of file
215 else:
215 arrayRxUp = arrayTx No newline at end of file
216 arrayRxUp = arrayTx
216 if objAntennaUp.ues != None: No newline at end of file
217 if objAntennaUp.ues != None:
217 arrayUesUp = absData.convertStringtoList1(objAntennaUp.ues) No newline at end of file
218 arrayUesUp = absData.convertStringtoList1(objAntennaUp.ues)
218 else: No newline at end of file
219 else:
219 arrayUesUp = arrayUes No newline at end of file
220 arrayUesUp = arrayUes
220 No newline at end of file
221
221 arrayAntennaDown = absData.convertStringtoList2(objAntennaDown.value) No newline at end of file
222 arrayAntennaDown = absData.convertStringtoList2(objAntennaDown.value)
222 if objAntennaDown.tx != None: No newline at end of file
223 if objAntennaDown.tx != None:
223 arrayTxDown = absData.convertStringtoList2(objAntennaDown.tx) No newline at end of file
224 arrayTxDown = absData.convertStringtoList2(objAntennaDown.tx)
224 else: No newline at end of file
225 else:
225 arrayTxDown = arrayTx No newline at end of file
226 arrayTxDown = arrayTx
226 if objAntennaDown.rx != None: No newline at end of file
227 if objAntennaDown.rx != None:
227 arrayRxDown = absData.convertStringtoList2(objAntennaDown.rx) No newline at end of file
228 arrayRxDown = absData.convertStringtoList2(objAntennaDown.rx)
228 else: No newline at end of file
229 else:
229 arrayRxDown = arrayTx No newline at end of file
230 arrayRxDown = arrayTx
230 if objAntennaDown.ues != None: No newline at end of file
231 if objAntennaDown.ues != None:
231 arrayUesDown = absData.convertStringtoList1(objAntennaDown.ues) No newline at end of file
232 arrayUesDown = absData.convertStringtoList1(objAntennaDown.ues)
232 else: No newline at end of file
233 else:
233 arrayUesDown = arrayUes No newline at end of file
234 arrayUesDown = arrayUes
234 No newline at end of file
235
235 return render_to_response('abscontrol/editPattern.html', {'objProfile': objProfile, 'profile_list': profile_list, No newline at end of file
236 return render_to_response('abscontrol/editPattern.html', {'objProfile': objProfile, 'profile_list': profile_list,
236 'patternChoosen' : patternChoosen, 'lsPatterns' : lsPatterns, No newline at end of file
237 'patternChoosen' : patternChoosen, 'lsPatterns' : lsPatterns,
237 'antennaUp' : objAntennaUp, 'antennaDown' : objAntennaDown, No newline at end of file
238 'antennaUp' : objAntennaUp, 'antennaDown' : objAntennaDown,
238 'arrayAntennaUp' : arrayAntennaUp, 'arrayTxUp' : arrayTxUp, No newline at end of file
239 'arrayAntennaUp' : arrayAntennaUp, 'arrayTxUp' : arrayTxUp,
239 'arrayRxUp' : arrayRxUp, 'arrayRxDown' : arrayRxDown, No newline at end of file
240 'arrayRxUp' : arrayRxUp, 'arrayRxDown' : arrayRxDown,
240 'arrayAntennaDown' : arrayAntennaDown, 'arrayTxDown' : arrayTxDown, No newline at end of file
241 'arrayAntennaDown' : arrayAntennaDown, 'arrayTxDown' : arrayTxDown,
241 'arrayUesUp' : arrayUesUp, 'arrayUesDown' : arrayUesDown, No newline at end of file
242 'arrayUesUp' : arrayUesUp, 'arrayUesDown' : arrayUesDown,
242 }, context_instance=RequestContext(request)) No newline at end of file
243 }, context_instance=RequestContext(request))
243 No newline at end of file
244
244 def savePattern(request, profile_id): No newline at end of file
245 def savePattern(request, profile_id):
245 pattern_id = 0 No newline at end of file
246 pattern_id = 0
246 method = "save" No newline at end of file
247 method = "save"
247 No newline at end of file
248
248 if 'pattern_id' in request.POST: No newline at end of file
249 if 'pattern_id' in request.POST:
249 pattern_id = request.POST["pattern_id"] No newline at end of file
250 pattern_id = request.POST["pattern_id"]
250 method = "update" No newline at end of file
251 method = "update"
251 No newline at end of file
252
252 maxValuePattern = 0 No newline at end of file
253 maxValuePattern = 0
253 txtAntennaUp = request.POST["txtAntennaUp"] No newline at end of file
254 txtAntennaUp = request.POST["txtAntennaUp"]
254 txtTxUp = request.POST["txtTxUp"] No newline at end of file
255 txtTxUp = request.POST["txtTxUp"]
255 txtRxUp = request.POST["txtRxUp"] No newline at end of file
256 txtRxUp = request.POST["txtRxUp"]
256 txtUesUp = request.POST["txtUesUp"] No newline at end of file
257 txtUesUp = request.POST["txtUesUp"]
257 No newline at end of file
258
258 txtAntennaDown = request.POST["txtAntennaDown"] No newline at end of file
259 txtAntennaDown = request.POST["txtAntennaDown"]
259 txtTxDown = request.POST["txtTxDown"] No newline at end of file
260 txtTxDown = request.POST["txtTxDown"]
260 txtRxDown = request.POST["txtRxDown"] No newline at end of file
261 txtRxDown = request.POST["txtRxDown"]
261 txtUesDown = request.POST["txtUesDown"] No newline at end of file
262 txtUesDown = request.POST["txtUesDown"]
262 No newline at end of file
263
263 mode = request.POST["mode"] No newline at end of file
264 mode = request.POST["mode"]
264 No newline at end of file
265
265 if method == "save": No newline at end of file
266 if method == "save":
266 objProfile = Profile.objects.get(pk=profile_id) No newline at end of file
267 objProfile = Profile.objects.get(pk=profile_id)
267 lsPatterns = objProfile.pattern_set.all() No newline at end of file
268 lsPatterns = objProfile.pattern_set.all()
268 if len(lsPatterns) > 0: No newline at end of file
269 if len(lsPatterns) > 0:
269 for element in lsPatterns: No newline at end of file
270 for element in lsPatterns:
270 if element.value > maxValuePattern: No newline at end of file
271 if element.value > maxValuePattern:
271 maxPattern = element.value No newline at end of file
272 maxPattern = element.value
272 else: No newline at end of file
273 else:
273 maxPattern = 0 No newline at end of file
274 maxPattern = 0
274 No newline at end of file
275
275 if maxPattern < 10 : No newline at end of file
276 if maxPattern < 10 :
276 newValuePattern = maxPattern + 1 No newline at end of file
277 newValuePattern = maxPattern + 1
277 newpattern = objProfile.pattern_set.create(value=newValuePattern) No newline at end of file
278 newpattern = objProfile.pattern_set.create(value=newValuePattern)
278 newpattern.antennaup_set.create(value=txtAntennaUp,tx=txtTxUp,rx=txtRxUp,ues=txtUesUp) No newline at end of file
279 newpattern.antennaup_set.create(value=txtAntennaUp,tx=txtTxUp,rx=txtRxUp,ues=txtUesUp)
279 newpattern.antennadown_set.create(value=txtAntennaDown,tx=txtTxDown,rx=txtRxDown,ues=txtUesDown) No newline at end of file
280 newpattern.antennadown_set.create(value=txtAntennaDown,tx=txtTxDown,rx=txtRxDown,ues=txtUesDown)
280 error = 0 No newline at end of file
281 error = 0
281 else: No newline at end of file
282 else:
282 error = 1 # Can not add more patterns No newline at end of file
283 error = 1 # Can not add more patterns
283 No newline at end of file
284
284 if mode == "e": No newline at end of file
285 if mode == "e":
285 newurl = '/abscontrol/%d/edit/%d' % (int(profile_id), newpattern.id) No newline at end of file
286 newurl = '/abscontrol/%d/edit/%d' % (int(profile_id), newpattern.id)
286 else: No newline at end of file
287 else:
287 newurl = '/abscontrol/%d/view/%d' % (int(profile_id), newpattern.id) No newline at end of file
288 newurl = '/abscontrol/%d/view/%d' % (int(profile_id), newpattern.id)
288 else: No newline at end of file
289 else:
289 txtAntennaUpId = request.POST["txtAntennaUpId"] No newline at end of file
290 txtAntennaUpId = request.POST["txtAntennaUpId"]
290 objAntennaUp = AntennaUp.objects.get(pk=txtAntennaUpId) No newline at end of file
291 objAntennaUp = AntennaUp.objects.get(pk=txtAntennaUpId)
291 objAntennaUp.value = txtAntennaUp No newline at end of file
292 objAntennaUp.value = txtAntennaUp
292 objAntennaUp.tx = txtTxUp No newline at end of file
293 objAntennaUp.tx = txtTxUp
293 objAntennaUp.rx = txtRxUp No newline at end of file
294 objAntennaUp.rx = txtRxUp
294 objAntennaUp.ues = txtUesUp No newline at end of file
295 objAntennaUp.ues = txtUesUp
295 objAntennaUp.save() No newline at end of file
296 objAntennaUp.save()
296 No newline at end of file
297
297 txtAntennaDownId = request.POST["txtAntennaDownId"] No newline at end of file
298 txtAntennaDownId = request.POST["txtAntennaDownId"]
298 objAntennaDown = AntennaDown.objects.get(pk=txtAntennaDownId) No newline at end of file
299 objAntennaDown = AntennaDown.objects.get(pk=txtAntennaDownId)
299 objAntennaDown.value = txtAntennaDown No newline at end of file
300 objAntennaDown.value = txtAntennaDown
300 objAntennaDown.tx = txtTxDown No newline at end of file
301 objAntennaDown.tx = txtTxDown
301 objAntennaDown.rx = txtRxDown No newline at end of file
302 objAntennaDown.rx = txtRxDown
302 objAntennaDown.ues = txtUesDown No newline at end of file
303 objAntennaDown.ues = txtUesDown
303 objAntennaDown.save() No newline at end of file
304 objAntennaDown.save()
304 No newline at end of file
305
305 if mode == "e": No newline at end of file
306 if mode == "e":
306 newurl = '/abscontrol/%d/edit/%d' % (int(profile_id), int(pattern_id)) No newline at end of file
307 newurl = '/abscontrol/%d/edit/%d' % (int(profile_id), int(pattern_id))
307 else: No newline at end of file
308 else:
308 newurl = '/abscontrol/%d/view/%d' % (int(profile_id), int(pattern_id)) No newline at end of file
309 newurl = '/abscontrol/%d/view/%d' % (int(profile_id), int(pattern_id))
309 No newline at end of file
310
310 return redirect(newurl) No newline at end of file
311 return redirect(newurl)
311 No newline at end of file
312
312 def viewPattern(request, profile_id, pattern_id): No newline at end of file
313 def viewPattern(request, profile_id, pattern_id):
313 No newline at end of file
314
314 profile_list = Profile.objects.filter(state=1) No newline at end of file
315 profile_list = Profile.objects.filter(state=1)
315 objProfile = Profile.objects.get(pk=profile_id) No newline at end of file
316 objProfile = Profile.objects.get(pk=profile_id)
316 No newline at end of file
317
317 patternChoosen = Pattern.objects.get(pk=pattern_id) No newline at end of file
318 patternChoosen = Pattern.objects.get(pk=pattern_id)
318 No newline at end of file
319
319 objAntennaUp = patternChoosen.antennaup_set.get() No newline at end of file
320 objAntennaUp = patternChoosen.antennaup_set.get()
320 objAntennaDown = patternChoosen.antennadown_set.get() No newline at end of file
321 objAntennaDown = patternChoosen.antennadown_set.get()
321 No newline at end of file
322
322 lsPatterns = objProfile.pattern_set.all() No newline at end of file
323 lsPatterns = objProfile.pattern_set.all()
323 No newline at end of file
324
324 return render_to_response('abscontrol/viewPattern.html', {'objProfile': objProfile, 'profile_list': profile_list, No newline at end of file
325 return render_to_response('abscontrol/viewPattern.html', {'objProfile': objProfile, 'profile_list': profile_list,
325 'patternChoosen' : patternChoosen, 'lsPatterns' : lsPatterns, No newline at end of file
326 'patternChoosen' : patternChoosen, 'lsPatterns' : lsPatterns,
326 'antennaUp' : objAntennaUp, 'antennaDown' : objAntennaDown, No newline at end of file
327 'antennaUp' : objAntennaUp, 'antennaDown' : objAntennaDown,
327 }, context_instance=RequestContext(request)) No newline at end of file
328 }, context_instance=RequestContext(request))
328 No newline at end of file
329
329 def deletePattern(request, profile_id, pattern_id): No newline at end of file
330 def deletePattern(request, profile_id, pattern_id):
330 newurl = '/abscontrol/edit/%d' % int(profile_id) No newline at end of file
331 newurl = '/abscontrol/edit/%d' % int(profile_id)
331 No newline at end of file
332
332 return redirect(newurl) No newline at end of file
333 return redirect(newurl)
333 No newline at end of file
334
334 def importProfile(request): No newline at end of file
335 def importProfile(request):
335 profile_list = Profile.objects.filter(state=1) No newline at end of file
336 profile_list = Profile.objects.filter(state=1)
336 return render_to_response('abscontrol/import.html', {'profile_list': profile_list,}, context_instance=RequestContext(request)) No newline at end of file
337 return render_to_response('abscontrol/import.html', {'profile_list': profile_list,}, context_instance=RequestContext(request))
337 No newline at end of file
338
338 def upload(request): No newline at end of file
339 def upload(request):
339 profile_list = Profile.objects.filter(state=1) No newline at end of file
340 profile_list = Profile.objects.filter(state=1)
340 if request.method == 'POST': No newline at end of file
341 if request.method == 'POST':
341 txtFilename = request.FILES['txtFile'] No newline at end of file
342 txtFilename = request.FILES['txtFile']
342 if txtFilename: No newline at end of file
343 if txtFilename:
343 destination = open('/tmp/'+txtFilename.name, 'wb+') No newline at end of file
344 destination = open('/tmp/'+txtFilename.name, 'wb+')
344 for chunk in txtFilename.chunks(): No newline at end of file
345 for chunk in txtFilename.chunks():
345 destination.write(chunk) No newline at end of file
346 destination.write(chunk)
346 destination.close() No newline at end of file
347 destination.close()
347 filename = '/tmp/'+txtFilename.name No newline at end of file
348 filename = '/tmp/'+txtFilename.name
348 readFile = readABSFile(filename) No newline at end of file
349 readFile = readABSFile(filename)
349 expName, num_patterns, patterns = readFile.getMetadata() No newline at end of file
350 expName, num_patterns, patterns = readFile.getMetadata()
350 No newline at end of file
351
351 if expName != "" and num_patterns > 0: No newline at end of file
352 if expName != "" and num_patterns > 0:
352 newprofile = Profile(name=expName) No newline at end of file
353 newprofile = Profile(name=expName)
353 newprofile.save() No newline at end of file
354 newprofile.save()
354 newprofile.state = 1 No newline at end of file
355 newprofile.state = 1
355 No newline at end of file
356
356 for element in patterns: No newline at end of file
357 for element in patterns:
357 newpattern = newprofile.pattern_set.create(value=element["number"]) No newline at end of file
358 newpattern = newprofile.pattern_set.create(value=element["number"])
358 newpattern.antennaup_set.create(value=element["up"]) No newline at end of file
359 newpattern.antennaup_set.create(value=element["up"])
359 newpattern.antennadown_set.create(value=element["down"]) No newline at end of file
360 newpattern.antennadown_set.create(value=element["down"])
360 No newline at end of file
361
361 newprofile.save() No newline at end of file
362 newprofile.save()
362 No newline at end of file
363
363 newurl = '/abscontrol/edit/%d' % int(newprofile.id) No newline at end of file
364 newurl = '/abscontrol/edit/%d' % int(newprofile.id)
364 return redirect(newurl) No newline at end of file
365 return redirect(newurl)
365 else: No newline at end of file
366 else:
366 txtError = "Experiment's name not found or the number of patterns is 0." No newline at end of file
367 txtError = "Experiment's name not found or the number of patterns is 0."
367 return render_to_response('abscontrol/error.html', {'profile_list': profile_list, No newline at end of file
368 return render_to_response('abscontrol/error.html', {'profile_list': profile_list,
368 'txtError' : txtError, }, No newline at end of file
369 'txtError' : txtError, },
369 context_instance=RequestContext(request)) No newline at end of file
370 context_instance=RequestContext(request))
370 else: No newline at end of file
371 else:
371 txtError = "No file." No newline at end of file
372 txtError = "No file."
372 No newline at end of file
373
373 return render_to_response('abscontrol/error.html', {'profile_list': profile_list, 'txtError' : txtError, }, No newline at end of file
374 return render_to_response('abscontrol/error.html', {'profile_list': profile_list, 'txtError' : txtError, },
374 context_instance=RequestContext(request)) No newline at end of file
375 context_instance=RequestContext(request))
375 No newline at end of file
376
376 def getImgfromOverJRO(profile_id, objAntenna): No newline at end of file
377 def getImgfromOverJRO(profile_id, objAntenna):
377 objProfile = Profile.objects.get(pk=profile_id) No newline at end of file
378 objProfile = Profile.objects.get(pk=profile_id)
378 exp_name = objProfile.name No newline at end of file
379 exp_name = objProfile.name
379 phase_tx = objAntenna.value No newline at end of file
380 phase_tx = objAntenna.value
380 gain_tx = objAntenna.tx No newline at end of file
381 gain_tx = objAntenna.tx
381 gain_rx = objAntenna.rx No newline at end of file
382 gain_rx = objAntenna.rx
382 ues_tx = objAntenna.ues No newline at end of file
383 ues_tx = objAntenna.ues
383 just_rx = objAntenna.only_rx No newline at end of file
384 just_rx = objAntenna.only_rx
384 No newline at end of file
385
385 overjro = OverJRO() No newline at end of file
386 overjro = OverJRO()
386 overjro.setParameters(settings.MEDIA_ROOT, exp_name, phase_tx, gain_tx, gain_rx, ues_tx, just_rx) No newline at end of file
387 overjro.setParameters(settings.MEDIA_ROOT, exp_name, phase_tx, gain_tx, gain_rx, ues_tx, just_rx)
387 contentFile = overjro.setTextContent() No newline at end of file
388 contentFile = overjro.setTextContent()
388 finalpath = overjro.saveFile(contentFile) No newline at end of file
389 finalpath = overjro.saveFile(contentFile)
389 No newline at end of file
390
390 currentdate = datetime.today() No newline at end of file
391 currentdate = datetime.today()
391 newOverJro = overJroShow() No newline at end of file
392 newOverJro = overJroShow()
392 newOverJro.setInputParameters(settings.MEDIA_ROOT, currentdate, finalpath) No newline at end of file
393 newOverJro.setInputParameters(settings.MEDIA_ROOT, currentdate, finalpath)
393 newOverJro.setupParameters() No newline at end of file
394 newOverJro.setupParameters()
394 newOverJro.execute() No newline at end of file
395 newOverJro.execute()
395 path = newOverJro.getPlot() No newline at end of file
396 path = newOverJro.getPlot()
396 No newline at end of file
397
397 return path No newline at end of file
398 return path
398 No newline at end of file
399
399 def overJROUp(request, profile_id, pattern_id, antenna_id): No newline at end of file
400 def overJROUp(request, profile_id, pattern_id, antenna_id):
400 objAntenna = AntennaUp.objects.get(pk=antenna_id) No newline at end of file
401 objAntenna = AntennaUp.objects.get(pk=antenna_id)
401 img_path = getImgfromOverJRO(profile_id, objAntenna) No newline at end of file
402 img_path = getImgfromOverJRO(profile_id, objAntenna)
402 filename = os.path.split(img_path)[1] No newline at end of file
403 filename = os.path.split(img_path)[1]
403 return render_to_response('abscontrol/overjro_up.html', {'img_up': filename,'antennaUp': objAntenna,}, No newline at end of file
404 return render_to_response('abscontrol/overjro_up.html', {'img_up': filename,'antennaUp': objAntenna,},
404 context_instance=RequestContext(request)) No newline at end of file
405 context_instance=RequestContext(request))
405 No newline at end of file
406
406 No newline at end of file
407 def overJRODown(request, profile_id, pattern_id, antenna_id):
407 def overJRODown(request, profile_id, pattern_id, antenna_id): No newline at end of file
408 objAntenna = AntennaDown.objects.get(pk=antenna_id)
408 objAntenna = AntennaDown.objects.get(pk=antenna_id) No newline at end of file
409 img_path = getImgfromOverJRO(profile_id, objAntenna)
409 img_path = getImgfromOverJRO(profile_id, objAntenna) No newline at end of file
410 filename = os.path.split(img_path)[1]
410 filename = os.path.split(img_path)[1] No newline at end of file
411 return render_to_response('abscontrol/overjro_down.html', {'img_down': filename, 'antennaDown': objAntenna,},
411 return render_to_response('abscontrol/overjro_down.html', {'img_down': filename, 'antennaDown': objAntenna,}, No newline at end of file
412 context_instance=RequestContext(request))
412 context_instance=RequestContext(request)) No newline at end of file
413
413 No newline at end of file
414 def export(request, profile_id):
414 def export(request, profile_id): No newline at end of file
415 listPatterns = []
415 listPatterns = [] No newline at end of file
416 objProfile = Profile.objects.get(pk=profile_id)
416 objProfile = Profile.objects.get(pk=profile_id) No newline at end of file
417 exp_name = objProfile.name
417 exp_name = objProfile.name No newline at end of file
418 lsPatterns = objProfile.pattern_set.all()
418 lsPatterns = objProfile.pattern_set.all() No newline at end of file
419 for element in lsPatterns:
419 for element in lsPatterns: No newline at end of file
420 objAntennaUp = element.antennaup_set.get()
420 objAntennaUp = element.antennaup_set.get() No newline at end of file
421 objAntennaDown = element.antennadown_set.get()
421 objAntennaDown = element.antennadown_set.get() No newline at end of file
422 dicPatterns = {"number" : element.value, "up" : objAntennaUp.value, "down" : objAntennaDown.value}
422 dicPatterns = {"number" : element.value, "up" : objAntennaUp.value, "down" : objAntennaDown.value} No newline at end of file
423 listPatterns.append(dicPatterns)
423 listPatterns.append(dicPatterns) No newline at end of file
424
424 No newline at end of file
425 absFile = saveABSFile()
425 absFile = saveABSFile() No newline at end of file
426 absFile.setParameters(settings.MEDIA_ROOT, exp_name, listPatterns)
426 absFile.setParameters(settings.MEDIA_ROOT, exp_name, listPatterns) No newline at end of file
427 filename, filesize = absFile.save()
427 filename, filesize = absFile.save() No newline at end of file
428
428 No newline at end of file
429 wrapper = FileWrapper( open( filename, "r" ) )
429 wrapper = FileWrapper( open( filename, "r" ) ) No newline at end of file
430 content_type = mimetypes.guess_type( filename )[0]
430 content_type = mimetypes.guess_type( filename )[0] No newline at end of file
431
431 No newline at end of file
432 response = HttpResponse(wrapper, content_type = content_type)
432 response = HttpResponse(wrapper, content_type = content_type) No newline at end of file
433 response['Content-Description'] = 'File Transfer'
433 response['Content-Description'] = 'File Transfer' No newline at end of file
434 response['Content-Disposition'] = 'attachment; filename=%s' % smart_str(filename)
434 response['Content-Disposition'] = 'attachment; filename=%s' % smart_str(filename) No newline at end of file
435 response['Content-Transfer-Encoding'] = 'binary'
435 response['Content-Transfer-Encoding'] = 'binary' No newline at end of file
436 response['Expires'] = '0'
436 response['Expires'] = '0' No newline at end of file
437 response['Cache-Control'] = 'must-revalidate'
437 response['Cache-Control'] = 'must-revalidate' No newline at end of file
438 response['Pragma'] = 'public'
438 response['Pragma'] = 'public' No newline at end of file
439 response['Content-Length'] = '%s' % str(filesize)
439 response['Content-Length'] = '%s' % str(filesize) No newline at end of file
440 response['X-Sendfile'] = '%s' % smart_str(filename)
440 response['X-Sendfile'] = '%s' % smart_str(filename) No newline at end of file
441
441 No newline at end of file
442 return response
442 return response No newline at end of file
443
443 No newline at end of file
444 def send(request, profile_id):
444 def send(request, profile_id): No newline at end of file
445 listPatterns = []
445 listPatterns = [] No newline at end of file
446 objProfile = Profile.objects.get(pk=profile_id)
446 objProfile = Profile.objects.get(pk=profile_id) No newline at end of file
447 exp_name = objProfile.name
447 exp_name = objProfile.name No newline at end of file
448
448 No newline at end of file
449 lsPatterns = objProfile.pattern_set.all()
449 lsPatterns = objProfile.pattern_set.all() No newline at end of file
450 for element in lsPatterns:
450 for element in lsPatterns: No newline at end of file
451 objAntennaUp = element.antennaup_set.get()
451 objAntennaUp = element.antennaup_set.get() No newline at end of file
452 objAntennaDown = element.antennadown_set.get()
452 objAntennaDown = element.antennadown_set.get() No newline at end of file
453 dicPatterns = {"number" : element.value, "up" : objAntennaUp.value, "down" : objAntennaDown.value}
453 dicPatterns = {"number" : element.value, "up" : objAntennaUp.value, "down" : objAntennaDown.value} No newline at end of file
454 listPatterns.append(dicPatterns)
454 listPatterns.append(dicPatterns) No newline at end of file
455
455 No newline at end of file
456 absFile = saveABSFile()
456 absFile = saveABSFile() No newline at end of file
457 absFile.setParameters(settings.MEDIA_ROOT, exp_name, listPatterns)
457 absFile.setParameters(settings.MEDIA_ROOT, exp_name, listPatterns) No newline at end of file
458 filename, filesize = absFile.save()
458 filename, filesize = absFile.save() No newline at end of file
459
459 No newline at end of file
460 apiclient = sendFile()
460 apiclient = sendFile() No newline at end of file
461 apiclient.execute(filename)
461 apiclient.execute(filename) No newline at end of file
462 output = apiclient.getOutput()
462 output = apiclient.getOutput() No newline at end of file
463
463 No newline at end of file
464 if output == "OK":
464 if output == "OK": No newline at end of file
465 message = "File sent successfully."
465 message = "File sent successfully." No newline at end of file
466 lsProfilesActive = Profile.objects.filter(is_active=1)
467 if len(lsProfilesActive) > 0:
No newline at end of file
468 objProfileActive = Profile.objects.get(is_active=1)
No newline at end of file
469 objProfileActive.is_active = 0
No newline at end of file
470 objProfileActive.save()
No newline at end of file
471
No newline at end of file
472 objProfile.hits += 1 No newline at end of file
466 objProfile.hits += 1 No newline at end of file
473 objProfile.is_active = 1
474 objProfile.save() No newline at end of file
467 objProfile.save() No newline at end of file
475
476 pattern_value = 1
No newline at end of file
477 patternChoosen = objProfile.pattern_set.get(value=pattern_value)
No newline at end of file
478 patternChoosen.is_active = 1
No newline at end of file
479 patternChoosen.save()
No newline at end of file
480
No newline at end of file
481 newurl = '/abscontrol/view/%d' % int(profile_id)
No newline at end of file
482
No newline at end of file
483 return redirect(newurl)
No newline at end of file
484 else: No newline at end of file
468 else: No newline at end of file
485 message = "Error sending file."
469 message = "Error sending file." No newline at end of file
486
470 No newline at end of file
487 profile_list = Profile.objects.all()
471 profile_list = Profile.objects.all() No newline at end of file
488
472 No newline at end of file
489 return render_to_response('abscontrol/sendFile.html', {'message': message, "profile_list" : profile_list,
473 return render_to_response('abscontrol/sendFile.html', {'message': message, "profile_list" : profile_list, No newline at end of file
490 'objProfile': objProfile,
474 'objProfile': objProfile, No newline at end of file
491 }, context_instance=RequestContext(request))
475 }, context_instance=RequestContext(request)) No newline at end of file
492
493 def changePattern(request, profile_id, pattern_id):
No newline at end of file
494 patternChoosen = Pattern.objects.get(id=pattern_id)
No newline at end of file
495 beam = int(patternChoosen.value)-1
No newline at end of file
496
No newline at end of file
497 apiclient = changeBeam()
No newline at end of file
498 apiclient.execute(str(beam))
No newline at end of file
499 output = apiclient.getOutput()
No newline at end of file
500
No newline at end of file
501 if output == "OK":
No newline at end of file
502 lsPatternsActive = Pattern.objects.filter(is_active=1)
No newline at end of file
503 if len(lsPatternsActive) > 0:
No newline at end of file
504 objPatternActive = Pattern.objects.get(is_active=1)
No newline at end of file
505 objPatternActive.is_active = 0
No newline at end of file
506 objPatternActive.save()
No newline at end of file
507
No newline at end of file
508 patternChoosen.hits += 1
No newline at end of file
509 patternChoosen.is_active = 1
No newline at end of file
510 patternChoosen.save()
No newline at end of file
511
No newline at end of file
512 newurl = '/abscontrol/%d/view/%d/' % (int(profile_id), int(pattern_id))
No newline at end of file
513 return redirect(newurl)
No newline at end of file
514 else:
No newline at end of file
515 message = "Error sending file."
No newline at end of file
516 profile_list = Profile.objects.all()
No newline at end of file
517 return render_to_response('abscontrol/sendFile.html', {'message': message, "profile_list" : profile_list,
No newline at end of file
518 }, context_instance=RequestContext(request))
No newline at end of file
519 No newline at end of file
@@ -1,6 +1,9
1 Django==1.4.3
1 Django==1.4.3
No newline at end of file
2 MySQL-python==1.2.4
2 MySQL-python==1.2.3 No newline at end of file
No newline at end of file
3 South==0.8.1 No newline at end of file
3 argparse==1.2.1 No newline at end of file
4 argparse==1.2.1
5 matplotlib==1.2.1 No newline at end of file
4 numpy==1.7.1 No newline at end of file
6 numpy==1.7.1
7 scipy==0.12.0 No newline at end of file
5 wsgiref==0.1.2 No newline at end of file
8 wsgiref==0.1.2
6 yolk==0.4.3 No newline at end of file
9 yolk==0.4.3
@@ -1,664 +1,668
1 /* No newline at end of file
1 /*
2 * font-family: 'Droid Sans', sans-serif; No newline at end of file
2 * font-family: 'Droid Sans', sans-serif;
3 * font-family: 'Ubuntu', sans-serif; No newline at end of file
3 * font-family: 'Ubuntu', sans-serif;
4 * font-family: 'Open Sans', sans-serif; No newline at end of file
4 * font-family: 'Open Sans', sans-serif;
5 * font-family: 'Open Sans Condensed', sans-serif; No newline at end of file
5 * font-family: 'Open Sans Condensed', sans-serif;
6 * font-family: 'Roboto Condensed', sans-serif; No newline at end of file
6 * font-family: 'Roboto Condensed', sans-serif;
7 */ No newline at end of file
7 */
8 No newline at end of file
8
9 body { No newline at end of file
9 body {
10 padding: 0; No newline at end of file
10 padding: 0;
11 margin: 0; No newline at end of file
11 margin: 0;
12 font-size: 12px; } No newline at end of file
12 font-size: 12px; }
13 No newline at end of file
13
14 header { No newline at end of file
14 header {
15 width: 980px; No newline at end of file
15 width: 980px;
16 height: 50px; No newline at end of file
16 height: 50px;
17 text-align: center; No newline at end of file
17 text-align: center;
18 line-height: 50px; No newline at end of file
18 line-height: 50px;
19 border: 0px solid #fcc !important; } No newline at end of file
19 border: 0px solid #fcc !important; }
20 No newline at end of file
20
21 #schema { No newline at end of file
21 #schema {
22 margin: 0 auto; No newline at end of file
22 margin: 0 auto;
23 width: 980px; No newline at end of file
23 width: 980px;
24 padding: 10px 10px; No newline at end of file
24 padding: 10px 10px;
25 border: 0px solid #f00 !important; } No newline at end of file
25 border: 0px solid #f00 !important; }
26 No newline at end of file
26
27 #content { No newline at end of file
27 #content {
28 margin: 5px 0px; No newline at end of file
28 margin: 5px 0px;
29 border: 0px solid #1cc; } No newline at end of file
29 border: 0px solid #1cc; }
30 No newline at end of file
30
31 #topcolumn { No newline at end of file
31 #topcolumn {
32 float: left; No newline at end of file
32 float: left;
33 width: 980px; No newline at end of file
33 width: 980px;
34 height: 40px; No newline at end of file
34 height: 40px;
35 line-height: 35px; No newline at end of file
35 line-height: 35px;
36 margin: 2px 0px; No newline at end of file
36 margin: 2px 0px;
37 border: 1px solid #ddd !important; No newline at end of file
37 border: 1px solid #ddd !important;
38 box-shadow: 2px 2px 5px #888; } No newline at end of file
38 box-shadow: 2px 2px 5px #888; }
39 No newline at end of file
39
40 #maincolumn { No newline at end of file
40 #maincolumn {
41 float: left; No newline at end of file
41 float: left;
42 width: 980px; No newline at end of file
42 width: 980px;
43 margin: 2px 0px; No newline at end of file
43 margin: 2px 0px;
44 padding: 0px 0px; No newline at end of file
44 padding: 0px 0px;
45 border: 1px solid #ddd !important; No newline at end of file
45 border: 1px solid #ddd !important;
46 box-shadow: 2px 2px 5px #666; } No newline at end of file
46 box-shadow: 2px 2px 5px #666; }
47 No newline at end of file
47
48 footer { No newline at end of file
48 footer {
49 height: 30px; No newline at end of file
49 height: 30px;
50 line-height: 30px; No newline at end of file
50 line-height: 30px;
51 text-align: center; No newline at end of file
51 text-align: center;
52 margin: 0px 0px; No newline at end of file
52 margin: 0px 0px;
53 border: 0px solid #200 !important; No newline at end of file
53 border: 0px solid #200 !important;
54 box-shadow: 2px 2px 5px #888; } No newline at end of file
54 box-shadow: 2px 2px 5px #888; }
55 No newline at end of file
55
56 .cleardivs { No newline at end of file
56 .cleardivs {
57 clear: both; No newline at end of file
57 clear: both;
58 border: 0px solid #400; No newline at end of file
58 border: 0px solid #400;
59 height: 0px; } No newline at end of file
59 height: 0px; }
60 No newline at end of file
60
61 textarea { No newline at end of file
61 textarea {
62 resize: none; No newline at end of file
62 resize: none;
63 overflow: hidden; } No newline at end of file
63 overflow: hidden; }
64 No newline at end of file
64
65 /****************************************************************************************/ No newline at end of file
65 /****************************************************************************************/
66 /****** ESTILOS GENERALES *****************/ No newline at end of file
66 /****** ESTILOS GENERALES *****************/
67 /****************************************************************************************/ No newline at end of file
67 /****************************************************************************************/
68 a { No newline at end of file
68 a {
69 font-family: 'Droid Sans', sans-serif; No newline at end of file
69 font-family: 'Droid Sans', sans-serif;
70 text-decoration: none; No newline at end of file
70 text-decoration: none;
71 color: #1494F6; } No newline at end of file
71 color: #1494F6; }
72 No newline at end of file
72
73 .mnu { No newline at end of file
73 .mnu {
74 height: 22px; No newline at end of file
74 height: 22px;
75 border: 0px solid #c55 !important; } No newline at end of file
75 border: 0px solid #c55 !important; }
76 No newline at end of file
76
77 .mnu li { No newline at end of file
77 .mnu li {
78 display:inline; } No newline at end of file
78 display:inline; }
79 No newline at end of file
79
80 .MnuVertical, .MnuHorizontal { No newline at end of file
80 .MnuVertical, .MnuHorizontal {
81 font-family: 'Droid Sans', sans-serif; No newline at end of file
81 font-family: 'Droid Sans', sans-serif;
82 font-size: inherit; No newline at end of file
82 font-size: inherit;
83 font-style: normal; No newline at end of file
83 font-style: normal;
84 text-shadow: 2px 2px #eee; } No newline at end of file
84 text-shadow: 2px 2px #eee; }
85 No newline at end of file
85
86 .MnuHorizontal ul { No newline at end of file
86 .MnuHorizontal ul {
87 list-style: none; No newline at end of file
87 list-style: none;
88 list-style-type: none; No newline at end of file
88 list-style-type: none;
89 margin: 0; } No newline at end of file
89 margin: 0; }
90 No newline at end of file
90
91 /*.MnuHorizontal{ No newline at end of file
91 /*.MnuHorizontal{
92 display: -webkit-box; No newline at end of file
92 display: -webkit-box;
93 -webkit-box-orient:horizontal; } No newline at end of file
93 -webkit-box-orient:horizontal; }
94 No newline at end of file
94
95 .MnuHorizontal a{ No newline at end of file
95 .MnuHorizontal a{
96 display:block; No newline at end of file
96 display:block;
97 padding:10px; No newline at end of file
97 padding:10px;
98 -webkit-box-flex:1; No newline at end of file
98 -webkit-box-flex:1;
99 text-align:center; }*/ No newline at end of file
99 text-align:center; }*/
100 No newline at end of file
100
101 .link-disabled { No newline at end of file
101 .link-disabled {
102 color: #666; No newline at end of file
102 color: #666;
103 text-decoration: None; No newline at end of file
103 text-decoration: None;
104 cursor: default; } No newline at end of file
104 cursor: default; }
105 No newline at end of file
105
106 /****************************************************************************************/ No newline at end of file
106 /****************************************************************************************/
107 /****** MENU DE NAVEGACION DE PERFILES *************/ No newline at end of file
107 /****** MENU DE NAVEGACION DE PERFILES *************/
108 /****************************************************************************************/ No newline at end of file
108 /****************************************************************************************/
109 #infoProfiles { No newline at end of file
109 #infoProfiles {
110 float: left; No newline at end of file
110 float: left;
111 width: 300px; No newline at end of file
111 width: 300px;
112 margin: 0px; No newline at end of file
112 margin: 0px;
113 padding: 2px 0px; No newline at end of file
113 padding: 2px 0px;
114 border: 0px solid #1cc !important; } No newline at end of file
114 border: 0px solid #1cc !important; }
115 No newline at end of file
115
116 #infoProfiles label { No newline at end of file
116 #infoProfiles label {
117 padding: 10px 10px 10px 12px; No newline at end of file
117 padding: 10px 10px 10px 12px;
118 margin: 10px 0; No newline at end of file
118 margin: 10px 0;
119 font-family: 'Droid Sans', sans-serif; No newline at end of file
119 font-family: 'Droid Sans', sans-serif;
120 /*font-family: 'Roboto Condensed', sans-serif;*/ No newline at end of file
120 /*font-family: 'Roboto Condensed', sans-serif;*/
121 /*letter-spacing: 0.046em;*/ } No newline at end of file
121 /*letter-spacing: 0.046em;*/ }
122 No newline at end of file
122
123 #infoProfiles select { No newline at end of file
123 #infoProfiles select {
124 padding: 4px 0px; margin: 0; No newline at end of file
124 padding: 4px 0px; margin: 0;
125 font-family: 'Droid Sans', sans-serif; No newline at end of file
125 font-family: 'Droid Sans', sans-serif;
126 font-size: 12px; No newline at end of file
126 font-size: 12px;
127 letter-spacing: 0.006; No newline at end of file
127 letter-spacing: 0.006;
128 width: 200px; } No newline at end of file
128 width: 200px; }
129 No newline at end of file
129
130 #mnuProfiles { No newline at end of file
130 #mnuProfiles {
131 margin: 0; No newline at end of file
131 margin: 0;
132 float: right; No newline at end of file
132 float: right;
133 padding: 2px 10px; No newline at end of file
133 padding: 2px 10px;
134 border: 0px solid #1494F6 !important; } No newline at end of file
134 border: 0px solid #1494F6 !important; }
135 No newline at end of file
135
136 #mnuProfiles ul { No newline at end of file
136 #mnuProfiles ul {
137 list-style: none; No newline at end of file
137 list-style: none;
138 list-style-type: none; No newline at end of file
138 list-style-type: none;
139 margin: 0; No newline at end of file
139 margin: 0;
140 padding-left: 20px; No newline at end of file
140 padding-left: 20px;
141 border: 0px solid #f00 !important; } No newline at end of file
141 border: 0px solid #f00 !important; }
142 No newline at end of file
142
143 #mnuProfiles li { No newline at end of file
143 #mnuProfiles li {
144 width: 80px; No newline at end of file
144 width: 80px;
145 float: left; No newline at end of file
145 float: left;
146 padding: 2px; No newline at end of file
146 padding: 2px;
147 border: 0px solid #c55 !important; } No newline at end of file
147 border: 0px solid #c55 !important; }
148 No newline at end of file
148
149 #mnuProfiles a { No newline at end of file
149 #mnuProfiles a {
150 font-weight: normal; No newline at end of file
150 font-weight: normal;
151 color: #1494F6; No newline at end of file
151 color: #1494F6;
152 display: block; No newline at end of file
152 display: block;
153 text-align: center; No newline at end of file
153 text-align: center;
154 border-bottom: 1px solid #1494F6 !important; No newline at end of file
154 border-bottom: 1px solid #1494F6 !important;
155 text-decoration: none; No newline at end of file
155 text-decoration: none;
156 padding: 0px 4px; No newline at end of file
156 padding: 0px 4px;
157 line-height: 18px; No newline at end of file
157 line-height: 18px;
158 margin: 6px; } No newline at end of file
158 margin: 6px; }
159 No newline at end of file
159
160 /****************************************************************************************/ No newline at end of file
160 /****************************************************************************************/
161 /******** FORMULARIO DE PERFILES *************************************/ No newline at end of file
161 /******** FORMULARIO DE PERFILES *************************************/
162 /****************************************************************************************/ No newline at end of file
162 /****************************************************************************************/
163 #divProfile { No newline at end of file
163 #divProfile {
164 margin: 10px 0px; No newline at end of file
164 margin: 10px 0px;
165 padding: 10px 10px; No newline at end of file
165 padding: 10px 10px;
166 width: 500px; No newline at end of file
166 width: 500px;
167 border: 0px solid #dff !important; } No newline at end of file
167 border: 0px solid #dff !important; }
168 No newline at end of file
168
169 #divProfile label,input[type=text],input[type=file] { No newline at end of file
169 #divProfile label,input[type=text],input[type=file] {
170 font-family: 'Open Sans', sans-serif; No newline at end of file
170 font-family: 'Open Sans', sans-serif;
171 /*font-family: 'Roboto Condensed', sans-serif;*/ No newline at end of file
171 /*font-family: 'Roboto Condensed', sans-serif;*/
172 font-size: inherit; } No newline at end of file
172 font-size: inherit; }
173 No newline at end of file
173
174 #divPattern textarea,input[type=text],label,input[type=file],input[type=button],input[type=submit] { No newline at end of file
174 #divPattern textarea,input[type=text],label,input[type=file],input[type=button],input[type=submit] {
175 font-family: 'Roboto Condensed', sans-serif; No newline at end of file
175 font-family: 'Roboto Condensed', sans-serif;
176 font-size: inherit; } No newline at end of file
176 font-size: inherit; }
177 No newline at end of file
177
178 .antenna, .NewAntenna { No newline at end of file
178 .antenna, .NewAntenna {
179 box-shadow: 1px 1px 2px #666; No newline at end of file
179 box-shadow: 1px 1px 2px #666;
180 padding: 5px; No newline at end of file
180 padding: 5px;
181 margin: 10px auto; No newline at end of file
181 margin: 10px auto;
182 display: block; No newline at end of file
182 display: block;
183 border: 0px solid #fee !important; } No newline at end of file
183 border: 0px solid #fee !important; }
184 No newline at end of file
184
185 .antenna { No newline at end of file
185 .antenna {
186 width: 520px; } No newline at end of file
186 width: 520px; }
187 No newline at end of file
187
188 .NewAntenna { No newline at end of file
188 .NewAntenna {
189 width: 750px; No newline at end of file
189 width: 750px;
190 border: 0px solid #f00 !important; } No newline at end of file
190 border: 0px solid #f00 !important; }
191 No newline at end of file
191
192 .flsAntenna, .NewFlsAntenna { No newline at end of file
192 .flsAntenna, .NewFlsAntenna {
193 margin: 0; No newline at end of file
193 margin: 0;
194 padding: 0px; No newline at end of file
194 padding: 0px;
195 border: 1px solid #fee !important; } No newline at end of file
195 border: 1px solid #fee !important; }
196 No newline at end of file
196
197 .flsAntenna { No newline at end of file
197 .flsAntenna {
198 width: 510px; } No newline at end of file
198 width: 510px; }
199 No newline at end of file
199
200 .NewFlsAntenna { No newline at end of file
200 .NewFlsAntenna {
201 width: 100%; } No newline at end of file
201 width: 100%; }
202 No newline at end of file
202
203 .legendAntenna { No newline at end of file
203 .legendAntenna {
204 font-family: 'Roboto Condensed', sans-serif; No newline at end of file
204 font-family: 'Roboto Condensed', sans-serif;
205 font-size: inherit; No newline at end of file
205 font-size: inherit;
206 text-align: left; No newline at end of file
206 text-align: left;
207 margin-left: 10px; } No newline at end of file
207 margin-left: 10px; }
208 No newline at end of file
208
209 .infoAntenna { No newline at end of file
209 .infoAntenna {
210 width: 500px; No newline at end of file
210 width: 500px;
211 float: left; No newline at end of file
211 float: left;
212 border: 0px solid #f00 !important; } No newline at end of file
212 border: 0px solid #f00 !important; }
213 No newline at end of file
213
214 .overJRO { No newline at end of file
214 .overJRO {
215 width: 250px; No newline at end of file
215 width: 250px;
216 float: left; No newline at end of file
216 float: left;
217 margin: 0px 5px; No newline at end of file
217 margin: 0px 5px;
218 border: 0px solid #1cc !important; } No newline at end of file
218 border: 0px solid #1cc !important; }
219 No newline at end of file
219
220 .divAntenna, .NewDivAntenna, .NewDivTx { No newline at end of file
220 .divAntenna, .NewDivAntenna, .NewDivTx {
221 float: left; No newline at end of file
221 float: left;
222 margin: 10px; No newline at end of file
222 margin: 10px;
223 border: 0px solid #fcc !important; } No newline at end of file
223 border: 0px solid #fcc !important; }
224 No newline at end of file
224
225 .divAntenna { No newline at end of file
225 .divAntenna {
226 width: 220px; No newline at end of file
226 width: 220px;
227 border: 0px solid #fcc !important; } No newline at end of file
227 border: 0px solid #fcc !important; }
228 No newline at end of file
228
229 .NewDivAntenna { No newline at end of file
229 .NewDivAntenna {
230 border: 0px solid #fcc !important; } No newline at end of file
230 border: 0px solid #fcc !important; }
231 No newline at end of file
231
232 .NewDivTx { No newline at end of file
232 .NewDivTx {
233 border: 0px solid #fcc !important; } No newline at end of file
233 border: 0px solid #fcc !important; }
234 No newline at end of file
234
235 .titleField { No newline at end of file
235 .titleField {
236 display: block; No newline at end of file
236 display: block;
237 text-align: center; No newline at end of file
237 text-align: center;
238 font-family: 'Roboto Condensed', sans-serif; No newline at end of file
238 font-family: 'Roboto Condensed', sans-serif;
239 letter-spacing: 0.086em; } No newline at end of file
239 letter-spacing: 0.086em; }
240 No newline at end of file
240
241 .txtAntenna, .view-textAntenna { No newline at end of file
241 .txtAntenna, .view-textAntenna {
242 width: 175px; No newline at end of file
242 width: 175px;
243 max-width: 180px; No newline at end of file
243 max-width: 180px;
244 height: 160px; No newline at end of file
244 height: 160px;
245 max-height: 165px; No newline at end of file
245 max-height: 165px;
246 background: #fdfdfb; No newline at end of file
246 background: #fdfdfb;
247 border: 2px solid #eee !important; No newline at end of file
247 border: 2px solid #eee !important;
248 text-align: justify; No newline at end of file
248 text-align: justify;
249 margin: 0 auto; No newline at end of file
249 margin: 0 auto;
250 line-height: 20px; } No newline at end of file
250 line-height: 20px; }
251 No newline at end of file
251
252 .txtAntenna { No newline at end of file
252 .txtAntenna {
253 padding: 4px; No newline at end of file
253 padding: 4px;
254 } No newline at end of file
254 }
255 No newline at end of file
255
256 .view-textAntenna { No newline at end of file
256 .view-textAntenna {
257 padding: 2px; No newline at end of file
257 padding: 2px;
258 font-family: "Ubuntu"; No newline at end of file
258 font-family: "Ubuntu";
259 font-size: inherit; } No newline at end of file
259 font-size: inherit; }
260 No newline at end of file
260
261 .boxAntenna, .boxTR { No newline at end of file
261 .boxAntenna, .boxTR {
262 border: 2px solid #eee !important; No newline at end of file
262 border: 2px solid #eee !important;
263 text-align: center; No newline at end of file
263 text-align: center;
264 display: block; No newline at end of file
264 display: block;
265 float: left; No newline at end of file
265 float: left;
266 margin: 0; No newline at end of file
266 margin: 0;
267 padding: 0; } No newline at end of file
267 padding: 0; }
268 No newline at end of file
268
269 .boxAntenna { No newline at end of file
269 .boxAntenna {
270 padding: 3px; } No newline at end of file
270 padding: 3px; }
271 No newline at end of file
271
272 .boxTR { No newline at end of file
272 .boxTR {
273 padding: 3px; } No newline at end of file
273 padding: 3px; }
274 No newline at end of file
274
275 .fullLine{ No newline at end of file
275 .fullLine{
276 font-size: 0.95em; } No newline at end of file
276 font-size: 0.95em; }
277 No newline at end of file
277
278 .lineInputs, .lineInputsTx { No newline at end of file
278 .lineInputs, .lineInputsTx {
279 text-align: left; No newline at end of file
279 text-align: left;
280 line-height: 1.4em; No newline at end of file
280 line-height: 1.4em;
281 padding: 0; No newline at end of file
281 padding: 0;
282 margin: 0px; No newline at end of file
282 margin: 0px;
283 display: block; No newline at end of file
283 display: block;
284 float: left; No newline at end of file
284 float: left;
285 border: 0px solid #1cc !important; } No newline at end of file
285 border: 0px solid #1cc !important; }
286 No newline at end of file
286
287 .lineInputs { No newline at end of file
287 .lineInputs {
288 /*width: 240px;*/ No newline at end of file
288 /*width: 240px;*/
289 border: 0px solid #1cc !important; } No newline at end of file
289 border: 0px solid #1cc !important; }
290 No newline at end of file
290
291 .lineInputsTx { No newline at end of file
291 .lineInputsTx {
292 /*width: 185px;*/ No newline at end of file
292 /*width: 185px;*/
293 border: 0px solid #1cc !important; } No newline at end of file
293 border: 0px solid #1cc !important; }
294 No newline at end of file
294
295 .divValuesAntenna, .divValuesTx { No newline at end of file
295 .divValuesAntenna, .divValuesTx {
296 float: left; No newline at end of file
296 float: left;
297 display: block; No newline at end of file
297 display: block;
298 margin: 0 auto; No newline at end of file
298 margin: 0 auto;
299 border: 0px solid #bbb !important; } No newline at end of file
299 border: 0px solid #bbb !important; }
300 No newline at end of file
300
301 .divValuesAntenna { No newline at end of file
301 .divValuesAntenna {
302 /*width: 230px;*/ No newline at end of file
302 /*width: 230px;*/
303 border: 0px solid #2eb !important; } No newline at end of file
303 border: 0px solid #2eb !important; }
304 No newline at end of file
304
305 .divValuesTx { No newline at end of file
305 .divValuesTx {
306 /*width: 175px;*/ No newline at end of file
306 /*width: 175px;*/
307 border: 0px solid #bbb !important; } No newline at end of file
307 border: 0px solid #bbb !important; }
308 No newline at end of file
308
309 .divValuesAntenna input[type=text], .divValuesTx input[type=text] { No newline at end of file
309 .divValuesAntenna input[type=text], .divValuesTx input[type=text] {
310 border: 0px; No newline at end of file
310 border: 0px;
311 border-bottom: 1px solid #666 !important; No newline at end of file
311 border-bottom: 1px solid #666 !important;
312 line-height: 1.1em; No newline at end of file
312 line-height: 1.1em;
313 font-family: 'Roboto Condensed', sans-serif; } No newline at end of file
313 font-family: 'Roboto Condensed', sans-serif; }
314 No newline at end of file
314
315 .divValuesAntenna input[type=text] { No newline at end of file
315 .divValuesAntenna input[type=text] {
316 width: 18px; } No newline at end of file
316 width: 18px; }
317 No newline at end of file
317
318 .divValuesTx input[type=text]{ No newline at end of file
318 .divValuesTx input[type=text]{
319 width: 11px; } No newline at end of file
319 width: 11px; }
320 No newline at end of file
320
321 .lblSign, .lblSignTx { No newline at end of file
321 .lblSign, .lblSignTx {
322 font-family: 'Roboto Condensed', sans-serif; No newline at end of file
322 font-family: 'Roboto Condensed', sans-serif;
323 color: #666; No newline at end of file
323 color: #666;
324 float: left; No newline at end of file
324 float: left;
325 margin: 0px; No newline at end of file
325 margin: 0px;
326 border: 0px solid #bbb !important; } No newline at end of file
326 border: 0px solid #bbb !important; }
327 No newline at end of file
327
328 .lblSignLeft { No newline at end of file
328 .lblSignLeft {
329 font-family: 'Roboto Condensed', sans-serif; No newline at end of file
329 font-family: 'Roboto Condensed', sans-serif;
330 color: #666; No newline at end of file
330 color: #666;
331 float: left; No newline at end of file
331 float: left;
332 margin: 0px 2px 0px 0px; No newline at end of file
332 margin: 0px 2px 0px 0px;
333 padding: 0; No newline at end of file
333 padding: 0;
334 border: 0px solid #f00 !important; } No newline at end of file
334 border: 0px solid #f00 !important; }
335 No newline at end of file
335
336 .lblSignRight { No newline at end of file
336 .lblSignRight {
337 font-family: 'Roboto Condensed', sans-serif; No newline at end of file
337 font-family: 'Roboto Condensed', sans-serif;
338 color: #666; No newline at end of file
338 color: #666;
339 float: left; No newline at end of file
339 float: left;
340 margin: 0; No newline at end of file
340 margin: 0;
341 padding: 0; No newline at end of file
341 padding: 0;
342 border: 0px solid #f00 !important; } No newline at end of file
342 border: 0px solid #f00 !important; }
343 No newline at end of file
343
344 .lblNewSignLeft, .lblNewSignRight { No newline at end of file
344 .lblNewSignLeft, .lblNewSignRight {
345 font-family: 'Roboto Condensed', sans-serif; No newline at end of file
345 font-family: 'Roboto Condensed', sans-serif;
346 color: #666; No newline at end of file
346 color: #666;
347 float: left; No newline at end of file
347 float: left;
348 padding: 0; } No newline at end of file
348 padding: 0; }
349 No newline at end of file
349
350 .lblNewSignLeft { No newline at end of file
350 .lblNewSignLeft {
351 margin: 0px 2px 0px 0px; No newline at end of file
351 margin: 0px 2px 0px 0px;
352 border: 0px solid #f00 !important; } No newline at end of file
352 border: 0px solid #f00 !important; }
353 No newline at end of file
353
354 .lblNewSignRight { No newline at end of file
354 .lblNewSignRight {
355 margin: 0; No newline at end of file
355 margin: 0;
356 border: 0px solid #f00 !important; } No newline at end of file
356 border: 0px solid #f00 !important; }
357 No newline at end of file
357
358 .divTx { No newline at end of file
358 .divTx {
359 display: block; No newline at end of file
359 display: block;
360 float: left; No newline at end of file
360 float: left;
361 margin: 10px; No newline at end of file
361 margin: 10px;
362 border: 0px solid #f00 !important; } No newline at end of file
362 border: 0px solid #f00 !important; }
363 No newline at end of file
363
364 .divTx label { No newline at end of file
364 .divTx label {
365 display: block; } No newline at end of file
365 display: block; }
366 No newline at end of file
366
367 .divTx textarea { No newline at end of file
367 .divTx textarea {
368 width: 100px; No newline at end of file
368 width: 100px;
369 max-width: 100px; No newline at end of file
369 max-width: 100px;
370 height: 160px; No newline at end of file
370 height: 160px;
371 max-height: 165px; No newline at end of file
371 max-height: 165px;
372 text-align: justify; No newline at end of file
372 text-align: justify;
373 border: 2px solid #eee !important; No newline at end of file
373 border: 2px solid #eee !important;
374 font-family: "Ubuntu"; No newline at end of file
374 font-family: "Ubuntu";
375 font-size: inherit; No newline at end of file
375 font-size: inherit;
376 line-height: 20px; } No newline at end of file
376 line-height: 20px; }
377 No newline at end of file
377
378 .divTx p { No newline at end of file
378 .divTx p {
379 width: 100px; No newline at end of file
379 width: 100px;
380 max-width: 105px; No newline at end of file
380 max-width: 105px;
381 height: 160px; No newline at end of file
381 height: 160px;
382 max-height: 165px; No newline at end of file
382 max-height: 165px;
383 background: #fdfdfb; No newline at end of file
383 background: #fdfdfb;
384 padding: 2px; No newline at end of file
384 padding: 2px;
385 border: 1px solid #eee !important; No newline at end of file
385 border: 1px solid #eee !important;
386 font-family: 'Ubuntu', sans-serif; No newline at end of file
386 font-family: 'Ubuntu', sans-serif;
387 font-size: inherit; No newline at end of file
387 font-size: inherit;
388 text-align: justify; No newline at end of file
388 text-align: justify;
389 margin: 0 auto; No newline at end of file
389 margin: 0 auto;
390 line-height: 20px; } No newline at end of file
390 line-height: 20px; }
391 No newline at end of file
391
392 .divUes { No newline at end of file
392 .divUes {
393 display: block; No newline at end of file
393 display: block;
394 margin: 10px; } No newline at end of file
394 margin: 10px; }
395 No newline at end of file
395
396 .divUes input[type=text] { No newline at end of file
396 .divUes input[type=text] {
397 width: 240px; No newline at end of file
397 width: 240px;
398 max-width: 240px; No newline at end of file
398 max-width: 240px;
399 font-family: 'Ubuntu', sans-serif; No newline at end of file
399 font-family: 'Ubuntu', sans-serif;
400 font-size: inherit; } No newline at end of file
400 font-size: inherit; }
401 No newline at end of file
401
402 .divNewUes { No newline at end of file
402 .divNewUes {
403 width: 350px; No newline at end of file
403 width: 350px;
404 display: block; No newline at end of file
404 display: block;
405 margin: 0px 10px; No newline at end of file
405 margin: 0px 10px;
406 padding: 0; No newline at end of file
406 padding: 0;
407 font-family: 'Roboto Condensed', sans-serif; No newline at end of file
407 font-family: 'Roboto Condensed', sans-serif;
408 /*overflow: hidden;*/ No newline at end of file
408 /*overflow: hidden;*/
409 border: 0px solid #f00 !important; } No newline at end of file
409 border: 0px solid #f00 !important; }
410 No newline at end of file
410
411 .titleUes { No newline at end of file
411 .titleUes {
412 width: 35px; No newline at end of file
412 width: 35px;
413 text-align: right; No newline at end of file
413 text-align: right;
414 padding-right: 5px; No newline at end of file
414 padding-right: 5px;
415 float: left; No newline at end of file
415 float: left;
416 line-height: 22px; No newline at end of file
416 line-height: 22px;
417 font-family: 'Roboto Condensed', sans-serif; No newline at end of file
417 font-family: 'Roboto Condensed', sans-serif;
418 letter-spacing: 0.086em; No newline at end of file
418 letter-spacing: 0.086em;
419 border: 0px solid #266 !important; } No newline at end of file
419 border: 0px solid #266 !important; }
420 No newline at end of file
420
421 .valueUes { No newline at end of file
421 .valueUes {
422 width: 300px; No newline at end of file
422 width: 300px;
423 float: left; No newline at end of file
423 float: left;
424 border: 0px solid #2f4 !important; No newline at end of file
424 border: 0px solid #2f4 !important;
425 line-height: 22px; } No newline at end of file
425 line-height: 22px; }
426 No newline at end of file
426
427 .lblUes { No newline at end of file
427 .lblUes {
428 font-family: 'Roboto Condensed', sans-serif; No newline at end of file
428 font-family: 'Roboto Condensed', sans-serif;
429 color: #666; No newline at end of file
429 color: #666;
430 font-size: 1.1em; } No newline at end of file
430 font-size: 1.1em; }
431 No newline at end of file
431
432 .txtUnitUes { No newline at end of file
432 .txtUnitUes {
433 width: 60px; No newline at end of file
433 width: 60px;
434 border: 0; No newline at end of file
434 border: 0;
435 padding: 0px 2px; No newline at end of file
435 padding: 0px 2px;
436 text-align: center; No newline at end of file
436 text-align: center;
437 font-family: 'Roboto Condensed', sans-serif; No newline at end of file
437 font-family: 'Roboto Condensed', sans-serif;
438 font-size: 0.95em; No newline at end of file
438 font-size: 0.95em;
439 border-bottom: 1px solid #666 !important; } No newline at end of file
439 border-bottom: 1px solid #666 !important; }
440 /* No newline at end of file
440 /*
441 .divNewUes input[type=text] { No newline at end of file
441 .divNewUes input[type=text] {
442 width: 240px; No newline at end of file
442 width: 240px;
443 max-width: 240px; No newline at end of file
443 max-width: 240px;
444 line-height: 22px; } No newline at end of file
444 line-height: 22px; }
445 */ No newline at end of file
445 */
446 .checkOnly { No newline at end of file
446 .checkOnly {
447 width: 120px; No newline at end of file
447 width: 120px;
448 float: left; No newline at end of file
448 float: left;
449 display: block; No newline at end of file
449 display: block;
450 line-height: 25px; No newline at end of file
450 line-height: 25px;
451 border: 0px solid #1cc !important; } No newline at end of file
451 border: 0px solid #1cc !important; }
452 No newline at end of file
452
453 .overJRO img { No newline at end of file
453 .overJRO img {
454 width: 400px;
454 width: 400px;
No newline at end of file
455 height: 270px; No newline at end of file
455 height: 250px; No newline at end of file
456 text-align: center; No newline at end of file
456 text-align: center;
457 vertical-align: middle; No newline at end of file
457 vertical-align: middle;
458 margin: 10px 5px 5px 5px; No newline at end of file
458 margin: 10px 5px 5px 5px;
459 display: block; No newline at end of file
459 display: block;
460 background: #fdfdfb; No newline at end of file
460 background: #fdfdfb;
461 border: 1px solid #eee !important; } No newline at end of file
461 border: 1px solid #eee !important; }
462 No newline at end of file
462
463 .overJRO a { No newline at end of file
463 .overJRO a {
464 text-align: center; No newline at end of file
464 text-align: center;
465 margin-left: 160px; No newline at end of file
465 margin-left: 160px;
466 display: block; } No newline at end of file
466 display: block; }
467 No newline at end of file
467
468 .activeOverJRO { No newline at end of file
468 .activeOverJRO {
469 width: 60px; No newline at end of file
469 width: 60px;
470 padding: 0px 2px; No newline at end of file
470 padding: 0px 2px;
471 border-bottom: 1px solid #1494F6 !important; } No newline at end of file
471 border-bottom: 1px solid #1494F6 !important; }
472 No newline at end of file
472
473 /****************************************************************************************/ No newline at end of file
473 /****************************************************************************************/
474 /****** MENU DE NAVEGACION DE PATRONES **********************************/ No newline at end of file
474 /****** MENU DE NAVEGACION DE PATRONES **********************************/
475 /****************************************************************************************/ No newline at end of file
475 /****************************************************************************************/
476 #divMnuPattern { No newline at end of file
476 #divMnuPattern {
477 width: 280px; No newline at end of file
477 width: 280px;
478 height: 25px; No newline at end of file
478 height: 25px;
479 display: block; No newline at end of file
479 display: block;
480 float: right; No newline at end of file
480 float: right;
481 margin: 5px 40px 5px 0px; No newline at end of file
481 margin: 5px 40px 5px 0px;
482 border: 0px solid #1cc !important; } No newline at end of file
482 border: 0px solid #1cc !important; }
483 No newline at end of file
483
484 #divMnuPattern li { No newline at end of file
484 #divMnuPattern li {
485 float: right; No newline at end of file
485 float: right;
486 display: block; No newline at end of file
486 display: block;
487 width: 60px; No newline at end of file
487 width: 60px;
488 border: 0px solid #2cc !important; } No newline at end of file
488 border: 0px solid #2cc !important; }
489 No newline at end of file
489
490 #divMnuPattern a { No newline at end of file
490 #divMnuPattern a {
491 display: block; No newline at end of file
491 display: block;
492 line-height: 22px; No newline at end of file
492 line-height: 22px;
493 text-decoration: none; No newline at end of file
493 text-decoration: none;
494 padding: 0px 5px; No newline at end of file
494 padding: 0px 5px;
495 margin: 0px 2px; No newline at end of file
495 margin: 0px 2px;
496 text-align: center; No newline at end of file
496 text-align: center;
497 color: #1494F6; No newline at end of file
497 color: #1494F6;
498 border-bottom: 1px solid #1494F6 !important; } No newline at end of file
498 border-bottom: 1px solid #1494F6 !important; }
499 No newline at end of file
499
500 #infoPattern { No newline at end of file
500 #infoPattern {
501 display: block; No newline at end of file
501 display: block;
502 margin: 0px 25px; No newline at end of file
502 margin: 0px 25px;
503 border: 0px solid #1494f6 !important; } No newline at end of file
503 border: 0px solid #1494f6 !important; }
504 No newline at end of file
504
505 #navPatterns { No newline at end of file
505 #navPatterns {
506 margin: 0 auto; No newline at end of file
506 margin: 0 auto;
507 width: 700px; No newline at end of file
507 width: 700px;
508 height: 30px; No newline at end of file
508 height: 30px;
509 border: 0px solid #d00 !important; No newline at end of file
509 border: 0px solid #d00 !important;
510 font-family: 'Ubuntu', sans-serif; No newline at end of file
510 font-family: 'Ubuntu', sans-serif;
511 font-size: 14px; No newline at end of file
511 font-size: 14px;
512 padding: 5px 0px; } No newline at end of file
512 padding: 5px 0px; }
513 No newline at end of file
513
514 #navPatternList { No newline at end of file
514 #navPatternList {
515 margin: 0 auto; No newline at end of file
515 margin: 0 auto;
516 border: 0px solid #ecc !important; } No newline at end of file
516 border: 0px solid #ecc !important; }
517 No newline at end of file
517
518 #navPatternList ul { No newline at end of file
518 #navPatternList ul {
519 list-style: none; No newline at end of file
519 list-style: none;
520 list-style-type: none; No newline at end of file
520 list-style-type: none;
521 margin: 0; } No newline at end of file
521 margin: 0; }
522 No newline at end of file
522
523 #navPatternList ul li { No newline at end of file
523 #navPatternList ul li {
524 float: left; No newline at end of file
524 float: left;
525 width: 50px; No newline at end of file
525 width: 50px;
526 border: 1px solid #eee !important; } No newline at end of file
526 border: 1px solid #eee !important; }
527 No newline at end of file
527
528 #navPatternList a { No newline at end of file
528 #navPatternList a {
529 width: 50px; No newline at end of file
529 width: 50px;
530 display: block; No newline at end of file
530 display: block;
531 text-align: center; No newline at end of file
531 text-align: center;
532 line-height: 30px; No newline at end of file
532 line-height: 30px;
533 padding: 1px 0px; No newline at end of file
533 padding: 1px 0px;
534 border: 0px solid #1cc !important; } No newline at end of file
534 border: 0px solid #1cc !important; }
535 No newline at end of file
535
536 .lnkPattern { No newline at end of file
536 .lnkPattern {
537 background-color: #ccc !important; No newline at end of file
537 background-color: #ccc !important;
538 color: #eee; } No newline at end of file
538 color: #eee; }
539 No newline at end of file
539
540 .lnkPatternSelected { No newline at end of file
540 .lnkPatternSelected {
541 background-color: #2cc !important; No newline at end of file
541 background-color: #2cc !important;
542 color: #fff; } No newline at end of file
542 color: #fff; }
543
No newline at end of file
544 .lnkPatternActive {
No newline at end of file
545 color: #f66;
No newline at end of file
546 } No newline at end of file
543 No newline at end of file
547
544 .divListofPatterns { No newline at end of file
548 .divListofPatterns {
545 width: 650px; No newline at end of file
549 width: 650px;
546 display: block; No newline at end of file
550 display: block;
547 border: 1px solid #1cc !important; No newline at end of file
551 border: 1px solid #1cc !important;
548 margin: 0 auto; } No newline at end of file
552 margin: 0 auto; }
549 No newline at end of file
553
550 .divPattern { No newline at end of file
554 .divPattern {
551 width: 600px; No newline at end of file
555 width: 600px;
552 display: block; No newline at end of file
556 display: block;
553 border: 1px solid #f00 !important; No newline at end of file
557 border: 1px solid #f00 !important;
554 margin: 2px auto; } No newline at end of file
558 margin: 2px auto; }
555 No newline at end of file
559
556 /****************************************************************************************/ No newline at end of file
560 /****************************************************************************************/
557 /****** HEADER *************/ No newline at end of file
561 /****** HEADER *************/
558 /****************************************************************************************/ No newline at end of file
562 /****************************************************************************************/
559 header nav { No newline at end of file
563 header nav {
560 width: 960px; No newline at end of file
564 width: 960px;
561 margin: 0 auto; No newline at end of file
565 margin: 0 auto;
562 height: 100%; No newline at end of file
566 height: 100%;
563 border: 0px solid #1cc !important; } No newline at end of file
567 border: 0px solid #1cc !important; }
564 No newline at end of file
568
565 header nav a { No newline at end of file
569 header nav a {
566 font-family: 'Roboto Condensed', sans-serif; No newline at end of file
570 font-family: 'Roboto Condensed', sans-serif;
567 font-size: 1.98em; No newline at end of file
571 font-size: 1.98em;
568 text-transform: uppercase; No newline at end of file
572 text-transform: uppercase;
569 width: 232px; No newline at end of file
573 width: 232px;
570 padding: 2px; No newline at end of file
574 padding: 2px;
571 text-align: center; No newline at end of file
575 text-align: center;
572 border: 1px solid #ddd !important; No newline at end of file
576 border: 1px solid #ddd !important;
573 box-shadow: 1px 1px 2px #ddd; No newline at end of file
577 box-shadow: 1px 1px 2px #ddd;
574 display: block; No newline at end of file
578 display: block;
575 float: left; No newline at end of file
579 float: left;
576 height: 45px; No newline at end of file
580 height: 45px;
577 text-decoration: none; No newline at end of file
581 text-decoration: none;
578 background: #eee; No newline at end of file
582 background: #eee;
579 line-height: 45px; No newline at end of file
583 line-height: 45px;
580 color: #15425d; No newline at end of file
584 color: #15425d;
581 margin: 0px 1px; } No newline at end of file
585 margin: 0px 1px; }
582 No newline at end of file
586
583 header nav a.selected { No newline at end of file
587 header nav a.selected {
584 background: #666; No newline at end of file
588 background: #666;
585 color: #fff; } No newline at end of file
589 color: #fff; }
586 No newline at end of file
590
587 #Main_Head { No newline at end of file
591 #Main_Head {
588 margin: 0 auto; No newline at end of file
592 margin: 0 auto;
589 height: 100%; No newline at end of file
593 height: 100%;
590 border: 1px solid #ddd !important; No newline at end of file
594 border: 1px solid #ddd !important;
591 box-shadow: 1px 1px 2px #ddd; No newline at end of file
595 box-shadow: 1px 1px 2px #ddd;
592 border-radius: 5px; No newline at end of file
596 border-radius: 5px;
593 display: block; } No newline at end of file
597 display: block; }
594 No newline at end of file
598
595 .Main_Title { No newline at end of file
599 .Main_Title {
596 font-size: 2em; No newline at end of file
600 font-size: 2em;
597 letter-spacing: 0.06em; No newline at end of file
601 letter-spacing: 0.06em;
598 color: #444; No newline at end of file
602 color: #444;
599 text-shadow: 2px 2px #ccc; } No newline at end of file
603 text-shadow: 2px 2px #ccc; }
600 No newline at end of file
604
601 /****************************************************************************************/ No newline at end of file
605 /****************************************************************************************/
602 /****** FOOTER *************/ No newline at end of file
606 /****** FOOTER *************/
603 /****************************************************************************************/ No newline at end of file
607 /****************************************************************************************/
604 footer p { No newline at end of file
608 footer p {
605 font-family: 'Roboto Condensed', sans-serif; No newline at end of file
609 font-family: 'Roboto Condensed', sans-serif;
606 font-size: 0.98em; } No newline at end of file
610 font-size: 0.98em; }
607 No newline at end of file
611
608 /****************************************************************************************/ No newline at end of file
612 /****************************************************************************************/
609 /****** LOGIN *************/ No newline at end of file
613 /****** LOGIN *************/
610 /****************************************************************************************/ No newline at end of file
614 /****************************************************************************************/
611 #contentLogin { No newline at end of file
615 #contentLogin {
612 margin: 0; No newline at end of file
616 margin: 0;
613 padding: 0; No newline at end of file
617 padding: 0;
614 border: 0px solid #1cc; } No newline at end of file
618 border: 0px solid #1cc; }
615 No newline at end of file
619
616 #MainColumnLogin { No newline at end of file
620 #MainColumnLogin {
617 margin: 2px auto; No newline at end of file
621 margin: 2px auto;
618 border: 0px solid #f00 !important; No newline at end of file
622 border: 0px solid #f00 !important;
619 box-shadow: 1px 1px 2px #ddd; No newline at end of file
623 box-shadow: 1px 1px 2px #ddd;
620 border-radius: 2px; No newline at end of file
624 border-radius: 2px;
621 background-color: #eee; No newline at end of file
625 background-color: #eee;
622 width: 100%; No newline at end of file
626 width: 100%;
623 padding: 5px 0px; No newline at end of file
627 padding: 5px 0px;
624 } No newline at end of file
628 }
625 No newline at end of file
629
626 .row_reg { No newline at end of file
630 .row_reg {
627 margin: 5px auto; No newline at end of file
631 margin: 5px auto;
628 display: block; No newline at end of file
632 display: block;
629 width: 90%; No newline at end of file
633 width: 90%;
630 border: 0px solid #1cc !important; No newline at end of file
634 border: 0px solid #1cc !important;
631 line-height: 22px; No newline at end of file
635 line-height: 22px;
632 } No newline at end of file
636 }
633 No newline at end of file
637
634 .row_reg label, .row_reg input[type=text] { No newline at end of file
638 .row_reg label, .row_reg input[type=text] {
635 float: left; No newline at end of file
639 float: left;
636 line-height: 22px; No newline at end of file
640 line-height: 22px;
637 } No newline at end of file
641 }
638 No newline at end of file
642
639 #id_username, #id_password { No newline at end of file
643 #id_username, #id_password {
640 width: 160px; No newline at end of file
644 width: 160px;
641 line-height: 22px; No newline at end of file
645 line-height: 22px;
642 } No newline at end of file
646 }
643 No newline at end of file
647
644 .row_reg label { No newline at end of file
648 .row_reg label {
645 width: 400px; No newline at end of file
649 width: 400px;
646 text-align: right; No newline at end of file
650 text-align: right;
647 padding-right: 10px; No newline at end of file
651 padding-right: 10px;
648 border: 0px solid #d22 !important; No newline at end of file
652 border: 0px solid #d22 !important;
649 } No newline at end of file
653 }
650 No newline at end of file
654
651 .row_reg input[type=submit], .row_reg input[type=button] { No newline at end of file
655 .row_reg input[type=submit], .row_reg input[type=button] {
652 margin-left: 410px; No newline at end of file
656 margin-left: 410px;
653 width: 80px; No newline at end of file
657 width: 80px;
654 } No newline at end of file
658 }
655 No newline at end of file
659
656 #lblTitleLogin { No newline at end of file
660 #lblTitleLogin {
657 width: 100%; No newline at end of file
661 width: 100%;
658 text-align: center; No newline at end of file
662 text-align: center;
659 font-size: 1.2em; No newline at end of file
663 font-size: 1.2em;
660 font-weight: normal; No newline at end of file
664 font-weight: normal;
661 color: #222; No newline at end of file
665 color: #222;
662 border: 0px solid #f00 !important; No newline at end of file
666 border: 0px solid #f00 !important;
663 background-color: #ccc; No newline at end of file
667 background-color: #ccc;
664 } No newline at end of file
668 }
@@ -1,46 +1,54
1 /** No newline at end of file
1 /**
2 * @author Jose Antonio Sal y Rosas Celi No newline at end of file
2 * @author Jose Antonio Sal y Rosas Celi
3 * @contact: jose.salyrosas@jro.igp.gob.pe, arturo.jasyrc@gmail.com No newline at end of file
3 * @contact: jose.salyrosas@jro.igp.gob.pe, arturo.jasyrc@gmail.com
4 */ No newline at end of file
4 */
5 No newline at end of file
5
6 $(document).on('ready',function(){ No newline at end of file
6 $(document).on('ready',function(){
7 $('#listProfiles').change(function() { No newline at end of file
7 $('#listProfiles').change(function() {
8 if($(this).val() != -1){ No newline at end of file
8 if($(this).val() != -1){
9 location.href="/abscontrol/view/" + $(this).val(); No newline at end of file
9 location.href="/abscontrol/view/" + $(this).val();
10 } No newline at end of file
10 }
11 }); No newline at end of file
11 });
12 $('.activeOverJRO').click(function() { No newline at end of file
12 $('.activeOverJRO').click(function() {
13 profile_id = $('input[name=txtProfileId]').val(); No newline at end of file
13 profile_id = $('input[name=txtProfileId]').val();
14 pattern_id = $('input[name=txtPatternId]').val(); No newline at end of file
14 pattern_id = $('input[name=txtPatternId]').val();
15 field_Id = $(this).attr("id"); No newline at end of file
15 field_Id = $(this).attr("id");
16 antenna_id = $('input[name=txtAntenna'+field_Id+'Id]').val(); No newline at end of file
16 antenna_id = $('input[name=txtAntenna'+field_Id+'Id]').val();
17 result_url = "/abscontrol/"+profile_id+"/"+pattern_id+"/overjro"+field_Id+"/"+antenna_id+"/"; No newline at end of file
17 result_url = "/abscontrol/"+profile_id+"/"+pattern_id+"/overjro"+field_Id+"/"+antenna_id+"/";
18 //location.href=url No newline at end of file
18 //location.href=url
19 ///* No newline at end of file
19 ///*
20 $.ajax({ No newline at end of file
20 $.ajax({
21 url: result_url, No newline at end of file
21 url: result_url,
22 cache: false,
No newline at end of file
23 beforeSend: function(){
No newline at end of file
24 }, No newline at end of file
22 success: function(){
25 success: function(){
No newline at end of file
23 //alert('overjro!'); No newline at end of file
24 $('#PictureOverJRO'+field_Id).load(result_url); No newline at end of file
26 $('#PictureOverJRO'+field_Id).load(result_url);
25 }, No newline at end of file
27 },
26 }); No newline at end of file
28 });
27 ///* No newline at end of file
29 ///*
28 }); No newline at end of file
30 });
29 $('#lnkSaveImport').click(function(){ No newline at end of file
31 $('#lnkSaveImport').click(function(){
30 $('#frmImportProfile').submit(); No newline at end of file
32 $('#frmImportProfile').submit();
31 }); No newline at end of file
33 });
32 $('#lnkUpload').click(function(){ No newline at end of file
34 $('#lnkUpload').click(function(){
33 $('#frmImport').submit(); No newline at end of file
35 $('#frmImport').submit();
34 }); No newline at end of file
36 });
35 $('#lnkExport').click(function(){ No newline at end of file
37 $('#lnkExport').click(function(){
36 profile_id = $(this).attr("alt"); No newline at end of file
38 profile_id = $(this).attr("alt");
37 location.href="/abscontrol/export/" + profile_id + "/"; No newline at end of file
39 location.href="/abscontrol/export/" + profile_id + "/";
38 }); No newline at end of file
40 });
39 $('#lnkSendFile').click(function(){ No newline at end of file
41 $('#lnkSendFile').click(function(){
40 profile_id = $(this).attr("alt"); No newline at end of file
42 profile_id = $(this).attr("alt");
41 location.href="/abscontrol/send/" + profile_id + "/"; No newline at end of file
43 location.href="/abscontrol/send/" + profile_id + "/";
42 }); No newline at end of file
44 });
43 $('#lnkChangeProfile').click(function(){ No newline at end of file
45 $('#lnkChangeProfile').click(function(){
44 $('#frmProfile').submit(); No newline at end of file
46 $('#frmProfile').submit();
45 }); No newline at end of file
47 });
48 $('.lnkChangePattern').click(function(){
No newline at end of file
49 profile_id = $("input[name=txtProfileId]").val();
No newline at end of file
50 pattern_id = $("input[name=txtPatternId]").val();
No newline at end of file
51
No newline at end of file
52 location.href="/abscontrol/change/"+profile_id+"/"+pattern_id+"/"; No newline at end of file
46 }); No newline at end of file
53 });
54 }); No newline at end of file
@@ -1,12 +1,8
1 <div class="overJRO" id="PictureOverJROUp">
1 <div class="overJRO" id="PictureOverJROUp">
No newline at end of file
2 {% if img_up %}<img src="/media/{{ img_up }}" />{% else %}<img />{% endif %} No newline at end of file
2 {% if img_up %}
No newline at end of file
3 <img src="/media/{{ img_up }}" />
No newline at end of file
4 {% else %}
No newline at end of file
5 <img />
No newline at end of file
6 {% endif %} No newline at end of file
7 {% if antennaUp.value != None and antennaUp.tx != None and antennaUp.rx != None and antennaUp.ues != None %} No newline at end of file
3 {% if antennaUp.value != None and antennaUp.tx != None and antennaUp.rx != None and antennaUp.ues != None %}
8 <a href="#" class="activeOverJRO" id="Up">Preview</a> No newline at end of file
4 <a href="#" class="activeOverJRO" id="Up">Preview</a>
9 {% else %} No newline at end of file
5 {% else %}
10 <a href="#" class="link-disabled">Preview</a> No newline at end of file
6 <a href="#" class="link-disabled">Preview</a>
11 {% endif %} No newline at end of file
7 {% endif %}
12 </div> No newline at end of file
8 </div>
@@ -1,129 +1,141
1 {% extends "abscontrol/index.html" %} No newline at end of file
1 {% extends "abscontrol/index.html" %}
2 {% block title %}ABS CONTROL:::PROFILE:::{{ objProfile.name }}{% endblock %} No newline at end of file
2 {% block title %}ABS CONTROL:::PROFILE:::{{ objProfile.name }}{% endblock %}
3 No newline at end of file
3
4 {% block mnu_profile %} No newline at end of file
4 {% block mnu_profile %}
5 <nav class="MnuHorizontal" id="mnuProfiles"> No newline at end of file
5 <nav class="MnuHorizontal" id="mnuProfiles">
6 <ul> No newline at end of file
6 <ul>
7 <li><a href="/abscontrol/new">New</a></li> No newline at end of file
7 <li><a href="/abscontrol/new">New</a></li>
8 {% if patternChoosen %} No newline at end of file
8 {% if patternChoosen %}
9 <li><a href="/abscontrol/{{ objProfile.id }}/edit/{{ patternChoosen.id }}">Edit</a></li> No newline at end of file
9 <li><a href="/abscontrol/{{ objProfile.id }}/edit/{{ patternChoosen.id }}">Edit</a></li>
10 {% else %} No newline at end of file
10 {% else %}
11 <li><a href="/abscontrol/edit/{{ objProfile.id }}">Edit</a></li> No newline at end of file
11 <li><a href="/abscontrol/edit/{{ objProfile.id }}">Edit</a></li>
12 {% endif %} No newline at end of file
12 {% endif %}
13 <li><a href="#">Save as</a></li> No newline at end of file
13 <li><a href="#">Save as</a></li>
14 <li><a href="/abscontrol/import">Import</a></li> No newline at end of file
14 <li><a href="/abscontrol/import">Import</a></li>
15 <li><a href="#" id="lnkExport" alt="{{ objProfile.id }}">Export</a></li> No newline at end of file
15 <li><a href="#" id="lnkExport" alt="{{ objProfile.id }}">Export</a></li>
16 <li><a href="#" id="lnkSendFile" alt="{{ objProfile.id }}">Send</a></li> No newline at end of file
16 <li><a href="#" id="lnkSendFile" alt="{{ objProfile.id }}">Send</a></li>
17 </ul> No newline at end of file
17 </ul>
18 </nav> No newline at end of file
18 </nav>
19 {% endblock %} No newline at end of file
19 {% endblock %}
20 {% block maincolumn%} No newline at end of file
20 {% block maincolumn%}
21 <div id="maincolumn"> No newline at end of file
21 <div id="maincolumn">
22 {% if objProfile.state == 0 %} No newline at end of file
22 {% if objProfile.state == 0 %}
23 <div id="divProfile"> No newline at end of file
23 <div id="divProfile">
24 <label for="lblName">Profile:</label> No newline at end of file
24 <label for="lblName">Profile:</label>
25 <label for="lblProfile">{{ objProfile.name }}</label> No newline at end of file
25 <label for="lblProfile">{{ objProfile.name }}</label>
26 </div> No newline at end of file
26 </div>
27 {% endif %} No newline at end of file
27 {% endif %}
28 {% if patternChoosen %} No newline at end of file
28 {% if patternChoosen %}
29 <div id="navPatterns"> No newline at end of file
29 <div id="navPatterns">
30 <nav class="" id="navPatternList"> No newline at end of file
30 <nav class="" id="navPatternList">
31 <ul> No newline at end of file
31 <ul>
32 {% for element in lsPatterns %} No newline at end of file
32 {% for element in lsPatterns %}
33 <li> No newline at end of file
33 {% if patternChoosen.id == element.id %}
34 {% if patternChoosen.id == element.id %}
No newline at end of file
35 {% if element.is_active == 1 %}
34 <li><a href="/abscontrol/{{ objProfile.id }}/view/{{ element.id }}/" class="lnkPatternSelected">{{ element.value }}</a></li> No newline at end of file
No newline at end of file
36 <a href="/abscontrol/{{ objProfile.id }}/view/{{ element.id }}/" class="lnkPatternSelected lnkPatternActive">{{ element.value }}</a> No newline at end of file
35 {% else %}
37 {% else %}
No newline at end of file
38 <a href="/abscontrol/{{ objProfile.id }}/view/{{ element.id }}/" class="lnkPatternSelected">{{ element.value }}</a> No newline at end of file
36 <li><a href="/abscontrol/{{ objProfile.id }}/view/{{ element.id }}/" class="lnkPattern">{{ element.value }}</a></li> No newline at end of file
37 {% endif %} No newline at end of file
39 {% endif %}
40 {% else %}
No newline at end of file
41 {% if element.is_active == 1 %}
No newline at end of file
42 <a href="/abscontrol/{{ objProfile.id }}/view/{{ element.id }}/" class="lnkPattern lnkPatternActive">{{ element.value }}</a>
No newline at end of file
43 {% else %}
No newline at end of file
44 <a href="/abscontrol/{{ objProfile.id }}/view/{{ element.id }}/" class="lnkPattern">{{ element.value }}</a>
No newline at end of file
45 {% endif %}
No newline at end of file
46 {% endif %}
No newline at end of file
47 </li> No newline at end of file
38 {% endfor %} No newline at end of file
48 {% endfor %}
39 </ul> No newline at end of file
49 </ul>
40 <div class="cleardivs"></div> No newline at end of file
50 <div class="cleardivs"></div>
41 </nav> No newline at end of file
51 </nav>
42 </div> No newline at end of file
52 </div>
43 {% endif %} No newline at end of file
53 {% endif %}
44 {% block mnuPattern %} No newline at end of file
54 {% block mnuPattern %}
55 {% if objProfile.is_active == 1 %} No newline at end of file
45 <div class="divMenu" id="divMnuPattern"> No newline at end of file
56 <div class="divMenu" id="divMnuPattern">
46 <nav class="MnuHorizontal"> No newline at end of file
57 <nav class="MnuHorizontal">
47 <ul class="mnu" id="mnuPattern">
58 <ul class="mnu" id="mnuPattern">
No newline at end of file
59 <li><a href="#" class="lnkChangePattern">Apply</a></li> No newline at end of file
48 <li><a href="#">Apply</a></li> No newline at end of file
49 </ul> No newline at end of file
60 </ul>
50 </nav> No newline at end of file
61 </nav>
51 </div> No newline at end of file
62 </div>
52 <div class="cleardivs"></div> No newline at end of file
63 <div class="cleardivs"></div>
64 {% endif %} No newline at end of file
53 {% endblock %} No newline at end of file
65 {% endblock %}
54 <div id="divPattern"> No newline at end of file
66 <div id="divPattern">
55 <div id="infoPattern"> No newline at end of file
67 <div id="infoPattern">
56 <div id="antennaUp" class="antenna" style="float: left"> No newline at end of file
68 <div id="antennaUp" class="antenna" style="float: left">
57 <fieldset class="flsAntenna"> No newline at end of file
69 <fieldset class="flsAntenna">
58 <legend class="legendAntenna">UP</legend> No newline at end of file
70 <legend class="legendAntenna">UP</legend>
59 <div class="infoAntenna"> No newline at end of file
71 <div class="infoAntenna">
60 <div class="divAntenna"> No newline at end of file
72 <div class="divAntenna">
61 <label for="lblAntenna">Antenna</label> No newline at end of file
73 <label for="lblAntenna">Antenna</label>
62 <p class="view-textAntenna">{{ antennaUp.value }}</p> No newline at end of file
74 <p class="view-textAntenna">{{ antennaUp.value }}</p>
63 </div> No newline at end of file
75 </div>
64 <div class="divTx"> No newline at end of file
76 <div class="divTx">
65 <label for="lblTx">Tx</label> No newline at end of file
77 <label for="lblTx">Tx</label>
66 <p>{{ antennaUp.tx }}</p> No newline at end of file
78 <p>{{ antennaUp.tx }}</p>
67 </div> No newline at end of file
79 </div>
68 <div class="divTx"> No newline at end of file
80 <div class="divTx">
69 <label for="lblRx">Rx</label> No newline at end of file
81 <label for="lblRx">Rx</label>
70 <p>{{ antennaUp.rx }}</p> No newline at end of file
82 <p>{{ antennaUp.rx }}</p>
71 </div> No newline at end of file
83 </div>
72 <div class="cleardivs"></div> No newline at end of file
84 <div class="cleardivs"></div>
73 <div class="divUes"> No newline at end of file
85 <div class="divUes">
74 <label for="lblUes">Ues:</label> No newline at end of file
86 <label for="lblUes">Ues:</label>
75 <label for="lblAntennaUpUes">{{ antennaUp.ues }}</label> No newline at end of file
87 <label for="lblAntennaUpUes">{{ antennaUp.ues }}</label>
76 {% if antennaUp.only_rx == 0 %} No newline at end of file
88 {% if antennaUp.only_rx == 0 %}
77 <input type="checkbox" name="chkOnlyRxUp" value="" /> No newline at end of file
89 <input type="checkbox" name="chkOnlyRxUp" value="" />
78 {% else %} No newline at end of file
90 {% else %}
79 <input type="checkbox" name="chkOnlyRxUp" value="" checked="checked"/> No newline at end of file
91 <input type="checkbox" name="chkOnlyRxUp" value="" checked="checked"/>
80 {% endif %} No newline at end of file
92 {% endif %}
81 <label for="lblOnlyRx">Only RX</label> No newline at end of file
93 <label for="lblOnlyRx">Only RX</label>
82 </div> No newline at end of file
94 </div>
83 </div> No newline at end of file
95 </div>
84 </fieldset> No newline at end of file
96 </fieldset>
85 </div> No newline at end of file
97 </div>
86 {% include 'abscontrol/overjro_up.html' %} No newline at end of file
98 {% include 'abscontrol/overjro_up.html' %}
87 <div class="cleardivs"></div> No newline at end of file
99 <div class="cleardivs"></div>
88 No newline at end of file
100
89 <div id="antennaDown" class="antenna" style="float: left"> No newline at end of file
101 <div id="antennaDown" class="antenna" style="float: left">
90 <fieldset class="flsAntenna"> No newline at end of file
102 <fieldset class="flsAntenna">
91 <legend class="legendAntenna">DOWN</legend> No newline at end of file
103 <legend class="legendAntenna">DOWN</legend>
92 <div class="infoAntenna"> No newline at end of file
104 <div class="infoAntenna">
93 <div class="divAntenna"> No newline at end of file
105 <div class="divAntenna">
94 <label for="lblAntenna">Antenna</label> No newline at end of file
106 <label for="lblAntenna">Antenna</label>
95 <p class="view-textAntenna">{{ antennaDown.value }}</p> No newline at end of file
107 <p class="view-textAntenna">{{ antennaDown.value }}</p>
96 </div> No newline at end of file
108 </div>
97 <div class="divTx"> No newline at end of file
109 <div class="divTx">
98 <label for="lblTx">Tx</label> No newline at end of file
110 <label for="lblTx">Tx</label>
99 <p>{{ antennaDown.tx }}</p> No newline at end of file
111 <p>{{ antennaDown.tx }}</p>
100 </div> No newline at end of file
112 </div>
101 <div class="divTx"> No newline at end of file
113 <div class="divTx">
102 <label for="lblRx">Rx</label> No newline at end of file
114 <label for="lblRx">Rx</label>
103 <p>{{ antennaDown.rx }}</p> No newline at end of file
115 <p>{{ antennaDown.rx }}</p>
104 </div> No newline at end of file
116 </div>
105 <div class="cleardivs"></div> No newline at end of file
117 <div class="cleardivs"></div>
106 <div class="divUes"> No newline at end of file
118 <div class="divUes">
107 <label for="lblUes">Ues:</label> No newline at end of file
119 <label for="lblUes">Ues:</label>
108 <label for="lblAntennaDownUes">{{ antennaDown.ues }}</label> No newline at end of file
120 <label for="lblAntennaDownUes">{{ antennaDown.ues }}</label>
109 {% if antennaDown.only_rx == 0 %} No newline at end of file
121 {% if antennaDown.only_rx == 0 %}
110 <input type="checkbox" name="chkOnlyRxDown" value="" /> No newline at end of file
122 <input type="checkbox" name="chkOnlyRxDown" value="" />
111 {% else %} No newline at end of file
123 {% else %}
112 <input type="checkbox" name="chkOnlyRxDown" value="" checked="checked"/> No newline at end of file
124 <input type="checkbox" name="chkOnlyRxDown" value="" checked="checked"/>
113 {% endif %} No newline at end of file
125 {% endif %}
114 <label for="lblOnlyRx">Only RX</label> No newline at end of file
126 <label for="lblOnlyRx">Only RX</label>
115 </div> No newline at end of file
127 </div>
116 </div> No newline at end of file
128 </div>
117 No newline at end of file
129
118 </fieldset> No newline at end of file
130 </fieldset>
119 </div> No newline at end of file
131 </div>
120 {% include 'abscontrol/overjro_down.html' %} No newline at end of file
132 {% include 'abscontrol/overjro_down.html' %}
121 <div class="cleardivs"></div> No newline at end of file
133 <div class="cleardivs"></div>
122 </div> No newline at end of file
134 </div>
123 <input type="hidden" name="txtAntennaUpId" value="{{ antennaUp.id }}"/> No newline at end of file
135 <input type="hidden" name="txtAntennaUpId" value="{{ antennaUp.id }}"/>
124 <input type="hidden" name="txtAntennaDownId" value="{{ antennaDown.id }}"/> No newline at end of file
136 <input type="hidden" name="txtAntennaDownId" value="{{ antennaDown.id }}"/>
125 <input type="hidden" name="txtPatternId" value="{{ patternChoosen.id }}"/> No newline at end of file
137 <input type="hidden" name="txtPatternId" value="{{ patternChoosen.id }}"/>
126 <input type="hidden" name="txtProfileId" value="{{ objProfile.id }}"/> No newline at end of file
138 <input type="hidden" name="txtProfileId" value="{{ objProfile.id }}"/>
127 </div> No newline at end of file
139 </div>
128 </div> No newline at end of file
140 </div>
129 {% endblock %} No newline at end of file
141 {% endblock %}
General Comments 0
You need to be logged in to leave comments. Login now