Changeset 1018:140059539038
- Timestamp:
- 05/04/09 16:28:50 (3 years ago)
- Branch:
- default
- Files:
-
- 4 edited
-
AUTHORS (modified) (1 diff)
-
zine/application.py (modified) (1 diff)
-
zine/config.py (modified) (2 diffs)
-
zine/forms.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
AUTHORS
r907 r1018 11 11 - Christopher Grebs 12 12 - Christopher Denter 13 - Kiran Jonnalagadda 13 14 14 15 Contributors: -
zine/application.py
r991 r1018 797 797 self.add_shared_exports('core', SHARED_DATA) 798 798 self.add_middleware(SharedDataMiddleware, self._shared_exports) 799 self.add_middleware(SharedDataMiddleware, { 800 self.cfg['upload_url_prefix']: path.join(self.instance_folder, 'uploads') 801 }) 799 802 800 803 # set up the urls -
zine/config.py
r1015 r1018 38 38 'timezone': ChoiceField(choices=sorted(list_timezones()), 39 39 default=u'UTC'), 40 'primary_author': TextField(default=u'', 41 help_text=lazy_gettext(u'If this blog is '\ 42 u'written primarily '\ 43 u'by one author, '\ 44 u'some themes can '\ 45 u'skip the author\'s '\ 46 u'name on posts '\ 47 u'unless written '\ 48 u'by a guest.')), 40 49 'maintenance_mode': BooleanField(default=False), 41 50 'session_cookie_name': TextField(default=u'zine_session'), … … 74 83 'profiles_url_prefix': TextField(default=u'/authors', 75 84 validators=[is_valid_url_prefix()]), 85 'upload_url_prefix': TextField(default=u'/files', 86 validators=[is_valid_url_prefix()]), 87 'upload_path_format': TextField(default=u'%year%/%month%/%day%/', 88 validators=[is_valid_url_format()]), 76 89 'post_url_format': TextField(default=u'%year%/%month%/%day%/', 77 90 validators=[is_valid_url_format()]), -
zine/forms.py
r1017 r1018 964 964 profiles_url_prefix = config_field('profiles_url_prefix', 965 965 lazy_gettext(u'Author Profiles URL prefix')) 966 upload_url_prefix = config_field('upload_url_prefix', 967 lazy_gettext(u'Uploaded files URL prefix'), 968 help_text=lazy_gettext(u'If you change this, links to uploaded files '\ 969 u'from existing posts will not be automatically '\ 970 u'corrected. You must edit those posts manually. '\ 971 u'This setting will take effect when Zine is '\ 972 u'restarted.')) 973 upload_path_format = config_field('upload_path_format', 974 lazy_gettext(u'Uploaded files path format'), 975 help_text=lazy_gettext(u'Path to which post attachments are saved.')) 966 976 post_url_format = config_field('post_url_format', 967 977 lazy_gettext(u'Post permalink URL format'), … … 985 995 old = t[key] 986 996 if old != value: 987 if key in ['blog_url_prefix', 'admin_url_prefix', 988 'category_url_prefix', 'tags_url_prefix', 989 'profiles_url_prefix']: 997 if key == 'blog_url_prefix': 990 998 change_url_prefix(old, value) 991 999 t[key] = value
Note: See TracChangeset
for help on using the changeset viewer.