[Zapp-cvs-commit] ZApp/skins/zapp_generic zapp_cmf_object_test.py,NONE,1.1.2.1 zapp_cmf_sub_contents
Brought to you by:
sspickle
Update of /cvsroot/zapp/ZApp/skins/zapp_generic
In directory sc8-pr-cvs1:/tmp/cvs-serv2885/skins/zapp_generic
Modified Files:
Tag: CMF_relations
zapp_cmf_object_edit.py zapp_cmf_object_edit_form.pt
Added Files:
Tag: CMF_relations
zapp_cmf_object_test.py zapp_cmf_sub_contents.zpt
Log Message:
fixed subclassing problem!
--- NEW FILE: zapp_cmf_object_test.py ---
## Script (Python) "zapp_cmf_object_test"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=
##title=
##
# Example code:
print context.related_object_types
return printed
--- NEW FILE: zapp_cmf_sub_contents.zpt ---
<span tal:replace="structure here/folder_contents"/>
Index: zapp_cmf_object_edit.py
===================================================================
RCS file: /cvsroot/zapp/ZApp/skins/zapp_generic/zapp_cmf_object_edit.py,v
retrieving revision 1.3.2.1
retrieving revision 1.3.2.2
diff -C2 -d -r1.3.2.1 -r1.3.2.2
*** zapp_cmf_object_edit.py 18 Oct 2003 21:07:05 -0000 1.3.2.1
--- zapp_cmf_object_edit.py 28 Oct 2003 18:33:19 -0000 1.3.2.2
***************
*** 8,14 ****
--- 8,20 ----
##title=
##
+
+ title=context.REQUEST.get('title',None)
+ if title is not None:
+ context.manage_changeProperties(title=title)
+
myApp = context.getApplication()
myType = context.portal_type
miscData = myApp.MiscData
+
cmfSpec = context.getMySpecialist()
tpropObjects = miscData.ZApp_getItems(Manager=cmfSpec.getId(), objectID='metaObject', dataType='ZCMFPropsFor' + myType)
***************
*** 54,56 ****
context.safeMiscData.setXMLAttrs(dict = dict)
! context.REQUEST.RESPONSE.redirect('zapp_cmf_object_edit_form')
--- 60,62 ----
context.safeMiscData.setXMLAttrs(dict = dict)
! context.REQUEST.RESPONSE.redirect('zapp_cmf_object_edit_form?portal_status_message=ZApp+CMF+Object+Changed.')
Index: zapp_cmf_object_edit_form.pt
===================================================================
RCS file: /cvsroot/zapp/ZApp/skins/zapp_generic/zapp_cmf_object_edit_form.pt,v
retrieving revision 1.3.2.1
retrieving revision 1.3.2.2
diff -C2 -d -r1.3.2.1 -r1.3.2.2
*** zapp_cmf_object_edit_form.pt 18 Oct 2003 21:07:05 -0000 1.3.2.1
--- zapp_cmf_object_edit_form.pt 28 Oct 2003 18:33:19 -0000 1.3.2.2
***************
*** 38,44 ****
<table tal:condition="myPropSet">
<form action="." tal:attributes="action string:${here/getId}/zapp_cmf_object_edit" method="post">
<tr tal:repeat="propDef myPropSet">
! <td tal:define="propName propDef/name;
! propType propDef/type;
subObject propDef/subObject | python:[];
subDefs subObject/zapp_properties | python:[];
--- 38,45 ----
<table tal:condition="myPropSet">
<form action="." tal:attributes="action string:${here/getId}/zapp_cmf_object_edit" method="post">
+ <tr><td>Title: <input name="title" size="20" value="" tal:attributes="value here/title"/></td></tr>
<tr tal:repeat="propDef myPropSet">
! <td tal:define="propName propDef/name;
! propType propDef/type;
subObject propDef/subObject | python:[];
subDefs subObject/zapp_properties | python:[];
|