Re: MVC with Python

2008-09-16 Thread Georg Altmann
Maric Michaud schrieb: Le Tuesday 16 September 2008 14:47:02 Marco Bizzarri, vous avez écrit : On Tue, Sep 16, 2008 at 1:26 PM, Georg Altmann <[EMAIL PROTECTED]> wrote: Marco Bizzarri schrieb: On Mon, Sep 15, 2008 at 9:37 PM, Georg Altmann <[EMAIL PROTECTED]> wrote: But this implies all the o

Re: MVC

2008-05-23 Thread Bruno Desthuilliers
George Maggessy a écrit : Hi Gurus, I'm a Java developer and I'm trying to shift my mindset to start programming python. Welcome onboard then. So, my first exercise is to build a website. However I'm always falling back into MVC pattern. And ? Is there anything wrong with web-style MVC ?

Re: MVC

2008-05-22 Thread Andrew Lee
George Maggessy wrote: Hi Gurus, I'm a Java developer and I'm trying to shift my mindset to start programming python. So, my first exercise is to build a website. However I'm always falling back into MVC pattern. I know it's a standard, but the implementation language affects the use of design p

Re: MVC

2008-05-22 Thread Michael Mabin
In fact, the Pylons web framework is geared toward the MVC approach. http://pylonshq.com/ On Thu, May 22, 2008 at 7:48 PM, George Maggessy <[EMAIL PROTECTED]> wrote: > Hi Gurus, > > I'm a Java developer and I'm trying to shift my mindset to start > programming python. So, my first exercise is to

Re: MVC

2008-05-22 Thread Brad
George Maggessy wrote: Hi Gurus, I'm a Java developer and I'm trying to shift my mindset to start programming python. So, my first exercise is to build a website. However I'm always falling back into MVC pattern. I know it's a standard, but the implementation language affects the use of design p

Re: MVC

2008-05-22 Thread Patrick Mullen
In my experience, python is very pattern agnostic. You can do functional or object oriented or procedural fairly easily, have deep or light object trees, or even mix procedural style with some object oriented code if you like. "There should be one way to do it" tends to not apply as much as some

Re: MVC for wxWidgets or Tkinter?

2006-08-04 Thread Satya
samuraisam wrote: > Are there any MVC-framework-like libraries for wxWidgets or Tkinter for > Python? If so, any experiences with using them? I need to develop a > desktop application *fast* and experiences with the likes of Turbogears > have taught me that you can indeed develop very fast with a

Re: MVC in Python for web app dev

2006-03-27 Thread Don Taylor
[EMAIL PROTECTED] wrote: > I'm aware that Pylons is trying to > compete with Rails in the near future but I'm just not clear on how > directly they are trying to compete...will Pylons have the same > generation functions and other time saving goodies that RoR has or am I > barking up the wrong tre

Re: MVC in Python for web app dev

2006-03-26 Thread Robert Hicks
http://www.myghty.org/ That one is excellent. Robert -- http://mail.python.org/mailman/listinfo/python-list

Re: MVC in Python for web app dev

2006-03-26 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > Thanks Rune. I've already checked out Django and TG and have found both > the projects to be a little misguided. I think the one great thing they > have over Rails is the use of SQLObject Then you haven't really checked Django - it doesn't use SQLObject. > Having sa

Re: MVC in Python for web app dev

2006-03-25 Thread m . wanstall
Thanks Rune. I've already checked out Django and TG and have found both the projects to be a little misguided. I think the one great thing they have over Rails is the use of SQLObject because the implicit mapping of data models via the "plural" approach of Rails is a bit of a quirk to me, I just do

Re: MVC in Python for web app dev

2006-03-25 Thread Rune Strand
[EMAIL PROTECTED] wrote: > Please let me state off the cuff that I'm not after a big "Python Vs > Ruby" war or anything here! I'm trying to make the switch to Python for > my web development work as I've been using it for quite some time for > other programming work (albeit mainly hobby and person

Re: MVC Help

2006-01-17 Thread Sbaush
Thanks!!Is there a wx example? 2006/1/17, Fredrik Lundh <[EMAIL PROTECTED]>: "Sbaush" <[EMAIL PROTECTED]> wrote:> The View must be only the clickable button> The Control must be the event listener on the button> The Model must be the action of the button. > If we can complete this MVC simple implem

Re: MVC Help

2006-01-17 Thread Fredrik Lundh
"Sbaush" <[EMAIL PROTECTED]> wrote: > The View must be only the clickable button > The Control must be the event listener on the button > The Model must be the action of the button. > If we can complete this MVC simple implementation we could publish this like > a "MVC SIMPLE TUTORIAL" because wi

Re: MVC in wxPython HELP!

2006-01-12 Thread bwaha
> Can I just suggest you search in Google Groups for the message by > "has" labelled "Re: MVC programming with python (newbie) - please help". > Dated: 7 Jan 2006 07:03:04 -0800. It is one of the nicest short > descriptions of the MVC pattern and why it works.

Re: MVC in wxPython HELP!

2006-01-11 Thread has
If folk wish to post that spiel anywhere else, be my guest. Public domain and all that. has -- http://mail.python.org/mailman/listinfo/python-list

Re: MVC in wxPython HELP!

2006-01-11 Thread Scott David Daniels
is here: > http://www.pyj.it/sorgenti/2004/01/doc-view.zip > Can I just suggest you search in Google Groups for the message by "has" labelled "Re: MVC programming with python (newbie) - please help". Dated: 7 Jan 2006 07:03:04 -0800. It is one of the nicest short desc

Re: MVC in wxPython HELP!

2006-01-11 Thread snoe
See this recent explanation by has: http://groups.google.ca/group/comp.lang.python/msg/f8990a2c666a793c?hl=en&; (The rest of the thread may lead you to more concrete examples as well.) -- http://mail.python.org/mailman/listinfo/python-list

Re: MVC in wxPython HELP!

2006-01-11 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > Hi to all. > I woud implement MVC with wxPython. Is it possible? Is there anyone > that have experience in this? > The only correct example according to Observer Pattern that i found on > web is not the formal implementation of MVC (is Document/View) and is > implemente

Re: MVC programming with python (newbie) - please help

2006-01-11 Thread bwaha
Well I read this in daylight hours. Talk about Enlightening!!!. It all became clear. Now I even understand the point of an observer class, which was shown in an example I posted back to the group from an earlier reply. Thanks again for sharing your knowledge. Be Well and Happy Always Chris

Re: MVC programming with python (newbie) - please help

2006-01-09 Thread bwaha
"has" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > bwaha wrote: > > The author refers to mvctree.py in wxPython as an example of MVC design. > > However I'm still too green so I find that particular example too complex > > and I'm not understanding the separation the author is rec

Re: MVC programming with python (newbie) - please help

2006-01-09 Thread has
bwaha wrote: > The author refers to mvctree.py in wxPython as an example of MVC design. > However I'm still too green so I find that particular example too complex > and I'm not understanding the separation the author is recommending. MVC is all about separation of concerns. The Model is responsi

Re: MVC programming with python (newbie) - please help

2006-01-09 Thread has
bwaha wrote: > The author refers to mvctree.py in wxPython as an example of MVC design. > However I'm still too green so I find that particular example too complex > and I'm not understanding the separation the author is recommending. MVC is all about separation of concerns. The Model is responsi

Re: MVC programming with python (newbie) - please help

2006-01-08 Thread Scott David Daniels
has wrote: > MVC is all about separation of concerns This is a wonderful explanation of MVC. I'm going to keep a link to the Google-Groups version just so I can cite it to those asking about MVC. --Scott David Daniels [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: MVC programming with python (newbie) - please help

2006-01-08 Thread has
bwaha wrote: > The author refers to mvctree.py in wxPython as an example of MVC design. > However I'm still too green so I find that particular example too complex > and I'm not understanding the separation the author is recommending. MVC is all about separation of concerns. The Model is responsi

Re: MVC programming with python (newbie) - please help

2006-01-07 Thread bwaha
"bwaha" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'd appreciate some experience from the gurus out there to help me > understand how to implement MVC design in python code. Thanks for all the help. Also this link was sent to me by pm and I found this very useful too. Its a

Re: MVC programming with python (newbie) - please help

2006-01-07 Thread bwaha
"Gerard Flanagan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Gerard Flanagan wrote: > > > bwaha wrote: > > > > > I'd appreciate some experience from the gurus out there to help me > > > understand how to implement MVC design in python code. > > > > > > > Badly snipped, not prete

Re: MVC programming with python (newbie) - please help

2006-01-07 Thread Gerard Flanagan
Gerard Flanagan wrote: > bwaha wrote: > > > I'd appreciate some experience from the gurus out there to help me > > understand how to implement MVC design in python code. > > > Badly snipped, not pretending to be a 'guru' Gerard -- http://mail.python.org/mailman/listinfo/python-list

Re: MVC programming with python (newbie) - please help

2006-01-07 Thread Gerard Flanagan
bwaha wrote: > I'd appreciate some experience from the gurus out there to help me > understand how to implement MVC design in python code. > I'm neither a guru nor an expert, have never used wxpython, and am not qualified to advise on MVC!! But until someone more qualified arrives here's some cod

Re: MVC programming with python (newbie) - please help

2006-01-06 Thread Gerard Flanagan
bwaha wrote: > I'd appreciate some experience from the gurus out there to help me > understand how to implement MVC design in python code. > Model class Study(object): def __init__(self, name, file): self.name = name self.file = file class Project(object):

Re: MVC programming with python (newbie) - please help

2006-01-06 Thread Frank Niessink
bwaha wrote: > > At some level this seems to me like the class ListDataModel above. I just > need to make a MyTreeControl class. However here GS(et) routines are > implemented in the ProjectFileDecoder class (data model?) whereas in the > earlier advice they are in class MyCoolListControl. So I'm