[Zope] Illegal character in content

Ed Colmar ed@greengraphics.net
Fri, 18 Apr 2003 23:12:10 -0700 (PDT)


I've been struggling with this error that I assumed was an illegal
character in xml-rpc, but I went through the process of removing all the
non-alphanumeric characters I could find...  No Luck.

I'm hoping someone else has seen this, and that I've just done something
dumb.

Any help would be greatly appreciated.

Here's the error + trace:

 Error Type: Error
Error Value: Syntax error at line 3397: illegal character in content

Traceback (innermost last):
  File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 150, in
publish_module
  File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 114, in
publish
  File /usr/local/www/Zope/lib/python/Zope/__init__.py, line 158, in
zpublisher_exception_hook
    (Object: connections)
  File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 98, in
publish
  File /usr/local/www/Zope/lib/python/ZPublisher/mapply.py, line 88, in
mapply
    (Object: manual_update)
  File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 39, in
call_object
    (Object: manual_update)
  File /usr/local/www/Zope/lib/python/OFS/DTMLMethod.py, line 127, in
__call__
    (Object: manual_update)
  File /usr/local/www/Zope/lib/python/DocumentTemplate/DT_String.py, line
473, in __call__
    (Object: manual_update)
  File /usr/local/www/Zope/lib/python/DocumentTemplate/DT_With.py, line
76, in render
    (Object: skins)
  File /usr/local/www/Zope/lib/python/DocumentTemplate/DT_With.py, line
76, in render
    (Object: _[skinname])
  File /usr/local/www/Zope/lib/python/DocumentTemplate/DT_Util.py, line
159, in eval
    (Object: update_performer_list(server))
    (Info: update_performer_list)
  File <string>, line 2, in f
  File
/usr/local/www/Zope/lib/python/Products/StarRaveClient/StarRaveClient.py,
line 140, in update_performer_list
    (Object: sf)
  File /usr/local/www/Zope/lib/python/xmlrpclib.py, line 547, in __call__
  File /usr/local/www/Zope/lib/python/xmlrpclib.py, line 630, in __request
  File /usr/local/www/Zope/lib/python/xmlrpclib.py, line 585, in request
  File /usr/local/www/Zope/lib/python/xmlrpclib.py, line 596, in
parse_response
  File /usr/local/lib/python2.1/xmllib.py, line 168, in feed
  File /usr/local/lib/python2.1/xmllib.py, line 264, in goahead
  File /usr/local/lib/python2.1/xmllib.py, line 794, in syntax_error
Error: (see above)



Then here is the "update performer list" call..  The indents are getting
wacked but is there anything obviously worng?


    def update_performer_list(self, server):
        """ get all performers from the server """
        print "[connecting to]"
        print server
        addcount = 0
        updatecount = 0
        starRaveMasterServer = Server(server)
#        try:
        serverPerformers = starRaveMasterServer.get_all_performers()
#        except:
#            print "could not connect"
#            serverPerformers = []
#        print serverPerformers
        self.SQL_remove_current_flags()
        if len(serverPerformers) > 0:
            for performer in serverPerformers:
#                print performer
                country = performer['country']
                state = performer['state']
                city = performer['city']
                performertitle = performer['performertitle']
                description = performer['description']
                performerurl = performer['performerurl']
                exists =
self.SQL_get_serverperformer_count(performerurl=performerurl)
                if exists[0]['count'] == 0:
                    addcount = addcount + 1
#                    print "[New, Adding]"

self.SQL_add_serverperformer(performerurl=performerurl, performertitle=p
erformertitle, city=city, state=state, country=country,
description=description)
                else:
#                    print "[Exists, Updating]"
                    updatecount = updatecount + 1

self.SQL_update_serverperformer(performerurl=performerurl, performertitl
e=performertitle, city=city, state=state, country=country,
description=description)
        self.SQL_delete_noncurrent_records()
        return addcount + updatecount




-- 
Green Graphics   :::   Print and Web Design   :::   510.923.0000