Changeset - 673de12e6bf6
[Not reviewed]
beta
0 7 0
Marcin Kuzminski - 15 years ago 2010-11-06 00:37:21
marcin@python-works.com
added option to enable/disable of logger hooks from admin panel.
some docs/setup updates
7 files changed with 26 insertions and 3 deletions:
0 comments (0 inline, 0 general)
docs/changelog.rst
Show inline comments
 
@@ -10,6 +10,8 @@ Changelog
 
- performance upgrade for cached repos list
 
- gui optimizations
 
- main page quick filter for filtering repositories
 
- more detailed action logger (based on hooks) with pushed changesets lists
 
- a lot of fixes for file browser
 

	
 
1.0.0 (**2010-11-02**)
 
----------------------
docs/upgrade.rst
Show inline comments
 
@@ -24,6 +24,9 @@ Then make sure You run from the installa
 
This will display any changes made from new version of RhodeCode To your
 
current config. And tries to do an automerge.
 

	
 
It's also good to rebuild the whoosh index since after upgrading the whoosh 
 
versionthere could be introduced incompatible index changes
 

	
 

	
 
.. _virtualenv: http://pypi.python.org/pypi/virtualenv  
 
.. _python: http://www.python.org/
rhodecode/controllers/admin/settings.py
Show inline comments
 
@@ -173,13 +173,21 @@ class SettingsController(BaseController)
 
                    .filter(RhodeCodeUi.ui_key == 'changegroup.repo_size').one()
 
                    hgsettings4.ui_active = bool(form_result['hooks_changegroup_repo_size'])
 

	
 
                    hgsettings5 = self.sa.query(RhodeCodeUi)\
 
                    .filter(RhodeCodeUi.ui_key == 'pretxnchangegroup.push_logger').one()
 
                    hgsettings5.ui_active = bool(form_result['hooks_pretxnchangegroup_push_logger'])
 

	
 
                    hgsettings6 = self.sa.query(RhodeCodeUi)\
 
                    .filter(RhodeCodeUi.ui_key == 'preoutgoing.pull_logger').one()
 
                    hgsettings6.ui_active = bool(form_result['hooks_preoutgoing_pull_logger'])
 

	
 

	
 
                    self.sa.add(hgsettings1)
 
                    self.sa.add(hgsettings2)
 
                    self.sa.add(hgsettings3)
 
                    self.sa.add(hgsettings4)
 
                    self.sa.add(hgsettings5)
 
                    self.sa.add(hgsettings6)
 
                    self.sa.commit()
 

	
 
                    h.flash(_('Updated mercurial settings'),
rhodecode/model/forms.py
Show inline comments
 
@@ -348,6 +348,8 @@ def ApplicationUiSettingsForm():
 
        paths_root_path = All(ValidPath(), UnicodeString(strip=True, min=1, not_empty=True))
 
        hooks_changegroup_update = OneOf(['True', 'False'], if_missing=False)
 
        hooks_changegroup_repo_size = OneOf(['True', 'False'], if_missing=False)
 
        hooks_pretxnchangegroup_push_logger = OneOf(['True', 'False'], if_missing=False)
 
        hooks_preoutgoing_pull_logger = OneOf(['True', 'False'], if_missing=False)
 

	
 
    return _ApplicationUiSettingsForm
 

	
rhodecode/public/css/style.css
Show inline comments
 
@@ -2315,7 +2315,7 @@ padding:0 !important;
 
 
#q_filter{
 
border:0 none;
 
color:#CDCDCD;
 
color:#AAAAAA;
 
margin-bottom:-4px;
 
margin-top:-4px;
 
padding-left:3px;
rhodecode/templates/admin/settings/settings.html
Show inline comments
 
@@ -137,6 +137,14 @@
 
						${h.checkbox('hooks_changegroup_repo_size','True')}
 
						<label for="hooks_changegroup_repo_size">${_('Show repository size after push')}</label>
 
					</div>					
 
                    <div class="checkbox">
 
                        ${h.checkbox('hooks_pretxnchangegroup_push_logger','True')}
 
                        <label for="hooks_pretxnchangegroup_push_logger">${_('Log user push commands')}</label>
 
                    </div>
 
                    <div class="checkbox">
 
                        ${h.checkbox('hooks_preoutgoing_pull_logger','True')}
 
                        <label for="hooks_preoutgoing_pull_logger">${_('Log user pull commands')}</label>
 
                    </div>                    										
 
				</div>
 
             </div>	
 
							                          
setup.py
Show inline comments
 
@@ -8,8 +8,8 @@ requirements = [
 
        "Mako>=0.3.5",
 
        "vcs>=0.1.10",
 
        "pygments>=1.3.0",
 
        "mercurial==1.6.4",
 
        "whoosh>=1.2.5",
 
        "mercurial>=1.6.4",
 
        "whoosh>=1.3.1",
 
        "celery>=2.1.2",
 
        "py-bcrypt",
 
        "babel",
0 comments (0 inline, 0 general)