From 097e6a08379d788f6e6d35e77c0acd06b7c8d0e0 Mon Sep 17 00:00:00 2001 From: helmutm Date: Sat, 28 Aug 2004 08:21:53 +0000 Subject: [PATCH] First simple view added git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@91 fd906abe-77d9-0310-91a1-e0d9ade77398 --- browser/__init__.py | 4 ++++ browser/configure.zcml | 45 ++++++++++++++++++++++++++++++++++++++++++ configure.zcml | 16 ++++++++++----- task.py | 3 ++- 4 files changed, 62 insertions(+), 6 deletions(-) create mode 100644 browser/__init__.py create mode 100644 browser/configure.zcml diff --git a/browser/__init__.py b/browser/__init__.py new file mode 100644 index 0000000..4bc90fb --- /dev/null +++ b/browser/__init__.py @@ -0,0 +1,4 @@ +""" +$Id$ +""" + diff --git a/browser/configure.zcml b/browser/configure.zcml new file mode 100644 index 0000000..8f53956 --- /dev/null +++ b/browser/configure.zcml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + diff --git a/configure.zcml b/configure.zcml index ed9c6a6..ec5886d 100644 --- a/configure.zcml +++ b/configure.zcml @@ -1,10 +1,12 @@ + + - + @@ -26,13 +28,17 @@ id="loops.Task" description="Task object " /> - + interface="zope.app.container.interfaces.IReadContainer"/> --> + permission="zope.View" + interface=".interfaces.ITask"/> + + diff --git a/task.py b/task.py index 5b68c9c..c941bc2 100644 --- a/task.py +++ b/task.py @@ -19,7 +19,7 @@ """ Definition of the Task class. -$Id: task.py $ +$Id$ """ from zope.interface import implements @@ -37,4 +37,5 @@ class Task(Entity): implements(ITask) title = u'' + #title = property(_getTitle, _setTitle)