Tried to send a test page after upgrading and now get an error.  Note that 
sending test emails still works fine.

Zenoss Error

An error was encountered while publishing this resource. Please use the form 
below to submit details of this error to Zenoss, Inc. This information helps us 
identify and fix issues with the software, though we are unable to respond 
individually to all submissions.

The Zenoss community forums are very active and a good resource for solving 
problems and answering questions. Zenoss also provides commercial services and 
support packages.

Type: AttributeError
Value: 'list' object has no attribute 'strip'

Traceback (innermost last):

    * Module ZPublisher.Publish, line 114, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 40, in call_object
    * Module Products.ZenModel.UserSettings, line 359, in manage_pagerTestAdmin
    * Module Products.ZenModel.UserSettings, line 771, in manage_pagerTest

AttributeError: 'list' object has no attribute 'strip'



Here is the block where the error comes from in 
Products/ZenModel/UserSettings.py:


Code:

    def manage_pagerTest(self, REQUEST=None):
        ''' Send a test page 
        '''
        destSettings = self.getUserSettings(self.getId())
        destPagers = (destSettings.getPagerAddresses() or []).strip()
        msg = None
        if destPagers:
            fqdn = socket.getfqdn()
            srcId = self.getUser().getId()
            msg = ('Test sent by %s' % srcId +
                    ' from the Zenoss installation on %s.' % fqdn)
            result, errorMsg = Utils.sendPage(destPagers, msg,
                                    self.dmd.snppHost, self.dmd.snppPort)
            if result:
                msg = 'Test page sent to %s' % destPagers
            else:
                msg = 'Test failed: %s' % errorMsg
        else:
            msg = 'Test page not sent, user has no pager number.'
        if REQUEST:
            REQUEST['message'] = msg
            return self.callZenScreen(REQUEST)
        else:
            return msg




Any ideas on what is going on here?  This file seems the same as it was in 
2.006, and my pages went out fine in that version.  I verified that the SNPP 
server my host sends thru is working fine (wctp.arch.com, port 444).  

Any ideas about this error?

------------------------
Robert Kirkley




-------------------- m2f --------------------

Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=11597#11597

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to