[Zope] Button to pack data base

J Cameron Cooper jccooper at jcameroncooper.com
Tue Dec 9 15:55:22 EST 2003


Dieter Maurer wrote:

>Brian Sullivan wrote at 2003-12-9 10:53 -0500:
>  
>
>>I would like to include a button or link on a Zope site that would
>>allow a user with the right privileges ( what privileges do they need
>>-- can I restrict their "management" capability to just the pack
>>function?) to pack the data base.
>>
>>I would like to have it use the appearance of the website, not the
>>ZMI. Any idea of how to do this? Directions to code that does this in
>>the ZMI that I could examine?
>>    
>>
>Look at the source of the corresponding ZMI page.
>It contains everything you need to know.
>
>This advice is general: whenever you want to realize something
>similar to what the ZMI does, look at its source.
>With Zope, you have thousands of integrated examples...
>
And if the permissions aren't quite what you'd like, you can use Proxy 
Roles on Python scripts to address that.

          --jcc

-- 
"Code generators follow the 80/20 rule. They solve most of the problems, but not all of the problems. There are always features and edge cases that will need hand-coding. Even if code generation could build 100 percent of the application, there will still be an endless supply of boring meetings about feature design."
(http://www.devx.com/java/editorial/15511)





More information about the Zope mailing list