[Zope] Newbie Question
Matthew Russell
matthew.russell@securetrading.com
Thu, 02 Jan 2003 11:17:28 +0000
Hi all,
Having been put off Zope by the uglyness of DTML before, I am begining
to get to grips with zope once again, and have played around with ZTP et
al and it looks great.
We have one problem.
We have an existing system, where each of our customers (companys) gets
a new subfolder of our site:
e.g
http://url:8080/customers/companyA
http://url:8080/customers/companyB
each company may have different users with various levels of access...
once again zope caters for this.
However, say i want each company to call a method :
getFinancialRecords(company, username)
Prefrably this is an instance method of a class stored on the harddrive,
but the main prerequist is that it is in ONE place.
I have also experimented with Product and got a couple working, and so
understand i could use a product and include it in companyA's folder and
companyB's folder, but this would be cumbersome if we have 2000+
company's for example. Plus whenever we make a change to the product we
need to update each product somehow.
So I am thinking, is it possible to include my Product 'X' (that has the
getFinancialRecords method) in the "customers" folder and still
preservce security and access levels?
Is there a better way that can i allow different levels of access to
getFinancialRecords for different users of company 'A' for example?
any help would be very much appricated, been scratching my head for ages
on this one.
Matt