[Zope] Returned mail: Service unavailable (fwd)
Kiran Jonnalagadda
jace@lunateks.com
Sat, 04 Mar 2000 19:22:39 +0530
Oleg Broytmann wrote:
>
> Kiran,
>
> I cannot reach you by mail (it's second time I tried).
> ----- Transcript of session follows -----
> 553 mail.qlcomm.com. config error: mail loops back to me (MX problem?)
> ... while talking to mail1.best.com.:
> >>> RCPT To:<jace@lunateks.com>
> <<< 571 <jace@lunateks.com>... Relaying denied
> 554 <jace@lunateks.com>... Service unavailable
I've just moved from qlcomm.com to the current location. Your DNS server
must still be using the cached entry. Should be fine in a little while.
You can mail me at jace@radiolink.net until then (the address I used to
subscribe to the list).
> > do is display one page at a time from an article object. I need this
>
> Why not just
>
> <dtml-var "objectlist[qs]">
>
> ???
Here is what I use:
<dtml-var standard_html_header>
<dtml-with aq_parent>
<dtml-in "objectItems(['DTML Method'])" previous size=1 start=page>
<a href="<dtml-var document_id><dtml-var sequence-query
>page=<dtml-var previous-sequence-start-number>">
(Previous <dtml-var previous-sequence-size> results)</a>
</dtml-in>
<dtml-in "objectItems(['DTML Method'])" size=1 start=page>
Document id: <dtml-var id>
</dtml-in>
<dtml-in "objectItems(['DTML Method'])" next size=1 start=page>
<a href="<dtml-var document_id><dtml-var sequence-query
>page=<dtml-var next-sequence-start-number>">
(Next results)
</a>
</dtml-in>
</dtml-with>
<dtml-var standard_html_footer>
-----------
This doesn't work. When page=1, it's fine. When page >=1, dtml-in loops
all the way from "page" to the end of the list. I don't know why it's
doing that. The "dtml-in next" loop also does the same thing.
To explain the setup: I have a ZClass called "Article" based on
ObjectManager and set to accept only DTML Methods and Images. The above
code is in a DTML Method called "index_html" placed in the ArticleClass
(not when being implemented). I had the same annoying problem when
working with the results from an SQL query instead of objectItems. My
workaround then was to leave out the "size" parameter and instead use
dtml-if to compare sequence-index with page. It's ugly but usable when
there are only 4 or 5 pages.
I filed this in as a bug about an hour ago. Hope it gets resolved
quickly.
--
Kiran Jonnalagadda
http://lunateks.com
baby.sh: while true; do echo "^G^G^G^G^G"; sed -e 's/food/poop/'; sync;
sync; sleep 15; done