provide additional states and transitions for waiting list
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3383 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
		
							parent
							
								
									2531f575e2
								
							
						
					
					
						commit
						67ad477021
					
				
					 1 changed files with 8 additions and 5 deletions
				
			
		|  | @ -1,5 +1,5 @@ | ||||||
| # | # | ||||||
| #  Copyright (c) 2007 Helmut Merz helmutm@cy55.de | #  Copyright (c) 2009 Helmut Merz helmutm@cy55.de | ||||||
| # | # | ||||||
| #  This program is free software; you can redistribute it and/or modify | #  This program is free software; you can redistribute it and/or modify | ||||||
| #  it under the terms of the GNU General Public License as published by | #  it under the terms of the GNU General Public License as published by | ||||||
|  | @ -127,6 +127,7 @@ class Service(object): | ||||||
|     location = u'' |     location = u'' | ||||||
|     allowRegWithNumber = False |     allowRegWithNumber = False | ||||||
|     allowDirectRegistration = True |     allowDirectRegistration = True | ||||||
|  |     waitingList = False | ||||||
| 
 | 
 | ||||||
|     def __init__(self, name=None, title=u'', capacity=-1, **kw): |     def __init__(self, name=None, title=u'', capacity=-1, **kw): | ||||||
|         self.name = self.__name__ = name |         self.name = self.__name__ = name | ||||||
|  | @ -328,13 +329,13 @@ registrationStates = 'organize.service.registration' | ||||||
| 
 | 
 | ||||||
| registerStatesDefinition( | registerStatesDefinition( | ||||||
|     StatesDefinition(registrationStates, |     StatesDefinition(registrationStates, | ||||||
|         State('temporary', 'temporary', ('submit', 'cancel',)), |         State('temporary', 'temporary', ('submit', 'setwaiting', 'cancel',)), | ||||||
|         State('submitted', 'submitted', |         State('submitted', 'submitted', | ||||||
|                     ('change', 'retract', 'setwaiting', 'confirm', 'reject',)), |                     ('change', 'retract', 'setwaiting', 'confirm', 'reject',)), | ||||||
|         State('cancelled', 'cancelled', ('submit',)), |         State('cancelled', 'cancelled', ('activate',)), | ||||||
|         State('retracted', 'retracted', ('submit',)), |         State('retracted', 'retracted', ('activate', 'cancel',)), | ||||||
|         State('waiting', 'waiting', |         State('waiting', 'waiting', | ||||||
|                     ('change', 'retract', 'confirm', 'reject',)), |                     ('activate', 'change', 'retract', 'confirm', 'reject',)), | ||||||
|         State('confirmed', 'confirmed', |         State('confirmed', 'confirmed', | ||||||
|                     ('change', 'retract', 'reject',)), |                     ('change', 'retract', 'reject',)), | ||||||
|         State('rejected', 'rejected', |         State('rejected', 'rejected', | ||||||
|  | @ -344,6 +345,8 @@ registerStatesDefinition( | ||||||
|         Transition('change', 'Change registration', 'submitted'), |         Transition('change', 'Change registration', 'submitted'), | ||||||
|         Transition('retract', 'Retract registration', 'retracted'), |         Transition('retract', 'Retract registration', 'retracted'), | ||||||
|         Transition('setwaiting', 'Set on waiting list', 'waiting'), |         Transition('setwaiting', 'Set on waiting list', 'waiting'), | ||||||
|  |         Transition('activate', 'Activate waiting or cancelled registration', | ||||||
|  |                     'temporary'), | ||||||
|         Transition('confirm', 'Confirm registration', 'confirmed'), |         Transition('confirm', 'Confirm registration', 'confirmed'), | ||||||
|         Transition('reject', 'Reject registration', 'rejected'), |         Transition('reject', 'Reject registration', 'rejected'), | ||||||
|         initialState='temporary', |         initialState='temporary', | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 helmutm
						helmutm