# -*- coding: utf8 -*-
# $Id: prvInetAddress_show.py 568 2007-05-01 18:02:20Z ahatzis $
# pyswarm - Model-driven development of Python applications
# -------------------------------------------------------------------------
#
# Copyright (C) 2006-2007 Free Software Foundation Europe e.V.
#
# The main author of pyswarm is Anastasios Hatzis, though contributions
# are welcome from others. An author list can be found in the file AUTHORS.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# The licensor of pyswarm is the Free Software Foundation Europe
# (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zrich,
# Switzerland, email:ftf@fsfeurope.org.
#
# -------------------------------------------------------------------------
# http://pyswarm.sourceforge.net/
# =========================================================================
# import mod_python specific modules:
from mod_python import psp
# import the pyswarm logic component(s) used by this controller:
from PetStore.Internet.Contacts.AdM.AdM import *
# import the container base-class:
from webUI.wuiContainer import *
from prvAddressBook_stripped import *
from webUI.wuiFieldset import *
from webUI.wuiButton import *
from webUI.wuiAttribute import *
class PrvInetAddress_show(WuiContainer):
"""TODO: doc string"""
def __init__(self, envoy, parent, uid, entity, oOp):
"""TODO: doc string"""
super(PrvInetAddress_show, self).__init__(envoy, parent, uid)
self.addChild(WuiFieldset(self.envoy(), self, uid='core', label='Allgemein', bubble='Klicken Sie hier um mehr ber die Kartei "Allgemein" zu erfahren.', style=None))
self.addChild(WuiAttribute(self.envoy(), self, uid='eid', label='#', bubble='Mehr Infos zu EID', style=None, link=None, value=entity.strEID(oOp), visible=True, editable=False, required=False))
self.addChild(WuiAttribute(self.envoy(), self, uid='subject', label='Betreff', bubble='Mehr Infos zu Betreff', style=None, link=None, value=entity.getSubject(oOp), visible=True, editable=False, required=False))
self.addChild(WuiAttribute(self.envoy(), self, uid='url', label='WWW-Adresse', bubble='Mehr Infos zu WWW-Adresse', style=None, link=None, value=entity.getUrl(oOp), visible=True, editable=False, required=False))
self.addChild(WuiButton(self.envoy(), self, uid='change', label='WWW-Adresse ndern', bubble='Hier klicken, um die WWW-Adresse zu ndern', style=None, link='../pageInetAddress.html/change'))
self.addChild(WuiButton(self.envoy(), self, uid='changeSubject', label='Betreff ndern', bubble='Hier klicken, um den Betreff zu ndern', style=None, link='../pageInetAddress.html/changeSubject'))
self.addChild(WuiButton(self.envoy(), self, uid='trash', label='Lschen', bubble='Hier klicken zum lschen', style=None, link='../pageInetAddress.html/trash'))
self.addChild(WuiFieldset(self.envoy(), self, uid='effectivity', label='Gltigkeitszeitraum', bubble='Klicken Sie hier um mehr ber die Kartei "Gltigkeit" zu erfahren.', style=None))
self.addChild(WuiAttribute(self.envoy(), self, uid='effectivity_from', label='Gltig ab', bubble='Adresse gltig ab', style=None, link=None, value=entity.getEffectivity_from(oOp), visible=True, editable=False, required=False))
self.addChild(WuiAttribute(self.envoy(), self, uid='effectivity_until', label='Gltig bis', bubble='Adresse gltig bis', style=None, link=None, value=entity.getEffectivity_until(oOp), visible=True, editable=False, required=False))
self.addChild(WuiButton(self.envoy(), self, uid='changeEffectivity', label='Gltigkeit ndern', bubble='Hier klicken, um den Gltigkeitszeitraum zu ndern', style=None, link='../pageInetAddress.html/changeEffectivity'))
self.addChild(WuiFieldset(self.envoy(), self, uid='extended', label='Erweitert', bubble='Klicken Sie hier um mehr ber die Kartei "Erweitert" zu erfahren.', style=None))
#self.addWidget(wuiAttribute(self.envoy(), self, uid='AddressBookOfAddress', label='Adressbuch', bubble='Mehr Infos zu Adressbchern', style=None, link='../pageAddressBook.html/show', value=entity.getAddressBookOfAddress(oOp).getName(oOp), visible=True, editable=False, required=False))
self.addChild(PrvAddressBook_stripped(self.envoy(), self, 'prvAddressBook_stripped', entity.getAddressBookOfAddress(oOp), oOp))
self.addChild(WuiButton(self.envoy(), self, uid='changeAddressBookOfAddress', label='Adressbuch wechseln', bubble='Adressbuch wechseln', style=None, link='../pageInetAddress.html/changeAddressBook'))
def run(self):
list = []
for wid in self.getChildren():
wid.run()
list.append(wid.getOutput())
dictVars = {'list':list}
self.setOutput(psp.PSP(self.envoy().req(), filename='../psp/wuiMember_detailRow.psp', vars=dictVars))
|