Hi Kevin,
Sorry I forgot to cc my last email to the list. Shannon has explained
things a bit better anyway so I won't forward it.
[EMAIL PROTECTED] wrote:
> Indeed, I have been to those pages. However, I haven't been able to go
> through the wiki tutorial due to a bug in the latest release of Pylons and
> Cheetah that makes it not work.
Just do this:
easy_install -U "Cheetah==1.0"
If it doesn't work, you'll need to tell us what platform you are on so
you can install it using that platform's package system.
> I got the part about the redirection of URLs, except how does the server know
> to use Routes instead of just trying to access the file requested by the
> browser? Is Routes the server as well?
The routes are defined in config/routing.py of your Pylons project.
> I am still lost on the concept of web servers. Each framework seems to have
> a server built-in.
Which part of the concept of web servers is confusing? Surely the fact
that some frameworks come with sample servers isn't confusing?
> You spoke about controllers (for handling POST, GET, and COOKIES). Where can
> I find an explanation of what a controller is?
The Getting Started Guide is a good place to get started and the
Concepts of Pylons document I referred you to is a great place to get an
idea of the concepts of Pylons.
I'm having trouble understanding which part of this code you are
struggling with?
from helloworld.lib.base import *
class HelloController(BaseController):
def index(self):
return Response('hello world')
As you can see it is a class which when the index() method is executed
returns a response of 'hello world' to display in the browser. Which
part of that process are you having difficulty understanding?
> This concept is completely foreign to me. In PHP, you just use the $_GET
> var/array and you have the GET data.
In Pylons you get the GET data as request.params, conceptually exactly
the same thing. There is an example in the QuickWiki tutorial which I
think I've recommended to you twice now:
http://pylonshq.com/docs/0.9.4.1/quick_wiki.html#id12
[EMAIL PROTECTED] wrote:
> Is this like months into the future, or like something in a week or so?
>
> I fear I am in the middle of a transition in Paste. I want to learn
web programming, but it's almost like once I learn the current system
you all are gonna change it on me. :)
No need to worry about transitions in Paste, the bits Ian's changing
affect the way other frameworks generate their templates so shouldn't
affect your code. Since you haven't got any code yet anyway they are
unlikely to affect you.
Hope that helps a bit but seriously, I know I keep harping on but you
need to work through the tutorials. If you struggle with certain bits
people will be glad to help but it is really hard to answer general
questions in a constructive way by email.
Good luck!
Cheers,
James
_______________________________________________
Paste-users mailing list
[email protected]
http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users