|
|
| version 1.12, 2006/03/19 03:27:21 | version 1.13, 2006/03/28 15:10:02 |
|---|---|
| Line 757 class CDLIFileObject(versionedFileObject | Line 757 class CDLIFileObject(versionedFileObject |
| security.declarePublic('getDesignation') | security.declarePublic('getDesignation') |
| def getDesignation(self): | def getDesignation(self): |
| """get the designation out of the file""" | """get the designation out of the file""" |
| txt=re.search("&[Pp](.*)= (.*)",self.data) | try: |
| txt=re.search("&[Pp](.*)= (.*)",self.data[0:]) | |
| except: | |
| print self.getId() | |
| txt=self.data[0:] | |
| print str(txt) | |
| return "ERROR" | |
| try: | try: |
| return txt.group(2) | return txt.group(2) |
| except: | except: |
| Line 1149 class CDLIFileFolder(versionedFileFolder | Line 1155 class CDLIFileFolder(versionedFileFolder |
| #os.write(tf,obj.getLastVersion().data) | #os.write(tf,obj.getLastVersion().data) |
| if RESPONSE: | if RESPONSE: |
| RESPONSE.write(obj.getLastVersion().data) | RESPONSE.write(obj.getLastVersion().data[0:]) |
| #os.close(tf) | #os.close(tf) |
| #RESPONSE.redirect(self.absolute_url()+"/downloadFile?fn="%tfilename) | #RESPONSE.redirect(self.absolute_url()+"/downloadFile?fn="%tfilename) |
| return True | return True |