[Checkins] SVN: zopyx.smartprintng.server/trunk/ minor tweaks

Andreas Jung andreas at andreas-jung.com
Thu Jul 9 10:43:15 EDT 2009


Log message for revision 101764:
  minor tweaks
  

Changed:
  U   zopyx.smartprintng.server/trunk/server.ini
  U   zopyx.smartprintng.server/trunk/setup.py
  U   zopyx.smartprintng.server/trunk/zopyx/smartprintng/server/templates/index.pt
  U   zopyx.smartprintng.server/trunk/zopyx/smartprintng/server/templates/static/default.css
  U   zopyx.smartprintng.server/trunk/zopyx/smartprintng/server/views.py

-=-
Modified: zopyx.smartprintng.server/trunk/server.ini
===================================================================
--- zopyx.smartprintng.server/trunk/server.ini	2009-07-09 14:42:44 UTC (rev 101763)
+++ zopyx.smartprintng.server/trunk/server.ini	2009-07-09 14:43:15 UTC (rev 101764)
@@ -10,4 +10,4 @@
 [server:main]
 use = egg:Paste#http
 host = 0.0.0.0
-port = 6543
+port = 8080

Modified: zopyx.smartprintng.server/trunk/setup.py
===================================================================
--- zopyx.smartprintng.server/trunk/setup.py	2009-07-09 14:42:44 UTC (rev 101763)
+++ zopyx.smartprintng.server/trunk/setup.py	2009-07-09 14:43:15 UTC (rev 101764)
@@ -13,7 +13,7 @@
         "Programming Language :: Python",
         "Topic :: Software Development :: Libraries :: Python Modules",
         ],
-      keywords='SmartPrintNG Conversion Twisted',
+      keywords='SmartPrintNG Conversion repoze.bfg',
       author='Andreas Jung',
       author_email='info at zopyx.com',
       url='',

Modified: zopyx.smartprintng.server/trunk/zopyx/smartprintng/server/templates/index.pt
===================================================================
--- zopyx.smartprintng.server/trunk/zopyx/smartprintng/server/templates/index.pt	2009-07-09 14:42:44 UTC (rev 101763)
+++ zopyx.smartprintng.server/trunk/zopyx/smartprintng/server/templates/index.pt	2009-07-09 14:43:15 UTC (rev 101764)
@@ -13,6 +13,13 @@
       <img src="${request.application_url}/static/zopyx_logo.png" /> 
       <h2>ZOPYX SmartPrintNG Server</h2>
   </div>
+  <br/>
+  <div>
+  Available converters: 
+  <ul>
+    <li tal:repeat="c converters" tal:content="c" />
+  </ul>
+  </div>
   <hr/>
   <div id="footer">
       (C) 2009, ZOPYX Ltd. &amp; Co. KG, www.zopyx.com, info at zopyx.com

Modified: zopyx.smartprintng.server/trunk/zopyx/smartprintng/server/templates/static/default.css
===================================================================
--- zopyx.smartprintng.server/trunk/zopyx/smartprintng/server/templates/static/default.css	2009-07-09 14:42:44 UTC (rev 101763)
+++ zopyx.smartprintng.server/trunk/zopyx/smartprintng/server/templates/static/default.css	2009-07-09 14:43:15 UTC (rev 101764)
@@ -3,13 +3,11 @@
 }
 
 #logo h2 {
-    float: left;
     padding-left: 200px;
 
 }
 
 #logo img {
-    float: left;
 }
 
 #footer {

Modified: zopyx.smartprintng.server/trunk/zopyx/smartprintng/server/views.py
===================================================================
--- zopyx.smartprintng.server/trunk/zopyx/smartprintng/server/views.py	2009-07-09 14:42:44 UTC (rev 101763)
+++ zopyx.smartprintng.server/trunk/zopyx/smartprintng/server/views.py	2009-07-09 14:43:15 UTC (rev 101764)
@@ -15,11 +15,19 @@
 # HTTP views
 ##################
 
-def index(context, request):
-    return render_template_to_response('templates/index.pt',
-                                       request = request,
-                                       project = 'zopyx.smartprintng.server')
+class index(object):
 
+    def __init__(self, context, request):
+        self.context = context
+        self.request = request
+
+    def __call__(self):
+        converters = ServerCore().availableConverters()
+        return render_template_to_response('templates/index.pt',
+                                           converters=converters,
+                                           request=self.request,
+                                           project='zopyx.smartprintng.server')
+
 ##################
 # XMLRPC views
 ##################



More information about the Checkins mailing list