Mercurial > hg > MPIWGWeb
comparison MPIWGProjects.py @ 179:136b2d5b3e3d
CLOSED - # 108: add project should strip whitespace from id
https://it-dev.mpiwg-berlin.mpg.de/tracs/webpage/ticket/108
author | casties |
---|---|
date | Wed, 12 Jun 2013 10:37:10 +0200 |
parents | ee0fbb711f17 |
children | 8bbf8900273d |
comparison
equal
deleted
inserted
replaced
178:ee0fbb711f17 | 179:136b2d5b3e3d |
---|---|
1843 pt = PageTemplateFile('zpt/project/manage_add_MPIWGProject', globals()).__of__(self) | 1843 pt = PageTemplateFile('zpt/project/manage_add_MPIWGProject', globals()).__of__(self) |
1844 return pt() | 1844 return pt() |
1845 | 1845 |
1846 def manage_addMPIWGProject(self, id, fileupload=None, RESPONSE=None): | 1846 def manage_addMPIWGProject(self, id, fileupload=None, RESPONSE=None): |
1847 """method to add a project""" | 1847 """method to add a project""" |
1848 id = id.strip() | |
1848 if fileupload: | 1849 if fileupload: |
1849 filedata = fileupload.read() | 1850 filedata = fileupload.read() |
1850 argv = xmlhelper.proj2hash(filedata) | 1851 argv = xmlhelper.proj2hash(filedata) |
1851 # print argv | 1852 # print argv |
1852 newObj = MPIWGProject(id, argv) | 1853 newObj = MPIWGProject(id, argv) |