Anonymous avatar Anonymous committed 6797bea

更新Feed

Comments (0)

Files changed (2)

     twitter_auto = db.BooleanProperty(default=False)
 
     version = '0.2.3'
+    path = "http://%s" % os.environ['HTTP_HOST']
     
     @classmethod
     def get_s(cls):
+<?xml version="1.0" encoding="utf-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom">
+    <title><![CDATA[{{settings.name}}-sa3album]]></title>
+	<subtitle><![CDATA[sa3album 运行在GAE上的相册程序]]></subtitle>
+	<id>{{settings.path}}/</id>
+    <link href="{{settings.path}}/" />
+    <link href="{{settings.path}}/feed/" rel="self" />
+    <updated>{{lastupdated|datetz:"Y-m-d\TH:i:s+08:00"}}</updated>
+	{% for img in imgs %}
+  <entry>
+      <link href="{{img.copyurl}}"/>
+      <id>{{img.copyurl}}</id>
+      <title><![CDATA[{{img.des|escape}}]]></title>
+      <content type="html"><![CDATA[
+       <a href="{{img.copyurl}}"><img src="{{img.copyurl}}?w=800" alt="{{img.des|escape}}" /></a>
+      ]]></content>
+	  <author>
+          <name>sa3album</name>
+          <uri>{{settings.path}}</uri>
+      </author>
+      <updated>{{img.created|datetz:"Y-m-d\TH:i:s+08:00"}}</updated>
+  </entry>
+{% endfor %}
+</feed>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.