From ad123a2478ec3c4f61d788654bdeb639f79163d2 Mon Sep 17 00:00:00 2001 From: helmutm Date: Mon, 22 Jan 2007 09:59:54 +0000 Subject: [PATCH] added package for Flash user interface git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1558 fd906abe-77d9-0310-91a1-e0d9ade77398 --- browser/flash/__init__.py | 4 +++ browser/flash/bg_gradient_grey.gif | Bin 0 -> 1616 bytes browser/flash/configure.zcml | 21 ++++++++++++ browser/flash/flash.pt | 38 ++++++++++++++++++++++ browser/flash/flash.py | 50 +++++++++++++++++++++++++++++ browser/flash/loops.swf | 1 + configure.zcml | 2 +- 7 files changed, 115 insertions(+), 1 deletion(-) create mode 100644 browser/flash/__init__.py create mode 100644 browser/flash/bg_gradient_grey.gif create mode 100644 browser/flash/configure.zcml create mode 100644 browser/flash/flash.pt create mode 100644 browser/flash/flash.py create mode 120000 browser/flash/loops.swf diff --git a/browser/flash/__init__.py b/browser/flash/__init__.py new file mode 100644 index 0000000..4bc90fb --- /dev/null +++ b/browser/flash/__init__.py @@ -0,0 +1,4 @@ +""" +$Id$ +""" + diff --git a/browser/flash/bg_gradient_grey.gif b/browser/flash/bg_gradient_grey.gif new file mode 100644 index 0000000000000000000000000000000000000000..b92249dfb836997ee428718c9756a308348d0001 GIT binary patch literal 1616 zcmV-W2Cw-?Nk%w1VF3WJ1or>{aDa(DSY%ytd}MfnRBCo`f{9LKa6MRMQ)+ZRS!O9n zR#9kkTylFlRbp&@h*xcRRcv-JPFqrFb2d_6Gf-Y@eupkgT0dH5Wp{y3W^yY^SVmxL zJXT{kQ(-bsUTuGeCq`8%M^-ylV`h1RF-}}uaeHcfg)K{2Z-9trdV^4Baw=?~ST0OjWO#vZfr)EsGXhU3SXnTZ7VQnZzRd0ZaIaFdzWpFc3U07~-Uvqs* zV{S-cY*T4;R%~`TRAEJ4YG`|dV0C_Bb$)DphF)`hZh(g`OjUu!~JXJU1KI#y#=Yp@E=^lwcYiNTTQ5yoS8R7T zRA5?fdS`lqUvqw2aeHKVfLn2THBnwdU1@B8hf88_Kw4%%TV_pVZ#`FKW_W@-S7S(E zY-4zVG*De9M^;W}aWYO^Q)zWAOIl)ferI`tMqg?wNLDLIS802NX?ufadV*nM0>kDLQoKlrm*XQio)c;u+~+q<0xE{*06v&V@@N7=NIAf&>T7t3Q9?0<{DeUdW&SqM9c{_k-xy z?~0HrRjybe;1yOxbH#yGEKx;*3J$Tv5JU6=p&5b*Vul%Z2x5mFM36%S5vhDQ%LcQg zqQr?OilL1XVzf9)7Nb0o#f*PEVdEcs{IL!ne1uU;7(hKCVwdP)qarmBoSa>&tyt32@k(1fg<@X$=HCFJ@{t|bUi!Xv&iAONre6e~a`Yh;26 zCYb=UMzUZ;%M2KU00Kz0gFpcV8ryE01|^iFK?^Nuh@;6Wng}7pD(VXH2^__If(j}< zz|q6K_HMHe2F~E%ufG`Ju*U#<6kN$3m0+{S2n<)kFvICAGQuJ$q_E656{mnl#T%b- z1}LE5q0SlTU}3T!`CuW-Iez#diykKUqK6*8m|*kGRG4tdB~<7@1r?D*qQlTbtD%Mr zGE|@j5J}6xG!RgKAj2C}OXI)?SZA#@8y_IShSx|0f<)LTl#N0lW#@pxB$I5hh1xm1 z{q_+#0C2?Jc;9``5e4uq{m(y;9Pzi`ko;}<;fN=$_~MK=?)c-7M=tr~lvi%~<(Ox# O`R1H=?m6cH0RTG_(UW=r literal 0 HcmV?d00001 diff --git a/browser/flash/configure.zcml b/browser/flash/configure.zcml new file mode 100644 index 0000000..2b816ff --- /dev/null +++ b/browser/flash/configure.zcml @@ -0,0 +1,21 @@ + + + + + + + + + + + + diff --git a/browser/flash/flash.pt b/browser/flash/flash.pt new file mode 100644 index 0000000..cd27784 --- /dev/null +++ b/browser/flash/flash.pt @@ -0,0 +1,38 @@ + + + + loops + + + + + + + + +
+ + + + + + + +
+ + + diff --git a/browser/flash/flash.py b/browser/flash/flash.py new file mode 100644 index 0000000..12b0eb8 --- /dev/null +++ b/browser/flash/flash.py @@ -0,0 +1,50 @@ +# +# Copyright (c) 2007 Helmut Merz helmutm@cy55.de +# +# 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# + +""" +View class(es) for Flash user interface. + +$Id$ +""" + +from zope.app.traversing.browser.absoluteurl import absoluteURL +from zope.cachedescriptors.property import Lazy + + +class FlashView(object): + """ + """ + + def __init__(self, context, request): + self.context = context + self.request = request + + def setHeaders(self): + response = self.request.response + response.setHeader('Content-Type', 'text/html;charset=utf-8') + response.setHeader('Expires', 'Sat, 1 Jan 2000 00:00:00 GMT'); + response.setHeader('Pragma', 'no-cache'); + + @Lazy + def loopsRoot(self): + return self.context.getLoopsRoot() + + #@Lazy + def loopsUrl(self): + return absoluteURL(self.loopsRoot, self.request) + diff --git a/browser/flash/loops.swf b/browser/flash/loops.swf new file mode 120000 index 0000000..7d60870 --- /dev/null +++ b/browser/flash/loops.swf @@ -0,0 +1 @@ +/home/helmutm/cc/programme/flash/loops.swf \ No newline at end of file diff --git a/configure.zcml b/configure.zcml index b8d4c4b..21e1d4f 100644 --- a/configure.zcml +++ b/configure.zcml @@ -49,7 +49,7 @@