incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r614333 [3/3] - in /incubator/public/trunk: ./ audit/
Date Tue, 22 Jan 2008 21:39:03 GMT
Added: incubator/public/trunk/audit/incubator-2008-01-22.xml.asc
URL: http://svn.apache.org/viewvc/incubator/public/trunk/audit/incubator-2008-01-22.xml.asc?rev=614333&view=auto
==============================================================================
--- incubator/public/trunk/audit/incubator-2008-01-22.xml.asc (added)
+++ incubator/public/trunk/audit/incubator-2008-01-22.xml.asc Tue Jan 22 13:39:00 2008
@@ -0,0 +1,7 @@
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.7 (GNU/Linux)
+
+iD8DBQBHlmE0l6Otx30NTe0RApllAJ4uhIua5+5cHBv6CGy74ihOsZ9YEQCeNg0C
+eedMf6wb8DqoTpFj+poK+0g=
+=7YzE
+-----END PGP SIGNATURE-----

Modified: incubator/public/trunk/connect.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/connect.py?rev=614333&r1=614332&r2=614333&view=diff
==============================================================================
--- incubator/public/trunk/connect.py (original)
+++ incubator/public/trunk/connect.py Tue Jan 22 13:39:00 2008
@@ -93,7 +93,7 @@
  limitations under the License.
 
 -->
-<audit>""" + xml + "</audit>"
+<audit on='""" + datetime.datetime.utcnow().date().isoformat() + "'>" + xml + "</audit>"
     path = save('incubator', xml)
     subprocess.Popen('gpg --armor --detach-sig ' + path, shell=True).wait()
     

Modified: incubator/public/trunk/diff.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/diff.py?rev=614333&r1=614332&r2=614333&view=diff
==============================================================================
--- incubator/public/trunk/diff.py (original)
+++ incubator/public/trunk/diff.py Tue Jan 22 13:39:00 2008
@@ -73,6 +73,7 @@
     def load(self, document):
         self.documents = []
         self.__current = None
+        self.on = None
         parser = xml.parsers.expat.ParserCreate()
         parser.StartElementHandler = self.start_element
         parser.EndElementHandler = self.end_element
@@ -80,6 +81,8 @@
         parser.Parse(document)
     
     def start_element(self, name, attrs):
+        if name == 'audit':
+            self.on = attrs.get('on')
         if name == 'document':
             self.__current = Document()
             self.documents.append(self.__current)

Modified: incubator/public/trunk/tests.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/tests.py?rev=614333&r1=614332&r2=614333&view=diff
==============================================================================
--- incubator/public/trunk/tests.py (original)
+++ incubator/public/trunk/tests.py Tue Jan 22 13:39:00 2008
@@ -40,7 +40,7 @@
         
     def testLoad(self):
         documents = diff.Documents()
-        documents.load("""<?xml version="1.0"?><audit><documents>
+        documents.load("""<?xml version="1.0"?><audit on='2008-01-22'><documents>
  <document dir='a directory' name='a name' >
   <md5>MD5 SUM</md5>
   <sha512>SHA SUM</sha512>
@@ -55,6 +55,7 @@
  """)
         
         self.assert_(not documents.documents == None)
+        self.assertEqual('2008-01-22', documents.on)
         self.assertEqual(2, len(documents.documents))
         document = documents.documents[0]
         self.assertEqual('a directory', document.dir)



---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message