fix member registration: use correct form macro from loops/browser
This commit is contained in:
		
							parent
							
								
									5658ae68cc
								
							
						
					
					
						commit
						21b3795227
					
				
					 2 changed files with 4 additions and 3 deletions
				
			
		|  | @ -704,8 +704,8 @@ class BaseView(GenericView, I18NView): | |||
|         if IResource.providedBy(self.target): | ||||
|             statesDefs = self.globalOptions('organize.stateful.resource', ()) | ||||
|         else: | ||||
|             statesDefs = (self.globalOptions('organize.stateful.concept', []) + | ||||
|                           self.typeOptions('organize.stateful', [])) | ||||
|             statesDefs = ((self.globalOptions('organize.stateful.concept') or []) + | ||||
|                           (self.typeOptions('organize.stateful') or [])) | ||||
|         for std in statesDefs: | ||||
|             stf = component.getAdapter(self.target, IStateful, name=std) | ||||
|             result.append(stf) | ||||
|  |  | |||
|  | @ -112,7 +112,8 @@ class BaseMemberRegistration(NodeView): | |||
| 
 | ||||
|     @Lazy | ||||
|     def macro(self): | ||||
|         return schema_macros.macros['form'] | ||||
|         #return schema_macros.macros['form'] | ||||
|         return organize_macros.macros['register'] | ||||
| 
 | ||||
|     def checkPermissions(self): | ||||
|         personType = adapted(self.conceptManager['person']) | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue