Changeset c501d80
- Timestamp:
- 04/18/12 12:52:07 (13 months ago)
- Branches:
- social
- Children:
- 0edb535
- Parents:
- b786c83 (diff), af2a6ed (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - git-author:
- yomguy <yomguy@…> (04/18/12 12:52:07)
- git-committer:
- yomguy <yomguy@…> (04/18/12 12:52:07)
- Files:
-
- 15 added
- 16 edited
-
CHANGELOG (modified) (1 diff)
-
README.rst (modified) (4 diffs)
-
example/sandbox_sqlite/settings.py (modified) (2 diffs)
-
setup.py (modified) (1 diff)
-
telemeta/htdocs/css/player.css (modified) (1 diff)
-
telemeta/htdocs/images/download.png (modified) (previous)
-
telemeta/htdocs/images/logo_mini_2.png (modified) (previous)
-
telemeta/htdocs/images/logo_only.png (added)
-
telemeta/htdocs/images/logo_only_22.png (added)
-
telemeta/htdocs/images/logo_only_22_cont.png (added)
-
telemeta/htdocs/images/logo_only_22_nb.png (added)
-
telemeta/htdocs/images/logo_only_52.png (added)
-
telemeta/htdocs/images/share.png (added)
-
telemeta/htdocs/images/tw_hd.png (added)
-
telemeta/htdocs/images/user_red.png (modified) (previous)
-
telemeta/htdocs/images/vox.png (modified) (previous)
-
telemeta/htdocs/images/zoom2.png (added)
-
telemeta/htdocs/timeside/skins/lab/style.css (modified) (2 diffs)
-
telemeta/htdocs/video-js/video-js.css (added)
-
telemeta/htdocs/video-js/video-js.min.css (added)
-
telemeta/htdocs/video-js/video-js.png (added)
-
telemeta/htdocs/video-js/video-js.swf (added)
-
telemeta/htdocs/video-js/video.js (added)
-
telemeta/htdocs/video-js/video.min.js (added)
-
telemeta/models/media.py (modified) (1 diff)
-
telemeta/templates/telemeta/login.html (modified) (1 diff)
-
telemeta/templates/telemeta/mediaitem_detail.html (modified) (4 diffs)
-
telemeta/urls.py (modified) (3 diffs)
-
telemeta/views/base.py (modified) (5 diffs)
-
tools/scripts/crem_checker.py (added)
-
telemeta/templates/telemeta/base.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
r251b6d8 r0d62fe4 1 telemeta (1.4.3-1) unstable; urgency=low 2 3 * add solr-thumbnail for automatic thumbnail handling of all related media images (please install) 4 * add static media handling for solr and all various telemeta public files 5 * fix some wrong user properties 6 * SECURITY: you need to move your TELEMETA_EXPORT_CACHE_DIR from TELEMETA_CACHE_DIR cache (see example/sandbox_sqlite/settings.py) 7 * EXPERIMENTAL: WebM and MP4 video handling for items, NO transcode but decode, add a nice video.js player 8 * RECOMMEND: install django-extensions 9 10 telemeta (1.4.2-1) unstable; urgency=low 11 12 * add user revisions to user profile 13 * move all edit buttons to main edit pages 14 * new Format object and various enumerations 15 * add last revision to item detail 16 * various bugfixes 17 18 telemeta (1.4.1-1) unstable; urgency=low 19 20 * Fix a bug for related media title parsing 21 1 22 telemeta (1.4-1) unstable; urgency=low 2 23 3 24 For users: 4 25 5 26 * add a Desk providing links to home and personal data 6 27 * add Fonds, Corpus and their related media to the models and to the search engine -
README.rst
rdd763818 r0d62fe4 46 46 ====== 47 47 48 1.4.3 49 ++++++ 50 51 * add solr-thumbnail for automatic thumbnail handling of all related media images (please install) 52 * add static media handling for solr and all various telemeta public files 53 * fix some wrong user properties 54 * SECURITY: you need to move your TELEMETA_EXPORT_CACHE_DIR from TELEMETA_CACHE_DIR cache (see example/sandbox_sqlite/settings.py) 55 * EXPERIMENTAL: WebM and MP4 video handling for items, NO transcode but decode, add a nice video.js player 56 * RECOMMEND: install django-extensions 57 48 58 1.4.2 49 59 ++++++ … … 89 99 See INSTALL.rst and email me if any pb! (you may, for example, not use 0002 migration) 90 100 91 Full changelog : see `CHANGELOG <http://github.com/yomguy/Telemeta/blob/master/CHANGELOG>`_101 Full changelog: see `CHANGELOG <http://github.com/yomguy/Telemeta/blob/master/CHANGELOG>`_ 92 102 93 103 94 De velopment95 ==== =======104 Demo 105 ==== 96 106 97 To participate to the development of telemeta, you will need a login/password couple. 98 You're welcome to email us to join and commit your great ideas ;) 107 http://demo.telemeta.org 99 108 100 To get the lastest development version, you need subversion and run:: 109 login: demo 110 password: demo 101 111 102 $ git clone http://vcs.parisson.com/git/telemeta.git103 112 104 License105 ======= 113 Original Example 114 ================= 106 115 107 CeCILL v2 (see LICENSE) 116 `Sound archives <http://archives.crem-cnrs.fr>`_ of the French Ethnomusicology Research Center (CREM) et du Musée de l'Homme: 117 118 * a 100 year old world database migrated, 119 * more than 5000 geolocated collections, 120 * more than 32000 geolocated items, 121 * 700 Go of original ethnological music files accessible through the web. 108 122 109 123 … … 123 137 ================ 124 138 125 TimeSide (Web Audio Components): http://code.google.com/p/timeside/ 139 `TimeSide <http://code.google.com/p/timeside/>`_ - Web Audio Components 140 141 a python library library to compute audio analysis, transcode, and streaming to browsers. 142 126 143 127 144 … … 143 160 144 161 162 Development 163 =========== 164 165 You are welcome to participate to the development of the Telemeta project. 166 167 To get the lastest development version, you need subversion and run:: 168 169 $ git clone http://vcs.parisson.com/git/telemeta.git 170 171 License 172 ======= 173 174 CeCILL v2, compatible with GPL v2 (see `LICENSE <http://github.com/yomguy/Telemeta/blob/master/LICENSE`_) 175 176 145 177 Sponsors 146 178 ======== -
example/sandbox_sqlite/settings.py
r74a669d rc501d80 66 66 # in apps' "static/" subdirectories and in STATICFILES_DIRS. 67 67 # Example: "/home/media/media.lawrence.com/static/" 68 STATIC_ROOT = '/ data/telemeta/static/'68 STATIC_ROOT = '/home/dev/telemeta/static/' 69 69 70 70 # URL prefix for static files. … … 140 140 'django.core.context_processors.request', 141 141 'django.contrib.auth.context_processors.auth', 142 "django.core.context_processors.i18n", 143 "django.core.context_processors.media", 144 'django.core.context_processors.static', 142 145 ) 143 146 -
setup.py
rb6c6871 r39e17d4 15 15 version = telemeta.__version__, 16 16 install_requires = [ 17 'django>=1. 3.1',17 'django>=1.4', 18 18 'django-registration', 19 19 'django-json-rpc', 20 20 'timeside', 21 21 'south', 22 'sorl-thumbnail', 22 23 'django-pagination', 23 24 'django-postman', 24 25 'django-socialregistration', 25 ' sorl-thumbnail',26 'django-extensions', 26 27 ], 27 28 platforms=['OS Independent'], -
telemeta/htdocs/css/player.css
r13ef1ae r0d62fe4 20 20 width: 18px; 21 21 padding: 10px 0 0 0; 22 height: 0px !important; 22 height: 0px !important; 23 23 height /**/:10px; /* for IE5/Win only */ 24 24 background-image: url('../images/maximize.png'); -
telemeta/htdocs/timeside/skins/lab/style.css
rfe97d80 r0d62fe4 112 112 width:24px; 113 113 } 114 .ts-player .ts-control .ts-volume-bar-container { 114 .ts-player .ts-control .ts-volume-bar-container { 115 115 background: url('img/controlbg-inverted.png'); 116 116 background-position: -3px left; … … 122 122 -webkit-border-radius: 5px; 123 123 border-radius: 5px; 124 124 125 125 } 126 126 .ts-player .ts-control .ts-volume-bar { /*width will be changed inside the code*/ -
telemeta/models/media.py
rfabced9 raf2a6ed 386 386 return False 387 387 388 def clean(self):389 if self.code and not self.is_valid_code(self.code):390 raise ValidationError("%s is not a valid item code for collection %s"391 % (self.code, self.collection.code))388 #def clean(self): 389 #if self.code and not self.is_valid_code(self.code): 390 #raise ValidationError("%s is not a valid item code for collection %s" 391 #% (self.code, self.collection.code)) 392 392 393 393 def save(self, force_insert=False, force_update=False): -
telemeta/templates/telemeta/login.html
r566f17d r0d62fe4 20 20 onclick="document.getElementById('_loginForm').submit(); return false;">{% trans "Sign in" %}</a> 21 21 <input type="hidden" name="next" value="{{ next }}" /> 22 <span style="align: right; "><a href="{% url telemeta-password-reset %}">{% trans "Password forgotten" %} ?</a></span>22 <span style="align: right; font-weight: bold;"><a href="{% url telemeta-password-reset %}">{% trans "Password forgotten" %} ?</a></span> 23 23 </form> 24 24 {% endblock %} -
telemeta/templates/telemeta/mediaitem_detail.html
r376c298 rffcaa31 78 78 79 79 {% if "video" in mime_type %} 80 < link href="http://vjs.zencdn.net/c/video-js.css" rel="stylesheet">81 < script src="http://vjs.zencdn.net/c/video.js"></script>80 <script src="{% url telemeta-video-js "video.js" %}"></script> 81 <link href="{% url telemeta-video-js "video-js.css" %}" rel="stylesheet"> 82 82 {% endif %} 83 83 … … 114 114 {% if public_access or perms.telemeta.can_play_all_items %} 115 115 <div id="player_maximized" class="ts-skin-lab"> 116 <div id="player_header"> 116 117 <a href="#" class="toggle">Minimize</a> 117 118 <a href="#" class="embed_player_frame"></></a> 119 </div> 118 120 <div class="wazing"></div> 119 121 </div> … … 133 135 <source src="{% url telemeta-item-export item.public_id mime_type|mime_to_ext %}" type="{{ mime_type }}" /> 134 136 </video> 135 < div id="videotime"></div>137 <!--<div id="videotime"></div>--> 136 138 </div> 137 139 <script> … … 200 202 <dd>{{ last_revision.time }} {% if user.is_authenticated %}(<a href="{% url telemeta-profile-detail last_revision.user.username %}">{{last_revision.user.username}}</a>){% endif %}</dd> 201 203 {% endif %} 202 204 203 205 </dl> 204 206 {% endblock general_info %} -
telemeta/urls.py
r47b7698 rc676291 285 285 {'document_root': htdocs+'/timeside'}, 286 286 name="telemeta-timeside"), 287 url(r'^video-js/(?P<path>.*)$','django.views.static.serve', 288 {'document_root': htdocs+'/video-js'}, 289 name="telemeta-video-js"), 287 290 288 291 # Flat pages … … 302 305 303 306 # Users 304 url(r'^ users/$', general_view.users, name="telemeta-users"),307 url(r'^accounts/$', general_view.users, name="telemeta-users"), 305 308 306 309 # Desk … … 310 313 311 314 # Profiles 312 url(r'^ users/(?P<username>[A-Za-z0-9._-]+)/profile/$', profile_view.profile_detail, name="telemeta-profile-detail"),313 url(r'^ users/(?P<username>[A-Za-z0-9._-]+)/profile/edit/$', profile_view.profile_edit, name="telemeta-profile-edit"),314 url(r'^ users/(?P<username>[A-Za-z0-9._-]+)/rss/$', UserRevisionsFeed(), name="telemeta-user-rss"),315 url(r'^accounts/(?P<username>[A-Za-z0-9._-]+)/profile/$', profile_view.profile_detail, name="telemeta-profile-detail"), 316 url(r'^accounts/(?P<username>[A-Za-z0-9._-]+)/profile/edit/$', profile_view.profile_edit, name="telemeta-profile-edit"), 317 url(r'^accounts/(?P<username>[A-Za-z0-9._-]+)/rss/$', UserRevisionsFeed(), name="telemeta-user-rss"), 315 318 316 319 # Registration -
telemeta/views/base.py
r57833eb rb7b071c 257 257 year_min, year_max = MediaCollection.objects.all().publishing_year_range() 258 258 pub_years = year_min and year_max and range(year_min, year_max + 1) or [] 259 searches = Search.objects.filter(username=request.user) 259 260 return render(request, 'telemeta/search_criteria.html', { 260 261 'rec_years': rec_years, 261 262 'pub_years': pub_years, 262 263 'ethnic_groups': MediaItem.objects.all().ethnic_groups(), 263 'criteria': criteria 264 'criteria': criteria, 265 'searches': searches, 264 266 }) 265 267 … … 423 425 return HttpResponse("\n".join(data)) 424 426 427 @method_decorator(login_required) 425 428 def users(self, request): 426 429 users = User.objects.all() … … 1038 1041 """Provide Admin web UI methods""" 1039 1042 1040 @method_decorator(permission_required(' sites.change_site'))1043 @method_decorator(permission_required('is_superuser')) 1041 1044 def admin_index(self, request): 1042 1045 return render(request, 'telemeta/admin.html', self.__get_admin_context_vars()) 1043 1046 1044 @method_decorator(permission_required(' sites.change_site'))1047 @method_decorator(permission_required('is_superuser')) 1045 1048 def admin_general(self, request): 1046 1049 return render(request, 'telemeta/admin_general.html', self.__get_admin_context_vars()) 1047 1050 1048 @method_decorator(permission_required(' sites.change_site'))1051 @method_decorator(permission_required('is_superuser')) 1049 1052 def admin_enumerations(self, request): 1050 1053 return render(request, 'telemeta/admin_enumerations.html', self.__get_admin_context_vars()) 1051 1054 1052 @method_decorator(permission_required(' sites.change_site'))1055 @method_decorator(permission_required('is_superuser')) 1053 1056 def admin_users(self, request): 1054 1057 users = User.objects.all() … … 1399 1402 'user_revisions': user_revisions}) 1400 1403 1404 @method_decorator(login_required) 1401 1405 def profile_edit(self, request, username, template='telemeta/profile_edit.html'): 1402 1406 if request.user.is_superuser: … … 1426 1430 user_form.save() 1427 1431 profile_form.save() 1428 return HttpResponseRedirect('/ users/'+username+'/profile/')1432 return HttpResponseRedirect('/accounts/'+username+'/profile/') 1429 1433 else: 1430 1434 user_form = UserChangeForm(instance=user, prefix='user') -
telemeta/templates/telemeta/base.html
r2c4c2e5b rb166a2e 64 64 <img src="{% url telemeta-images "logout.png" %}" alt="logout" style="vertical-align:middle" /></a> 65 65 {% else %} 66 <div style="float: left;"> 66 67 <a href="{% url telemeta-flatpage "help" %}">{% trans "Help" %}</a> | 67 <a href="{% url telemeta-login %}">{% trans "Sign in" %}</a> 68 <a href="{% url telemeta-login %}?next={{ request.path|urlencode }}">{% trans "Sign in" %}</a> 69 </div> 70 <div style="float: right;;"> 71 {% load facebook %} 72 {% facebook_button %} 73 </div> 68 74 {% endif %} 69 75 </div>
Note: See TracChangeset
for help on using the changeset viewer.
