some minor improvements
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@615 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
		
							parent
							
								
									bc05aad5a4
								
							
						
					
					
						commit
						2e55d2273e
					
				
					 3 changed files with 10 additions and 10 deletions
				
			
		| 
						 | 
				
			
			@ -28,7 +28,7 @@ from zope.security.proxy import removeSecurityProxy
 | 
			
		|||
 | 
			
		||||
from loops.interfaces import ITask
 | 
			
		||||
 | 
			
		||||
class Details:
 | 
			
		||||
class Details(object):
 | 
			
		||||
 | 
			
		||||
    def modified(self):
 | 
			
		||||
        """ get date/time of last modification
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -11,8 +11,7 @@
 | 
			
		|||
 | 
			
		||||
  <interface
 | 
			
		||||
      interface=".interfaces.ITask"
 | 
			
		||||
      type="zope.app.content.interfaces.IContentType"
 | 
			
		||||
      />
 | 
			
		||||
      type="zope.app.content.interfaces.IContentType" />
 | 
			
		||||
 | 
			
		||||
  <content class=".task.Task">
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -21,11 +20,12 @@
 | 
			
		|||
    <implements
 | 
			
		||||
       interface="zope.app.annotation.interfaces.IAttributeAnnotatable" />
 | 
			
		||||
 | 
			
		||||
    <implements interface="zope.app.workflow.interfaces.IProcessInstanceContainerAdaptable" />
 | 
			
		||||
    <implements
 | 
			
		||||
        interface="zope.app.workflow.interfaces.IProcessInstanceContainerAdaptable" />
 | 
			
		||||
 | 
			
		||||
    <factory
 | 
			
		||||
        id="loops.Task"
 | 
			
		||||
        description="Task object " />
 | 
			
		||||
        description="Task object" />
 | 
			
		||||
 | 
			
		||||
    <!-- <require
 | 
			
		||||
        permission="zope.View"
 | 
			
		||||
| 
						 | 
				
			
			@ -33,11 +33,11 @@
 | 
			
		|||
 | 
			
		||||
    <require
 | 
			
		||||
        permission="zope.View"
 | 
			
		||||
        interface=".interfaces.ITask"/>
 | 
			
		||||
        interface=".interfaces.ITask" />
 | 
			
		||||
 | 
			
		||||
    <require
 | 
			
		||||
        permission="zope.ManageContent"
 | 
			
		||||
        set_schema=".interfaces.ITask"/>
 | 
			
		||||
        set_schema=".interfaces.ITask" />
 | 
			
		||||
 | 
			
		||||
  </content>
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										4
									
								
								task.py
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								task.py
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -26,6 +26,7 @@ from zope.interface import implements
 | 
			
		|||
from zope.app.container.ordered import OrderedContainer
 | 
			
		||||
from zope.app.copypastemove import ObjectCopier
 | 
			
		||||
from zope.app import zapi
 | 
			
		||||
from zope.schema.fieldproperty import FieldProperty
 | 
			
		||||
 | 
			
		||||
from relation import Relation, Relations
 | 
			
		||||
from resource import Resource
 | 
			
		||||
| 
						 | 
				
			
			@ -51,8 +52,7 @@ class Task(OrderedContainer):
 | 
			
		|||
 | 
			
		||||
    title = u''
 | 
			
		||||
    qualifier = u''
 | 
			
		||||
    priority = 0
 | 
			
		||||
 | 
			
		||||
    priority = FieldProperty(ITask['priority'])
 | 
			
		||||
 | 
			
		||||
    def __init__(self):
 | 
			
		||||
        OrderedContainer.__init__(self)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue