[Checkins] SVN: bluebream/trunk/ - Main page after a fresh installation

Baiju M baiju.m.mail at gmail.com
Thu Jan 7 02:55:39 EST 2010


Log message for revision 107772:
  - Main page after a fresh installation
  - remove 'hello' view
  

Changed:
  U   bluebream/trunk/CHANGES.txt
  U   bluebream/trunk/README.txt
  U   bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/README.txt_tmpl
  U   bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/configure.zcml_tmpl
  U   bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/views.py

-=-
Modified: bluebream/trunk/CHANGES.txt
===================================================================
--- bluebream/trunk/CHANGES.txt	2010-01-07 07:53:16 UTC (rev 107771)
+++ bluebream/trunk/CHANGES.txt	2010-01-07 07:55:39 UTC (rev 107772)
@@ -4,6 +4,8 @@
 0.1.6 (unreleased)
 ------------------
 
+- LP #502819: Main page after a fresh installation
+
 0.1.5 (2010-01-07)
 ------------------
 

Modified: bluebream/trunk/README.txt
===================================================================
--- bluebream/trunk/README.txt	2010-01-07 07:53:16 UTC (rev 107771)
+++ bluebream/trunk/README.txt	2010-01-07 07:55:39 UTC (rev 107772)
@@ -17,7 +17,13 @@
 
 .. raw:: html
 
-  <object width="480" height="295"><param name="movie" value="http://www.youtube.com/v/HyG5Qee5wbs&hl=en_US&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/HyG5Qee5wbs&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed></object>
+  <object width="480" height="295"><param name="movie"
+  value="http://www.youtube.com/v/HyG5Qee5wbs&hl=en_US&fs=1&">
+  </param> <param name="allowFullScreen" value="true"></param><param
+  name="allowscriptaccess" value="always"></param><embed
+  src="http://www.youtube.com/v/HyG5Qee5wbs&hl=en_US&fs=1&"
+  type="application/x-shockwave-flash" allowscriptaccess="always"
+  allowfullscreen="true" width="480" height="295"></embed></object>
 
 Features
 --------
@@ -107,8 +113,8 @@
 
   $ ./bin/paster serve debug.ini
 
-There is a view named ``hello`` registered by default. which can be
-accessed here: http://localhost:8080/@@hello
+There is a view named ``index`` registered by default for root
+folder. which can be accessed here: http://localhost:8080/@@index
 
 You can continue reading about BlueBream from the `documentation site
 <http://packages.python.org/bluebream>`_.

Modified: bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/README.txt_tmpl
===================================================================
--- bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/README.txt_tmpl	2010-01-07 07:53:16 UTC (rev 107771)
+++ bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/README.txt_tmpl	2010-01-07 07:55:39 UTC (rev 107772)
@@ -7,6 +7,6 @@
 
   >>> from zope.testbrowser.testing import Browser
   >>> browser = Browser()
-  >>> browser.open('http://localhost/@@hello')
-  >>> browser.contents
-  'Hello'
+  >>> browser.open('http://localhost/@@index')
+  >>> 'Welcome to BlueBream' in browser.contents
+  True

Modified: bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/configure.zcml_tmpl
===================================================================
--- bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/configure.zcml_tmpl	2010-01-07 07:53:16 UTC (rev 107771)
+++ bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/configure.zcml_tmpl	2010-01-07 07:55:39 UTC (rev 107772)
@@ -1,12 +1,22 @@
 <configure
-   i18n_domain="${namespace_package}.main"
+   i18n_domain="testp.main"
    xmlns="http://namespaces.zope.org/browser">
 
+  <!-- The following two registrations (defaultView & page) are _not_
+       required for functioning your application.  These
+       registrations are given to provide a default page when you
+       access root folder from web like: http://localhost:8080/ -->
+
+  <defaultView
+     name="index"
+     for="zope.site.interfaces.IRootFolder"
+     />
+
   <page
-     for="*"
-     name="hello"
+     for="zope.site.interfaces.IRootFolder"
+     name="index"
      permission="zope.Public"
-     class=".views.HelloView"
+     class=".views.RootDefaultView"
      />
 
 </configure>

Modified: bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/views.py
===================================================================
--- bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/views.py	2010-01-07 07:53:16 UTC (rev 107771)
+++ bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/views.py	2010-01-07 07:55:39 UTC (rev 107772)
@@ -1,6 +1,16 @@
 from zope.publisher.browser import BrowserView
 
-class HelloView(BrowserView):
+class RootDefaultView(BrowserView):
 
     def __call__(self):
-        return "Hello"
+        return """\
+<html><head><title>Welcome to BlueBream!</title></head><body>
+<h1>Welcome to BlueBream!</h1>
+<ul>
+<li><a href="http://pypi.python.org/pypi/bluebream">PyPI page</a></li>
+<li><a href="http://packages.python.org/bluebream">Documentation</a></li>
+<li><a href="https://mail.zope.org/mailman/listinfo/zope3-users">Mailing list</a></li>
+<li><a href="http://webchat.freenode.net/?randomnick=1&channels=bluebream">IRC Channel: #bluebream at irc.freenode.net</a></li>
+</ul>
+</body></html>
+"""



More information about the checkins mailing list