|
Last change
on this file since 1552 was
1,
checked in by myroslav, 20 years ago
|
|
Building directory structure
|
|
File size:
715 bytes
|
| Line | |
|---|
| 1 | ## Script (Python) "qploneskindump_generate_script" |
|---|
| 2 | ##bind container=container |
|---|
| 3 | ##bind context=context |
|---|
| 4 | ##bind namespace= |
|---|
| 5 | ##bind script=script |
|---|
| 6 | ##bind state=state |
|---|
| 7 | ##bind subpath=traverse_subpath |
|---|
| 8 | ##parameters= |
|---|
| 9 | ##title= |
|---|
| 10 | ## |
|---|
| 11 | |
|---|
| 12 | #from Products.CMFCore.utils import getToolByName |
|---|
| 13 | from Products.qPloneSkinDump.generatingTemplate import generate |
|---|
| 14 | |
|---|
| 15 | REQUEST = context.REQUEST |
|---|
| 16 | |
|---|
| 17 | layer_name = REQUEST.get('Layer') |
|---|
| 18 | skin_name = REQUEST.get('Skin') |
|---|
| 19 | subfolder_name = REQUEST.get('Subfolder') |
|---|
| 20 | |
|---|
| 21 | generate(context, skin_name, layer_name, subfolder_name) |
|---|
| 22 | |
|---|
| 23 | portal_status_message='"main_template.pt" successfully created in "portal_skins/%s/%s" folder' % (layer_name, subfolder_name) |
|---|
| 24 | return state.set(portal_status_message=portal_status_message) |
|---|
Note: See
TracBrowser
for help on using the repository browser.