Show More
@@ -33,6 +33,7 b' import traceback' | |||
|
33 | 33 | |
|
34 | 34 | from zope.cachedescriptors.property import Lazy as LazyProperty |
|
35 | 35 | |
|
36 | from rhodecode import events | |
|
36 | 37 | from rhodecode.model import BaseModel |
|
37 | 38 | from rhodecode.model.db import ( |
|
38 | 39 | RepoGroup, UserRepoGroupToPerm, User, Permission, UserGroupRepoGroupToPerm, |
@@ -257,6 +258,9 b' class RepoGroupModel(BaseModel):' | |||
|
257 | 258 | log_create_repository_group( |
|
258 | 259 | created_by=user.username, **repo_group.get_dict()) |
|
259 | 260 | |
|
261 | # Trigger create event. | |
|
262 | events.trigger(events.RepoGroupCreateEvent(repo_group)) | |
|
263 | ||
|
260 | 264 | return new_repo_group |
|
261 | 265 | except Exception: |
|
262 | 266 | self.sa.rollback() |
@@ -455,6 +459,9 b' class RepoGroupModel(BaseModel):' | |||
|
455 | 459 | |
|
456 | 460 | self._rename_group(old_path, new_path) |
|
457 | 461 | |
|
462 | # Trigger update event. | |
|
463 | events.trigger(events.RepoGroupUpdateEvent(repo_group)) | |
|
464 | ||
|
458 | 465 | return repo_group |
|
459 | 466 | except Exception: |
|
460 | 467 | log.error(traceback.format_exc()) |
@@ -469,6 +476,9 b' class RepoGroupModel(BaseModel):' | |||
|
469 | 476 | else: |
|
470 | 477 | log.debug('skipping removal from filesystem') |
|
471 | 478 | |
|
479 | # Trigger delete event. | |
|
480 | events.trigger(events.RepoGroupDeleteEvent(repo_group)) | |
|
481 | ||
|
472 | 482 | except Exception: |
|
473 | 483 | log.error('Error removing repo_group %s', repo_group) |
|
474 | 484 | raise |
General Comments 0
You need to be logged in to leave comments.
Login now