user-avatar
Today is Saturday
February 4, 2012

Tag: redmine

January 8, 2012

DjangoRedmineAdmin 1.0 released

by Thomas Capricelli — Categories: Admin, Django — Tags: , Leave a comment

I recently needed (again) to ‘browse’ a redmine database, and I used my DjangoRedmineAdmin application to do so. I took this opportunity to update the code and doing some more tests/fixes. As a result I decided to tag this as 1.0.

The main modifications are:

  • updated to comply with current redmine version (1.2.1 and 1.3.0)
  • updated to use Django 1.3 instead of Django 1.2, which is now deprecated.
  • added a lot of new improvements to the admin pages, such as displaying a list of related model instead of the raw id, or presenting data in a cleaner way.
  • it now works now with mysql too. Previous version would have problems handling boolean fields on a mysql database. We need to blame ruby ORB here, which actually handle boolean differently depending on the db backend. Sqlite3 was and is still supported.

You can clone the repository or download tarballs from the mercurial source page.

The wiki has more information / documentation.

September 27, 2008

Django browser for Redmine database

by Thomas Capricelli — Categories: Admin, Django — Tags: , 6 Comments

Do you know redmine ? This is, to my knowledge, the best project manager you could ever find out there. I like to describe it as ‘trac done well‘. It has only one, big, ugly, fat inconvenient for me : it is written on top of ruby on rails. I could tell you how slow it is (true), or how many security flaws are found everyday in the ruby/rails world. But the real reason I’m actually really concerned about ruby/rails is that I don’t know ruby. When I look at the code I don’t understand anything, and I can’t change something to ‘suit my needs’, as is so common in Free Software.

I wish it was written in Django.

Well, anyway, I spent some times today to create a small Django application in order to display stuff from the redmine database. For this, I’ve used the wonderful “inspectdb” feature of Django, which access a database and creates the (Django) models required to access it.

Then, I had to ‘adapt’ those models and to create an admin.py file so that I could browse (and even modify) the database from django.

Adapting meant:

  • removing all the “id” field, they are automatically created by Django and it seems rails use the very same name (“id”) so this is compatible.
  • Change the “obvious” references to other model from IntegerField to ForeignKey
  • Some models reference themselves, you need to use a ForeignKey to ‘self’ (including quotes) to do that.
  • add some __unicode__(self) for the most important/obvious models

The admin works was basically about:

  • Creates Admin objects for all models (thanks vim’s macro!)
  • add list_display / list_filter args for the most important ones

And the remaining problem is :

  • It seems Boolean from ruby/rails have the values ‘t’/'f’ while those from django have 1/0 (fixed since then)

Mandatory screenshot (corresponding to the public stuff from http://labs.freehackers.org):

Example of djangoredmineadmin in use

Link to the project homepage

June 15, 2008

Toward release 1.0-alpha1 of Yzis

by Thomas Capricelli — Categories: KDE — Tags: , , 2 Comments

As some of you might know, I had to finish my Ph.D. and it took me a lot more time than previously planned. I’m happy to tell you that it is now finished. I’m officially a doctor in the field of applied mathematics, and I have more time to dedicate to free software.

One of my first goals is to release the sleeping code for yzis. There sure are a lot of issues with this code, and the KDE kpart is still unfinished, but I think we can release basic, working, tested applications. This would mean the curses-based nyzis and the qt4-based qyzis, both for Linux, Mac OS X, windows, and maybe some other platforms like the *bsd.

We created a project on freehackers redmine project manager to handle this new development. We expect to release 1.0-alpha1 next week-end (june 22th), and keep on testing/fixing bugs until 1.0. Then we should focus on the real fun stuff : kpart and other embeddings.

Oh, and, meanwhile, we moved the code from subversion to mercurial.

redmine project for bug reports

Yzis homepage

view yzis source under mercurial (you can also clone the repository from this url)

© 2012 Thomas Capricelli All rights reserved - Wallow theme v0.46.5 by ([][]) TwoBeers - Powered by WordPress - Have fun!