Gitosis Plugin on Redmine 1.4
2012-07-31 18:49:14 by SazAt work, we're using Redmine and the redmine_gitosis plugin for managing git repositories and access to them.
After upgrading to Redmine 1.4 some plugins stopped working.
I've fixed the redmine_gitosis plugin to work with Redmine 1.4 again. Fixing the plugin was easier, than switching to redmine_git_hosting. Although I'm not sure, how good redmine_git_hosting is working with 1.4, it's clearly better maintained. If you're setting up a new system, use redmine_git_hosting.
Some of the error messages I've seen and fixed:
NameError (uninitialized constant GitosisPublicKeysController::ARCondition):
ActionView::TemplateError (undefined method `errors' for :gitosis_public_key:Symbol) on line #3 of vendor/plugins/redmine_gitosis/app/views/gitosis_public_keys/edit.html.erb: 1: <h2><%= link_to l(:label_public_keys), public_keys_path %> » <%= h @gitosis_public_key %></h2> 2: 3: <%= error_messages_for :gitosis_public_key %> 4: 5: <% form_for :public_key, @gitosis_public_key, :url => { :action => "update" }, :html => { :method => :put}, 6: :builder => TabularFormBuilder,
ActionView::TemplateError (uninitialized constant ActionView::Base::CompiledTemplates::TabularFormBuilder) on line #12 of vendor/plugins/redmine_gitosis/app/views/gitosis_public_keys/new.html.erb: 9: <% end %> 10: 11: <% form_for :public_key, @gitosis_public_key, :url => { :action => "create" }, 12: :builder => TabularFormBuilder, 13: :lang => current_language do |f| %> 14: 15: <%= render :partial => 'form', :locals => { :f => f } %>
Get the fixed version on Github
Note to myself...
Do not use reverse() in a class based view. It throws an exception, because not all urlpatterns are yet loaded. Instead do it in get_success_url method. And if Django 1.4 is released, use reverse_lazy().
Helpful link: https://stackoverflow.com/questions/6482573/the-included-urlconf-manager-urls-doesnt-have-any-patterns-in-it
read moreRoundcube, change password plugin and dovecotpw
I've tried to setup 'change password' plugin in roundcube to use dovecotpw to generate the new user password (hint: Dovecot can use a lot of password schemes). I've configured everything what I thought was relevant. And that was my mistake.
Why?
// Path for dovecotpw (if not in $PATH ...read more
Using Nautilus and awesome window manager under Ubuntu 11.10
After upgrading to Ubuntu 11.10, every time I am starting Nautilus, it's taking over my desktop. So, here's how to stop Nautilus from managing the desktop.
1. Move original Nautilus binary away
sudo mv /usr/bin/nautilus{,.real}
2. Create a shell script and save it as ...
read moreEver wanted to know, what you have done in the last time in a git repo?
git log to the resuce!1!!
git log --since=yesterday --author=me
or
git log --since=<date> --author=<Authorname>read more
I've switched to disqus
Comments are switched to disqus. I hope to solve some spam problems and make it easier to post as disqus is widely used these days :)
read moreNicer message output for Django message framework
It's really nice and you can easily change it to fit your needs.
https://mrben.co.uk/entry/a-nicer-way-of-using-the-Django-messages-framework/
read morePreseed Debian Squeeze using PXE
At work, we're currently using FAI to install Debian and configure the systems. For a couple of year's, this was a good solution. But time goes on. And so do we. At the moment I'm setting up puppet and preseeding of Debian Squeeze through PXE boot. A ...
read morePuppet modules on Github
I've uploaded some of my puppet modules to github. So if you want to manage php, have a look at puppet-php Most of the modules have a readme, if it's missing, feel free to open an issue on github to point me on it. I will fix it ...
read more