summaryrefslogtreecommitdiffstats
path: root/extjsdemo-model.lua
diff options
context:
space:
mode:
authorNatanael Copa <natanael.copa@gmail.com>2008-02-01 14:40:45 +0000
committerNatanael Copa <natanael.copa@gmail.com>2008-02-01 14:40:45 +0000
commit0818e8ec1ce0a2e3f71e7b0e551e0f4071ebfd2d (patch)
tree8dbeb4225ed6d39467e6d39b6bdbe31755a1cc8b /extjsdemo-model.lua
parentfffed594467064f07b480b0d651a541612b35a7f (diff)
downloadacf-sandbox-0818e8ec1ce0a2e3f71e7b0e551e0f4071ebfd2d.tar.bz2
acf-sandbox-0818e8ec1ce0a2e3f71e7b0e551e0f4071ebfd2d.tar.xz
added extjs demo
git-svn-id: svn://svn.alpinelinux.org/acf/sandbox/trunk@679 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'extjsdemo-model.lua')
-rw-r--r--extjsdemo-model.lua25
1 files changed, 25 insertions, 0 deletions
diff --git a/extjsdemo-model.lua b/extjsdemo-model.lua
new file mode 100644
index 0000000..7103e2d
--- /dev/null
+++ b/extjsdemo-model.lua
@@ -0,0 +1,25 @@
+-- ipsec controller
+
+module(..., package.seeall)
+
+require("posix")
+
+---------------------------------------------------------
+-- privileged funcs
+
+priv = {}
+function priv.getuid()
+ return posix.getpid().euid
+end
+
+
+
+-------------------------------------------------------------
+-- Unprivileged funcs
+
+function getuid(self)
+ return posix.getpid().euid
+end
+
+
+