Changeset 1516 for CMESS/forum
- Timestamp:
- 23.05.2011 08:55:15 (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMESS/forum/branches/captcha/com/zms/forum/zmsforum.metaobj.xml
r1338 r1516 292 292 <h2><dtml-var "getTitlealt(REQUEST)"></h2> 293 293 <dtml-else> 294 <dtml-call "RESPONSE.setHeader('Cache-Control','no-cache')"> 295 <dtml-call "RESPONSE.setHeader('Pragma','no-cache')"> 294 296 <div id="ZMSForum"> 295 297 <dtml-var "ZMSForum_handleBoard()"> 298 <small>com.zms.forum <dtml-var "ZopeTime()"></small> 296 299 </div> 297 300 </dtml-if> … … 831 834 </dtml-comment> 832 835 833 <form method="post" enctype="multipart/form-data"> 836 <form action="<dtml-var "REQUEST.get('URL','')">" method="post" enctype="multipart/form-data"> 837 <input type="hidden" name="timestamp" value="<dtml-var "DateTime().timeTime()">"> 834 838 <input type="hidden" name="boardId" value="<dtml-var "'%s_%s'%(id, aq_parent.id)">"> 835 839 <input type="hidden" name="zfmParentId" value="%s"> … … 894 898 </dtml-comment> 895 899 896 <form method="post"> 897 <input type="hidden" name="boardId" value="<dtml-var "'%s_%s'%(id, aq_parent.id)">"> 898 <input type="hidden" name="zfmId" value="%s"> 899 <input type="hidden" name="newTabSheet" value="%s"> 900 <form action="<dtml-var "REQUEST.get('URL','')">" method="post"> 901 <input type="hidden" name="timestamp" value="<dtml-var "DateTime().timeTime()">" /> 902 <input type="hidden" name="boardId" value="<dtml-var "'%s_%s'%(id, aq_parent.id)">" /> 903 <input type="hidden" name="zfmId" value="%s" /> 904 <input type="hidden" name="newTabSheet" value="%s" /> 900 905 <fieldset> 901 906 <legend>%s</legend> 902 907 <div class="field"> 903 908 <label for="zfmEmail">%s</label><br /> 904 <input type="text" id="zfmEmail" name="zfmEmail" size="40" >909 <input type="text" id="zfmEmail" name="zfmEmail" size="40" /> 905 910 </div> 906 911 </fieldset> … … 933 938 </dtml-comment> 934 939 935 <form method="post"> 940 <form action="<dtml-var "REQUEST.get('URL','')">" method="post"> 941 <input type="hidden" name="timestamp" value="<dtml-var "DateTime().timeTime()">"> 936 942 <input type="hidden" name="boardId" value="<dtml-var "'%s_%s'%(id, aq_parent.id)">"> 937 943 <input type="hidden" name="zfmId" value="%s"> … … 979 985 </dtml-comment> 980 986 981 <form method="get"> 987 <form action="<dtml-var "REQUEST['URL']">" method="get"> 988 <input type="hidden" name="timestamp" value="<dtml-var "DateTime().timeTime()">"> 982 989 <input type="hidden" name="boardId" value="<dtml-var "'%s_%s'%(id, aq_parent.id)">"> 983 990 <input type="hidden" name="zfmId" value="%s"> … … 1015 1022 </dtml-comment> 1016 1023 1017 <form method="post"> 1024 <form action="<dtml-var "REQUEST.get('URL','')">" method="post"> 1025 <input type="hidden" name="timestamp" value="<dtml-var "DateTime().timeTime()">"> 1018 1026 <input type="hidden" name="boardId" value="<dtml-var "'%s_%s'%(id,aq_parent.id)">"> 1019 1027 <input type="hidden" name="zfmId" value="%s"> … … 1066 1074 </dtml-comment> 1067 1075 1068 <form method="post"> 1076 <form action="<dtml-var "REQUEST.get('URL','')">" method="post"> 1077 <input type="hidden" name="timestamp" value="<dtml-var "DateTime().timeTime()">"> 1069 1078 <input type="hidden" name="boardId" value="<dtml-var "'%s_%s'%(id, aq_parent.id)">"> 1070 1079 <input type="hidden" name="newTabSheet" value="%s"> … … 1160 1169 <item key="name"><![CDATA[Forum]]></item> 1161 1170 <item key="package"><![CDATA[com.zms.forum]]></item> 1162 <item key="revision"><![CDATA[1.1. 2]]></item>1171 <item key="revision"><![CDATA[1.1.3]]></item> 1163 1172 <item key="type"><![CDATA[ZMSObject]]></item> 1164 1173 </dictionary> … … 1728 1737 temp_err_list, temp_rendered = handleDisplayOverview() 1729 1738 1730 temp_result = renderTabs()1739 temp_result += renderTabs() 1731 1740 temp_result += renderErrors(temp_err_list) 1732 1741 temp_result += temp_rendered … … 2099 2108 ## 2100 2109 # --// BO ZMSForum_renderMessage //-- 2101 REQUEST = container.REQUEST2102 temp_lang = REQUEST.get('lang', context.getPrimaryLanguage())2103 temp_result = ''2104 temp_err = None2105 temp_enable_notification = context.getObjProperty('zfEnableNotification', REQUEST)2106 temp_enable_rating = context.getObjProperty('zfEnableRating', REQUEST)2107 temp_only_visible = context.getObjProperty('zfEnableModerated', REQUEST)2110 REQUEST = container.REQUEST 2111 temp_lang = REQUEST.get('lang', context.getPrimaryLanguage()) 2112 temp_result = '' 2113 temp_err = None 2114 temp_enable_notification= context.getObjProperty('zfEnableNotification', REQUEST) 2115 temp_enable_rating = context.getObjProperty('zfEnableRating', REQUEST) 2116 temp_only_visible = context.getObjProperty('zfEnableModerated', REQUEST) 2108 2117 2109 2118 if (REQUEST.form.has_key('zfmId')): … … 2123 2132 temp_result += '<img src="%s" /> '%context.getObjProperty('folder_main', REQUEST).getHref(REQUEST) 2124 2133 2125 temp_result += '<a href="%s">'%context.url_append_params(REQUEST.get('URL' ), {'newTabSheet' : 'displayMessage', 'boardId' : '%s_%s'%(context.getId(), context.aq_parent.getId()), 'zfmId' : one_message['zfmId']})2134 temp_result += '<a href="%s">'%context.url_append_params(REQUEST.get('URL',''), {'newTabSheet' : 'displayMessage', 'boardId' : '%s_%s'%(context.getId(), context.aq_parent.getId()), 'zfmId' : one_message['zfmId']}) 2126 2135 temp_result += (one_message['zfmParentId'] == '') and 'Topic: ' or '' 2127 2136 temp_result += one_message['zfmSubject'] … … 2188 2197 2189 2198 #render reply form 2190 ''' 2191 temp_result += (context.getObjProperty('replyForm'))%(temp_message['zfmId'], 'displayReply', 'Antwort', 2192 context.getLangStr('zfMsgReply', temp_lang), 2193 context.getLangStr('zfBtnReply', temp_lang)) 2194 ''' 2195 temp_result += (context.getObjProperty('replyForm'))%(temp_message['zfmId'], 'displayReply', 2196 context.getLangStr('zfBtnReply', temp_lang)) 2199 form = context.getObjProperty('replyForm') 2200 try: 2201 ''' 2202 temp_result += (context.getObjProperty('replyForm'))%(temp_message['zfmId'], 'displayReply', 'Antwort', 2203 context.getLangStr('zfMsgReply', temp_lang), 2204 context.getLangStr('zfBtnReply', temp_lang)) 2205 ''' 2206 temp_result += form%(temp_message['zfmId'], 'displayReply', 2207 context.getLangStr('zfBtnReply', temp_lang)) 2208 except: 2209 temp_result += '[ERROR:replayForm]'+form 2197 2210 2198 2211 #render notification form 2199 2212 if (temp_enable_notification): 2200 temp_result += (context.getObjProperty('notificationForm'))%(temp_message['zfmId'], 'insertNotification', 2201 context.getLangStr('zfSendNotification', temp_lang), 2202 context.getLangStr('zfMyEmail', temp_lang), 2203 context.getLangStr('zfBtnNotify', temp_lang)) 2213 form = context.getObjProperty('notificationForm') 2214 try: 2215 temp_result += form%(temp_message['zfmId'], 'insertNotification', context.getLangStr('zfSendNotification', temp_lang), context.getLangStr('zfMyEmail', temp_lang), context.getLangStr('zfBtnNotify', temp_lang)) 2216 except: 2217 temp_result += '[ERROR:inotificationForm]'+form 2204 2218 #render usefullness form 2205 2219 if (temp_enable_rating): 2206 temp_result += (context.getObjProperty('ratingForm'))%(temp_message['zfmId'], 'insertRating', 2207 'Bewertung', 2208 context.getLangStr('zfRateUsefulness', temp_lang), 2209 context.getLangStr('zfBeginning', temp_lang), 2210 context.getLangStr('zfExemplary', temp_lang), 2211 context.getLangStr('zfBtnRate', temp_lang)) 2220 form = context.getObjProperty('ratingForm') 2221 try: 2222 temp_result += form%(temp_message['zfmId'], 'insertRating', 2223 'Bewertung', 2224 context.getLangStr('zfRateUsefulness', temp_lang), 2225 context.getLangStr('zfBeginning', temp_lang), 2226 context.getLangStr('zfExemplary', temp_lang), 2227 context.getLangStr('zfBtnRate', temp_lang)) 2228 except: 2229 temp_result += '[ERROR:ratingForm]'+form 2212 2230 #render thread tree 2213 2231 temp_result += '<fieldset>\n' … … 2347 2365 for one_tab in tabs: 2348 2366 temp_result += '<li%s>'%((one_tab['action'] == selected_tab) and ' class="selected"' or '') 2349 temp_result += '<a href="%s">%s</a>'%(context.url_append_params(REQUEST.URL, {' newTabSheet' : one_tab['action'], 'boardId' : '%s_%s'%(context.getId(), context.aq_parent.getId())}), one_tab['title'])2367 temp_result += '<a href="%s">%s</a>'%(context.url_append_params(REQUEST.URL, {'timestamp':DateTime().timeTime(), 'newTabSheet' : one_tab['action'], 'boardId' : '%s_%s'%(context.getId(), context.aq_parent.getId())}), one_tab['title']) 2350 2368 temp_result += '</li>\n' 2351 2369 … … 2402 2420 2403 2421 temp_result = '' 2404 temp_result += '<a href="' + context.url_append_params(REQUEST.get('URL' ), {'newTabSheet':'displayMessage','boardId':'%s_%s'%(context.getId(), context.aq_parent.id),'zfmId':msg_obj['zfmId']}) + '">'2422 temp_result += '<a href="' + context.url_append_params(REQUEST.get('URL',''), {'newTabSheet':'displayMessage','boardId':'%s_%s'%(context.getId(), context.aq_parent.id),'zfmId':msg_obj['zfmId']}) + '">' 2405 2423 #temp_result += (topic) and '' or '<div class="threadTree%s">'%temp_class 2406 2424 temp_result += '<div class="threadTree%s">'%temp_class … … 2522 2540 <item key="name"><![CDATA[Library]]></item> 2523 2541 <item key="package"><![CDATA[com.zms.forum]]></item> 2524 <item key="revision"><![CDATA[1.1. 1]]></item>2542 <item key="revision"><![CDATA[1.1.3]]></item> 2525 2543 <item key="type"><![CDATA[ZMSLibrary]]></item> 2526 2544 </dictionary> … … 3163 3181 <item key="name"><![CDATA[com.zms.forum]]></item> 3164 3182 <item key="package"/> 3165 <item key="revision"><![CDATA[1.1. 2]]></item>3183 <item key="revision"><![CDATA[1.1.3]]></item> 3166 3184 <item key="type"><![CDATA[ZMSPackage]]></item> 3167 3185 </dictionary>
Note: See TracChangeset
for help on using the changeset viewer.
