gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: rev 54733 - gump/trunk/conf/brutus.apache.org/var/www/dynagump
Date Wed, 13 Oct 2004 05:45:01 GMT
Author: stefano
Date: Tue Oct 12 22:45:00 2004
New Revision: 54733

Added:
   gump/trunk/conf/brutus.apache.org/var/www/dynagump/
   gump/trunk/conf/brutus.apache.org/var/www/dynagump/Main.py
   gump/trunk/conf/brutus.apache.org/var/www/dynagump/__init__.py
Log:
adding the stub for dynagump


Added: gump/trunk/conf/brutus.apache.org/var/www/dynagump/Main.py
==============================================================================
--- (empty file)
+++ gump/trunk/conf/brutus.apache.org/var/www/dynagump/Main.py	Tue Oct 12 22:45:00 2004
@@ -0,0 +1,30 @@
+from WebKit.Page import Page
+
+class Main(Page):
+
+        def title(self):
+                return 'My Sample Context'
+
+        def writeContent(self):
+                self.writeln('<h1>Welcome to Webware!</h1>')
+                self.writeln('''
+                This is a sample context generated for you and has purposly been kept very
simple
+                to give you something to play with to get yourself started.  The code that
implements
+                this page is located in <b>%s</b>.
+                ''' % self.request().serverSidePath())
+
+                self.writeln('''
+                <p>
+                There are more examples and documentaion in the Webware distribution, which
you
+                can get to from here:<p><ul>
+                ''')
+
+                adapterName = self.request().adapterName()
+                ctxs = self.application().contexts().keys()
+                ctxs = filter(lambda ctx: ctx!='default', ctxs)
+                ctxs.sort()
+                for ctx in ctxs:
+                        self.writeln('<li><a href="%s/%s/">%s</a>' % (adapterName,
ctx, ctx))
+
+                self.writeln('</ul>')
+

Added: gump/trunk/conf/brutus.apache.org/var/www/dynagump/__init__.py
==============================================================================
--- (empty file)
+++ gump/trunk/conf/brutus.apache.org/var/www/dynagump/__init__.py	Tue Oct 12 22:45:00 2004
@@ -0,0 +1,5 @@
+def contextInitialize(appServer, path):
+        # You could put initialization code here to be executed when
+        # the context is loaded into WebKit.
+        pass
+

Mime
View raw message