[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
r5205 - in trunk/gnue-common/src/schema: . scripter/processors
From: |
johannes |
Subject: |
r5205 - in trunk/gnue-common/src/schema: . scripter/processors |
Date: |
Mon, 1 Mar 2004 07:30:25 -0600 (CST) |
Author: johannes
Date: 2004-03-01 07:30:24 -0600 (Mon, 01 Mar 2004)
New Revision: 5205
Modified:
trunk/gnue-common/src/schema/GSData.py
trunk/gnue-common/src/schema/scripter/processors/HTML.py
Log:
Fixed unquoteString (), so it only removes quotes which are at the begin AND
end of the string. Fixed HTML-processor to use mx.DateTime instead of strftime
Modified: trunk/gnue-common/src/schema/GSData.py
===================================================================
--- trunk/gnue-common/src/schema/GSData.py 2004-03-01 13:09:17 UTC (rev
5204)
+++ trunk/gnue-common/src/schema/GSData.py 2004-03-01 13:30:24 UTC (rev
5205)
@@ -368,10 +368,8 @@
This function strips away leading and trailling quotes (single or double)
from a string.
"""
- if len (aString) and aString [0] in ['"', "'"]:
- aString = aString [1:]
+ if len (aString) > 1 and aString [0] in ['"', "'"]:
+ if aString [-1] == aString [0]:
+ aString = aString [1:-1]
- if len (aString) and aString [-1] in ['"', "'"]:
- aString = aString [:-1]
-
return aString
Modified: trunk/gnue-common/src/schema/scripter/processors/HTML.py
===================================================================
--- trunk/gnue-common/src/schema/scripter/processors/HTML.py 2004-03-01
13:09:17 UTC (rev 5204)
+++ trunk/gnue-common/src/schema/scripter/processors/HTML.py 2004-03-01
13:30:24 UTC (rev 5205)
@@ -22,7 +22,7 @@
from gnue.common.schema.scripter.processors.Base import BaseProcessor
from string import join
-from time import strftime
+from mx.DateTime import now
name = "HTML"
description = "HTML 4.01"
@@ -257,7 +257,7 @@
table.writeDefinition (self.destination, self.encoding)
self._writeText ('<HR>')
- self._writeText (['<P>%s %s</P>' % (_("Generated on"), strftime ('%c'))])
+ self._writeText (['<P>%s %s UTC</P>' % (_("Generated on"), now ())])
self._writeText (['</BODY>'])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- r5205 - in trunk/gnue-common/src/schema: . scripter/processors,
johannes <=