#9877: More Pythonic mutations of geometry objects
------------------------------------------------------------+---------------
          Reporter:  Aryeh Leib Taurog <[email protected]>  |         Owner:  
nobody
            Status:  new                                    |     Milestone:    
    
         Component:  GIS                                    |       Version:  
1.0   
        Resolution:                                         |      Keywords:    
    
             Stage:  Unreviewed                             |     Has_patch:  1 
    
        Needs_docs:  0                                      |   Needs_tests:  0 
    
Needs_better_patch:  0                                      |  
------------------------------------------------------------+---------------
Comment (by Aryeh Leib Taurog <[email protected]>):

 I've completed a second round of modifications and am attaching a patch
 which supersedes the previous patches.

 I modified the {{{GeometryCollection}}} class with list-like, slice-
 enabled mutations.  I then refactored the code, placing the bulk of the
 modifications in a {{{ListMixin}}} class, which I added as a superclass to
 both {{{LineString}}} and {{{GeometryCollection}}}.  I'm sure a similar
 mixin exists already somewhere (the {{{UserList}}} module did ''not'' seem
 to be appropriate) but I didn't know where to look.

 I also modified the tests (with a little bending backwards) to exercise
 both the geometries and the geometry collections.  Currently the tests
 operate on {{{LineString}}}, {{{LinearRing}}}, {{{MultiPoint}}}, and
 {{{MultiLineString}}}.

 I am still relatively new both to Django and to Python, so I'd love some
 feedback on style, etc.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9877#comment:2>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to