Changeset 1255
- Timestamp:
- 11/15/05 18:12:31 (3 years ago)
- Files:
-
- django/branches/new-admin/django/conf/global_settings.py (modified) (1 diff)
- django/branches/new-admin/django/conf/locale/bn/LC_MESSAGES/django.po (modified) (1 diff)
- django/branches/new-admin/django/conf/locale/cs/LC_MESSAGES/django.po (modified) (1 diff)
- django/branches/new-admin/django/conf/locale/cy/LC_MESSAGES/django.po (modified) (1 diff)
- django/branches/new-admin/django/conf/locale/da (added)
- django/branches/new-admin/django/conf/locale/da/LC_MESSAGES (added)
- django/branches/new-admin/django/conf/locale/da/LC_MESSAGES/django.mo (added)
- django/branches/new-admin/django/conf/locale/da/LC_MESSAGES/django.po (added)
- django/branches/new-admin/django/conf/locale/de/LC_MESSAGES/django.mo (modified) (previous)
- django/branches/new-admin/django/conf/locale/de/LC_MESSAGES/django.po (modified) (1 diff)
- django/branches/new-admin/django/conf/locale/en/LC_MESSAGES/django.po (modified) (1 diff)
- django/branches/new-admin/django/conf/locale/es/LC_MESSAGES/django.po (modified) (1 diff)
- django/branches/new-admin/django/conf/locale/fr/LC_MESSAGES/django.po (modified) (1 diff)
- django/branches/new-admin/django/conf/locale/gl/LC_MESSAGES/django.po (modified) (1 diff)
- django/branches/new-admin/django/conf/locale/is/LC_MESSAGES/django.po (modified) (1 diff)
- django/branches/new-admin/django/conf/locale/it/LC_MESSAGES/django.po (modified) (1 diff)
- django/branches/new-admin/django/conf/locale/no/LC_MESSAGES/django.po (modified) (1 diff)
- django/branches/new-admin/django/conf/locale/pt_BR/LC_MESSAGES/django.po (modified) (1 diff)
- django/branches/new-admin/django/conf/locale/ro/LC_MESSAGES/django.po (modified) (1 diff)
- django/branches/new-admin/django/conf/locale/ru/LC_MESSAGES/django.po (modified) (1 diff)
- django/branches/new-admin/django/conf/locale/sk/LC_MESSAGES/django.mo (modified) (previous)
- django/branches/new-admin/django/conf/locale/sk/LC_MESSAGES/django.po (modified) (4 diffs)
- django/branches/new-admin/django/conf/locale/sr/LC_MESSAGES/django.po (modified) (1 diff)
- django/branches/new-admin/django/conf/locale/sv/LC_MESSAGES/django.po (modified) (1 diff)
- django/branches/new-admin/django/conf/locale/zh_CN/LC_MESSAGES/django.po (modified) (1 diff)
- django/branches/new-admin/django/core/db/backends/postgresql.py (modified) (1 diff)
- django/branches/new-admin/django/core/formfields.py (modified) (1 diff)
- django/branches/new-admin/django/parts/auth/anonymoususers.py (modified) (1 diff)
- django/branches/new-admin/django/templatetags/i18n.py (modified) (1 diff)
- django/branches/new-admin/django/views/debug.py (modified) (4 diffs)
- django/branches/new-admin/django/views/generic/simple.py (added)
- django/branches/new-admin/docs/faq.txt (modified) (1 diff)
- django/branches/new-admin/docs/generic_views.txt (modified) (3 diffs)
- django/branches/new-admin/docs/settings.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/new-admin/django/conf/global_settings.py
r1223 r1255 38 38 ('cs', _('Czech')), 39 39 ('cy', _('Welsh')), 40 ('da', _('Danish')), 40 41 ('de', _('German')), 41 42 ('en', _('English')), django/branches/new-admin/django/conf/locale/bn/LC_MESSAGES/django.po
r1246 r1255 1074 1074 1075 1075 #: conf/global_settings.py:40 1076 #, fuzzy 1077 msgid "Danish" 1078 msgstr "স্প্যানিশ" 1079 1080 #: conf/global_settings.py:40 1076 1081 msgid "German" 1077 1082 msgstr "জার্মান" django/branches/new-admin/django/conf/locale/cs/LC_MESSAGES/django.po
r1246 r1255 1081 1081 1082 1082 #: conf/global_settings.py:40 1083 #, fuzzy 1084 msgid "Danish" 1085 msgstr "Španělsky" 1086 1087 #: conf/global_settings.py:40 1083 1088 msgid "German" 1084 1089 msgstr "Německy" django/branches/new-admin/django/conf/locale/cy/LC_MESSAGES/django.po
r1246 r1255 1077 1077 1078 1078 #: conf/global_settings.py:40 1079 #, fuzzy 1080 msgid "Danish" 1081 msgstr "Spaeneg" 1082 1083 #: conf/global_settings.py:40 1079 1084 msgid "German" 1080 1085 msgstr "Almaeneg" django/branches/new-admin/django/conf/locale/de/LC_MESSAGES/django.po
r1248 r1255 1324 1324 1325 1325 #: conf/global_settings.py:40 1326 msgid "Danish" 1327 msgstr "D�sch" 1328 1329 #: conf/global_settings.py:40 1326 1330 msgid "German" 1327 1331 msgstr "Deutsch" django/branches/new-admin/django/conf/locale/en/LC_MESSAGES/django.po
r1246 r1255 1043 1043 1044 1044 #: conf/global_settings.py:40 1045 msgid "Danish" 1046 msgstr "" 1047 1048 #: conf/global_settings.py:40 1045 1049 msgid "German" 1046 1050 msgstr "" django/branches/new-admin/django/conf/locale/es/LC_MESSAGES/django.po
r1246 r1255 1069 1069 1070 1070 #: conf/global_settings.py:40 1071 msgid "Danish" 1072 msgstr "" 1073 1074 #: conf/global_settings.py:40 1071 1075 msgid "German" 1072 1076 msgstr "" django/branches/new-admin/django/conf/locale/fr/LC_MESSAGES/django.po
r1246 r1255 1084 1084 1085 1085 #: conf/global_settings.py:40 1086 #, fuzzy 1087 msgid "Danish" 1088 msgstr "Espagnol" 1089 1090 #: conf/global_settings.py:40 1086 1091 msgid "German" 1087 1092 msgstr "Allemand" django/branches/new-admin/django/conf/locale/gl/LC_MESSAGES/django.po
r1246 r1255 1070 1070 1071 1071 #: conf/global_settings.py:40 1072 msgid "Danish" 1073 msgstr "" 1074 1075 #: conf/global_settings.py:40 1072 1076 msgid "German" 1073 1077 msgstr "" django/branches/new-admin/django/conf/locale/is/LC_MESSAGES/django.po
r1246 r1255 1079 1079 1080 1080 #: conf/global_settings.py:40 1081 #, fuzzy 1082 msgid "Danish" 1083 msgstr "Spænska" 1084 1085 #: conf/global_settings.py:40 1081 1086 msgid "German" 1082 1087 msgstr "Þýska" django/branches/new-admin/django/conf/locale/it/LC_MESSAGES/django.po
r1246 r1255 1073 1073 1074 1074 #: conf/global_settings.py:40 1075 #, fuzzy 1076 msgid "Danish" 1077 msgstr "Spagnolo" 1078 1079 #: conf/global_settings.py:40 1075 1080 msgid "German" 1076 1081 msgstr "Tedesco" django/branches/new-admin/django/conf/locale/no/LC_MESSAGES/django.po
r1246 r1255 1079 1079 1080 1080 #: conf/global_settings.py:40 1081 #, fuzzy 1082 msgid "Danish" 1083 msgstr "Spansk" 1084 1085 #: conf/global_settings.py:40 1081 1086 msgid "German" 1082 1087 msgstr "Tysk" django/branches/new-admin/django/conf/locale/pt_BR/LC_MESSAGES/django.po
r1246 r1255 1082 1082 1083 1083 #: conf/global_settings.py:40 1084 #, fuzzy 1085 msgid "Danish" 1086 msgstr "Espanhol" 1087 1088 #: conf/global_settings.py:40 1084 1089 msgid "German" 1085 1090 msgstr "Alemão" django/branches/new-admin/django/conf/locale/ro/LC_MESSAGES/django.po
r1246 r1255 1079 1079 1080 1080 #: conf/global_settings.py:40 1081 #, fuzzy 1082 msgid "Danish" 1083 msgstr "Spaniolă" 1084 1085 #: conf/global_settings.py:40 1081 1086 msgid "German" 1082 1087 msgstr "Germană" django/branches/new-admin/django/conf/locale/ru/LC_MESSAGES/django.po
r1246 r1255 1068 1068 1069 1069 #: conf/global_settings.py:40 1070 msgid "Danish" 1071 msgstr "" 1072 1073 #: conf/global_settings.py:40 1070 1074 msgid "German" 1071 1075 msgstr "" django/branches/new-admin/django/conf/locale/sk/LC_MESSAGES/django.po
r1246 r1255 1073 1073 #: conf/global_settings.py:37 1074 1074 msgid "Bengali" 1075 msgstr " "1075 msgstr "Bengálsky" 1076 1076 1077 1077 #: conf/global_settings.py:38 … … 1081 1081 #: conf/global_settings.py:39 1082 1082 msgid "Welsh" 1083 msgstr " "1083 msgstr "Waleský" 1084 1084 1085 1085 #: conf/global_settings.py:40 … … 1105 1105 #: conf/global_settings.py:45 1106 1106 msgid "Icelandic" 1107 msgstr " "1107 msgstr "Islandský" 1108 1108 1109 1109 #: conf/global_settings.py:46 … … 1121 1121 #: conf/global_settings.py:49 1122 1122 msgid "Romanian" 1123 msgstr " "1123 msgstr "Rumúnsky" 1124 1124 1125 1125 #: conf/global_settings.py:50 django/branches/new-admin/django/conf/locale/sr/LC_MESSAGES/django.po
r1246 r1255 1082 1082 1083 1083 #: conf/global_settings.py:40 1084 #, fuzzy 1085 msgid "Danish" 1086 msgstr "Španski" 1087 1088 #: conf/global_settings.py:40 1084 1089 msgid "German" 1085 1090 msgstr "Nemački" django/branches/new-admin/django/conf/locale/sv/LC_MESSAGES/django.po
r1246 r1255 1080 1080 1081 1081 #: conf/global_settings.py:40 1082 #, fuzzy 1083 msgid "Danish" 1084 msgstr "Spanska" 1085 1086 #: conf/global_settings.py:40 1082 1087 msgid "German" 1083 1088 msgstr "Tyska" django/branches/new-admin/django/conf/locale/zh_CN/LC_MESSAGES/django.po
r1246 r1255 1068 1068 1069 1069 #: conf/global_settings.py:40 1070 #, fuzzy 1071 msgid "Danish" 1072 msgstr "西斑牙语" 1073 1074 #: conf/global_settings.py:40 1070 1075 msgid "German" 1071 1076 msgstr "德语" django/branches/new-admin/django/core/db/backends/postgresql.py
r1235 r1255 25 25 conn_string = "user=%s %s" % (DATABASE_USER, conn_string) 26 26 if DATABASE_PASSWORD: 27 conn_string += " password= %s" % DATABASE_PASSWORD27 conn_string += " password='%s'" % DATABASE_PASSWORD 28 28 if DATABASE_HOST: 29 29 conn_string += " host=%s" % DATABASE_HOST django/branches/new-admin/django/core/formfields.py
r1244 r1255 103 103 self.error_dict = error_dict 104 104 self._inline_collections = None 105 self.fields = [self.__getitem__(field.field_name) for field in self.manipulator.fields] 105 106 self.edit_inline = edit_inline 106 107 django/branches/new-admin/django/parts/auth/anonymoususers.py
r1223 r1255 35 35 return False 36 36 37 def has_module_perms(self, module): 38 return False 39 37 40 def get_and_delete_messages(self): 38 41 return [] django/branches/new-admin/django/templatetags/i18n.py
r1235 r1255 164 164 def do_block_translate(parser, token): 165 165 """ 166 This will translate a block of text with parameters. 167 168 Format is like this:: 169 170 {% blocktrans with foo|filter as bar and baz|filter as boo %} 171 This is {{ bar }} and {{ boo }}. 172 {% endblocktrans %} 173 174 Additionally this supports pluralization:: 175 176 {% blocktrans count var|length as count %} 177 There is {{ count }} object. 178 {% plural %} 179 There are {{ count }} objects. 180 {% endblocktrans %} 181 182 This is much like ngettext, only in template syntax. 166 183 """ 167 184 class BlockTranslateParser(TokenParser): django/branches/new-admin/django/views/debug.py
r1235 r1255 1 import re 1 2 import os 2 3 import sys … … 6 7 from django.core.template import Template, Context 7 8 from django.utils.httpwrappers import HttpResponseServerError, HttpResponseNotFound 9 10 HIDDEN_SETTINGS = re.compile('SECRET|PASSWORD') 8 11 9 12 def technical_500_response(request, exc_type, exc_value, tb): … … 31 34 }) 32 35 tb = tb.tb_next 33 36 37 # Turn the settings module into a dict, filtering out anything that 38 # matches HIDDEN_SETTINGS along the way. 39 settings_dict = {} 40 for k in dir(settings): 41 if k.isupper(): 42 if HIDDEN_SETTINGS.search(k): 43 settings_dict[k] = '********************' 44 else: 45 settings_dict[k] = getattr(settings, k) 46 34 47 t = Template(TECHNICAL_500_TEMPLATE) 35 48 c = Context({ … … 40 53 'request' : request, 41 54 'request_protocol' : os.environ.get("HTTPS") == "on" and "https" or "http", 42 'settings' : dict([(k, getattr(settings, k)) for k in dir(settings) if k.isupper()]),55 'settings' : settings_dict, 43 56 44 57 }) django/branches/new-admin/docs/faq.txt
r966 r1255 144 144 production settings -- and our own code met our needs delightfully. 145 145 146 In most cases, however, we found that existing frameworks/tools inevitably had 147 some sort of fundamental, fatal flaw that made us squeamish. No tool fit our 148 philosophies 100%. 149 150 Like we said: We're picky. 151 152 We've documented our philosophies on the `design philosophies page`_. 153 154 .. _design philosophies page: http://www.djangoproject.com/documentation/design_philosophies/ 155 146 156 Do you have any of those nifty "screencast" things? 147 157 --------------------------------------------------- django/branches/new-admin/docs/generic_views.txt
r854 r1255 58 58 ``app_label``, ``module_name``, etc.). 59 59 60 All the generic views that follow require the ``app_label`` and ``module_name`` keys. 61 These values are easiest to explain through example::60 Most of the generic views that follow require the ``app_label`` and 61 ``module_name`` keys. These values are easiest to explain through example:: 62 62 63 63 >>> from django.models.blog import entries … … 68 68 of the ``module_name`` option of your model). In the docs below, these keys 69 69 will not be repeated, but each generic view requires them. 70 71 Using "simple" generic views 72 ============================ 73 74 The ``django.views.generic.simple`` module contains simple views to handle a 75 couple of common cases: rendering a template when no view logic is needed, 76 and issuing a redirect. These views are: 77 78 ``direct_to_template`` 79 Renders a given template using any extra parameters passed in the 80 urlpattern; requires the ``template`` argument. 81 82 For example, given the following URL patterns:: 83 84 urlpatterns = patterns('django.views.generic.simple', 85 (r'^foo/$', 'direct_to_template', {'template' : 'foo_index'}), 86 (r'^foo/(?P<id>\d+)/$', 'direct_to_template', {'template' : 'foo_detail'}), 87 ) 88 89 ... a request to ``/foo/`` would cause the ``foo_index`` template to be 90 rendered, and a request to ``/foo/15/`` would cause the ``foo_detail`` 91 template to be rendered with a context variable ``{{ params.id }}`` that is 92 set to ``15``. 93 94 ``redirect_to`` 95 Issue a redirect to a given URL. 96 97 The given url may contain dict-style string formatting which will be 98 interpolated against the params in the URL. For example, to redirect from 99 ``/foo/<id>/`` to ``/bar/<id>/``, you could use the following urlpattern:: 100 101 urlpatterns = patterns('django.views.generic.simple', 102 ('^foo/(?p<id>\d+)/$', 'redirect_to', {'url' : '/bar/%(id)s/'}), 103 ) 104 105 If the given url is ``None``, a HttpResponseGone (410) will be issued. 70 106 71 107 Using date-based generic views … … 323 359 object 324 360 The object about to be deleted 361 django/branches/new-admin/docs/settings.txt
r1223 r1255 410 410 ('cs', _('Czech')), 411 411 ('cy', _('Welsh')), 412 ('da', _('Danish')), 412 413 ('de', _('German')), 413 414 ('en', _('English')),
