r13830 - in MoreFieldsAndWidgets/ATBackRef/trunk: . docs src/Products/ATBackRef/skins/ATBackRef
"Daniel Widerin" <[email protected]> Fri, 14 Oct 2011 15:44:49 +0000
| Newsgroups | gmane.comp.web.zope.plone.archetypes.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: saily
Date: Fri Oct 14 15:44:49 2011
New Revision: 13830
Added:
MoreFieldsAndWidgets/ATBackRef/trunk/docs/HISTORY.txt
Modified:
MoreFieldsAndWidgets/ATBackRef/trunk/docs/README.txt
MoreFieldsAndWidgets/ATBackRef/trunk/setup.py
MoreFieldsAndWidgets/ATBackRef/trunk/src/Products/ATBackRef/skins/ATBackRef/backreferencebrowserwidget.pt
MoreFieldsAndWidgets/ATBackRef/trunk/src/Products/ATBackRef/skins/ATBackRef/backreferencewidget.pt
Log:
Updated skin templates to work in Plone 4.1 (removed of tabindex usage), removed old msgid calls. Add new history.txt file and updated setup.py to use it.
Added: MoreFieldsAndWidgets/ATBackRef/trunk/docs/HISTORY.txt
==============================================================================
--- (empty file)
+++ MoreFieldsAndWidgets/ATBackRef/trunk/docs/HISTORY.txt Fri Oct 14 15:44:49 2011
@@ -0,0 +1,16 @@
+Changelog
+=========
+
+2.2 - Unreleased
+----------------
+
+- Remove tabindex and old msgid calls from skin templates.
+ [saily]
+
+
+2.1 - 2010-10-12
+----------------
+
+- make it ready for Plone 3
+
+- remove old school Install, use GS profile instead, eggified.
Modified: MoreFieldsAndWidgets/ATBackRef/trunk/docs/README.txt
==============================================================================
--- MoreFieldsAndWidgets/ATBackRef/trunk/docs/README.txt (original)
+++ MoreFieldsAndWidgets/ATBackRef/trunk/docs/README.txt Fri Oct 14 15:44:49 2011
@@ -49,9 +49,9 @@
Products.ATBackRef
You have to install it via portal_setup because it includes skin elements (the
-widget templates). If your product depends on ``Products.ATBackRef`` and you
-want to install it as dependency automatically through Generic Setup, add
-following lines into your Generic Setup ``metadata.xml`` file
+widget templates). If your product depends on ``Products.ATBackRef`` and you
+want to install it as dependency automatically through Generic Setup, add
+following lines into your Generic Setup ``metadata.xml`` file
(profiles/default/metadata.xml for default)::
<?xml version="1.0"?>
@@ -85,6 +85,6 @@
Contributors
============
-Kai Diefenbach - make it ready for Plone 3
-
-Jens Klein - remove old school Install, use GS profile instead, eggified.
+- Kai Diefenbach - make it ready for Plone 3
+- Jens Klein - remove old school Install, use GS profile instead, eggified.
+- Daniel Widerin
Modified: MoreFieldsAndWidgets/ATBackRef/trunk/setup.py
==============================================================================
--- MoreFieldsAndWidgets/ATBackRef/trunk/setup.py (original)
+++ MoreFieldsAndWidgets/ATBackRef/trunk/setup.py Fri Oct 14 15:44:49 2011
@@ -1,10 +1,16 @@
from setuptools import setup, find_packages
import sys, os
+
+def read(*rnames):
+ return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+
version = '2.2'
-shortdesc ="Back Reference Field/Widget for Plone/Archetypes"
-longdesc = open(os.path.join(os.path.dirname(__file__), 'docs',
- 'README.txt')).read()
+shortdesc = "Back Reference Field/Widget for Plone/Archetypes"
+longdesc = "\n\n".join([
+ read('docs', 'README.txt'),
+ read('docs', 'HISTORY.txt'),
+])
setup(name='Products.ATBackRef',
version=version,
@@ -20,7 +26,7 @@
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
'Operating System :: OS Independent',
- 'Programming Language :: Python',
+ 'Programming Language :: Python',
], # Strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
keywords='',
author='Phil Auersperg, Jens Klein, et al',
@@ -28,7 +34,7 @@
url='https://svn.plone.org/svn/archetypes/MoreFieldsAndWidgets/ATBackRef',
license='GNU General Public License GPL 2.0',
packages=find_packages('src'),
- package_dir = {'': 'src'},
+ package_dir={'': 'src'},
namespace_packages=['Products'],
include_package_data=True,
zip_safe=False,
Modified: MoreFieldsAndWidgets/ATBackRef/trunk/src/Products/ATBackRef/skins/ATBackRef/backreferencebrowserwidget.pt
==============================================================================
--- MoreFieldsAndWidgets/ATBackRef/trunk/src/Products/ATBackRef/skins/ATBackRef/backreferencebrowserwidget.pt (original)
+++ MoreFieldsAndWidgets/ATBackRef/trunk/src/Products/ATBackRef/skins/ATBackRef/backreferencebrowserwidget.pt Fri Oct 14 15:44:49 2011
@@ -68,7 +68,7 @@
tal:content="python:obj.Title() or obj.absolute_url(relative=1)">
Target Title
</a>
-
+
<a href="#"
tal:condition="python:portal.portal_interface.objectImplements(ref,'Products.Archetypes.interfaces.referenceengine.IContentReference')"
tal:attributes="href python:ref.getContentObject().absolute_url();
@@ -76,7 +76,7 @@
tal:content="field/relationship">
reference object link
</a>
-
+
<tal:if condition="show_path"
i18n:translate="label_directory">
(Directory: <span i18n:name="directory" tal:replace="python: obj_path.replace(portal_path + '/', '') ">directory</span>)
@@ -156,9 +156,9 @@
<li tal:repeat="set targets">
<label tal:define="title python: set[0].title_or_id();
obj_path python: '/'.join(set[0].getPhysicalPath());">
- <input type="checkbox"
- tal:attributes="name string:${fieldName}:list;
- value python:set[1];"
+ <input type="checkbox"
+ tal:attributes="name string:${fieldName}:list;
+ value python:set[1];"
checked="checked" />
<tal:block replace="python: show_path and '%s (%s)' % (title, obj_path.replace(portal_path, '')) or title" />
</label>
Modified: MoreFieldsAndWidgets/ATBackRef/trunk/src/Products/ATBackRef/skins/ATBackRef/backreferencewidget.pt
==============================================================================
--- MoreFieldsAndWidgets/ATBackRef/trunk/src/Products/ATBackRef/skins/ATBackRef/backreferencewidget.pt (original)
+++ MoreFieldsAndWidgets/ATBackRef/trunk/src/Products/ATBackRef/skins/ATBackRef/backreferencewidget.pt Fri Oct 14 15:44:49 2011
@@ -76,23 +76,22 @@
<div tal:condition="python:vlen <= widget.checkbox_bound">
<!-- checkbox or radio for short vocabs -->
<tal:item repeat="item vocab">
- <tal:block tal:define="item_tabindex tabindex/next;
- item_id string:${fieldName}_${item_tabindex};
- no_ref python: value is None and item == ''">
+ <tal:block tal:define="item_id fieldName;
+ no_ref python: value is None and item == ''">
<input class="noborder"
- tabindex=""
type="radio"
tal:attributes="name fieldName;
checked python:test((item in uids) or no_ref, 'checked', nothing);
- tabindex item_tabindex;
value item;
id item_id;
type python:multiVal and 'checkbox' or 'radio'"
/>
<label tal:attributes="for item_id"
- tal:content="python:here.translate(vocab.getMsgId(item), default=vocab.getValue(item))" />
-
+ tal:content="python:vocab.getValue(item)"
+ i18n:translate="">
+ label
+ </label>
<br/>
</tal:block>
@@ -103,15 +102,15 @@
<!-- pulldown for longer vocabs -->
<select tal:attributes="name fieldName;
id fieldName;
- multiple python:multiVal and 'multiple' or None;
- tabindex tabindex/next;">
+ multiple python:multiVal and 'multiple' or None">
<tal:item tal:repeat="item vocab">
<option selected="selected"
tal:define="no_ref python: value is None and item == '';"
tal:attributes="value item;
selected python:test((item in uids) or no_ref, 'selected', '')"
- tal:content="python:here.translate(vocab.getMsgId(item), default=vocab.getValue(item))"></option>
+ tal:content="python:vocab.getValue(item)"
+ i18n:translate=""></option>
</tal:item>
</select>
</div>
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct