misc/cwdesklets/rql_query.display
author Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
Mon, 16 Feb 2009 12:33:14 +0100
branchtls-sprint
changeset 624 258e5692ae06
parent 0 b97547f5f1fa
permissions -rw-r--r--
provide a new RichString attribute type The follwing declaration: class Card(EntityType): content = RichString(fulltextindexed=True, default_format='text/rest') is equivalent to : class Card(EntityType): content_format = String(meta=True, internationalizable=True, default='text/rest', constraints=[format_constraint]) content = String(fulltextindexed=True)

<?xml version="1.0" encoding="UTF-8"?>

<display window-flags="sticky, below" width="185" height="200">

	<sensor id="r" module="rqlsensor"/>
        <sensor id="FS" module="FontSelector,1,Sans 10  black"/>
	
	<!-- left border -->
	<group x="0" width="5" height="200" bg-uri="gfx/border-left.png"/>
	
	<image x="10" y="0" uri="gfx/logo_erudi.png"/>

        <array id="results" x="10" y="30"
               watch="layout=r:layout, length=r:length">
	  <label id="lbls1" color="black"
		 on-enter="r:enter-line"
		 on-leave="r:leave-line"  
		 on-click="r:click-line"
  		 watch="value=r:result, font=FS:font0, color=r:resultbg"/>
        </array>

</display>