I'm using version 2.3.3 on CentOS 5.2 i386.

I was very happy to find the smsemail patch discussed here:
http://forums.zenoss.com/viewtopic.php?t=8246&highlight=zenpatch
Thank you for providing it. However, when I tried applying it with zenpatch, I 
get some errors and I'm not sure how to interpret them:


> 
> can't find file to patch at input line 15
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
> --------------------------
> |Index: /branches/zope_upgrade-392/Products/ZenModel/ZDeviceLoader.py
> |=============================================
> |--- /branches/zope_upgrade-392/Products/ZenModel/ZDeviceLoader.py (revision 
> 2458)
> |+++ /branches/zope_upgrade-392/Products/ZenModel/ZDeviceLoader.py (revision 
> 2652)
> --------------------------
> File to patch: /opt/zenoss/zenoss/Products/ZenModel/ZDeviceLoader.py
> patching file /opt/zenoss/zenoss/Products/ZenModel/ZDeviceLoader.py
> Hunk #1 FAILED at 90.
> 1 out of 1 hunk FAILED -- saving rejects to file 
> /opt/zenoss/zenoss/Products/ZenModel/ZDeviceLoader.py.rej
> 
> 


The file ZDeviceLoader.py.rej contains the following:

> 
> ***************
> *** 90,94 ****
>               dlh = self.deviceLoggingHeader()
>               idx = dlh.rindex("</table>")
> -             response.write(dlh[:idx])
>               handler = setWebLoggingStream(response)
>           try:
> --- 90,94 ----
>               dlh = self.deviceLoggingHeader()
>               idx = dlh.rindex("</table>")
> +             response.write(str(dlh[:idx]))
>               handler = setWebLoggingStream(response)
>           try:
> 


Therefore, my question is whether or not I can edit the ZDeviceLoader.py and 
insert the errant lines, or maybe this isn't going to work with 2.3.3? I assume 
that "90,94" refers to the line number in the Python file that it couldn't 
patch. Is there more than one copy of ZDeviceLoader.py and I'm trying to patch 
the wrong one?

Thanks




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

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

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



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

Reply via email to