Skip to content

Commit dad8cc6

Browse files
committed
Updated maximum file-sizes for draft submissions. Added some Trac-glue-related settings.
- Legacy-Id: 11223
1 parent 72ba673 commit dad8cc6

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

ietf/settings.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -497,10 +497,10 @@ def skip_unreadable_post(record):
497497
'ps',
498498
)
499499
IDSUBMIT_MAX_DRAFT_SIZE = {
500-
'txt': 6*1024*1024, # Max size of txt draft file in bytes
501-
'xml': 10*1024*1024, # Max size of xml draft file in bytes
502-
'pdf': 10*1024*1024,
503-
'ps' : 10*1024*1024,
500+
'txt': 2*1024*1024, # Max size of txt draft file in bytes
501+
'xml': 3*1024*1024, # Max size of xml draft file in bytes
502+
'pdf': 6*1024*1024,
503+
'ps' : 6*1024*1024,
504504
}
505505

506506
IDSUBMIT_MAX_DAILY_SAME_DRAFT_NAME = 20
@@ -605,8 +605,12 @@ def skip_unreadable_post(record):
605605
}
606606

607607
TRAC_ADMIN_CMD = "/usr/bin/trac-admin"
608-
TRAC_WIKI_DIR = "/a/www/www6s/trac"
609-
TRAC_SVN_DIR = "/a/svn/group"
608+
TRAC_WIKI_DIR_ROOT = "/a/www/www6s/trac/"
609+
TRAC_WIKI_DIR_PATTERN = os.path.join(TRAC_WIKI_DIR_ROOT, "%s")
610+
TRAC_WIKI_URL_PATTERN = "https://trac.ietf.org/trac/%s/wiki"
611+
TRAC_ISSUE_URL_PATTERN = "https://trac.ietf.org/trac/%s/report/1"
612+
TRAC_SVN_DIR_PATTERN = "/a/svn/group/%s"
613+
TRAC_SVN_URL_PATTERN = "https://svn.ietf.org/svn/group/%s/"
610614

611615
# Email addresses people attempt to set for their account will be checked
612616
# against the following list of regex expressions with re.search(pat, addr):

0 commit comments

Comments
 (0)