This is with TG & TGFastData on 0.9a6-py2.4, with a quickstarted
project.

I have an app that works fine in standalone. When I run it behind
apache mod_proxy not at the root, it also works fine - EXCEPT for a
DataController using FastDataGrid.

Even there, it's only the 'add' (all I use) action that has an improper
URL.

In my .cfg file, I have:
server.webpath = "/path_to_app"

The DataController is mounted under the root at "addCustomer", so the
correct add url is:
  http://localhost/path_to_app/addCustomer/add
With server.webapth set as above, I get
  http://localhost/path_to_appadd
With server.webpath="/path_to_app/", I get
  http://localhost/path_to_app/add
With no server.webpath set, I get
  http://localhost/addCustomer/add

As near as I can tell, the tgfastdata.template calls turbogears.url()
appropriately.

I am doing something slightly odd - I pass in my own list_template &
list_widget when creating the DataController. The snippets are:
In controllers.py:
 cust_form = FastDataGrid()
 ...
 class Root(controllers.RootController):
     addCustomer = DataController(sql_class=model.Customer,
                          list_widget=cust_form,
                          list_template='demo.templates.customerList')

In the template customerList:
  ${list_widget.display(data, show_actions=False)}

Did I miss something, or is this a bug?
Any workaround? 

Thanks!
--Hal


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to