added states definition factory function to be used as utility
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@2481 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
		
							parent
							
								
									bbb481e237
								
							
						
					
					
						commit
						1e9418133b
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -29,6 +29,10 @@ from cybertools.stateful.definition import StatesDefinition
 | 
			
		|||
from cybertools.stateful.definition import State, Transition
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def simplePublishingFactory():
 | 
			
		||||
    return simplePublishing
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
simplePublishing = StatesDefinition('publishing',
 | 
			
		||||
        State('private', 'private', ('show',)),
 | 
			
		||||
        State('draft', 'draft', ('publish', 'hide',)),
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue