Skip to content
Browse files

remove kss inline editing from remaining widgets and the related view

  • Loading branch information...
1 parent 5f0dab9 commit 927310606bb4700101248c2c4296baef16d36db4 @cah190 cah190 committed May 21, 2012
View
8 Products/Archetypes/browser/configure.zcml
@@ -45,14 +45,6 @@
<browser:page
for="*"
- name="kss_field_decorator_view"
- permission="zope2.View"
- class=".fields.DefaultFieldDecoratorView"
- allowed_attributes="getKssClassesInlineEditable getKssClasses"
- />
-
- <browser:page
- for="*"
name="at_selection_widget"
class=".widgets.SelectionWidget"
permission="zope.Public"
View
16 Products/Archetypes/browser/fields.py
@@ -1,16 +0,0 @@
-from Products.Five.browser import BrowserView
-
-class DefaultFieldDecoratorView(BrowserView):
- '''Gives a possibility to kss to implement this view,
- meanwhile, allow it to be used from the templates if
- kss is not loaded.
- '''
-
- def getKssUIDClass(self):
- return ''
-
- def getKssClasses(self, fieldname, templateId=None, macro=None):
- return ''
-
- def getKssClassesInlineEditable(self, fieldname, templateId, macro=None):
- return ''
View
11 Products/Archetypes/skins/archetypes/widgets/boolean.pt
@@ -9,15 +9,10 @@
<!-- Boolean Widgets -->
- <metal:view_macro define-macro="view"
- tal:define="kssClassesView context/@@kss_field_decorator_view;
- getKssClasses nocall:kssClassesView/getKssClassesInlineEditable;">
+ <metal:view_macro define-macro="view">
<span metal:define-macro="boolean-field-view"
- tal:define="kss_class python:getKssClasses(fieldName,
- templateId='widgets/boolean', macro='boolean-field-view');
- uid context/UID|nothing;"
- tal:attributes="class kss_class;
- id string:parent-fieldname-$fieldName-$uid">
+ tal:define="uid context/UID|nothing;"
+ tal:attributes="id string:parent-fieldname-$fieldName-$uid">
<span metal:define-slot="inside"
tal:define="voc field/Vocabulary; key accessor;
value python:voc and voc.getValue(str(key)) or key"
View
11 Products/Archetypes/skins/archetypes/widgets/calendar.pt
@@ -10,21 +10,16 @@
<!-- Calendar Widgets -->
- <metal:view_macro define-macro="view"
- tal:define="kssClassesView context/@@kss_field_decorator_view;
- getKssClasses nocall:kssClassesView/getKssClassesInlineEditable;">
+ <metal:view_macro define-macro="view">
<div metal:define-macro="calendar-field-view"
- tal:define="kss_class python:getKssClasses(fieldName,
- templateId='widgets/calendar', macro='calendar-field-view');
- d accessor;
+ tal:define="d accessor;
d python:test(d and d=='None','',d);
format widget/format;
formatted python:format and d and d.strftime(format);
tlt nocall:context/toLocalizedTime|nothing;
result python:(format and formatted) or (d and tlt and tlt(d, long_format=1)) or None;
uid context/UID|nothing;"
- tal:attributes="class kss_class;
- id string:parent-fieldname-$fieldName-$uid">
+ tal:attributes="id string:parent-fieldname-$fieldName-$uid">
<span metal:define-slot="inside"
tal:replace="structure result">calendar</span>
</div>
View
5 Products/Archetypes/skins/archetypes/widgets/field.pt
@@ -74,12 +74,9 @@
<tal:condition
condition="python:visState == 'visible' and visCondition">
<div class="field"
- tal:define="kssClassesView context/@@kss_field_decorator_view;
- getKssClasses nocall:kssClassesView/getKssClasses;
- kss_class python:getKssClasses(fieldName);"
tal:condition="python:('edit' in widget.modes and 'w' in field.mode and field.checkPermission('w',here))
or (mode=='search' and field.checkPermission('r',here))"
- tal:attributes="class python: test(error_id, 'field error ' + 'Archetypes' + widget.getName(), 'field ' + 'Archetypes' + widget.getName()) + ' ' + kss_class;
+ tal:attributes="class python: test(error_id, 'field error ' + 'Archetypes' + widget.getName(), 'field ' + 'Archetypes' + widget.getName());
id python: 'archetypes-fieldname-' + fieldName">
<span metal:define-slot="widget_body_label_prefix"></span>
<tal:comment tal:condition="nothing">
View
11 Products/Archetypes/skins/archetypes/widgets/integer.pt
@@ -7,15 +7,10 @@
<body>
<!-- Integer Widgets -->
- <metal:view_macro define-macro="view"
- tal:define="kssClassesView context/@@kss_field_decorator_view;
- getKssClasses nocall:kssClassesView/getKssClassesInlineEditable;">
+ <metal:view_macro define-macro="view">
<div metal:define-macro="integer-field-view"
- tal:define="kss_class python:getKssClasses(fieldName,
- templateId='widgets/integer', macro='integer-field-view');
- uid context/UID|nothing;"
- tal:attributes="class kss_class;
- id string:parent-fieldname-$fieldName-$uid">
+ tal:define="uid context/UID|nothing;"
+ tal:attributes="id string:parent-fieldname-$fieldName-$uid">
<span metal:define-slot="inside"
tal:replace="accessor">string</span>
</div>
View
11 Products/Archetypes/skins/archetypes/widgets/keyword.pt
@@ -8,15 +8,10 @@
<!-- Keyword Widgets -->
- <metal:view_macro define-macro="view"
- tal:define="kssClassesView context/@@kss_field_decorator_view;
- getKssClasses nocall:kssClassesView/getKssClassesInlineEditable;">
+ <metal:view_macro define-macro="view">
<div metal:define-macro="keyword-field-view"
- tal:define="kss_class python:getKssClasses(fieldName,
- templateId='widgets/keyword', macro='keyword-field-view');
- uid context/UID|nothing"
- tal:attributes="class kss_class;
- id string:parent-fieldname-$fieldName-$uid">
+ tal:define="uid context/UID|nothing"
+ tal:attributes="id string:parent-fieldname-$fieldName-$uid">
<ul metal:define-slot="inside">
<li tal:repeat="item accessor"
tal:content="item"/>
View
11 Products/Archetypes/skins/archetypes/widgets/selection.pt
@@ -12,15 +12,10 @@
<!-- Selection Widgets -->
- <metal:view_macro define-macro="view"
- tal:define="kssClassesView context/@@kss_field_decorator_view;
- getKssClasses nocall:kssClassesView/getKssClassesInlineEditable;">
+ <metal:view_macro define-macro="view">
<span metal:define-macro="selection-field-view"
- tal:define="kss_class python:getKssClasses(fieldName,
- templateId='widgets/selection', macro='selection-field-view');
- uid context/UID|nothing;"
- tal:attributes="class kss_class;
- id string:parent-fieldname-$fieldName-$uid">
+ tal:define="uid context/UID|nothing;"
+ tal:attributes="id string:parent-fieldname-$fieldName-$uid">
<span metal:define-slot="inside"
tal:define="vocab python:field.Vocabulary(context);
value python:accessor();
View
11 Products/Archetypes/skins/archetypes/widgets/string.pt
@@ -7,15 +7,10 @@
<body>
<!-- String Widgets -->
- <metal:view_macro define-macro="view"
- tal:define="kssClassesView context/@@kss_field_decorator_view;
- getKssClasses nocall:kssClassesView/getKssClassesInlineEditable;">
+ <metal:view_macro define-macro="view">
<span metal:define-macro="string-field-view"
- tal:define="kss_class python:getKssClasses(fieldName,
- templateId='widgets/string', macro='string-field-view');
- uid context/UID|nothing"
- tal:attributes="class kss_class;
- id string:parent-fieldname-$fieldName-$uid">
+ tal:define="uid context/UID|nothing"
+ tal:attributes="id string:parent-fieldname-$fieldName-$uid">
<span metal:define-slot="inside"
tal:replace="accessor">string</span>
</span>
View
11 Products/Archetypes/skins/archetypes/widgets/textarea.pt
@@ -10,15 +10,10 @@
<!-- TextArea Widgets -->
- <metal:view_macro define-macro="view"
- tal:define="kssClassesView context/@@kss_field_decorator_view;
- getKssClasses nocall:kssClassesView/getKssClassesInlineEditable;">
+ <metal:view_macro define-macro="view">
<span metal:define-macro="textarea-field-view"
- tal:define="kss_class python:getKssClasses(fieldName,
- templateId='widgets/textarea', macro='textarea-field-view');
- uid context/UID|nothing;"
- tal:attributes="class kss_class;
- id string:parent-fieldname-$fieldName-$uid">
+ tal:define="uid context/UID|nothing;"
+ tal:attributes="id string:parent-fieldname-$fieldName-$uid">
<span metal:define-slot="inside"
tal:replace="accessor">textarea</span>
</span>

0 comments on commit 9273106

Please sign in to comment.
Something went wrong with that request. Please try again.