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 0000000..b92249d Binary files /dev/null and b/browser/flash/bg_gradient_grey.gif differ 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 @@