On Wednesday 06 February 2008 16:41:08 Rohan Perera wrote:
> Diez,
>
> thanks for getting back to me so in other word in the controller method do
> the followiing
> *def index( ): remove the parameter
>
> *In my template I have the following code:
> <p><a href="entertext?">View complete page list</a></p>
>
>
> However I am getting the following error below. I don't understand how I am
> passing a parameter. Can someone
> out there explain to me the basics of creating templates.

You don't need explained how to do templates - basic python is required 
first...

You removed ALL parameters from index - which is of course wrong, it's an 
instance-method and needs a self-parameter as first argument. Like this:


...
   @expose(...)
   def index(self):
       ...



Diez

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to