Hi,
Does anyone know how to setup SMTP mail for Roller?
I am running Roller using Tomcat and MySQL.

-----Original Message-----
From: Jeff Blattman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 23, 2006 11:51 AM
To: [email protected]
Subject: code review: add title and alt link to APP get

1. feed title was hardcoding english text. changed to use the website
name for the title

2. i had a requirement to be able to display the link to the weblog from

the APP client. fill in the Atom feed link field.

thanks.

Index: RollerAtomHandler.java
===================================================================
--- RollerAtomHandler.java      (revision 429826)
+++ RollerAtomHandler.java      (working copy)
@@ -274,7 +274,13 @@
                         max + 1);          // maxEntries
                 Feed feed = new Feed();
                 feed.setId(absUrl + "/app/" +website.getHandle() +
"/entries/" + start);
-                feed.setTitle("Entries for blog[" + handle + "]");
+                feed.setTitle(website.getName());
+                Link link = new Link();
+                link.setHref(absUrl + "/page/" + website.getHandle());
+                link.setRel("alternate");
+                link.setType("text/html");
+
feed.setAlternateLinks(Collections.singletonList(link));
+
                 List atomEntries = new ArrayList();
                 int count = 0;
                 for (Iterator iter = entries.iterator(); iter.hasNext()

&& count < mMaxEntries; count++) {
@@ -335,6 +341,13 @@
             if (canView(website)) {
                 Feed feed = new Feed();
                 feed.setId(absUrl + "/app/" +website.getHandle() +
"/entries/" + start);
+                feed.setTitle(website.getName());
+                Link link = new Link();
+                link.setHref(absUrl + "/page/" + website.getHandle());
+                link.setRel("alternate");
+                link.setType("text/html");
+
feed.setAlternateLinks(Collections.singletonList(link));
+
                 SortedSet sortedSet = new TreeSet(new Comparator() {
                     public int compare(Object o1, Object o2) {
                         File f1 = (File)o1;


IMPORTANT:
This message (including any attachments) contains privileged and confidential 
information and is intended to be conveyed only to the designated recipient(s). 
If you are not an intended recipient, please notify the sender immediately and 
then delete this message from your system. You must not use, disseminate, 
distribute, or reproduce this message or any part thereof in any form. Any 
statement or information contained in this message not of an official nature 
shall not be deemed to be given or endorsed by MediaCorp or its relevant 
subsidiaries unless otherwise indicated by an authorised representative 
independent of this message

DISCLAIMER:
Risks are inherent in all internet communication. While steps may have been 
taken to try to eliminate viruses and other harmful code or device from this 
message and its attachment(s) (if any), the sender is not responsible, and 
hereby disclaims all liabilities arising from or in relation to any viruses 
and/or other harmful code and/or device. Each recipient is responsible for 
protecting its system from viruses and/or other harmful code and/or device.

This message has been scanned by Symantec Mail Security - 
MediaCorptechnologies.com

Reply via email to