create interface IAddress with IConceptSchema as base class
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@2544 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
		
							parent
							
								
									c9e8430fc9
								
							
						
					
					
						commit
						b92824d978
					
				
					 4 changed files with 11 additions and 5 deletions
				
			
		|  | @ -26,9 +26,9 @@ | ||||||
|   <zope:adapter factory="loops.organize.party.Address" trusted="True" /> |   <zope:adapter factory="loops.organize.party.Address" trusted="True" /> | ||||||
|   <zope:class class="loops.organize.party.Address"> |   <zope:class class="loops.organize.party.Address"> | ||||||
|     <require permission="zope.View" |     <require permission="zope.View" | ||||||
|              interface="cybertools.organize.interfaces.IAddress" /> |              interface="loops.organize.interfaces.IAddress" /> | ||||||
|     <require permission="zope.ManageContent" |     <require permission="zope.ManageContent" | ||||||
|              set_schema="cybertools.organize.interfaces.IAddress" /> |              set_schema="loops.organize.interfaces.IAddress" /> | ||||||
|   </zope:class> |   </zope:class> | ||||||
| 
 | 
 | ||||||
|   <zope:adapter factory="loops.organize.task.Task" trusted="True" /> |   <zope:adapter factory="loops.organize.task.Task" trusted="True" /> | ||||||
|  |  | ||||||
|  | @ -29,6 +29,7 @@ from zope.app.principalannotation import annotations | ||||||
| from zope.app.security.interfaces import IAuthentication, PrincipalLookupError | from zope.app.security.interfaces import IAuthentication, PrincipalLookupError | ||||||
| from zope.security.proxy import removeSecurityProxy | from zope.security.proxy import removeSecurityProxy | ||||||
| 
 | 
 | ||||||
|  | from cybertools.organize.interfaces import IAddress as IBaseAddress | ||||||
| from cybertools.organize.interfaces import IPerson as IBasePerson | from cybertools.organize.interfaces import IPerson as IBasePerson | ||||||
| from cybertools.organize.interfaces import ITask | from cybertools.organize.interfaces import ITask | ||||||
| from loops.interfaces import IConceptSchema | from loops.interfaces import IConceptSchema | ||||||
|  | @ -99,6 +100,11 @@ class IPerson(IConceptSchema, IBasePerson): | ||||||
|                     required=False,) |                     required=False,) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | class IAddress(IConceptSchema, IBaseAddress): | ||||||
|  |     """ See cybertools.organize. | ||||||
|  |     """ | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| class IPasswordEntry(Interface): | class IPasswordEntry(Interface): | ||||||
| 
 | 
 | ||||||
|     password = schema.Password(title=_(u'Password'), |     password = schema.Password(title=_(u'Password'), | ||||||
|  |  | ||||||
|  | @ -34,13 +34,13 @@ from zope.schema.interfaces import ValidationError | ||||||
| from zope.app.form.interfaces import WidgetInputError | from zope.app.form.interfaces import WidgetInputError | ||||||
| from zope.security.proxy import removeSecurityProxy | from zope.security.proxy import removeSecurityProxy | ||||||
| 
 | 
 | ||||||
| from cybertools.organize.interfaces import IAddress |  | ||||||
| from cybertools.organize.party import Person as BasePerson | from cybertools.organize.party import Person as BasePerson | ||||||
| from cybertools.relation.interfaces import IRelationRegistry | from cybertools.relation.interfaces import IRelationRegistry | ||||||
| from cybertools.typology.interfaces import IType | from cybertools.typology.interfaces import IType | ||||||
| from loops.common import AdapterBase | from loops.common import AdapterBase | ||||||
| from loops.concept import Concept | from loops.concept import Concept | ||||||
| from loops.interfaces import IConcept | from loops.interfaces import IConcept | ||||||
|  | from loops.organize.interfaces import IAddress | ||||||
| from loops.organize.interfaces import IPerson, ANNOTATION_KEY | from loops.organize.interfaces import IPerson, ANNOTATION_KEY | ||||||
| from loops.security.common import assignOwner, removeOwner, allowEditingForOwner | from loops.security.common import assignOwner, removeOwner, allowEditingForOwner | ||||||
| from loops.type import TypeInterfaceSourceList | from loops.type import TypeInterfaceSourceList | ||||||
|  |  | ||||||
|  | @ -11,10 +11,10 @@ | ||||||
|              set_schema="cybertools.tracking.interfaces.ITrack" /> |              set_schema="cybertools.tracking.interfaces.ITrack" /> | ||||||
|   </class> |   </class> | ||||||
| 
 | 
 | ||||||
|   <class class="loops.organize.tracking.change.ChangeRecord"> |   <!--<class class="loops.organize.tracking.change.ChangeRecord"> | ||||||
|     <require permission="zope.View" |     <require permission="zope.View" | ||||||
|              interface="cybertools.tracking.interfaces.ITrackingStorage" /> |              interface="cybertools.tracking.interfaces.ITrackingStorage" /> | ||||||
|   </class> |   </class>--> | ||||||
| 
 | 
 | ||||||
|   <subscriber handler="loops.organize.tracking.change.recordModification" /> |   <subscriber handler="loops.organize.tracking.change.recordModification" /> | ||||||
|   <subscriber handler="loops.organize.tracking.change.recordAssignment" /> |   <subscriber handler="loops.organize.tracking.change.recordAssignment" /> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 helmutm
						helmutm