Changeset 75617ad
- Timestamp:
- 06/24/11 18:43:07 (2 years ago)
- Branches:
- master, crem, crem2, dev, dev2, diadems, forma, generic, instru_search, lam, nlivemulti, production, release/1.4.4, security, social, storage, test, video
- Children:
- d4c2dd3, 37137fd
- Parents:
- 2a5709c
- git-author:
- yomguy <yomguy@…> (06/24/11 18:43:07)
- git-committer:
- yomguy <yomguy@…> (06/24/11 18:43:07)
- Files:
-
- 10 edited
-
INSTALL.rst (modified) (2 diffs)
-
example/sandbox/settings.py (modified) (2 diffs)
-
telemeta/templates/telemeta_default/base.html (modified) (1 diff)
-
telemeta/templates/telemeta_default/collection_add.html (modified) (1 diff)
-
telemeta/templates/telemeta_default/collection_edit.html (modified) (1 diff)
-
telemeta/templates/telemeta_default/mediaitem_add.html (modified) (1 diff)
-
telemeta/templates/telemeta_default/mediaitem_copy.html (modified) (1 diff)
-
telemeta/templates/telemeta_default/mediaitem_edit.html (modified) (1 diff)
-
telemeta/templatetags/telemeta_utils.py (modified) (1 diff)
-
telemeta/web/base.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
INSTALL.rst
r3842ea4 r75617ad 167 167 TELEMETA_ORGANIZATION = name of the organization which hosts this installation 168 168 TELEMETA_SUBJECTS = tuple of subject keywords (used for Dublin Core), such as "Ethnology", etc... 169 TELEMETA_DESCRIPTION = the description of the site 169 170 TELEMETA_CACHE_DIR = absolute path to the cache directory that you just created 170 171 TELEMETA_GMAP_KEY = your Google Map API key … … 174 175 EMAIL_HOST = your default SMTP server 175 176 DEFAULT_FROM_EMAIL = the default sending email address 176 TELEMETA_OAI_REPOSITORY_NAME = the description of the OAI data provider177 177 178 178 Just paste the lines below:: -
example/sandbox/settings.py
rb21dbf0 r75617ad 111 111 TELEMETA_ORGANIZATION = 'Parisson' 112 112 TELEMETA_SUBJECTS = ('test', 'telemeta', 'sandbox') 113 TELEMETA_DESCRIPTION = "Telemeta TEST sandbox" 113 114 TELEMETA_GMAP_KEY = '***************************************************************************' 114 115 TELEMETA_DOWNLOAD_ENABLED = True … … 116 117 TELEMETA_PUBLIC_ACCESS_PERIOD = 51 117 118 AUTH_PROFILE_MODULE = 'telemeta.userprofile' 118 119 TELEMETA_OAI_REPOSITORY_NAME = "Telemeta TEST sandbox"120 119 121 120 LOGIN_URL = '/login' -
telemeta/templates/telemeta_default/base.html
rd0a44c8 r75617ad 8 8 <head> 9 9 <meta http-equiv="Content-type" content="text/html;charset=UTF-8" /> 10 <title>{%block head_title %}{% organization %} - Telemeta {% endblock %}</title>10 <title>{%block head_title %}{% organization %} - Telemeta - {% description %}{% endblock %}</title> 11 11 12 12 {% block stylesheets %} -
telemeta/templates/telemeta_default/collection_add.html
r83c03be r75617ad 25 25 {% endfor %} 26 26 </table> 27 <div align="center" >27 <div align="center" style="margin-top:3ex;"> 28 28 <a href="{% url telemeta-collections %}" class="component_icon button icon_cancel">{% trans "Cancel" %}</a> 29 29 <a href="#" class="component_icon button icon_save" -
telemeta/templates/telemeta_default/collection_edit.html
r83c03be r75617ad 24 24 {% endfor %} 25 25 </table> 26 <div align="center" >26 <div align="center" style="margin-top:3ex;"> 27 27 <a href="{% url telemeta-collection-detail collection.public_id %}" class="component_icon button icon_cancel">{% trans "Cancel" %}</a> 28 28 <a href="#" class="component_icon button icon_save" -
telemeta/templates/telemeta_default/mediaitem_add.html
r83c03be r75617ad 32 32 {% endfor %} 33 33 </table> 34 <div align="center" >34 <div align="center" style="margin-top:3ex;"> 35 35 <a href="{% url telemeta-items %}" 36 36 class="component_icon button icon_cancel">{% trans "Cancel" %}</a> -
telemeta/templates/telemeta_default/mediaitem_copy.html
r83c03be r75617ad 40 40 {% endfor %} 41 41 </table> 42 <div align="center" >42 <div align="center" style="margin-top:3ex;"> 43 43 <a href="{% url telemeta-item-detail item.public_id %}" class="component_icon button icon_cancel">{% trans "Cancel" %}</a> 44 44 <a href="#" class="component_icon button icon_save" -
telemeta/templates/telemeta_default/mediaitem_edit.html
r83c03be r75617ad 38 38 {% endfor %} 39 39 </table> 40 <div align="center" >40 <div align="center" style="margin-top:3ex;"> 41 41 <a href="{% url telemeta-item-detail item.public_id %}" 42 42 class="component_icon button icon_cancel">{% trans "Cancel" %}</a> -
telemeta/templatetags/telemeta_utils.py
rea7656e r75617ad 269 269 return settings.TELEMETA_ORGANIZATION 270 270 271 @register.simple_tag 272 def description(): 273 try: 274 description = settings.TELEMETA_OAI_REPOSITORY_NAME 275 except: 276 description = settings.TELEMETA_DESCRIPTION 277 pass 278 return description 279 271 280 class SetVarNode(template.Node): 272 281 -
telemeta/web/base.py
ra0b0f45 r75617ad 1197 1197 1198 1198 1199 1200 1199 class LastestRevisionsFeed(Feed): 1201 1200 "the RSS feed of the lastest revisions" … … 1207 1206 link = "" 1208 1207 description = ' '.join([subject.decode('utf-8') for subject in subjects]) 1208 n_items = 100 1209 1209 1210 1210 def items(self): 1211 return get_revisions( 25)1211 return get_revisions(self.n_items) 1212 1212 1213 1213 def item_title(self, r):
Note: See TracChangeset
for help on using the changeset viewer.
