diff --git a/gen/descriptors.py b/gen/descriptors.py index adbf5ad..8d14036 100644 --- a/gen/descriptors.py +++ b/gen/descriptors.py @@ -529,17 +529,6 @@ class ToolClassDescriptor(ClassDescriptor): default=defValue,group=classDescr.klass.__name__) self.addField(fieldName, fieldType) - def addWorkflowFields(self, classDescr): - '''Adds, for a given p_classDescr, the workflow-related fields.''' - className = classDescr.name - groupName = classDescr.klass.__name__ - # Adds a field allowing to show/hide completely any workflow-related - # information for a given class. - fieldName = 'showWorkflowFor%s' % className - fieldType = gen.Boolean(default=True, page='userInterface', - group=groupName) - self.addField(fieldName, fieldType) - class UserClassDescriptor(ClassDescriptor): '''Appy-specific class for representing a user.''' def __init__(self, klass, generator): diff --git a/gen/generator.py b/gen/generator.py index f62b263..f1343ff 100644 --- a/gen/generator.py +++ b/gen/generator.py @@ -919,7 +919,6 @@ class ZopeGenerator(Generator): importMean = classDescr.getCreateMean('Import') if importMean: self.tool.addImportRelatedFields(classDescr) - self.tool.addWorkflowFields(self.user) self.tool.generateSchema() # Generate the Tool class @@ -935,8 +934,6 @@ class ZopeGenerator(Generator): generating the corresponding Archetype class.''' k = classDescr.klass print 'Generating %s.%s (gen-class)...' % (k.__module__, k.__name__) - if not classDescr.isAbstract(): - self.tool.addWorkflowFields(classDescr) # Determine base Zope class isFolder = classDescr.isFolder() baseClass = isFolder and 'Folder' or 'SimpleItem' diff --git a/gen/model.py b/gen/model.py index 4d24717..8c5f3fa 100644 --- a/gen/model.py +++ b/gen/model.py @@ -210,7 +210,7 @@ setattr(Page, Page.pages.back.attribute, Page.pages.back) # Prefixes of the fields generated on the Tool. toolFieldPrefixes = ('podTemplate', 'formats', 'resultColumns', 'enableAdvancedSearch', 'numberOfSearchColumns', - 'searchFields', 'showWorkflow') + 'searchFields') defaultToolFields = ('title', 'mailHost', 'mailEnabled', 'mailFrom', 'appyVersion', 'dateFormat', 'hourFormat', 'users', 'connectedUsers', 'groups', 'translations', diff --git a/gen/po.py b/gen/po.py index 74eccbf..e132854 100644 --- a/gen/po.py +++ b/gen/po.py @@ -35,7 +35,6 @@ class PoMessage: MSG_enableAdvancedSearch = "Enable advanced search" MSG_numberOfSearchColumns = "Number of search columns" MSG_searchFields = "Search fields" - MSG_showWorkflow = 'Show workflow-related information' POD_ASKACTION = 'Trigger related action' REF_NO = 'No object.' REF_ADD = 'Add a new one' diff --git a/gen/ui/appy.css b/gen/ui/appy.css index 31104e0..229dae0 100644 --- a/gen/ui/appy.css +++ b/gen/ui/appy.css @@ -116,7 +116,6 @@ img { border: 0; vertical-align: middle} .objectTitle { font-size: 11pt; border-bottom: 3px solid grey; font-weight: bold;} .by { padding-top: 5px; color: grey; font-size: 97% } -.workflow { text-align: center; border-top: 1px solid grey } .underTitle { background-color: #e9e9e9 } .objectNavigate { margin-top: 3px;} .underline { border-bottom: 1px dotted grey;} diff --git a/gen/ui/page.pt b/gen/ui/page.pt index 4e88163..68e800e 100644 --- a/gen/ui/page.pt +++ b/gen/ui/page.pt @@ -173,8 +173,7 @@ workflow-related info, object history, etc.
- Possible transitions - - - - -
@@ -257,15 +250,16 @@ - This macro shows the range of buttons (next, previous, save,...). + This macro shows the range of buttons (next, previous, save,...) and the workflow transitions. -
-
- + + Previous + - + - + Save + - + - + Cancel + - + - - - + Edit + + + - + Refresh + - + - + Next + - -
+ + Workflow transitions + + + + + This macro displays the global message on the page. diff --git a/gen/wrappers/ToolWrapper.py b/gen/wrappers/ToolWrapper.py index 91cfb26..8a7e6f9 100644 --- a/gen/wrappers/ToolWrapper.py +++ b/gen/wrappers/ToolWrapper.py @@ -109,10 +109,6 @@ class ToolWrapper(AbstractWrapper): "searchFields" Determines, among all indexed fields for p_klass, which one will really be used in the search screen. - - "showWorkflow" - Stores the boolean field indicating if we must show workflow- - related information for p_klass or not. ''' fullClassName = self.o.getPortalType(klass) res = '%sFor%s' % (attributeType, fullClassName)