use master file name as bas name for new version
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3961 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
		
							parent
							
								
									95417dab81
								
							
						
					
					
						commit
						9444a7c923
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -31,6 +31,7 @@ from zope.traversing.api import getName, getParent | |||
| 
 | ||||
| from cybertools.text.mimetypes import extensions | ||||
| from cybertools.typology.interfaces import IType | ||||
| from loops.common import adapted | ||||
| from loops.interfaces import IResource, IExternalFile | ||||
| from loops.versioning.interfaces import IVersionable | ||||
| 
 | ||||
|  | @ -152,7 +153,7 @@ class VersionableResource(object): | |||
|             adaptedObj.storageParams = adaptedContext.storageParams | ||||
|             adaptedObj.storageName = adaptedContext.storageName | ||||
|             extAddr = adaptedContext.externalAddress | ||||
|             newExtAddr = self.generateName(extAddr, | ||||
|             newExtAddr = self.generateName(adapted(self.master).externalAddress, | ||||
|                                  extensions.get(context.contentType, ''), | ||||
|                                  versionId) | ||||
|             adaptedObj.externalAddress = newExtAddr | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 helmutm
						helmutm