Mailing list archives: January 2004

Site index · List index
Message listThread · Author · Date
an class="rem">- # Author area - pair("AuthorArea", viewAttribute=u"author", position=0.19, - childrenBlocks = [ - label("AuthorLabel", title=u"author"), - field("AuthorAttribute", title=u"author"), - ] - ), </span><span class="add">+ # Date area + detail.makeArea(parcel, "DateArea", + position=0.4, + childrenBlocks = [ + detail.makeLabel(parcel, _(u"date"), borderTop=2), + detail.makeSpacer(parcel, width=8), + detail.makeEditor(parcel, 'date', + viewAttribute=u'date', + border=RectType(0,2,2,2), + readOnly=True, + stretchFactor=0.0, + size=SizeType(90, -1)), + ], + ).install(parcel), </span><span class="cx"> </span><span class="rem">- # Date area - pair("DateArea", viewAttribute=u"date", position=0.4, - childrenBlocks = [ - label("DateLabel", title=u"date"), - DateDetail.update(parcel, "DateAttribute", - title=u"date", - characterStyle=blocks.LabelStyle, - stretchFactor=0.0, - textAlignmentEnum="Left", - ), - ], - ), </span><span class="add">+ detail.makeSpacer(parcel, height=7, position=0.8999).install(parcel), + + FeedItemDetail.update(parcel, "ItemBodyArea", + position=0.9, + blockName="articletext", + size=SizeType(100,50), + minimumSize=SizeType(100,50), + ), + ] </span><span class="cx"> </span><span class="rem">- # Category - pair("CategoryArea", viewAttribute=u"category", - position=0.2, - childrenBlocks = [ - label("CategoryLabel", title=u"category"), - field("CategoryAttribute", - title=u"category", stretchFactor=1.0 - ), - ] - ), - ], </span><span class="add">+ + # The DetailTrunkSubtree ties the blocks to our FeedItem's Kind. + detail.DetailTrunkSubtree.update(parcel, "ChannelSubtree", + + # This ensures that this detail view gets attached to feed items + key = feeds.FeedItem.getKind(parcel.itsView), + rootBlocks = feedItemRootBlocks, </span><span class="cx"> ) </pre> <p /> </span><span class="rem">-Each <code>rootBlocks</code> attribute refers to a widget or fragment of user interface which will be displayed in the Detail View. Chandler will ensure that these user interface fragments will display and edit the correct data in a consistent way. </span><span class="add">+The <code>rootBlocks</code> attribute of the <code>DetailTrunkSubtree</code> refers to a widget or fragment of user interface which will be displayed in the Detail View. Chandler will ensure that these user interface fragments will display and edit the correct data in a consistent way. For the details on the feedItemRootBLocks, you'll need to look at the <a href="http://chandler.osafoundation.org/docs/0.6/feeds-tutorial.html">feeds tutorial</a>. You cand find a list of all the available blocks <a href="cpia-blocks.html">here</a>. </span><span class="cx"> <p /> <h2><a name="Loading_the_Items_into_Chandler"> </a><a name="Loading_the_Items_into_Chandler_"> </a> Loading the Items into Chandler: Parcels </h2> <p /> </span><span class="lines">@@ -484,20 +369,20 @@ </span><span class="cx"> <p /> <strong>Behind the scenes:</strong> The Python code for Kinds and Items is merely a bootstrapping mechanism to get data loaded into the Repository. The Repost;. You cand find a list of all the available blocks <a href="cpia-blocks.html">here</a>. </span><span class="cx"> <p /> <h2><a name="Loading_the_Items_into_Chandler"> </a><a name="Loading_the_Items_into_Chandler_"> </a> Loading the Items into Chandler: Parcels </h2> <p /> </span><span class="lines">@@ -484,20 +369,20 @@ </span><span class="cx"> <p /> <strong>Behind the scenes:</strong> The Python code for Kinds and Items is merely a bootstrapping mechanism to get data loaded into the Repository. The Reposist argument for the callable - should be the main view, before *args and **kw. - @param callable: A Python callable - @param args: Arguments for callable - @param kw: Keyword arguments for callable - """ - if withView: - return callable(self.itsView, *args, **kw) - return callable(*args, **kw) - </span><span class="cx"> def onReplyEventUpdateUI(self, event): event.arguments['Enable'] = False def onReplyAllEventUpdateUI(self, event): </span> </pre> </div> </div> </body> </html> Thu, 11 Dec, 12:37
t;tutorial</a> on the workings of thep;quot;>get involved</a> with the Chandler project. <p /> </span> </pre> </div> </div> </body> </html> Tue, 20 Dec, 12:56
Message listThread · Author · Date
Box list
Jul 20081
Mar 20081
Jan 20085
Dec 200715
Nov 20078
Oct 200749
Sep 200725
Aug 2007137
Jul 2007246
Jun 200761
May 200710
Apr 200744
Mar 200716
Feb 20076
Jan 200721
Dec 20065
Nov 200613
Oct 200613
Sep 200623
Aug 200643
Jul 200621
Jun 200652
May 200652
Apr 200629
Mar 200639
Feb 200677
Jan 200620
Dec 200510
Sep 20058
Jun 20052
Apr 20051
Mar 20052
Feb 20054
Dec 20045
Nov 20042
Sep 20041
Aug 20045
Jun 20047
Apr 20041
Feb 20042
Jan 20042
Dec 20031
Nov 20039
Aug 20036
Jun 20033
Mar 20031
Feb 20031
Jan 20033
Dec 20021
Nov 20022
Oct 20024