summaryrefslogtreecommitdiffstats
path: root/app/logfiles/logfiles-model.lua
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2007-11-01 10:41:29 +0000
committerMika Havela <mika.havela@gmail.com>2007-11-01 10:41:29 +0000
commit55a89d64a17314bcf4b8c0eabf5b05deb9fd69ae (patch)
tree9c26d5ce71d0b16c8f53581fb024a3ad3704fad6 /app/logfiles/logfiles-model.lua
parentffb16c081fedc61e7924af04d1aa3697033a0db8 (diff)
downloadacf-core-55a89d64a17314bcf4b8c0eabf5b05deb9fd69ae.tar.bz2
acf-core-55a89d64a17314bcf4b8c0eabf5b05deb9fd69ae.tar.xz
Moved files that where placed in wrong folder (sorry for that).
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@238 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'app/logfiles/logfiles-model.lua')
-rw-r--r--app/logfiles/logfiles-model.lua22
1 files changed, 0 insertions, 22 deletions
diff --git a/app/logfiles/logfiles-model.lua b/app/logfiles/logfiles-model.lua
deleted file mode 100644
index 6198107..0000000
--- a/app/logfiles/logfiles-model.lua
+++ /dev/null
@@ -1,22 +0,0 @@
-module (..., package.seeall)
-
--- no initializer in model - use controller.init for that
-
-local function read_file ( path )
- local file = io.open(path)
- if ( file ) then
- local f = file:read("*a") or "unknown"
- file:close()
- return f
- else
- return "Cant find '" .. path .. "'"
- end
-end
-
-get = function (self,path)
- local file_content = {}
- file_content = cfe{value=read_file(path), name=path}
- file_name = cfe{value=path, name=file_name}
- return file_content, file_name
-end
-