[quills-dev] [Collective-checkins] r49799 - in quills.app/trunk/quills/app: browser skins/Quills
Tom Lazar tom at tomster.orgThu Sep 20 23:32:13 UTC 2007
- Previous message: [quills-dev] [Collective-checkins] r49799 - in quills.app/trunk/quills/app: browser skins/Quills
- Next message: [quills-dev] [Collective-checkins] r49799 - in quills.app/trunk/quills/app: browser skins/Quills
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
hi tim, using context/getWeblog raised an AttributeError during my debugging, which is why i came up with this nefarious scheme ;-) i'll revisit it tomorrow after some good night's sleep, though, i suspect that using getWeblog might actually work now in the test. tom On 20.09.2007, at 22:58, Tim Hicks wrote: > Hi Tom, > > Sorry, I realise that you are only following the interface here, but I > think that there should no longer be an IWeblogView.getWeblog > method. I > started refactoring things so that the actual content object > interfaces > themselves have getParentWeblog methods as this felt more natural. > > To cut a long story short, I think a more appropriate patch is to use > "context/getParentWeblog" - which should be available on all Quills- > ish > content-like objects as it is defined in IBaseContent > <http://dev.plone.org/collective/browser/quills.core/trunk/quills/ > core/interfaces/basecontent.py>. > > Obviously, if you accept that change, then it also makes sense to > remove > the IWeblogView.getWeblog and IWeblogView.getWeblogContent methods > from > the interface definition as well. > > Happy to discuss this if you want. > > > Tim > > > quills-dev at lists.etria.com wrote: >> Author: tomster >> Date: Thu Sep 20 20:10:47 2007 >> New Revision: 49799 >> >> Modified: >> quills.app/trunk/quills/app/browser/weblog_view.pt >> quills.app/trunk/quills/app/skins/Quills/quills_header_macros.pt >> Log: >> #100: fixed insertion of the feed links into the head for the >> weblog view >> >> Modified: quills.app/trunk/quills/app/browser/weblog_view.pt >> ===================================================================== >> ========= >> --- quills.app/trunk/quills/app/browser/weblog_view.pt (original) >> +++ quills.app/trunk/quills/app/browser/weblog_view.pt Thu Sep 20 >> 20:10:47 2007 >> @@ -4,9 +4,13 @@ >> metal:use-macro="here/main_template/macros/master" >> i18n:domain="quills"> >> >> - <metal:macro use-macro="context/quills_header_macros/macros/ >> feed-links" /> >> >> <body> >> + <metal:feed fill-slot="head_slot" >> + tal:define="weblog view/getWeblog;"> >> + <metal:block metal:use-macro="context/ >> quills_header_macros/macros/feed-links-base"></metal:block> >> + >> + </metal:feed> >> <div metal:fill-slot="main" >> tal:define="weblog view/getWeblog; >> weblog_content view/getWeblogContent"> >> >> Modified: quills.app/trunk/quills/app/skins/Quills/ >> quills_header_macros.pt >> ===================================================================== >> ========= >> --- quills.app/trunk/quills/app/skins/Quills/ >> quills_header_macros.pt (original) >> +++ quills.app/trunk/quills/app/skins/Quills/ >> quills_header_macros.pt Thu Sep 20 20:10:47 2007 >> @@ -9,6 +9,11 @@ >> >> <metal:block define-macro="feed-links"> >> <tal:block define="weblog view/getParentWeblog"> >> + <metal:block metal:use-macro="context/ >> quills_header_macros/macros/feed-links-base"></metal:block> >> + </tal:block> >> + </metal:block> >> + >> + <metal:block define-macro="feed-links-base"> >> <link >> rel="alternate" >> type="application/atom+xml" >> @@ -36,7 +41,6 @@ >> title="RDF 1.1 feed" >> i18n:attributes="title" >> tal:attributes="href string:${weblog/absolute_url}/ >> feed11.rdf" /> >> - </tal:block> >> </metal:block> >> >> </head> >> >> --------------------------------------------------------------------- >> ---- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Collective-checkins mailing list >> Collective-checkins at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/collective-checkins >> >> _______________________________________________ >> quills-dev mailing list >> quills-dev at lists.etria.com >> http://lists.etria.com/cgi-bin/mailman/listinfo/quills-dev > > Tom Lazar http://tomster.org
- Previous message: [quills-dev] [Collective-checkins] r49799 - in quills.app/trunk/quills/app: browser skins/Quills
- Next message: [quills-dev] [Collective-checkins] r49799 - in quills.app/trunk/quills/app: browser skins/Quills
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the quills-dev mailing list