add name property to BaseView
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@2882 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
		
							parent
							
								
									0427959012
								
							
						
					
					
						commit
						abd3bb6dfb
					
				
					 2 changed files with 5 additions and 1 deletions
				
			
		|  | @ -480,8 +480,8 @@ class BaseView(GenericView, I18NView): | |||
|         cm = self.controller.macros | ||||
|         cm.register('js', 'dojo.js', template=dojoMacroTemplate, name='main', | ||||
|                     position=0, | ||||
|                     #djConfig='isDebug: true, parseOnLoad: true, usePlainJson: true, ' | ||||
|                     djConfig='parseOnLoad: true, usePlainJson: true, ' | ||||
|                              #'isDebug: true, ' | ||||
|                              'locale: "%s"' % self.languageInfo.language) | ||||
|         jsCall = 'dojo.require("dojo.parser");' | ||||
|         cm.register('js-execute', jsCall, jsCall=jsCall) | ||||
|  |  | |||
|  | @ -126,6 +126,10 @@ class AdapterBase(object): | |||
|     def getLoopsRoot(self): | ||||
|         return self.context.getLoopsRoot() | ||||
| 
 | ||||
|     @property | ||||
|     def name(self): | ||||
|         return getName(self.context) | ||||
| 
 | ||||
| 
 | ||||
| class ResourceAdapterBase(AdapterBase): | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 helmutm
						helmutm