Alphabetize Album's methods.
This commit is contained in:
		
							parent
							
								
									1cc70616a5
								
							
						
					
					
						commit
						dea746c45a
					
				
					 1 changed files with 10 additions and 10 deletions
				
			
		|  | @ -275,16 +275,6 @@ class Album(ObjectBase, GroupableMixin): | ||||||
|     def _uncache(self): |     def _uncache(self): | ||||||
|         self.photodb.caches['album'].remove(self.id) |         self.photodb.caches['album'].remove(self.id) | ||||||
| 
 | 
 | ||||||
|     @decorators.required_feature('album.edit') |  | ||||||
|     @decorators.transaction |  | ||||||
|     def add_child(self, *args, **kwargs): |  | ||||||
|         return super().add_child(*args, **kwargs) |  | ||||||
| 
 |  | ||||||
|     @decorators.required_feature('album.edit') |  | ||||||
|     @decorators.transaction |  | ||||||
|     def add_children(self, *args, **kwargs): |  | ||||||
|         return super().add_children(*args, **kwargs) |  | ||||||
| 
 |  | ||||||
|     def _add_associated_directory(self, path): |     def _add_associated_directory(self, path): | ||||||
|         path = pathclass.Path(path) |         path = pathclass.Path(path) | ||||||
| 
 | 
 | ||||||
|  | @ -314,6 +304,16 @@ class Album(ObjectBase, GroupableMixin): | ||||||
|         for path in paths: |         for path in paths: | ||||||
|             self._add_associated_directory(path) |             self._add_associated_directory(path) | ||||||
| 
 | 
 | ||||||
|  |     @decorators.required_feature('album.edit') | ||||||
|  |     @decorators.transaction | ||||||
|  |     def add_child(self, *args, **kwargs): | ||||||
|  |         return super().add_child(*args, **kwargs) | ||||||
|  | 
 | ||||||
|  |     @decorators.required_feature('album.edit') | ||||||
|  |     @decorators.transaction | ||||||
|  |     def add_children(self, *args, **kwargs): | ||||||
|  |         return super().add_children(*args, **kwargs) | ||||||
|  | 
 | ||||||
|     def _add_photo(self, photo): |     def _add_photo(self, photo): | ||||||
|         self.photodb.log.debug('Adding photo %s to %s', photo, self) |         self.photodb.log.debug('Adding photo %s to %s', photo, self) | ||||||
|         data = {'albumid': self.id, 'photoid': photo.id} |         data = {'albumid': self.id, 'photoid': photo.id} | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue