version 1.39, 2006/07/18 13:42:52
|
version 1.40, 2006/07/25 07:51:49
|
Line 1229 class CDLIFileObject(CatalogAware,versio
|
Line 1229 class CDLIFileObject(CatalogAware,versio
|
pt=PageTemplateFile(os.path.join(package_home(globals()),'zpt','viewCDLIFile.zpt')).__of__(self) |
pt=PageTemplateFile(os.path.join(package_home(globals()),'zpt','viewCDLIFile.zpt')).__of__(self) |
return pt() |
return pt() |
|
|
|
security.declarePublic('getPNumber') |
|
def getPNumber(self): |
|
"""get the pnumber""" |
|
try: |
|
txt=re.match("&[Pp](\d*)\s*=([^\r\n]*)",self.data[0:]) |
|
except: |
|
txt=self.data[0:] |
|
|
|
return "ERROR" |
|
try: |
|
return "P"+txt.group(1) |
|
except: |
|
return "ERROR" |
|
|
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""" |