Changeset - 490e95264d7f
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2013-04-12 18:01:00
marcin@python-works.com
can update context var needs to be defined in __load_defaults
1 file changed with 1 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rhodecode/controllers/forks.py
Show inline comments
 
@@ -61,6 +61,7 @@ class ForksController(BaseRepoController
 
        c.repo_groups_choices = map(lambda k: unicode(k[0]), c.repo_groups)
 
        choices, c.landing_revs = ScmModel().get_repo_landing_revs()
 
        c.landing_revs_choices = choices
 
        c.can_update = RhodeCodeUi.get_by_key(RhodeCodeUi.HOOK_UPDATE).ui_active
 

	
 
    def __load_data(self, repo_name=None):
 
        """
 
@@ -96,8 +97,6 @@ class ForksController(BaseRepoController
 
            c.stats_percentage = '%.2f' % ((float((last_rev)) /
 
                                            c.repo_last_rev) * 100)
 

	
 
        c.can_update = RhodeCodeUi.get_by_key(RhodeCodeUi.HOOK_UPDATE).ui_active
 

	
 
        defaults = RepoModel()._get_defaults(repo_name)
 
        # alter the description to indicate a fork
 
        defaults['description'] = ('fork of repository: %s \n%s'
0 comments (0 inline, 0 general)