> For absolute Python newbies, I recommend Django. Pylons seems to be
> for those of us grumpy old programmers who hate being told what to do
> ;)
Ok, I typed out a reply and I have no idea where it went :( Bummer.
Anyway, yeah, I could do Django but then I would be beaten :D
>
> On the other hand, I think we'll all be happy to help you out with
> Pylons. We're all happy to try to convince Java programmers to "come
> to the light" ;) I have 3 kids myself, and another on the way, so I'm
> happy to answer questions ;)
Congrats on the impending arrival! I thought maybe you'd be even more
excited if I were a C++ programmer coming over from the dark side but
Prof. Google told me there's a java no python no java... war. Who
knew?
>
> I do recommend working all the way through the QuickWiki tutorial.
> That's how I learned. I'm also glad to see you're reading "Learning
> Python". That's a fantastic book! Make sure you do all the
> exercises!
>
I'm glad it's a recommended book. So far it seems pretty easy to
get. So that's the part of Pylon I feel like I can grasp :D I will
go through the wiki tutorial again - can't hurt, eh?
I'll go ahead and try to remember what I typed. I'm not doing very
well w/ this forum!
Ok, so the whole MVC set up of the file system of projects is fine,
makes sense. At the high level, anyway. But when we start getting
more specific, that's where I have questions.
Controller folder -> this is where the "glue" code goes, right? You
use a controller to communicate w/ the user, the view, and model? How
does a controller get called into play? When a user clicks a link?
That's what I'm thinking but I might be off. And what about the view
and the action - what are these exactly? The view is a file in the
template directory maybe? Not really sure what action is. And not
really sure how the whole routes thing factors into this. This is what
I garnered from the tutorials, so far.
Templates-> I have to admit I don't fully get why you use templates.
Is it to just make it easier to put variables in and to include
files? anyway, your code to render you page goes here. Curious why
css files don't - is it speed? Also, is just being in the template
file what tells pylons I"m using Mako (or whatever template language
you put in your middleware.py)? Is there a provided object that
allows you to access your templates from outside the templates folder
(maybe there's no call for this?)? I've seen references to available
objects here and there but I haven't found a good explanation yet.
User error, I'm sure, but still. :)
Models-> This part seems pretty straightforward but could be 'cause I
didn't mess w/ this yet :D I guess my one question would be the same
as for the template folder: is that what it takes for pylons to know
that I'm using SQLAlchemy (or whatever you chose to use)? Oh, and
again - there's an object to pass info from models to wherever else,
right?
That's probably what I really need yessed or no-ed to get started. I
think :D Oh, and maybe a little info on the whole webhelpers h
thing. In all your spare time :)
I think a lot of this stuff is *almost* all in the getting started
section but I'm always missing just a little bit. Maybe writing all
this out for the 3rd time will help me find what I need from the docs
anyway :D
> Best Regards,
> -jj
>
> --http://jjinux.blogspot.com/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---