On Tuesday 01 September 2009 15:38:45 benny daon wrote: > I take a different approach. While generic keys are the best solution they > are not easy to work with. I like to start with using a foreign key to > whichever model and if the app is successful and I want to make it > pluggable, I'll refactor it to use generic keys. > IMO, It's OK for your project-specific apps to depend on each other. I just > try to keep the dependencies clear, so I don't get spaghetti code and > coding can be distributed. >
This is definitely sound advice; the question was specifically about pluggable apps, though, not project-specific ones. In essence, writing your app to expect the presence of some other specific app, and work on its models, makes your app a lot less pluggable. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "PyWeb-IL" 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/pyweb-il?hl=en -~----------~----~----~----~------~----~------~--~--- _______________________________________________ Python-il mailing list [email protected] http://hamakor.org.il/cgi-bin/mailman/listinfo/python-il
