1
0
mirror of https://github.com/django/django.git synced 2025-07-04 17:59:13 +00:00

2815 Commits

Author SHA1 Message Date
Justin Bronn
c953f188dd gis: added support for Solaris
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5510 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-22 01:25:09 +00:00
Jeremy Dunck
bdcc95e5cc gis: Merged revisions 4786-5490 via svnmerge from
http://code.djangoproject.com/svn/django/trunk

git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5492 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-18 16:48:27 +00:00
Justin Bronn
48c9f87e1f gis: GDAL improvements; added Driver class, improved tests, removed non-existent exception, updated geometries for tests, updated documentation.
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5478 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-15 06:02:04 +00:00
Justin Bronn
b0b7bbced7 gis: GEOSGeometry updates, improved initialization & tests, simplified some routines.
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5474 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-15 03:49:25 +00:00
Justin Bronn
6538a26a47 gis: NULL geometries are now allowed (thanks Robert Coup!), field parameter no longer needed for _post_create_sql(), and added extra instance methods for SpatialReference/SRID.
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5448 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-09 19:55:42 +00:00
Justin Bronn
b962a44a4d gis: Added an intial ctypes interface to GDAL/OGR
(1) SpatialReference allows for rich access to properties of spatial 
      reference systems.
  (2) OGRGeometry provides access to the OGR Geometry classes -- may be
      accessed from models with the get_GEOM_ogr() extra instance method.


git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5397 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-01 01:15:35 +00:00
Justin Bronn
38ff3cff45 gis: Some GEOSGeometry patches, biggest change is that __iter__, __getitem__, and __len__ now supported on Polygon and LineString
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5395 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-31 23:29:16 +00:00
Jeremy Dunck
3a618c7824 gis: Committed todo notes.
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5382 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-29 14:12:37 +00:00
Justin Bronn
f84bb1b18f gis: (1) fixed WKT admin bug
(2) cleaned up GeometryField (moved SQL creation into field, index creation now on by default) 
     (3) now have exact lookup type, e.g., filter(geom='...') works


git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5336 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-25 01:29:10 +00:00
Justin Bronn
58aa35e7a5 gis: width parameter on buffer() should be a double (thanks Todd Small\!). minor docstring tweaks.
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5134 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-01 04:04:50 +00:00
Justin Bronn
e30720a2dc gis: Fixed segfault on invalid WKT (added test for both invalid HEX and WKT). GEOSException now a proper exception. Updated error handler.
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5030 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-19 12:49:40 +00:00
Justin Bronn
522400d8ef gis: fixed bugs in GEOSCoordSeq (and added a test case). added preliminary support for Mac OSX compiled GEOS libraries.
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5023 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-18 00:13:25 +00:00
Justin Bronn
39f9d48e4e gis: added GEOSGeometry, a ctypes wrapper for the GEOS library, providing:
(1) an interface with the GEOS C API, using only python and ctypes (can be accessed w/get_GEOM_geos)
  (2) independence from the GEOS Python SWIG module that is deprecated and no longer maintained
  (3) portability, currently works on both Linux and Win32 platforms


git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5008 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-16 03:43:53 +00:00
Justin Bronn
fdbbd652bc gis: added models for the PostGIS/OGC geometric tables 'spatial_ref_sys' and
'geometry_columns'.


git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@4997 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-11 21:11:48 +00:00
Justin Bronn
8ef0b01e72 gis: two big changes:
(1) the addition of the GeoMixin class, which gives geometry fields contributed functions (e.g. get_GEOM_area).
 (2) geo_filter() is no more, all queries use filter() now.


git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@4884 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-31 21:25:29 +00:00
Justin Bronn
0bf6355918 gis: geographic oldforms, allows editing of geometries as WKT in admin
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@4883 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-31 21:18:05 +00:00
Justin Bronn
b6359772b1 gis: module for interfacing with GEOS routines.
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@4882 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-31 21:14:22 +00:00
Jeremy Dunck
1a657ecf52 gis: Merged revisions 4799-4809 via svnmerge.
Last revision prior to 0.96 release.

git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@4853 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-29 16:58:58 +00:00
Jeremy Dunck
2f15f72c89 gis: Merged revisions 4796-4797 via svnmerge
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@4852 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-29 16:56:56 +00:00
Jeremy Dunck
177a49ae5e gis: From jbronn:
Renamed LineString to LineStringField.
Changed qs kwargs format, e.g. overlapsleft -> overlaps_left.
Added oldforms WKTField, allowing read-only viewing of Geom fields (for people that know Well-Known Text).
Index creation working for common case.

git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@4851 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-29 16:51:20 +00:00
Jeremy Dunck
8fe2413527 gis: And added missing fields init.
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@4788 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-23 17:47:48 +00:00
Jeremy Dunck
631f30f7c8 gis: Moved files to their appropriate locations from bad commit in [4785].
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@4787 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-23 17:45:19 +00:00
Jeremy Dunck
fa3ed6e134 gis: Merged revisions 4669-4785 via svnmerge from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@4786 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-23 16:35:57 +00:00
Jeremy Dunck
8b279b63be gis: checked in latest from jbronn from Mar 19.
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@4785 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-23 16:32:00 +00:00
Jeremy Dunck
68309c8a33 gis: changed fields.GeometryField to implement get_internal_type.
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@4675 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-07 23:22:37 +00:00
Jeremy Dunck
5edcbdc826 gis: Added beginnings of django.contrib.gis.
Changed ManyToManyField to provide get_internal_type() -> 'NoField'.
GIS fields use NoField? and new _post_create_sql for AddGeometryColumn.

git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@4674 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-07 23:09:33 +00:00
Jeremy Dunck
5514d87319 gis: Merged revisions 4564-4668 via svnmerge from
http://code.djangoproject.com/svn/django/trunk

git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@4669 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-06 14:21:30 +00:00
Jeremy Dunck
d60c443194 gis: Initialized merge tracking via "svnmerge" with revisions "1-4563" from
http://code.djangoproject.com/svn/django/trunk

git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@4567 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-25 06:10:35 +00:00
Jacob Kaplan-Moss
8a1e199cdc Created GIS support branch
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@4564 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-25 05:49:16 +00:00
Jacob Kaplan-Moss
f2aa1b93e0 Fixed silly typo in [4651].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4563 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-23 23:05:25 +00:00
Jacob Kaplan-Moss
e7aab3a474 Fixed #3558: [4558] broken in Python 2.3; this fixes that breakage. Thanks for the heads-up, xian@mintchaos.com
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4562 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-23 23:05:16 +00:00
Jacob Kaplan-Moss
16bd0aa991 Fixed #3541: queryset.count() now respects the queryset cache.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4561 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-23 20:58:28 +00:00
Jacob Kaplan-Moss
ee5415e3dd Fixed #3550 - updated Thomas Steinacher's entry in AUTHORS.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4560 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-23 20:55:21 +00:00
Jacob Kaplan-Moss
a01f852d2e Fixed documentation from [4558] to be correct.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4559 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-23 20:50:53 +00:00
Jacob Kaplan-Moss
36512d5d73 Fixed #343: filters that take strings now handle non-strings correctly. Thanks to Boffbowsh for the original patch, and to SmileyChris for the updated patch and tests.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4558 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-23 18:02:51 +00:00
Malcolm Tredinnick
1266766da4 Fixed #3550 -- Updated Peter Marić's entry in AUTHORS.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4557 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-22 11:17:50 +00:00
Adrian Holovaty
abc949f584 Changed database PhoneNumberField to use USPhoneNumberField as its newforms form field (instead of IntegerField)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4556 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-21 05:59:46 +00:00
Adrian Holovaty
ec2eb4d18f Removed unimplemented allow_letters option from USPhoneNumberField
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4555 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-21 05:55:12 +00:00
Adrian Holovaty
08e406d146 Added newforms USPhoneNumberField in django.contrib.localflavor.usa
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4554 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-21 05:54:09 +00:00
Adrian Holovaty
e8f165f1f0 Added a comment to ModelChoiceField from [4552]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4553 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-21 05:18:34 +00:00
Adrian Holovaty
ee96c7eb2d Fixed #3534 -- newforms ModelChoiceField and ModelMultipleChoiceField no longer cache choices. Instead, they calculate choices via a fresh database query each time the widget is rendered and clean() is called
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4552 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-21 05:14:28 +00:00
Adrian Holovaty
5bec651a61 Added small newforms unit test
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4551 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-21 03:47:03 +00:00
Malcolm Tredinnick
97256bc39c Fixed #3536 -- Fixed setup.py so that it prints a usage message if you
accidently invoke it without any arguments.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4550 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-20 23:38:06 +00:00
Adrian Holovaty
a52cc03374 Fixed #3490 -- Fixed issue with newforms ChoiceField and generators as choices. Thanksfor the patch, Chris.Wesseling@cwi.nl
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4549 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-20 03:05:09 +00:00
Adrian Holovaty
bdfbcb2cd5 Fixed #3247 -- newforms form_for_model() and form_for_instance() no longer create form fields for database fields with editable=False. Thanks for the patch, mssnlayam@yahoo.com and Philipp Keller
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4548 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-20 02:59:16 +00:00
Adrian Holovaty
e56934b9b9 Fixed #3257 -- Added newforms ModelChoiceField and ModelMultipleChoiceField, which are now used by form_for_model() and form_for_instance(). Thanks for the patch, Honza Kral, floguy@gmail.com and kilian.cavalotti
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4547 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-20 02:42:07 +00:00
Adrian Holovaty
907241e299 Fixed #2455 -- Added newforms USStateSelect widget in django.contrib.localflavor.usa
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4545 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-20 00:30:22 +00:00
Adrian Holovaty
b8fa80bd00 Fixed #3510 -- newforms validation errors are now HTML-escaped for HTML output. Thanks, scott@staplefish.com
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4544 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-19 23:54:55 +00:00
Adrian Holovaty
7cb7541971 Improved newforms to handle wacky characters in Field help_text
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4543 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-19 23:43:14 +00:00
Malcolm Tredinnick
babc0793e3 Fixed behaviour of admin interface (and AddManipulator) when
min/max_num_in_admin is specified without num_in_admin. A consequence of
changes in [4500].


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4542 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-19 04:18:46 +00:00