Hi Roger,
             I've submitted the ticket: http://trac.turbogears.org/ticket/1648

             I left everything on the defaults, so I guess it will
need to be looked at and changed.

             I'll have a go at creating a patch, but I guess it
wouldn't be too hard for someone else to take on if that'd be
quicker.  I've got an old windows laptop that I can don't use for TG
stuff, so I might use that for the patch - rather than risk messing up
my dev machine setup for now.

             cheers,
                        John

On Jan 4, 7:29 pm, "Roger Demetrescu" <[EMAIL PROTECTED]>
wrote:
> On Jan 4, 2008 4:52 PM, lilspikey <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi Roger,
> >              it might take me a while to get a patch together (never
> > actually done one before) and I'm currently still actually running TG
> > 1.0...  I'll open a ticket though and lay out what I said here and
> > hopefully that will motivate me to get a patch (with tests) submitted.
> >              In the short-term I guess the only option for using a
> > list-like object would be to make sure it actually extends list I
> > guess?  Just mentioning that for my own sake and for anyone else who
> > might be looking for a similar solution, but doesn't want to wait for
> > a patch.
>
> Without some black-magic [1], yes... you will need to extend `list` class.
>
> >             cheers,
> >                      John Montgomery
>
> > p.s. real noob question, but is there a could place to start reading
> > up about how one actually makes a proper patch?  I'm guessing it's
> > basically just a diff between my code and the last version in svn, but
> > as I said I've never tried this before.
>
> I have always use TortoiseSVN "Create patch" command (that's for Windows).
> If you are running svn from command line (eg: linux), I believe the command 
> is:
>
> $ svn diff > my_patch.patch
>
> If I am wrong, someone correct me, please...
>
> []s
> Roger
>
> [1] - By "black magic", I mean doing something like this:
>
> ----- python shell -----------
>
> >>> class A(object): pass
> >>> class B(A): pass
> >>> class C(object): pass
> >>> c = C()
> >>> isinstance(c, A)
> False
> >>> isinstance(c, C)
> True
> >>> c.__class__
>
> <class '__main__.C'>>>> c.__class__ = B      # changing the class of this 
> instance
> >>> isinstance(c, C)
> False
> >>> isinstance(c, A)
>
> True
>
> ----- python shell / -----------
>
> Note that this won't work with "list". If you try it, you will get an:
>
> =======
> Traceback (most recent call last):
>   File "<pyshell#31>", line 1, in <module>
>     c.__class__ = int
> TypeError: __class__ assignment: only for heap types
> =======
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to