From 4d30eff878f33f2d07811c8f5ccce09c538ebb8d Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 5 Jun 2008 15:46:48 +0000 Subject: Updated alpineverion to use new cfe model git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1200 ab2d0c66-481e-0410-8bed-d214d4d58bed --- alpineversion-controller.lua | 2 +- alpineversion-model.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/alpineversion-controller.lua b/alpineversion-controller.lua index a90c306..4d785ae 100644 --- a/alpineversion-controller.lua +++ b/alpineversion-controller.lua @@ -5,6 +5,6 @@ module (..., package.seeall) default_action = "read" read = function (self ) - return self.model:get() + return self.model.get() end diff --git a/alpineversion-model.lua b/alpineversion-model.lua index 830cf59..67a348c 100644 --- a/alpineversion-model.lua +++ b/alpineversion-model.lua @@ -4,11 +4,11 @@ module (..., package.seeall) -- no initializer in model - use controller.init for that -get = function (self) +get = function () require("fs") local liboutput = fs.read_file("/etc/alpine-release") if (liboutput == nil) or (liboutput == "") then liboutput = "Unknown version" end - return liboutput + return cfe({ value=liboutput, label="Alpine version" }) end -- cgit v1.2.3