version 1.1, 2003/12/18 17:22:28
|
version 1.2, 2003/12/19 13:58:52
|
Line 270 def manage_AddOSAS_archiver(self,id,star
|
Line 270 def manage_AddOSAS_archiver(self,id,star
|
|
|
|
|
class OSAS_producer(Image,Persistent,Implicit): |
class OSAS_producer(Image,Persistent,Implicit): |
"""Klasse fuer Produzenteninformationen""" |
"""Klasse fuer Produzenteninformationen |
|
Metadaten nach V1.1.1""" |
|
|
meta_type="OSAS_producer" |
meta_type="OSAS_producer" |
|
|
def __init__(self,shortName,fullName): |
def __init__(self,shortName,fullName,address="",url="",contact=""): |
|
|
self.id=shortName |
self.id=shortName |
self.title=fullName |
self.title=fullName |
|
self.address=address |
|
self.url=url |
|
self.contact=contact |
|
|
|
manage_options = Folder.manage_options+( |
|
{'label':'Main Config','action':'changeOSAS_producerForm'}, |
|
) |
|
|
|
def changeOSAS_producerForm(self): |
|
"""change""" |
|
pt=PageTemplateFile('Products/OSA_system/ChangeOSAS_producer.zpt').__of__(self) |
|
return pt() |
|
|
|
|
def manage_AddOSAS_producerForm(self): |
def manage_AddOSAS_producerForm(self): |
Line 286 def manage_AddOSAS_producerForm(self):
|
Line 299 def manage_AddOSAS_producerForm(self):
|
return pt() |
return pt() |
|
|
|
|
def manage_AddOSAS_producer(self,id,title="",RESPONSE=None): |
def manage_AddOSAS_producer(self,id,title="",contact="",address="",url="",RESPONSE=None): |
"""add the OSAS_root""" |
"""add the OSAS_root""" |
if title=="": |
if title=="": |
title=id |
title=id |
|
|
newObj=OSAS_producer(id, title) |
newObj=OSAS_producer(id, title,address,contact,url) |
self._setObject(id,newObj) |
self._setObject(id,newObj) |
if RESPONSE is not None: |
if RESPONSE is not None: |
RESPONSE.redirect('manage_main') |
RESPONSE.redirect('manage_main') |