[ckan-changes] commit/vdm: 5 new changesets

Bitbucket commits-noreply at bitbucket.org
Wed Oct 26 17:35:11 UTC 2011


5 new commits in vdm:


https://bitbucket.org/okfn/vdm/changeset/fea59542c4a0/
changeset:   fea59542c4a0
user:        dread
date:        2011-10-26 19:29:33
summary:     [tools]: Bumped version to 0.10 for sqla 0.7 compatibility. Fixed minor timestamp issues - all use utc now.
affected #:  3 files

diff -r 54193f2df710993f48626ba93c9119755459e6b1 -r fea59542c4a0a21e04dc42b87b38f802e0f76666 vdm/__init__.py
--- a/vdm/__init__.py
+++ b/vdm/__init__.py
@@ -191,5 +191,5 @@
   3. This change is notified to a moderator
   4. A moderator either allows or disallows the change
 '''
-__version__ = '0.9'
+__version__ = '0.10'
 __description__ = 'A versioned domain model framework.'


diff -r 54193f2df710993f48626ba93c9119755459e6b1 -r fea59542c4a0a21e04dc42b87b38f802e0f76666 vdm/sqlalchemy/base.py
--- a/vdm/sqlalchemy/base.py
+++ b/vdm/sqlalchemy/base.py
@@ -80,7 +80,7 @@
 def make_revision_table(metadata):
     revision_table = Table('revision', metadata,
             Column('id', UnicodeText, primary_key=True, default=make_uuid),
-            Column('timestamp', DateTime, default=datetime.now),
+            Column('timestamp', DateTime, default=datetime.utcnow),
             Column('author', String(200)),
             Column('message', UnicodeText),
             Column('state', UnicodeText, default=State.ACTIVE)


diff -r 54193f2df710993f48626ba93c9119755459e6b1 -r fea59542c4a0a21e04dc42b87b38f802e0f76666 vdm/sqlalchemy/tools.py
--- a/vdm/sqlalchemy/tools.py
+++ b/vdm/sqlalchemy/tools.py
@@ -2,6 +2,8 @@
 
 Primarily organized within a `Repository` object.
 '''
+from sqlalchemy import MetaData
+
 import logging
 logger = logging.getLogger('vdm')
 
@@ -80,7 +82,7 @@
     def clean_db(self):
         logger.info('Cleaning DB')
         self.metadata.drop_all(bind=self.metadata.bind)
-
+        
     def rebuild_db(self):
         logger.info('Rebuilding DB')
         self.clean_db()
@@ -195,7 +197,7 @@
                 self.session.delete(cont)
         if leave_record:
             import datetime
-            revision.message = u'PURGED: %s' % datetime.datetime.now()
+            revision.message = u'PURGED: %s UTC' % datetime.datetime.utcnow()
         else:
             self.session.delete(revision)
         self.commit_and_remove()



https://bitbucket.org/okfn/vdm/changeset/2832546fdde0/
changeset:   2832546fdde0
user:        dread
date:        2011-10-26 19:29:46
summary:     Added tag vdm-0.10 for changeset fea59542c4a0
affected #:  1 file

diff -r fea59542c4a0a21e04dc42b87b38f802e0f76666 -r 2832546fdde0f90e848ccecf9cb52cf4af12ff65 .hgtags
--- a/.hgtags
+++ b/.hgtags
@@ -9,3 +9,4 @@
 9d5bb923c7776d2e686294d8b0c3ec32bf5ef79c vdm-0.8
 0000000000000000000000000000000000000000 vdm-0.8
 e36341098b5b8ec1717ed0304a1ee4d9e6c565cd vdm-0.9
+fea59542c4a0a21e04dc42b87b38f802e0f76666 vdm-0.10



https://bitbucket.org/okfn/vdm/changeset/0ab6cb578a5e/
changeset:   0ab6cb578a5e
user:        dread
date:        2011-10-26 19:30:53
summary:     Removed tag vdm-0.10
affected #:  1 file

diff -r 2832546fdde0f90e848ccecf9cb52cf4af12ff65 -r 0ab6cb578a5e38db35a3b4e359c45aa820e00e51 .hgtags
--- a/.hgtags
+++ b/.hgtags
@@ -10,3 +10,5 @@
 0000000000000000000000000000000000000000 vdm-0.8
 e36341098b5b8ec1717ed0304a1ee4d9e6c565cd vdm-0.9
 fea59542c4a0a21e04dc42b87b38f802e0f76666 vdm-0.10
+fea59542c4a0a21e04dc42b87b38f802e0f76666 vdm-0.10
+0000000000000000000000000000000000000000 vdm-0.10



https://bitbucket.org/okfn/vdm/changeset/cbaee74f37a3/
changeset:   cbaee74f37a3
user:        dread
date:        2011-10-26 19:31:40
summary:     [changelog] updated for 0.10.
affected #:  1 file

diff -r 0ab6cb578a5e38db35a3b4e359c45aa820e00e51 -r cbaee74f37a313fbee9d2fcb5e9ee614c80aadb1 CHANGELOG.txt
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -1,6 +1,11 @@
 HEAD
 ====
 
+v0.10 2011-10-26
+================
+  * Support for SQLAlchemy 0.7
+  * Fix timestamps to be UTC.
+
 v0.9 2010-01-11
 ===============
  



https://bitbucket.org/okfn/vdm/changeset/ef88fd342a12/
changeset:   ef88fd342a12
user:        dread
date:        2011-10-26 19:31:48
summary:     Added tag vdm-0.10 for changeset cbaee74f37a3
affected #:  1 file

diff -r cbaee74f37a313fbee9d2fcb5e9ee614c80aadb1 -r ef88fd342a12f0040792645d1bf70ccad2f87a9e .hgtags
--- a/.hgtags
+++ b/.hgtags
@@ -12,3 +12,5 @@
 fea59542c4a0a21e04dc42b87b38f802e0f76666 vdm-0.10
 fea59542c4a0a21e04dc42b87b38f802e0f76666 vdm-0.10
 0000000000000000000000000000000000000000 vdm-0.10
+0000000000000000000000000000000000000000 vdm-0.10
+cbaee74f37a313fbee9d2fcb5e9ee614c80aadb1 vdm-0.10

Repository URL: https://bitbucket.org/okfn/vdm/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.




More information about the ckan-changes mailing list