From 12f748b455ecaf7ada442475acd8205b03c3e776 Mon Sep 17 00:00:00 2001 From: yomguy Date: Wed, 27 Apr 2011 15:52:29 +0200 Subject: [PATCH] add groups to profile details, fix trans in profile edit --- INSTALL | 7 +++---- telemeta/models/system.py | 10 +++++----- .../templates/telemeta_default/profile_detail.html | 1 + 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/INSTALL b/INSTALL index c092d6d7..5f041c4c 100644 --- a/INSTALL +++ b/INSTALL @@ -27,15 +27,14 @@ Install the dependencies python-imaging python-mysqldb mysql-server python-numpy python-scipy \ python-ctypes python-setuptools python-support python-docutils - Just add these lines to your /etc/apt/sources-list:: + To get MP3 reading and writing, just add these lines to your /etc/apt/sources-list:: - deb http://debian.parisson.org/ binary/ - deb-src http://debian.parisson.org/ source/ deb http://www.debian-multimedia.org stable main Then:: sudo apt-get update + sudo aptitude install gstreamer0.10-fluendo-mp3 gstreamer0.10-lame * On other linux platforms: @@ -48,7 +47,7 @@ Install TimeSide In order to get all the Web Audio Components from TimeSide, you have to download and install it from source. -So, checkout the last archives at : +So, checkout the last archive at : http://code.google.com/p/timeside/downloads/list Install it like in the following example:: diff --git a/telemeta/models/system.py b/telemeta/models/system.py index 5452c9e6..afdc68a8 100644 --- a/telemeta/models/system.py +++ b/telemeta/models/system.py @@ -76,11 +76,11 @@ class UserProfile(django.db.models.Model): "User profile extension" user = ForeignKey(User, unique=True) - institution = CharField(_('institution')) - function = CharField(_('function')) - address = TextField(_('address')) - telephone = CharField(_('telephone')) - expiration_date = DateField(_('expiration_date')) + institution = CharField(_('Institution')) + function = CharField(_('Function')) + address = TextField(_('Address')) + telephone = CharField(_('Telephone')) + expiration_date = DateField(_('Expiration_date')) class Meta(MetaCore): db_table = 'profiles' diff --git a/telemeta/templates/telemeta_default/profile_detail.html b/telemeta/templates/telemeta_default/profile_detail.html index 87a8e2d4..d731fe9b 100644 --- a/telemeta/templates/telemeta_default/profile_detail.html +++ b/telemeta/templates/telemeta_default/profile_detail.html @@ -38,6 +38,7 @@
{% trans "Is staff" %}
{{ usr.is_staff }}
{% trans "Is superuser" %}
{{ usr.is_superuser }}
+
{% trans "Groups" %}
{{ usr.groups.all }}
{% trans "Last login" %}
{{ usr.last_login }}
{% if user.is_authenticated and user.username == usr.username %} {% get_current_language as LANGUAGE_CODE %} -- 2.39.5