[ckan-changes] commit/ckan: kindly: [moderated edits] get rid of debugger

Bitbucket commits-noreply at bitbucket.org
Thu Jun 9 11:41:39 UTC 2011


1 new changeset in ckan:

http://bitbucket.org/okfn/ckan/changeset/e8302e3d3bec/
changeset:   e8302e3d3bec
branch:      feature-1141-moderated-edits-ajax
user:        kindly
date:        2011-06-09 13:41:21
summary:     [moderated edits] get rid of debugger
affected #:  1 file (157 bytes)

--- a/ckan/controllers/package.py	Thu Jun 09 11:56:45 2011 +0100
+++ b/ckan/controllers/package.py	Thu Jun 09 12:41:21 2011 +0100
@@ -387,16 +387,12 @@
             else:
                 current_approved = False
             
-            try:
-                data.append({'revision_id': revision.id,
-                             'message': revision.message,
-                             'timestamp': format_datetime(revision.timestamp, 
-                                                          locale=get_lang()[0] or 'en'),
-                             'approved': bool(revision.approved_timestamp),
-                             'current_approved': current_approved})
-            except Exception, e:
-                from nose.tools import set_trace; set_trace()
-                pass
+            data.append({'revision_id': revision.id,
+                         'message': revision.message,
+                         'timestamp': format_datetime(revision.timestamp, 
+                                                      locale=get_lang()[0] or 'en'),
+                         'approved': bool(revision.approved_timestamp),
+                         'current_approved': current_approved})
                 
         response.headers['Content-Type'] = 'application/json;charset=utf-8'
         return json.dumps(data)

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

--

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