[Zapp-cvs-commit] ZApp ZApp_MiscData.py,1.15,1.16 __init__.py,1.15,1.16
Brought to you by:
sspickle
|
From: <ssp...@us...> - 2003-08-06 05:36:51
|
Update of /cvsroot/zapp/ZApp
In directory sc8-pr-cvs1:/tmp/cvs-serv12705
Modified Files:
ZApp_MiscData.py __init__.py
Log Message:
moved monkeypatch to ZApp..
Index: ZApp_MiscData.py
===================================================================
RCS file: /cvsroot/zapp/ZApp/ZApp_MiscData.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** ZApp_MiscData.py 31 Jul 2003 04:55:21 -0000 1.15
--- ZApp_MiscData.py 6 Aug 2003 05:36:48 -0000 1.16
***************
*** 15,20 ****
from Products.PlugIns import defaultConstructors
- from DateTime import DateTime
-
import ZApp_Base
import string
--- 15,18 ----
***************
*** 70,85 ****
return self.xml
- def decodeXMLDate(self, value):
- """ decode the ISO XML date object"""
- value = value.value
- if len(value)>4 and value[4] != '-':
- value = '-'.join([value[:4],value[4:6],value[6:]])
- return DateTime(value)
-
def getXMLAttr(self, attr, default=None, escNL=0):
""" get an XML based attribute."""
value = self._v_xmlDict.get(attr, default)
- if isinstance(value, xmlrpclib.DateTime):
- value = self.decodeXMLDate(value)
return value
--- 68,74 ----
***************
*** 98,104 ****
d = self._v_xmlDict # getting _v_xmlDict insures the cache is setup
- if isinstance(value, DateTime):
- value = xmlrpclib.DateTime(value.timeTime())
-
d[attr] = value
--- 87,90 ----
Index: __init__.py
===================================================================
RCS file: /cvsroot/zapp/ZApp/__init__.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** __init__.py 30 Jun 2003 20:25:05 -0000 1.15
--- __init__.py 6 Aug 2003 05:36:48 -0000 1.16
***************
*** 34,37 ****
--- 34,39 ----
allow_module('Products.ZApp.ZApp_Utils')
+ import xmlrpc_mp
+
def initialize(context, debug=None):
|