------------ IvO: ----------------
> How you pass arguments to class methods?, like
> /catalog/add/ .... or
> /catalog/remove/
> where catalog is the class, and add and remove are the methods.
If you use the url "/catalog//remove", then this operation
can be a class method where is part of the initialization
data of the class. The Catalogs class should have a _q_lookup(self,
request, product_id) method that returns a ProductDetail class, which
initializes itself to have an attribute self.product_id. The
remove(self) method of the ProductDetail class uses self.product_id to
look up the database record and delete it.
For adding a new product, the url could be "/catalog/add".
The Catalogs class would have an add() method that would create
and return a ProductDetailForm object for entering new product
information.
For modifying an existing product, the url could be
"/catalog//edit". The ProductDetail class would have an
edit() method so that an existing record (identified by
self.product_id) can be retrieved and edited, also using a
ProductDetailForm object.
Hope that is enough to get you started.
Jim Dukarm
DELTA-X RESEARCH
Victoria BC Canada