Changeset d1df64b
- Timestamp:
- 03/21/12 17:09:58 (14 months ago)
- Branches:
- security
- Children:
- 40fcc15
- Parents:
- f6151cd (diff), aa83e80 (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@…> (03/21/12 17:09:58)
- git-committer:
- yomguy <yomguy@…> (03/21/12 17:09:58)
- Files:
-
- 2 added
- 9 edited
-
example/sandbox_sqlite/settings.py (modified) (2 diffs)
-
setup.py (modified) (1 diff)
-
telemeta/__init__.py (modified) (1 diff)
-
telemeta/templates/telemeta/inc/resource_related.html (modified) (2 diffs)
-
telemeta/templates/telemeta/profile_detail.html (modified) (1 diff)
-
telemeta/urls.py (modified) (2 diffs)
-
telemeta/admin.py (modified) (3 diffs)
-
telemeta/middleware.py (added)
-
telemeta/migrations/0009_auto__add_field_userprofile_last_session_key.py (added)
-
telemeta/models/system.py (modified) (2 diffs)
-
telemeta/templates/telemeta/inc/collection_related.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
example/sandbox_sqlite/settings.py
r1c9efe4 rb6c6871 106 106 'jsonrpc', 107 107 'south', 108 'sorl.thumbnail', 108 109 ) 109 110 … … 118 119 TELEMETA_GMAP_KEY = 'ABQIAAAArg7eSfnfTkBRma8glnGrlxRVbMrhnNNvToCbZQtWdaMbZTA_3RRGObu5PDoiBImgalVnnLU2yN4RMA' 119 120 TELEMETA_CACHE_DIR = MEDIA_ROOT + 'cache' 120 TELEMETA_EXPORT_CACHE_DIR = TELEMETA_CACHE_DIR + "/export"121 TELEMETA_EXPORT_CACHE_DIR = MEDIA_ROOT + 'export' 121 122 TELEMETA_DATA_CACHE_DIR = TELEMETA_CACHE_DIR + "/data" 122 123 -
setup.py
ra62ff5a rb6c6871 23 23 'django-postman', 24 24 'django-socialregistration', 25 'sorl-thumbnail', 25 26 ], 26 27 platforms=['OS Independent'], -
telemeta/__init__.py
rb3287a8 raa83e80 13 13 14 14 __docformat__ = 'epytext en' 15 __version__ = '1.4. 2'15 __version__ = '1.4.3' 16 16 __url__ = 'http://telemeta.org' 17 17 __copyright__ = '(C) 2007-2012 Parisson' -
telemeta/templates/telemeta/inc/resource_related.html
rea5ec32 rb6c6871 1 1 {% load i18n %} 2 2 {% load telemeta_utils %} 3 {% load thumbnail %} 3 4 4 5 <div> … … 58 59 <td style="padding-bottom: 1em;"> 59 60 {% if media.is_image %} 60 {% if media.url %} 61 <a href="{{ media.url }}"> 62 <img src="{{ media.url }}" style="max-width: 420px; max-height: 200px;" /></a> 61 {% if media.file %} 62 <a href="{% url telemeta-resource-related type resource.code media.id %}"> 63 {% thumbnail media.file "420" as im %} 64 <img src="{{ im.url }}" style="max-width: 420px; max-height: 200px;" /> 65 {% endthumbnail %} 66 </a> 63 67 {% else %} 64 <a href="{% url telemeta-resource-related type resource.code media.id %}"> 65 <img src="{% url telemeta-resource-related type resource.code media.id %}" style="max-width: 420px; max-height: 200px;" /></a> 66 {% endif %} 68 <a href="{{ media.url }}"> 69 {% thumbnail media.url "420" as im %} 70 <img src="{{ im.url }}" style="max-width: 420px; max-height: 200px;" /> 71 {% endthumbnail %} 72 </a> 73 {% endif %} 67 74 {% else %} 68 75 {% if media.url %} -
telemeta/templates/telemeta/profile_detail.html
r90599c5 rb6c6871 42 42 43 43 <dt>{% trans "Institution" %}</dt><dd>{% if profile %}{{ profile.institution }}{% endif %}</dd> 44 <dt>{% trans "Department" %}</dt><dd>{% if profile %}{{ profile.department }}{% endif %}</dd> 44 45 <dt>{% trans "Function" %}</dt><dd>{% if profile %}{{ profile.function }}{% endif %}</dd> 45 46 <dt>{% trans "Attachment" %}</dt><dd>{% if profile %}{{ profile.attachment }}{% endif %}</dd> -
telemeta/urls.py
r396801e rb6c6871 36 36 37 37 from django.conf.urls.defaults import * 38 from django.conf import settings 38 39 from django.views.generic.simple import redirect_to 39 40 from telemeta.models import MediaItem, MediaCollection, MediaItemMarker, MediaCorpus, MediaFonds … … 330 331 url(r'^rss/$', LastestRevisionsFeed(), name="telemeta-rss"), 331 332 333 # Static media 334 # FIXME:need to move export dir from the cache 335 url(r'^media/cache/(?P<path>.*)$', 'django.views.static.serve', { 336 'document_root': settings.TELEMETA_CACHE_DIR,}), 332 337 ) 333 338 -
telemeta/admin.py
rfabced9 rf6b65e4 6 6 from telemeta.models.system import * 7 7 from django.contrib import admin 8 from django.forms import CheckboxSelectMultiple 9 from django.contrib.auth.models import User 10 from django.contrib.auth.admin import UserAdmin 11 12 admin.site.unregister(User) 8 13 9 14 class MediaFondsAdmin(admin.ModelAdmin): … … 75 80 search_fields = ['code', 'vendor'] 76 81 82 class UserProfileInline(admin.StackedInline): 83 model = UserProfile 84 85 class UserProfileAdmin(UserAdmin): 86 inlines = [UserProfileInline] 87 77 88 admin.site.register(MediaFonds, MediaFondsAdmin) 78 89 admin.site.register(MediaCorpus, MediaCorpusAdmin) … … 99 110 100 111 admin.site.register(Format, FormatAdmin) 112 113 admin.site.register(User, UserProfileAdmin) -
telemeta/models/system.py
r32b2f85 rf6151cd 42 42 import django.db.models as models 43 43 from django.forms import ModelForm 44 from django.contrib.sessions.models import Session 44 45 45 46 … … 88 89 telephone = CharField(_('Telephone')) 89 90 expiration_date = DateField(_('Expiration_date')) 91 last_session_key = CharField(blank=True, null=True, max_length=40) 90 92 91 93 class Meta(MetaCore): -
telemeta/templates/telemeta/inc/collection_related.html
rea5ec32 r16d8a31 56 56 </td> 57 57 58 <td style="padding-bottom: 1em;">{% if media.is_image %} 58 <td style="padding-bottom: 1em;"> 59 {% if media.is_image %} 59 60 {% if media.url %} 60 61 <a href="{{ media.url }}"> … … 70 71 {% endif %} 71 72 {% endif %} 72 {% endif %}73 {% endif %} 73 74 </td> 74 75 </tr>
Note: See TracChangeset
for help on using the changeset viewer.
