[Checkins] SVN: Products.SQLAlchemyDA/trunk/ added getVersion()
Andreas Jung
andreas at andreas-jung.com
Sun May 6 06:48:59 EDT 2007
Log message for revision 75547:
added getVersion()
Changed:
U Products.SQLAlchemyDA/trunk/CHANGES.txt
U Products.SQLAlchemyDA/trunk/da.py
U Products.SQLAlchemyDA/trunk/pt/info.zpt
-=-
Modified: Products.SQLAlchemyDA/trunk/CHANGES.txt
===================================================================
--- Products.SQLAlchemyDA/trunk/CHANGES.txt 2007-05-06 10:46:20 UTC (rev 75546)
+++ Products.SQLAlchemyDA/trunk/CHANGES.txt 2007-05-06 10:48:59 UTC (rev 75547)
@@ -1,3 +1,9 @@
+0.2.1 (unreleased)
+
+ - connections can be closed/opened through the ZMI
+
+ - some code cleanup
+
0.2.0 (05.05.2007)
- first public release
Modified: Products.SQLAlchemyDA/trunk/da.py
===================================================================
--- Products.SQLAlchemyDA/trunk/da.py 2007-05-06 10:46:20 UTC (rev 75546)
+++ Products.SQLAlchemyDA/trunk/da.py 2007-05-06 10:48:59 UTC (rev 75547)
@@ -6,6 +6,7 @@
# and ZOPYX Ltd. & Co. KG, Tuebingen, Germany
##########################################################################
+import os
import logging
import time
@@ -206,6 +207,12 @@
msg = 'Database connections closed'
RESPONSE.redirect(self.absolute_url() + '/manage_workspace?manage_tabs_message=%s' % msg)
+
+ security.declareProtected(view_management_screens, 'getVersion')
+ def getVersion(self):
+ """ return version.txt """
+ return open(os.path.join(os.path.dirname(__file__), 'version.txt')).read()
+
manage_workspace = PageTemplateFile('pt/info',
globals(),
Modified: Products.SQLAlchemyDA/trunk/pt/info.zpt
===================================================================
--- Products.SQLAlchemyDA/trunk/pt/info.zpt 2007-05-06 10:46:20 UTC (rev 75546)
+++ Products.SQLAlchemyDA/trunk/pt/info.zpt 2007-05-06 10:48:59 UTC (rev 75547)
@@ -31,9 +31,9 @@
<hr>
<div style="font-size: 80%; text-align: center" >
-Written by Andreas Jung for <a href="http://www.zopyx.com">ZOPYX Ltd. & Co. KG</a>, D-72070 Tuebingen, Germany.
+Written by Andreas Jung for <a href="http://www.zopyx.com">ZOPYX Ltd. & Co. KG</a>, D-72070 Tübingen, Germany.
<br>
-SQLAlchemyDA is published under the Zope Public License ZPL 2.1.
+SQLAlchemyDA <span tal:replace="context/getVersion"/> is published under the Zope Public License ZPL 2.1.
</div>
<div tal:replace="structure context/manage_page_footer" />
More information about the Checkins
mailing list