version 1.10, 2005/04/25 17:21:48
|
version 1.10.2.1, 2005/07/14 15:12:11
|
Line 30 class MPIWGStaff(CatalogAware,ZSQLExtend
|
Line 30 class MPIWGStaff(CatalogAware,ZSQLExtend
|
|
|
manage_options = Folder.manage_options+( |
manage_options = Folder.manage_options+( |
{'label':'Edit','action':'changeMPIWGStaffForm'}, |
{'label':'Edit','action':'changeMPIWGStaffForm'}, |
|
{'label':'Change Publications Special','action':'changePublications_specialForm'}, |
) |
) |
|
|
def __init__(self,id, lastName,firstName): |
def __init__(self,id, lastName,firstName): |
Line 39 class MPIWGStaff(CatalogAware,ZSQLExtend
|
Line 40 class MPIWGStaff(CatalogAware,ZSQLExtend
|
self.lastName=lastName |
self.lastName=lastName |
self.firstName=firstName |
self.firstName=firstName |
|
|
|
|
def index_html(self): |
def index_html(self): |
"""show homepage""" |
"""show homepage""" |
pt = getTemplate(self, "members_main") |
pt = getTemplate(self, "members_main") |
return pt() |
return pt() |
|
|
|
def changePublications_specialForm(self): |
|
"""Priority publications manual field""" |
|
pt=PageTemplateFile(os.path.join(package_home(globals()),'zpt','changePublications_special.zpt')).__of__(self) |
|
return pt() |
|
|
|
def changePublications_special(self,usePublicationsSpecial=None,specialPublicationsField=None,RESPONSE=None): |
|
"""change publications special params""" |
|
if usePublicationsSpecial: |
|
self.usePublicationsSpecial=True |
|
|
|
else: |
|
self.usePublicationsSpecial=False |
|
|
|
self.specialPublicationsField=specialPublicationsField[0:] |
|
|
|
if RESPONSE is not None: |
|
RESPONSE.redirect('manage_main') |
|
|
|
|
def publications_full(self): |
def publications_full(self): |
"""show publication""" |
"""show publication""" |
pt=getTemplate(self, "publications_full_main") |
pt=getTemplate(self, "publications_full_main") |