[ckan-changes] commit/ckan: kindly: delete state now availible to change
Bitbucket
commits-noreply at bitbucket.org
Wed Jun 29 11:26:45 UTC 2011
1 new changeset in ckan:
http://bitbucket.org/okfn/ckan/changeset/ca1057b6e317/
changeset: ca1057b6e317
branch: feature-1141-moderated-edits-ajax
user: kindly
date: 2011-06-29 13:25:33
summary: delete state now availible to change
affected #: 1 file (125 bytes)
--- a/ckan/lib/dictization/__init__.py Wed Jun 29 11:14:32 2011 +0100
+++ b/ckan/lib/dictization/__init__.py Wed Jun 29 12:25:33 2011 +0100
@@ -122,7 +122,10 @@
if context.get('pending'):
if session.is_modified(obj, include_collections=False):
- obj.state = 'pending'
+ if table_dict.get('state', '') == 'deleted':
+ obj.state = 'pending-deleted'
+ else:
+ obj.state = 'pending'
session.add(obj)
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