liquid_feedback_frontend

annotate app/main/admin/_action/area_update.lua @ 81:134fce4bede3

Cache for rendered wiki texts; Accountless API keys; Reverse id order for initiative API
- Support for caching html version of drafts
- Using pre-rendered html versions of help messages
- Added Support for api keys not connected to an account
- Added order option "id_desc" to initiative API
author bsw
date Sat Jul 24 17:22:05 2010 +0200 (2010-07-24)
parents afd9f769c7ae
children 915cc0341538
rev   line source
bsw/jbe@5 1 if not app.session.member.admin then
bsw/jbe@5 2 error()
bsw/jbe@5 3 end
bsw/jbe@5 4
bsw/jbe@5 5 local id = param.get_id()
bsw/jbe@5 6
bsw/jbe@5 7 local area
bsw/jbe@5 8 if id then
bsw/jbe@5 9 area = Area:new_selector():add_where{ "id = ?", id }:single_object_mode():exec()
bsw/jbe@5 10 else
bsw/jbe@5 11 area = Area:new()
bsw/jbe@5 12 end
bsw/jbe@5 13
bsw/jbe@5 14
bsw/jbe@5 15 param.update(area, "name", "description", "active")
bsw/jbe@5 16
bsw/jbe@5 17 area:save()
bsw/jbe@5 18
bsw/jbe@5 19 slot.put_into("notice", _"Area successfully updated")

Impressum / About Us