[Zapp-cvs-commit] ZApp/skins/zapp_generic zapp_cmf_object_edit.py,1.1,1.2 zapp_cmf_object_view.pt,1.
Brought to you by:
sspickle
|
From: <ssp...@us...> - 2003-07-03 18:05:11
|
Update of /cvsroot/zapp/ZApp/skins/zapp_generic
In directory sc8-pr-cvs1:/tmp/cvs-serv18754/skins/zapp_generic
Modified Files:
zapp_cmf_object_edit.py zapp_cmf_object_view.pt
Log Message:
fixed some ZApp bugs..
Index: zapp_cmf_object_edit.py
===================================================================
RCS file: /cvsroot/zapp/ZApp/skins/zapp_generic/zapp_cmf_object_edit.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** zapp_cmf_object_edit.py 25 Jun 2003 11:45:53 -0000 1.1
--- zapp_cmf_object_edit.py 3 Jul 2003 18:05:07 -0000 1.2
***************
*** 5,15 ****
--- 5,19 ----
submitValue = context.REQUEST.get('submit','')
+
if submitValue == 'add row':
propName = context.REQUEST.get('propToChange','')
+
if propName:
currVal = context.REQUEST.get(propName, [])
currVal += [{}]
+
elif submitValue == 'delete row':
propName = context.REQUEST.get('propToChange','')
+
if propName:
currVal = context.REQUEST.get(propName, [])
***************
*** 18,20 ****
--- 22,25 ----
context.safeMiscData.setXMLAttrs(dict = dict)
+
context.REQUEST.RESPONSE.redirect('zapp_cmf_object_edit_form')
Index: zapp_cmf_object_view.pt
===================================================================
RCS file: /cvsroot/zapp/ZApp/skins/zapp_generic/zapp_cmf_object_view.pt,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** zapp_cmf_object_view.pt 25 Jun 2003 11:45:53 -0000 1.1
--- zapp_cmf_object_view.pt 3 Jul 2003 18:05:07 -0000 1.2
***************
*** 13,17 ****
myType here/portal_type;
miscDataSpecialist myApp/MiscData;
! typePropertiesObjects python:miscDataSpecialist.ZApp_getItems(Manager='CMFThings', objectID='metaObject', dataType='CMFPropertiesFor' + myType);
myTypePropertiesMiscData python:typePropertiesObjects and typePropertiesObjects[0].getXMLDict();
myProperties python:here.safeMiscData.getXMLDict()">
--- 13,17 ----
myType here/portal_type;
miscDataSpecialist myApp/MiscData;
! typePropertiesObjects python:miscDataSpecialist.ZApp_getItems(Manager='CMFThings', objectID='metaObject', dataType='ZCMFPropsFor' + myType);
myTypePropertiesMiscData python:typePropertiesObjects and typePropertiesObjects[0].getXMLDict();
myProperties python:here.safeMiscData.getXMLDict()">
|