# -*- coding: utf8 -*-
# $Id: consumerShopP.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/
# =========================================================================
# $Id: consumerShopP.py 568 2007-05-01 18:02:20Z ahatzis $
# import the container's base-class:
from webUI.wuiController import WuiController
# import the envoy class:
from sitePetStoreConsumerShop import SitePetStoreConsumerShop
# site-specific or controller-template specific?
from petstore.internet.core.ssoServer.ssoServer import SsoServer
class ConsumerShopP(WuiController):
"""TODO: doc string"""
def __init__(self, oReq):
"""TODO: doc string"""
self.__ssoServer = SsoServer() # site-specific or controller-template specific?
self._envoy = SitePetStoreConsumerShop(self, oReq)
super(ConsumerShopP, self).__init__(self._envoy)
self.__dictOutputs = {}
self.envoy().req().content_type = 'text/html; charset=utf-8'
self.envoy().req().headers_out['Pragma'] = 'no-cache'
self.envoy().req().headers_out['Cache-Control'] = 'no-cache'
self.envoy().req().headers_out['Expires'] = '-1'
self.title = u'Page title here'
self.subtitle = u'Page sub-title here'
# if not self.strSSO():
# util.redirect(self.envoy().req(), '../SignOn.html/form?sso=1')
def ssoServer(self):
return self.__ssoServer
#
#
# def addOutput(self, uid, oPSP):
# self.__dictOutputs[uid] = oPSP
#
#
#
# def getOutput(self, uid):
# return self.__dictOutputs[uid]
|