home / django_tickets

tickets

34 rows where "created" is on date 2005-07-20 sorted by owner

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: type, resolution, owner, reporter, has_patch, needs_better_patch, needs_tests, needs_docs

created (date) 1 ✖

  • 2005-07-20 · 34 ✖
id created changetime last_pulled_from_trac stage status component type severity version resolution summary description owner ▼ reporter keywords easy has_patch needs_better_patch needs_tests needs_docs ui_ux
95 2005-07-20 00:05:06 2007-07-03 23:03:41 2022-03-06 03:19:42.133120 Design decision needed closed Core (Other) defect normal   fixed Encourage people to change the TAMPER_SECRET TAMPER_SECRET in source:django/trunk/django/middleware/admin.py#3 should be unique (and secret) for every deployed Django application. This needs to be mentioned in the documentation. The constant should probably be moved to settings.py rather than living in the middleware module. adrian Simon Willison   0 0 0 0 0 0
97 2005-07-20 00:13:39 2005-07-20 15:14:00 2022-03-06 03:19:42.450355 Unreviewed closed Core (Other) defect normal   fixed Refactor django-admin.py so it only contains command-line interface code Move the bulk of django-admin.py into something like django/core/management.py, for code cleanliness and so other code can import from django.core.management. adrian adrian   0 0 0 0 0 0
99 2005-07-20 00:48:15 2007-07-03 23:03:32 2022-03-06 03:19:43.264801 Design decision needed closed Core (Other) enhancement normal   fixed enhance model "ordering" to reduce redundancy for multiple same-order fields currently: ordering = ( ('last_name','ASC'), ('first_name','ASC'), ('middle_name','ASC'), ('name_suffix','ASC'), ) suggested: ordering = ((('last_name','first_name','middle_name','name_suffix'),'ASC'),) Looks like the same "string or sequence of strings" trick, but going the other way this time! Should be backwards compatible, too. adrian maney@two14.net   0 0 0 0 0 0
101 2005-07-20 01:28:53 2006-08-29 10:50:06 2022-03-06 03:19:45.011425 Unreviewed closed Core (Management commands) enhancement normal   wontfix Add functionality to django-admin to create skeleton views You should be able to do something like {{{django-admin.py createview APPNAME VIEWNAME method1 method2 ...}}} and having {{{apps/APPNAME/views/VIEWNAME.py}}} created and filled with some sensible template (eg., comments on how to create methods, etc.) With a bit of work, it could be possible even modifying {{{apps/APPNAME/urls/APPNAME.py}}} to point to the new methods. See the attached patch. adrian ricardo@conysis.com   0 0 0 0 0 0
102 2005-07-20 02:21:13 2007-07-03 23:04:15 2022-03-06 03:19:45.338216 Ready for checkin closed Core (Other) defect normal   fixed Exceptions aren't html-quoted Exceptions that contain <> (like <Foo.bar at 0x139413>) aren't HTML quoted, and the text disapears. adrian ianb@colorstudy.com   0 0 0 0 0 0
104 2005-07-20 06:12:21 2007-07-03 23:04:05 2022-03-06 03:19:45.679376 Design decision needed closed Core (Other) defect normal 1.0 duplicate i18n for internal strings Maybe it would be a good idea to start using gettext for internal string resources, so people could start translating stuff? I think especially about internal strings like those in the validators. adrian hugo i18n 0 0 0 0 0 0
107 2005-07-20 10:26:01 2006-11-03 13:48:06 2022-03-06 03:19:46.151000 Unreviewed closed Metasystem defect normal   fixed [patch] Leaving out ID parameters For models with an AutoField, it should be possible when creating a new instance (for example in the interactive interpreter) to leave out the id = None parameter. Django should be smart enough to add this by itself. adrian Manuzhai <mail@manuzhai.nl>   0 1 0 0 0 0
111 2005-07-20 14:38:19 2006-10-07 16:23:30 2022-03-06 03:19:46.784333 Unreviewed closed contrib.admin defect normal   duplicate Filtering doesn't clean up arguments When selecting different filters (DateTimeField-based, in this case), in order: * Today: ?datetime__day=20&datetime__month=7&datetime__year=2005 * Then, past 7 days: ?datetime__day=20&datetime__gte=2005-07-13&datetime__month=7&datetime__lte=2005-07-20%2023:59:59&datetime__year=2005 It seems any new arguments should clean up arguments that concern the same field. adrian Manuzhai   0 0 0 0 0 0
112 2005-07-20 15:25:13 2006-09-14 00:37:53 2022-03-06 03:19:46.931692 Unreviewed closed Core (Other) defect normal   fixed WSGI requires a HTTP reason in the status The WSGI-spec clearly requires a reason-phrase when calling start_response, and Apache breaks proxied responses that are missing the reason phrase. So the Django wsgi-adapter is quite broken in the respect. Below is a patch which fixes this. The mapping of HTTP reason-phrases is incomplete, but at least now Django works when being proxied by Apache. {{{ Index: core/handlers/wsgi.py =================================================================== --- core/handlers/wsgi.py (revision 241) +++ core/handlers/wsgi.py (working copy) @@ -1,6 +1,12 @@ from django.utils import datastructures, httpwrappers from pprint import pformat +reasons = { + 200: 'Ok', + 404: 'Not found', + 500: 'Internal Server Error', +} + class WSGIRequest(httpwrappers.HttpRequest): def __init__(self, environ): self.environ = environ @@ -121,7 +127,7 @@ for middleware_method in self._response_middleware: response = middleware_method(request, response) - status = str(response.status_code) + ' ' # TODO: Extra space here is a hack. + status = '%d %s' % (response.status_code, reasons.get(response.status_code, 'Unknown status-code')) response_headers = response.headers if response.cookies: response_headers['Set-Cookie'] = response.cookies.output(header='') }}} adrian sune.kirkeby@gmail.com wsgi 0 0 0 0 0 0
113 2005-07-20 16:00:52 2006-10-07 21:45:17 2022-03-06 03:19:47.101602 Unreviewed closed Core (Other) defect normal   fixed auto-reload broken in standalone WSGI server Auto reload is broken in the new standalone server (http://www.djangoproject.com/weblog/2005/jul/18/local_server/)... Let's bring auto reload back. The code for this borrow's from Peter Hunt and the CherryPy project (www.cherrypy.org), which in turn borrows from Ian Bicking's Paste (http://pythonpaste.org/) We'll need to check on Paste and CherryPy's licenses to make sure this is all kosher. adrian Jason Huggins auto reload 0 0 0 0 0 0
114 2005-07-20 16:25:56 2006-10-07 19:00:07 2022-03-06 03:19:47.268097 Unreviewed closed Core (Other) defect normal   fixed DeprecationWarning when creating a new project (see patch) I decided to start over with the newewst build and received the following when creating a new project: C:\www\webroot>django-admin.py startproject myproject C:\Python24\lib\whrandom.py:38: DeprecationWarning: the whrandom module is deprecated; please use the random module DeprecationWarning) This didn't happen the first couple of times, so I'm guessing that it has to do with the build. I'm running WinXP & Py 2.4.1. adrian sdelatorre@gmail.com   0 0 0 0 0 0
116 2005-07-20 17:54:11 2011-08-08 11:40:20 2022-03-06 03:19:47.571827 Ready for checkin closed contrib.admin Uncategorized normal   worksforme Default admin media doesn't display for 'django-admin runserver' The default css and java scripts (located in '/usr/lib/python2.4/site-packages/django/conf/admin_media/') for the admin site does not work by default when I use 'django-admin.py runserver'. adrian espen@grindhaug.org   0 1 0 0 0 0
118 2005-07-20 18:47:08 2006-10-07 17:54:45 2022-03-06 03:19:47.868796 Unreviewed closed Core (Other) defect trivial   fixed flatfiles should be called flatpages I keep forgetting that flatfiles live only in the database and start hunting around the filesystem for them (the ones for the Django site that is). Should they be called flatpages instead? adrian Simon Willison   0 0 0 0 0 0
119 2005-07-20 19:42:19 2006-10-22 16:18:52 2022-03-06 03:19:48.032022 Unreviewed closed Core (Other) enhancement normal   wontfix Serving media There is currently no way of serving media through Django, which might be alright for mod_python as it's counting on Apache, but the WSGI server doesn't have such benefits. adrian brantley (deadwisdom@gmail.com) media wsgi images 0 0 0 0 0 0
120 2005-07-20 19:49:48 2007-07-03 23:05:27 2022-03-06 03:19:48.191124 Accepted closed Tools defect normal   fixed djang-admin.py called without argument Calling django-admin.py with no argument gives the following traceback: {{{ Traceback (most recent call last): File "./django-admin.py", line 102, in ? main() File "./django-admin.py", line 63, in main print_error("An 'action' is required.") TypeError: print_error() takes exactly 2 arguments (1 given) }}} And print_error function (defined line 43), effectively wants 2 arguments ;) I'm using rev 249 of Django's trunk. Attached is a trivial proposed patch. adrian anonymous   0 0 0 0 0 0
121 2005-07-20 20:20:29 2007-07-03 23:04:25 2022-03-06 03:19:48.338497 Accepted closed Metasystem enhancement normal   fixed [patch] Names in SQL should be quoted Some valid Python-identifiers are reserved words in SQL-databases, for instance "when" in PostgreSQL. It would be very nice, if Django would quote all names (e.g. schema, table, row) in SQL statements, so these database-reserved words would not pose problems. adrian sune.kirkeby@gmail.com sql 0 1 0 0 0 0
122 2005-07-20 21:25:02 2007-01-17 22:12:17 2022-03-06 03:19:48.493110 Unreviewed closed Core (Other) enhancement normal   fixed [patch] Build models using fieldname=FieldClass This is a patch to make fieldname=FieldClass type model definitions possible. It is fully backwards-compatible with the fields=(...) method. The example given in the tutorial could be re-written as such: {{{ from django.core import meta class Poll(meta.Model): question = meta.CharField(maxlength=200) pub_date = meta.DateTimeField('date published') class Choice(meta.Model): ForeignKey = Poll choice = meta.CharField(maxlength=200) votes = meta.IntegerField() }}} Other ways of defining a ForeignKey: {{{ #multiple keys can be used with tuples: ForeignKey = Poll, OtherKey #options can also be used: ForeignKey = Poll, {'edit_inline':True, 'num_in_admin':3} #the attribute name is irrelevant here: anything = ForeignKey(Poll, edit_inline=True, num_in_admin=3) }}} The implementation is quite simple. (or horribly hackish, depending on how you see things.) It simply goes through all of the attributes of the class, and adds all of the instances of 'Field' to the fields list. (after updating their names with the attribute name.) It also processes the ForeignKey field, producing ForeignKeys as needed. Provisions are in place to maintain the order of the Fields. Here is the patch: {{{ Index: django/core/meta.py =================================================================== --- django/core/meta.py (revision 253) +++ django/core/meta.py (working copy) @@ -368,6 +368,40 @@ if not bases: return type.__new__(cls, name, bases, attrs) + # We must refactor the attributes around a little. All Field class instances will be given + # names (as needed) and moved to the fields list. + + attrs["fields"] = attrs.has_key("fields") and list(attrs["fields"]) or [] + + def handle_ForeignKey(obj): + if isinstance(obj, Model): + attrs["fields"].append(ForeignKey(obj)) + elif type(obj) in (list, tuple): + if isinstance(obj[0], ModelBase) and ty… adrian anonymous   0 1 0 0 0 0
124 2005-07-20 21:39:32 2007-07-03 23:04:49 2022-03-06 03:19:48.790734 Ready for checkin closed Core (Other) defect normal   duplicate Better handling of raw POST data I'll come up with a patch for this, if slashzero doesn't. adrian Manuzhai   0 0 0 0 0 0
125 2005-07-20 22:13:00 2007-07-03 23:03:55 2022-03-06 03:19:48.943232 Ready for checkin closed contrib.admin defect normal   wontfix View-Controller separation violation For example, django.views.admin.main: {{{ if lookup_opts.admin.search_fields: raw_template.append('<div id="toolbar">\n<form id="changelist-search" action="" method="get">\n') raw_template.append('<label><img src="%simg/admin/icon_searchbox.png" /></label> ' % ADMIN_MEDIA_PREFIX) raw_template.append('<input type="text" size="40" name="%s" value="%s" id="searchbar" /> ' % \ (SEARCH_VAR, escape(query))) }}} Shouldn't it be done only with templates? adrian maurycy   0 0 0 0 0 0
126 2005-07-20 22:19:29 2006-10-13 21:17:51 2022-03-06 03:19:49.068543 Unreviewed closed contrib.admin defect normal   fixed Patch to place the post_data into the request variable This is a patch to put the post_data into the request variable. This is helpful for views that need access to the raw data. {{{ Index: wsgi.py =================================================================== --- wsgi.py (revision 256) +++ wsgi.py (working copy) @@ -20,6 +20,7 @@ # Populates self._post and self._files if self.environ['REQUEST_METHOD'] == 'POST': post_data = self.environ['wsgi.input'].read(int(self.environ["CONTENT_LENGTH"])) + self._post_data = post_data if self.environ.get('CONTENT_TYPE', '').startswith('multipart'): header_dict = dict([(k, v) for k, v in self.environ.items() if k.startswith('HTTP_')]) self._post, self._files = httpwrappers.parse_file_upload(header_dict, post_data) @@ -89,7 +90,18 @@ def _set_user(self, user): self._user = user + + def _set_post_data(self,post_data): + self._post_data = post_data + def _get_post_data(self): + if not hasattr(self, '_post_data'): + self._load_post_and_files() + if hasattr(self, '_post_data'): + return(self._post_data) + else: + return("") + GET = property(_get_get, _set_get) POST = property(_get_post, _set_post) COOKIES = property(_get_cookies, _set_cookies) @@ -97,6 +109,7 @@ REQUEST = property(_get_request) session = property(_get_session, _set_session) user = property(_get_user, _set_user) + post_data = property(_get_post_data,_set_post_data) class WSGIHandler: def __init__(self): Index: modpython.py =================================================================== --- modpython.py (revision 256) +++ modpython.py (working copy) @@ -21,10 +21,11 @@ def _load_post_and_files(self): "Populates self._post and self._files" + self._post_data = self._req.read() if self._req.headers_in.has_key('content-type') and self._req.headers_in['content-type… adrian anonymous   0 0 0 0 0 0
128 2005-07-20 23:39:49 2007-07-03 23:03:54 2022-03-06 03:19:49.317321 Accepted closed Template system defect normal   worksforme IndexError when using invalid {% extends %} in template should be replaced with better error message. First of all the error {{{ There's been an error: Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/django/core/handlers/wsgi.py", line 190, in get_response return callback(request, **param_dict) File "/home/espen/django/blog/apps/blog/views/blog.py", line 20, in details return HttpResponse(t.render(c)) File "/usr/lib/python2.4/site-packages/django/core/template.py", line 116, in render return self.nodelist.render(context) File "/usr/lib/python2.4/site-packages/django/core/template.py", line 437, in render bits.append(node.render(context)) File "/usr/lib/python2.4/site-packages/django/core/template_loader.py", line 80, in render parent_is_child = isinstance(compiled_parent.nodelist[0], ExtendsNode) IndexError: list index out of range }}} The template file that trys to extend base.html: {{{ {% extends "base" %} {% block title %} Espen Grindhaug - Blog - {{ obj.headline }} {% endblock %} {% block content %} <h1>{{ obj.headline }}</h1> <p class="summary">{{ obj.summary }}</p> <p class="body">{{ obj.body }}</p> <p class="by">By {{ obj.author }} ({{ obj.pub_date }})</p> {% endblock %} }}} The weird thing here is that I get exactly the same error with completly different child template. base.html (the same as in [http://www.djangoproject.com/documentation/templates/#template-inheritance URL]): {{{ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <link rel="stylesheet" href="style.css" /> <title>{% block title %}Espen Grindhaug{% endblock %}</title> </head> <body> <div id="sidebar"> {% block sidebar %} <ul> <li><a href="/">Home</a></li> <li><a href="/blog/">Blog</a></li> </ul> {% endblock %} </div> <div id="content"> {% block content %}{%… adrian espen@grindhaug.org   0 0 0 0 0 0
109 2005-07-20 13:17:49 2007-07-03 23:03:46 2022-03-06 03:19:46.472589 Accepted closed contrib.admin defect blocker   fixed Patch: Customizing Date(Time)Field displays In the admin interface, dates are displayed as July 11, 2005, 8:39 p.m., while I'd at the least prefer to have a 24-hour format for the time. I think there should be options DATE_FORMAT, TIME_FORMAT and DATETIME_FORMAT which take care of the default formatting for these fields. anonymous Manuzhai   0 0 0 0 0 0
96 2005-07-20 00:12:31 2007-07-03 23:03:54 2022-03-06 03:19:42.268275 Design decision needed closed *.djangoproject.com   normal   fixed Coment counts on the djangoproject.com weblog It would be useful to see the number of comments on each entry attached to both the front page of the weblog and the front page of the site. jacob Simon Willison   0 0 0 0 0 0
100 2005-07-20 01:21:07 2007-07-03 23:04:10 2022-03-06 03:19:44.511817 Ready for checkin closed Documentation defect normal   fixed document ForeignKey('self') hack, please assuming I got it right this time :-) jacob maney@two14.net   0 0 0 0 0 0
103 2005-07-20 03:37:24 2007-07-03 23:06:11 2022-03-06 03:19:45.513585 Design decision needed closed *.djangoproject.com defect normal   fixed "Get current version: 1.0" is misleading The front page link to the download page says "Get current version: 1.0". This is misleading - there is no version 1.0 yet. The text should read "Get development version" or something similar which reinforces the fact that Django has not yet made it to a marked version. I would also argue that going straight to 1.0 isn't necessarily a good idea. If you look at Rails, they spent months and months rolling through the 0.9 etc releases before everything was considered stable enough for a 1.0. This seems like a smart model to follow. jacob Simon Willison   0 0 0 0 0 0
105 2005-07-20 09:00:38 2007-01-17 22:12:17 2022-03-06 03:19:45.843137 Unreviewed closed contrib.admin enhancement normal   fixed Make collapse class to work in two ways It is really useful to present some fieldsets collapsed in the admin interface and just with one click get them opened. It would be equally useful, once uncollapsed, to have the possibility to collapse them again. In a such way users can better organize the space on their Django admin interface. jacob paolo   0 0 0 0 0 0
108 2005-07-20 11:52:18 2007-07-03 23:03:57 2022-03-06 03:19:46.320550 Unreviewed closed *.djangoproject.com defect normal   fixed WikiFormatting page is not there When I am entering a new ticket, just above the main textarea the link to the WikiFormatting points to an empty page. I think it needs to be restored from the default Trac installation. jacob verbosus   0 0 0 0 0 0
110 2005-07-20 14:23:10 2006-09-14 01:25:57 2022-03-06 03:19:46.627726 Unreviewed closed Documentation enhancement normal   fixed Documentation on pagination needed Third path of tutorial should show views that don't return output and polls list with paging support. jacob maurycy   0 0 0 0 0 0
117 2005-07-20 18:25:32 2007-07-03 23:04:07 2022-03-06 03:19:47.720239 Unreviewed closed *.djangoproject.com enhancement normal   wontfix Site search and/or Trac search for djangoproject.com According to TracSearch, Trac has a neat feature where you can enter bug numbers, changeset codes etc in to the search box to jump directly to that item within Trac. It would be useful if the Trac search box was added to the templates for code.djangoproject.com in the same place on every page (it might work in the top right in the light green bar, below the Home / Download / etc links). Even better - how about adding search to the whole of the djangoproject.com website? It would be very handy for searching through the growing piles of documentation, not to mention the comments. jacob Simon Willison   0 0 0 0 0 0
123 2005-07-20 21:39:20 2006-10-07 18:13:53 2022-03-06 03:19:48.646860 Unreviewed closed Documentation defect normal   fixed Typo in the model_api/#field-types Currently the ImageField says this. ImageField Like a FieldField, but validates that the ... I believe this should be Like a FileField, but validates that the ... jacob jay@skabber.com documentation typo 0 0 0 0 0 0
127 2005-07-20 22:20:16 2007-07-12 08:02:24 2022-03-06 03:19:49.185694 Unreviewed closed Documentation defect normal   wontfix Documentation how to setup djangoproject.com Tutorial introduces only trivial application. There should be document describing more complicated one, for example djangoproject.com. Not necessary architecture and details, but how to setup and play with. jacob maurycy   0 0 0 0 0 0
106 2005-07-20 09:41:37 2008-11-12 16:25:37 2022-03-06 03:19:45.998838 Accepted closed contrib.admin defect normal   fixed [patch] Problem with some js/select box on IE Extract from Tutorial 1: 'When you click "Add Another," you'll get a popup window with the "Add poll" form. If you add a poll in that window and click "Save," Django will save the poll to the database and dynamically add it as the selected choice on the "Add choice" form you're looking at.' This (dynamically add it) works on Mozilla 1.0.4 Win. It is not true on IE 6. A blank string is shown instead of name of the new poll. Just after a manual refresh of the page things appear correctly. kmtracey paolo   0 1 1 1 1 0
115 2005-07-20 17:37:01 2007-10-21 19:53:27 2022-03-06 03:19:47.413935 Accepted closed Core (Other) enhancement normal   invalid Models CRUD via web services Sometimes we need to offer public avaible CRUD API for existing models. That doesn't request too much creativity and can be generated automatically. It would be great to have them out of box, like admin interface. nobody maurycy feature_request 0 0 0 0 0 0
98 2005-07-20 00:28:49 2007-07-03 23:04:10 2022-03-06 03:19:42.698394 Ready for checkin closed Documentation enhancement normal   fixed Pretty CSS for PHILOSOPHY sections in docs Every now and then in the tutorials there's a section starting with PHILOSOPHY which outlines some of the thinking behind Django's design. It would be nice if these were set apart from the rest of the content a bit, by being in a box with a different background colour and a picture of a lightbulb or thinking greek guy or something. See here for an example: http://www.djangoproject.com/documentation/tutorial1/#creating-models wilson Simon Willison   0 0 0 0 0 0

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE tickets (
        id int primary key,
        created datetime,
        changetime datetime,
        last_pulled_from_trac datetime,
        stage text,
        status text,
        component text,
        type text,
        severity text,
        version text,
        resolution text,
        summary text,
        description text,
        owner text,
        reporter text,
        keywords text,
        easy boolean,
        has_patch boolean,
        needs_better_patch boolean,
        needs_tests boolean,
        needs_docs boolean,
        ui_ux boolean
    );
Powered by Datasette · Queries took 962.094ms