Last change
on this file since 40 was
1,
checked in by myroslav, 19 years ago
|
Building directory structure
|
File size:
666 bytes
|
Rev | Line | |
---|
[1] | 1 | from Globals import InitializeClass |
---|
| 2 | from OFS.SimpleItem import SimpleItem |
---|
| 3 | from AccessControl import ClassSecurityInfo |
---|
| 4 | |
---|
| 5 | from Products.CMFCore.utils import UniqueObject, getToolByName |
---|
| 6 | |
---|
| 7 | from Products.qPloneDropDownMenu.Extensions.Install import updateMenu |
---|
| 8 | from config import VIEW_PERMISSION, PROJECT_NAME, UNIQUE_ID |
---|
| 9 | |
---|
| 10 | |
---|
| 11 | class DropDownMenuTool(UniqueObject, SimpleItem): |
---|
| 12 | |
---|
| 13 | meta_type = 'DropDownMenu Tool' |
---|
| 14 | id = UNIQUE_ID |
---|
| 15 | title="DropDown Menu Tool" |
---|
| 16 | |
---|
| 17 | security = ClassSecurityInfo() |
---|
| 18 | |
---|
| 19 | security.declareProtected(VIEW_PERMISSION, 'regenerateMenu') |
---|
| 20 | def regenerateMenu(self): |
---|
| 21 | updateMenu(self) |
---|
| 22 | |
---|
| 23 | InitializeClass(DropDownMenuTool) |
---|
Note: See
TracBrowser
for help on using the repository browser.