Gitosis Plugin on Redmine 1.4

2012-07-31 18:49:14 by Saz

At 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 %> &#187; <%= 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...

2012-01-23 18:37:00 by Saz

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 more

Roundcube, change password plugin and dovecotpw

2012-01-22 00:33:00 by Saz

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

2011-12-27 21:59:00 by Saz

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 more

Ever wanted to know, what you have done in the last time in a git repo?

2011-08-30 18:31:00 by Saz

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

2011-07-31 16:22:00 by Saz

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 more

Nicer message output for Django message framework

2011-07-31 15:38:00 by Saz

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 more

Preseed Debian Squeeze using PXE

2011-07-30 16:28:00 by Saz

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 more

Puppet modules on Github

2011-07-30 15:47:00 by Saz

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

Hello again.

2011-07-25 11:39:00 by Saz

I'm still alive. And I will write new posts soon.

read more

Hallo

2011-07-15 13:59:00 by Saz

Hallo

read more

Identi.ca Updates for 2011-06-19

2011-06-19 23:59:00 by Saz
  • Anyone has good experience with lightspark? #
read more

Identi.ca Updates for 2011-06-16

2011-06-16 23:59:00 by Saz
  • Still alive. #1
  • Does !Ubuntu 11.04 still brick MacBooks? #2
read more
Fork me on GitHub