#
#  COPYRIGHT:   (c) Awasu Pty. Ltd. 2002-15 (all rights reserved).
#               Unauthorized use of this code is prohibited.
# 
#  LICENSE:     This software is provided 'as-is', without any express 
#               or implied warranty.
# 
#               In no event will the author be held liable for any damages 
#               arising from the use of this software.
#   
#               Permission is granted to anyone to use this software 
#               for any non-commercial purpose and to alter it and
#               redistribute it freely, subject to the following restrictions: 
# 
#               - The origin of this software must not be misrepresented; 
#                 you must not claim that you wrote the original software. 
#                 If you use this software, an acknowledgment is requested
#                 but not required. 
# 
#               - Altered source versions must be plainly marked as such, 
#                 and must not be misrepresented as being the original software. 
#                 Altered source is encouraged to be submitted back to 
#                 the original author so it can be shared with the community. 
#                 Please share your changes. 
# 
#               - This notice may not be removed or altered from any 
#                 source distribution. 
#

# ---------------------------------------------------------------------

# This is a sample Awasu channel plugin written in Python. It has
# no parameters and simply generates a dummy RSS feed when called.

import sys

HOME_URL = "http://www.test.com"
NFEEDITEMS = 10 

# ---------------------------------------------------------------------

# generate the RSS feed 
print "<rss>" 
print "<channel>" 
print 
print "<title>Sample Python Channel</title>" 
print "<link>" + HOME_URL + "</link>"
print "<description>This is a dummy RSS feed generated by the sample Python channel plugin.</description>" 
print 
for i in range(1,NFEEDITEMS+1) :
    print "<item>" 
    print "    <title>Item " + str(i) + "</title>" 
    print "    <link>" + HOME_URL + "/item" + str(i) + ".html</link>" 
    print "    <description>This is a dummy description for item " + str(i) + "</description>" 
    print "</item>" 
    print 
print "</channel>" 
print "</rss>" 

