provide logged_in view
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3389 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
		
							parent
							
								
									8e2f664446
								
							
						
					
					
						commit
						bf50ca5256
					
				
					 2 changed files with 17 additions and 0 deletions
				
			
		|  | @ -623,6 +623,16 @@ class BaseView(GenericView, I18NView): | |||
|                     resourceName='ajax.dojo/dojox/grid/resources/tundraGrid.css', | ||||
|                     media='all') | ||||
| 
 | ||||
| 
 | ||||
| class LoggedIn(object): | ||||
| 
 | ||||
|     def __call__(self): | ||||
|         camefrom = self.request.form.get('camefrom') | ||||
|         if camefrom: | ||||
|             self.request.response.redirect(camefrom) | ||||
|         self.request.response.redirect(self.request.URL[-1]) | ||||
| 
 | ||||
| 
 | ||||
| # vocabulary stuff | ||||
| 
 | ||||
| class SimpleTerms(object): | ||||
|  |  | |||
|  | @ -30,6 +30,13 @@ | |||
|         permission="zope.Public" | ||||
|         /> | ||||
| 
 | ||||
|   <page for="*" | ||||
|         name="logged_in.html" | ||||
|         class="loops.browser.common.LoggedIn" | ||||
|         attribute="__call__" | ||||
|         permission="zope.Public" | ||||
|         /> | ||||
| 
 | ||||
|   <!-- macros --> | ||||
| 
 | ||||
|   <page | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 helmutm
						helmutm