Skip to content

Commit 5872696

Browse files
committed
Moving ietf to trunk/ietf
[[Split portion of a mixed commit.]] - Legacy-Id: 96.1
0 parents  commit 5872696

149 files changed

Lines changed: 9599 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# A simulation of Subversion default ignores, generated by reposurgeon.
2+
*.o
3+
*.lo
4+
*.la
5+
*.al
6+
*.libs
7+
*.so
8+
*.so.[0-9]*
9+
*.a
10+
*.pyc
11+
*.pyo
12+
*.rej
13+
*~
14+
*.#*
15+
.*.swp
16+
.DS_store
17+
# Simulated Subversion default ignores end here

ietf/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/*.pyc
2+
/settings_local.py

ietf/__init__.py

Whitespace-only changes.

ietf/agenda/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/*.pyc
2+
/settings_local.py

ietf/agenda/__init__.py

Whitespace-only changes.

ietf/agenda/models.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from django.db import models
2+
3+
# Create your models here.

ietf/agenda/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Create your views here.

ietf/announcements/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/*.pyc
2+
/settings_local.py

ietf/announcements/__init__.py

Whitespace-only changes.

ietf/announcements/models.py

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
from django.db import models
2+
from ietf.idtracker.models import PersonOrOrgInfo, ChairsHistory
3+
4+
# I don't know why the IETF database mostly stores times
5+
# as char(N) instead of TIME. Until it's important, let's
6+
# keep them as char here too.
7+
8+
class AnnouncedFrom(models.Model):
9+
announced_from_id = models.AutoField(primary_key=True)
10+
announced_from_value = models.CharField(blank=True, maxlength=255)
11+
announced_from_email = models.CharField(blank=True, maxlength=255)
12+
def __str__(self):
13+
return self.announced_from_value
14+
class Meta:
15+
db_table = 'announced_from'
16+
class Admin:
17+
pass
18+
19+
class AnnouncedTo(models.Model):
20+
announced_to_id = models.AutoField(primary_key=True)
21+
announced_to_value = models.CharField(blank=True, maxlength=255)
22+
announced_to_email = models.CharField(blank=True, maxlength=255)
23+
def __str__(self):
24+
return self.announced_to_value
25+
class Meta:
26+
db_table = 'announced_to'
27+
class Admin:
28+
pass
29+
30+
class Announcement(models.Model):
31+
announcement_id = models.AutoField(primary_key=True)
32+
announced_by = models.ForeignKey(PersonOrOrgInfo, raw_id_admin=True, db_column='announced_by')
33+
announced_date = models.DateField(null=True, blank=True)
34+
announced_time = models.CharField(blank=True, maxlength=20)
35+
text = models.TextField(blank=True, db_column='announcement_text')
36+
announced_from = models.ForeignKey(AnnouncedFrom)
37+
cc = models.CharField(blank=True, maxlength=255)
38+
subject = models.CharField(blank=True, maxlength=255)
39+
extra = models.TextField(blank=True)
40+
announced_to = models.ForeignKey(AnnouncedTo)
41+
nomcom = models.BooleanField()
42+
nomcom_chair_id = models.IntegerField(null=True, blank=True) # ForeignKey to nomcom chairs
43+
manually_added = models.BooleanField(db_column='manualy_added')
44+
other_val = models.CharField(blank=True, maxlength=255)
45+
def __str__(self):
46+
return "Announcement from %s to %s on %s %s" % (self.announced_from, self.announced_to, self.announced_date, self.announced_time)
47+
def from_name(self):
48+
if self.announced_from_id == 99:
49+
return self.other_val
50+
if self.announced_from_id == 14: # sigh hardcoding
51+
return ChairsHistory.objects.all().get(id=self.nomcom_chair_id).person
52+
return self.announced_from
53+
class Meta:
54+
db_table = 'announcements'
55+
class Admin:
56+
pass
57+
58+
class ScheduledAnnouncement(models.Model):
59+
mail_sent = models.BooleanField()
60+
to_be_sent_date = models.DateField(null=True, blank=True)
61+
to_be_sent_time = models.CharField(blank=True, maxlength=50)
62+
scheduled_by = models.CharField(blank=True, maxlength=100)
63+
scheduled_date = models.DateField(null=True, blank=True)
64+
scheduled_time = models.CharField(blank=True, maxlength=50)
65+
subject = models.CharField(blank=True, maxlength=255)
66+
to_val = models.CharField(blank=True, maxlength=255)
67+
from_val = models.CharField(blank=True, maxlength=255)
68+
cc_val = models.TextField(blank=True)
69+
body = models.TextField(blank=True)
70+
actual_sent_date = models.DateField(null=True, blank=True)
71+
actual_sent_time = models.CharField(blank=True, maxlength=50)
72+
first_q = models.IntegerField(null=True, blank=True)
73+
second_q = models.IntegerField(null=True, blank=True)
74+
note = models.TextField(blank=True)
75+
content_type = models.CharField(blank=True, maxlength=255)
76+
replyto = models.CharField(blank=True, maxlength=255)
77+
bcc_val = models.CharField(blank=True, maxlength=255)
78+
def __str__(self):
79+
return "Scheduled Announcement from %s to %s on %s %s" % (self.from_val, self.to_val, self.to_be_sent_date, self.to_be_sent_time)
80+
class Meta:
81+
db_table = 'scheduled_announcements'
82+
class Admin:
83+
pass

0 commit comments

Comments
 (0)