it should be.
class Root(controllers.RootController):
@expose()
def index(self):
return "<h1>Hello World</h1>"
On 10/18/06, PM <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I've installed TG and started reading the Getting Started Guide.
>
> The first example given doesn't work for me :
>
> [code]
> from turbogears import controllers, expose
>
> @expose()
> class Root(controllers.RootController):
> def index(self):
> return "<h1>Hello World</h1>"
> [/code]
>
> I get the following error in my terminal :
>
> D:\turbogears\gs>python start-gs.py
> Traceback (most recent call last):
> File "start-gs.py", line 26, in ?
> from gs.controllers import Root
> File "D:\turbogears\gs\gs\controllers.py", line 4
> class Root(controllers.RootController):
> ^
> SyntaxError: invalid syntax
>
> Where is my mistake ?
>
> It's a little bit frustrating when the first example given doesn't
> work.
>
> Python version : 2.4.3
> TG version : 1.0b1 installed with easy_install
>
> PM
>
>
> >
>
--
cheers
elvelind grandin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---