[kupu-dev] Kupu configuration problem

Andreas Goesele Goesele at hfph.mwn.de
Thu Oct 26 19:14:15 CEST 2006


Hi!

I have big problem with kupu (1.3.3) under plone 2.0.5 and 

I added span as an allowed tag but essentially only allowing the class
attribute. Then after rethinking I wanted to allow lang too (to
facilitate WCAG10 compliance).

But when I tried to remove span and then re-add it with one tag less
to remove I got an AttributeError ('tuple' object has no attribute
'replace'). (Full error reporting below.)

I then tried to add span to the tags to be completely removed. There
was no error message, but I then had on the left side of the
attributes which should always be removed instead of "any tag":
"s,p,a,n". I could remove this funny entry and re-add the attributes
to be removed always, but there is no way to re-add the span tag. (I
instead used the undo form, which worked.)

Similarly, whatever I put onto left side, to be removed completely
will turn up as a comma separated list of letters :-(

Any suggestions?

Many thanks in advance for any help!

Andreas Goesele

(Follows error reporting)

Request URL
    http://www.hfph.mwn.de/portal/kupu_library_tool/configure_kupu
Exception Type
    AttributeError
Exception Value
    'tuple' object has no attribute 'replace'

Traceback (innermost last):

    * Module ZPublisher.Publish, line 101, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 39, in call_object
    * Module Products.kupu.plone.plonelibrarytool, line 361, in configure_kupu

AttributeError: 'tuple' object has no attribute 'replace'

Display traceback as text
REQUEST
form
parastyles	['Heading|h2|Heading', 'Subheading|h3|Subheading', 'Formatted|pre', ' ']
class_blacklist	[]
linkbyuid	0
html_exclusions	[{'attributes': ['width', 'height'], 'keep': '1', 'recordmark': '1', 'tags': ['table', 'th', 'td']}, {'keep': '1', 'recordmark': '1', 'tags': ['center', 'tt', 'big', 'small', 'u', 's', 'strike', 'basefont', 'font']}, {'attributes': ['style', 'id', 'title', 'lang', 'dir', 'xml:lang'], 'recordmark': '1', 'tags': ['span']}, {'attributes': ['dir', 'valign', 'halign', 'border', 'frame', 'rules', 'cellspacing', 'cellpadding', 'bgcolor'], 'keep': '1', 'recordmark': '1', 'tags': 'span'}, {'attributes': 'style, id, title, dir, xml:lang'}]
table_classnames	['plain', 'listing', 'vertical listing', 'listing nosort|unsorted listing', ' ']
installBeforeUnload	1
configure_kupu	'Save'
style_whitelist	['text-align', 'list-style-type', 'float']
cookies
cookieTest	'1'
__ac_name	'changed'
_ZopeId	'10458136A2eiOYdU3ao'
lazy items
SESSION	<bound method SessionDataManager.getSessionData of <SessionDataManager instance at 47027230>>
other
parastyles	['Heading|h2|Heading', 'Subheading|h3|Subheading', 'Formatted|pre', ' ']
TraversalRequestNameStack	[]
AUTHENTICATED_USER	changed
URL	'http://www.hfph.mwn.de/portal/kupu_library_tool/configure_kupu'
VirtualRootPhysicalPath	('', 'www.hfph.mwn.de', 'changed', 'portal')
installBeforeUnload	1
class_blacklist	[]
VIRTUAL_URL	'http://www.hfph.mwn.de/portal/kupu_library_tool/configure_kupu'
SERVER_URL	'http://www.hfph.mwn.de'
linkbyuid	0
AUTHENTICATION_PATH	'www.hfph.mwn.de/changed/portal'
html_exclusions	[{'attributes': ['width', 'height'], 'keep': '1', 'recordmark': '1', 'tags': ['table', 'th', 'td']}, {'keep': '1', 'recordmark': '1', 'tags': ['center', 'tt', 'big', 'small', 'u', 's', 'strike', 'basefont', 'font']}, {'attributes': ['style', 'id', 'title', 'lang', 'dir', 'xml:lang'], 'recordmark': '1', 'tags': ['span']}, {'attributes': ['dir', 'valign', 'halign', 'border', 'frame', 'rules', 'cellspacing', 'cellpadding', 'bgcolor'], 'keep': '1', 'recordmark': '1', 'tags': 'span'}, {'attributes': 'style, id, title, dir, xml:lang'}]
table_classnames	['plain', 'listing', 'vertical listing', 'listing nosort|unsorted listing', ' ']
PATH_INFO	'/VirtualHostBase/http/www.hfph.mwn.de/www.hfph.mwn.de/changed/portal/VirtualHostRoot/_vh_portal//kupu_library_tool/configure_kupu'
PUBLISHED	<bound method PloneKupuLibraryTool.configure_kupu of <PloneKupuLibraryTool at /www.hfph.mwn.de/changed/portal/kupu_library_tool>>
style_whitelist	['text-align', 'list-style-type', 'float']
VIRTUAL_URL_PARTS	('http://www.hfph.mwn.de', 'portal', 'kupu_library_tool/configure_kupu')
URL0	http://www.hfph.mwn.de/portal/kupu_library_tool/configure_kupu
URL1	http://www.hfph.mwn.de/portal/kupu_library_tool
URL2	http://www.hfph.mwn.de/portal
URL3	http://www.hfph.mwn.de
BASE0	http://www.hfph.mwn.de
BASE1	http://www.hfph.mwn.de/portal
BASE2	http://www.hfph.mwn.de/portal/kupu_library_tool
BASE3	http://www.hfph.mwn.de/portal/kupu_library_tool/configure_kupu
environ
HTTP_REFERER	'http://www.hfph.mwn.de/portal/kupu_library_tool/kupu_config'
SERVER_SOFTWARE	'Apache/1.3.34 (Unix) mod_jk/1.2.15 mod_fastcgi/2.4.2 PHP/4.4.1 mod_ssl/2.8.25 OpenSSL/0.9.7i'
SCRIPT_NAME	'/portal'
SERVER_SIGNATURE	'<ADDRESS>Apache/1.3.34 Server at <A HREF="mailto:changed at mail.lrz-muenchen.de">www.hfph.mwn.de</A> Port 80</ADDRESS>\n'
REQUEST_METHOD	'POST'
PATH_INFO	'/VirtualHostBase/http/www.hfph.mwn.de/www.hfph.mwn.de/changed/portal/VirtualHostRoot/_vh_portal//kupu_library_tool'
SERVER_PROTOCOL	'HTTP/1.1'
QUERY_STRING	''
PATH	'/afs/lrz/sw/license/oracle817-tools/bin:/usr/afsws/bin:/bin:/usr/bin:/usr/local/bin'
LD_LIBRARY_PATH	'/afs/lrz/sw/license/oracle817-tools/lib:/opt/SUNWspro/lib:/usr/local/lib:/client/lib'
CONTENT_LENGTH	'2280'
HTTP_ACCEPT_CHARSET	'ISO-8859-1,utf-8;q=0.7,*;q=0.7'
HTTP_USER_AGENT	'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20060629 Firefox/1.0.4 (Debian package 1.0.4-2sarge9)'
HTTP_CONNECTION	'keep-alive'
HTTP_COOKIE	'cookieTest=1; __ac_name="changed"; _ZopeId="10458136A2eiOYdU3ao"; __ac="a2w4MTEwMTpoZnBoLXBsMG5l%0A"'
SERVER_NAME	'www.hfph.mwn.de'
REMOTE_PORT	'56178'
MYSQL_SERVER	'mysql.lrz-muenchen.de'
PATH_TRANSLATED	'/info/www/DATASYS/V-DocumentRoot/www.hfph.mwn.de/VirtualHostBase/http/www.hfph.mwn.de/www.hfph.mwn.de/changed/portal/VirtualHostRoot/_vh_portal//kupu_library_tool'
SERVER_PORT	'80'
SERVER_ADDR	'10.155.5.113'
DOCUMENT_ROOT	'/info/www/DATASYS/V-DocumentRoot/www.hfph.mwn.de'
LOCAL_TMP	'/nfs/tmp/.lrz'
SCRIPT_FILENAME	'/local/webserver/ZEO-BASIC'
SERVER_ADMIN	'changed at mail.lrz-muenchen.de'
SCRIPT_URI	'http://www.hfph.mwn.de/portal/kupu_library_tool'
REMOTE_ADDR	'192.168.212.219'
HTTP_HOST	'www.hfph.mwn.de'
SCRIPT_URL	'/portal/kupu_library_tool'
MYSQL_PORT	'3306'
TZ	'MET'
TWO_TASK	'oracle8.lrz-muenchen.de'
REQUEST_URI	'/portal/kupu_library_tool'
HTTP_ACCEPT	'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'
GATEWAY_INTERFACE	'CGI/1.1'
ORACLE_HOME	'/afs/lrz/sw/license/oracle817-tools'
HTTP_ACCEPT_LANGUAGE	'de,en-us;q=0.7,en;q=0.3'
POOL_TMP	'/nfs/tmp/.lrz'
CONTENT_TYPE	'application/x-www-form-urlencoded'
HTTP_ACCEPT_ENCODING	'gzip,deflate'
HTTP_KEEP_ALIVE	'300'
Zurück zur Fehlerliste


-- 
Andreas Gösele                   Omnis enim res, quae dando non deficit,
Inst. f. Gesellschaftspolitik    dum habetur et non datur,
Kaulbachstr. 31a, 80539 München  nondum habetur, quomodo habenda est.
E-mail: goesele at hfph.mwn.de      (Augustinus)


More information about the kupu-dev mailing list