Potlatch 0.11b

This commit is contained in:
Richard Fairhurst 2009-05-04 23:37:06 +00:00
parent c18d684dda
commit 8696d144ad
3 changed files with 451 additions and 122 deletions

View file

@ -510,6 +510,7 @@ class AmfController < ApplicationController
# We're deleting the relation
relation.delete_with_history!(new_relation, user)
end
updatetimeout(changeset_id)
end # transaction
if relid <= 0
@ -633,6 +634,7 @@ class AmfController < ApplicationController
# and we don't want to delete it
end
end
updatetimeout(changeset_id)
end # transaction
@ -695,6 +697,8 @@ class AmfController < ApplicationController
# We're deleting the node
node.delete_with_history!(new_node, user)
end
updatetimeout(changeset_id)
end # transaction
if id <= 0
@ -775,6 +779,7 @@ class AmfController < ApplicationController
# elsewhere and we don't want to delete it
end
end
updatetimeout(changeset_id)
end # transaction
[0, way_id]
@ -810,6 +815,15 @@ class AmfController < ApplicationController
return user
end
# Update changeset timeout
# i.e. one hour after current edit
def updatetimeout(changeset_id) #:doc:
cs = Changeset.find(changeset_id)
cs.closed_at = Time.now.getutc + Changeset::IDLE_TIMEOUT
cs.save!
end
# Send AMF response
def sendresponse(results)

File diff suppressed because it is too large Load diff

Binary file not shown.