Hi,

I have this structure of URLs in my app:

/app/table/list/query
/app/table/create
/app/table/edit/id
/app/table/delete/id

Ex:
   /sales_force/customers/list
   /sales_force/customers/list/query?name='John'
   /sales_force/customers/create
   /sales_force/customers/edit/001
   /sales_force/customers/delete/001
   /sales_force/products/list
   /sales_force/products/list/query?name='IPhone'
   /sales_force/products/create
   /sales_force/products/edit/001
   /sales_force/products/delete/001

My question: it's possible create a generic controller class ?

 I think in put a table name as a parameter in the __init__() method
in this controller, but I don't know if this is the best way to
implement this solution. Another question is: How to map this in a url
= () tuple;

Any idea ?

Thanks for all help.

-- Leandro.

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en.

Reply via email to