'?' + make_query(portal_status_message=message)
response.redirect(redirUrl)
else :
- return "..."
\ No newline at end of file
+ options={}
+ options['template'] = 'widgets'
+ options['macro'] = 'clipboard'
+ options['fragmentId'] = 'clipboard'
+ return context.use_macro(**options)
\ No newline at end of file
<span metal:use-macro="here/batch_macros/macros/navigation">batch navigation</span>
</div>
<script type="text/javascript">
+ <!--
(function(){
// ordering / selecting
var firsItemPosElement = document.getElementById('FirstItemPos');
}
}());
+ // -->
</script>
<script type="text/javascript" tal:condition="options/form/items_add_allowed">
(function(){
<div metal:define-macro="clipboard"
tal:condition="python:not request.SESSION.get('editBoxes')"
- tal:omit-tag=""
i18n:domain="plinn"
- tal:on-error="python:here.emptyClipboard(empty=True,ajax=True) and None">
+ tal:on-error="python:here.emptyClipboard(empty=True,ajax=True) and None"
+ id="clipboard">
<table tal:condition="clip" class="clipboard" cellspacing="0" tal:define="clip here/getCPInfoList">
<tr><th i18n:translate="">Clipboard</th></tr>
<tr><td>
return 0
def getCPInfo(self) :
- try: cp = _cb_decode(self.REQUEST['__cp'])
+ if self.REQUEST.RESPONSE.cookies.has_key('__cp') :
+ cp = self.REQUEST.RESPONSE.cookies['__cp']['value']
+ else :
+ cp = self.REQUEST.get('__cp')
+ try: cp = _cb_decode(cp)
except: return None
return cp