Scott,

this is what I have done. I checked out satchmo trunk and keep it
updated. After checkout I exported it to a new copy and check it in on
my own SVN, and there I make my changes. When ever there is a change
in satchmo trunk I merge these changes into my own copy. It's a bit of
extra work but that way I can take advantage of improvements and bug
fixes in main satchmo and also make patches if I do something of
benefit for satchmo.

It might be possible to do it some other way, but I like to develop in
line with newforms-admin branch and have done these changes to "my"
satchmo, as well as some other structural changes I hope to offer back
once they branch to start develop with newforms-admin as base. I read
your post in satchmo group but don't really have any input for the
special things you trying to achive. In fact, I am pretty new to
django/python as well coming from php.

If you are interested in using newforms-admin there is a script here
http://www.djangosnippets.org/snippets/603/ which help you to do this
change quite easily. That's what I used and the script really works.

/Joakim

On May 1, 2:20 am, Scott SA <[EMAIL PROTECTED]> wrote:
> Hi Rajesh,
>
> On 4/30/08, Rajesh Dhawan ([EMAIL PROTECTED]) wrote:
>
> >> Is there a reasonable/accptable ot better yet "recommended" way to add
> >functionality, etc. to an app without resorting to the above points? If so,
> >what stones should I turn (via google serches, etc.) to figure this out.
>
> >It depends quite a bit on how "extensibly" the said app was designed.
> >Does it use Python classes, for instance? If so, you could look into
> >extending these classes with your own. Does it issue or allow Django
> >signals? If so, you could add your own listeners to such signals.
>
> A quick bit of grepping shows that signals are being used internally. The 
> majority of its classes are within Django models.
>
> >You can also do many other kludgy things with Python like replacing a
> >class method's implementation but that's not very good practice as it
> >eventually ends up with unmaintanable code.
>
> I can't afford to develop anything short-sighted - overall a losing 
> proposition.
>
> >Can you tell us more about the app your are looking to extend and also
> >in what ways you want to extend it?
>
> Sure. I'm looking at Satchmo. Parts of it are close enough that I can adapt 
> to how it is configured. Unfortunately, the product models and client models 
> don't fit well, esp. the product model. I posted a similar message on the 
> Satchmo list with greater detail but have not received any suggestions.
>
> Basically, the products I have to integrate are a set of services that can be 
> subscribed to for short and long periods of time. Discounts are available 
> based upon quantity of service as well as duration of service.
>
> I can certainly relate my own work with the existing models via M2M and FK 
> but that, I believe, will be outside the scope of the Satchmo app. I am at a 
> loss as to how to interject my required changes between the various classes. 
> I don't want to have to 'wrap' every Satchmo class with my own - it seems a 
> recipe for disaster 8^(
>
> After I send this message, I'll dig further into signals and the dispatcher 
> to see if I can be a little less clueless. Thanks for giving me something to 
> look at.
>
> Also, I just encountered last night about class templates (I think thats what 
> they were called) in Django. I have to go back and read in detail this 
> evening and see what I might be able to appropriately leverage.
>
> Scott
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to