illume avatar illume committed 2d125f8

Adding a newsletterapp script. Updating buildout to work.

Comments (0)

Files changed (10)

 Features added
 ~~~~~~~~~~~~~~
 
+0.1.13pre (2011-08-31)
+
+* updated documentation
+
+Bugs fixed
+~~~~~~~~~~
+
+* got buildout working.
+
+
+
+
+Features added
+~~~~~~~~~~~~~~
+
 0.1.12pre (2011-07-25)
 
 * Adding cmd to send mail locally on unix using sendmail
 	$(PYTHON) setup.py build_sphinx -setuptools
 	rst2html.py newsletter/newsletterapp/docs/source/using_webapp.rst > newsletter/newsletterapp/static/web_admin_templates/help.html
 
+# this extension can be used to upload docs to pypi
+# http://pypi.python.org/pypi/Sphinx-PyPI-upload
 upload_docs:
 	$(PYTHON) setup.py upload_sphinx -setuptools
 
 recipe = zc.recipe.egg:script
 interpreter = python
 eggs = newsletter
+       pywebsite
+       cherrypy
+       feedparser

docs/build/html/.buildinfo

 # Sphinx build info version 1
 # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
-config: 5261305e7ea490d8907dd7db025cb1cf
-tags: fbb0d17656682115ca4d033fb2f83ba1
+config: 
+tags: 

docs/build/html/project.html

     <script type="text/javascript" src="_static/underscore.js"></script>
     <script type="text/javascript" src="_static/doctools.js"></script>
     <link rel="top" title="newsletter v0.1.11pre documentation" href="index.html" />
-    <link rel="prev" title="Welcome to newsletter’s documentation!" href="index.html" /> 
+    <link rel="prev" title="newsletterapp" href="newsletterapp.html" /> 
   </head>
   <body>
     <div class="related">
           <a href="genindex.html" title="General Index"
              accesskey="I">index</a></li>
         <li class="right" >
-          <a href="index.html" title="Welcome to newsletter’s documentation!"
+          <a href="newsletterapp.html" title="newsletterapp"
              accesskey="P">previous</a> |</li>
         <li><a href="index.html">newsletter v0.1.11pre documentation</a> &raquo;</li> 
       </ul>
 </ul>
 
   <h4>Previous topic</h4>
-  <p class="topless"><a href="index.html"
-                        title="previous chapter">Welcome to newsletter&#8217;s documentation!</a></p>
+  <p class="topless"><a href="newsletterapp.html"
+                        title="previous chapter">newsletterapp</a></p>
   <h3>This Page</h3>
   <ul class="this-page-menu">
     <li><a href="_sources/project.txt"
           <a href="genindex.html" title="General Index"
              >index</a></li>
         <li class="right" >
-          <a href="index.html" title="Welcome to newsletter’s documentation!"
+          <a href="newsletterapp.html" title="newsletterapp"
              >previous</a> |</li>
         <li><a href="index.html">newsletter v0.1.11pre documentation</a> &raquo;</li> 
       </ul>

docs/build/html/searchindex.js

-Search.setIndex({objects:{},terms:{"12pre":0,all:[0,2],code:[0,2],feedback:0,just:2,from:[0,2],move:0,remov:0,rest:0,trade:2,front:2,concurr:2,through:2,modul:1,file:[0,1,2],follow:0,"5pre":0,dynam:2,help:0,impact:2,"2pre":0,onli:[0,1,2],lgpl:1,launchpad:0,field:2,fix:[0,1],configur:[0,2],send:[0,2],either:2,add:[0,2],html:[0,2],dict:0,mail:[0,2],main:2,local:[0,2],app:[0,1,2],sent:2,sanit:0,applic:[0,1,2],them:2,sourc:[0,1],which:2,thei:2,mayb:1,python:[1,2],pypi:1,email_templ:2,next:2,automat:2,"new":[0,2],veri:1,now:0,enter:2,subscript:2,name:2,document:[0,1,2],like:[0,2],changelog:[0,1],edit:2,cmd:0,manual:[0,2],unix:0,server:[0,2],separ:2,send_part:2,basecod:0,mode:0,pygam:1,comma:2,where:2,page:[0,1,2],user:[0,2],sketch:0,set:0,list:2,some:[0,2],continu:0,sign:2,see:1,"static":2,"0pre":0,fail:0,themselv:2,fullnam:2,todo:[0,1],click:2,librari:2,out:[0,2],variabl:2,index:1,statu:2,lead:1,confirm:2,newslettersend:0,section:[0,2],per:2,content:1,"import":2,net:[],method:0,attribut:2,full:2,run:[1,2],sendmail:0,screen:2,contain:2,subject:2,bodi:2,base:[0,2],web:[0,1,2],repositori:0,otherwis:2,releas:0,org:1,becom:1,dudfield:1,stage:1,newsletter_send:2,great:2,postgresql:2,admin:[0,1,2],script:[0,2],ask:2,exampl:0,"9pre":0,throttl:2,doctest:0,done:2,pywebsit:0,earli:1,improv:0,chang:0,com:1,first:[0,2],"7pre":0,sqlitepickl:[0,2],extra:0,onc:2,bounc:2,each:2,tiny_mc:2,"8pre":0,email:[0,2],instruct:0,api:0,resili:0,instal:[1,2],web_front_templ:2,txt:0,open:2,your:2,select:2,"11pre":0,differ:2,newslett:[0,1,2],log:2,area:2,support:0,system:[0,2],been:2,newsletterapp:[0,1,2],websit:[1,2],almost:0,draft:0,compos:2,handl:2,interfac:[0,2],licenc:1,wait:2,"final":2,store:2,editor:2,"function":0,illum:1,option:2,peopl:2,hundr:2,basic:0,search:1,link:2,indic:1,rst:[],sphinx:0,line:[0,2],gmail:1,bug:[0,1],present:2,anoth:2,made:0,"default":0,setup:[0,2],access:2,until:2,project:[],directori:[1,2],limit:[1,2],can:[0,2],about:1,"3pre":0,more:[0,1],everyon:2,control:0,newinstal:2,sqlite:2,featur:[0,1,2],rene:1,cherrypi:0,creat:2,"1pre":0,process:2,well:2,modern:2,readm:0,customis:2,templat:[0,2],packag:1,tag:[0,2],implement:0,ini:[0,2],have:[0,2],tabl:1,need:2,work:0,attach:2,subscrib:[0,2],password:2,develop:1,welcom:1,want:2,author:1,check:[0,2],protect:2,make:[0,1],get:[0,2],detail:[1,2],same:0,port:0,write:2,also:1,other:2,unsubscrib:2,sick:2,test:[0,2],instead:[0,2],you:2,csv:2,config:0,imag:2,css:2,updat:0,tmp:2,product:0,"4pre":0,http:1,plenti:2,track:2,clone:1,"10pre":0,tool:0,plan:0,mani:[0,2],extern:2,end:2,web_admin_templ:2,demonstr:2,reduc:2,bitbucket:[0,1],attempt:2,bzr:0,save:2,read:0,doc:1,clear:0,descript:[1,2],object:0,doe:2,issu:1,test_newsletterapp:2,maintain:1,command:[0,2],thi:2,databas:2,far:[0,1],renesd:1,copi:1},objtypes:{},titles:["newsletter changelog","Welcome to newsletter&#8217;s documentation!","newsletterapp"],objnames:{},filenames:["project","index","newsletterapp"]})
+Search.setIndex({objects:{},terms:{"12pre":0,all:[0,2],code:[0,2],feedback:0,just:2,from:[0,2],move:0,remov:0,rest:0,trade:2,front:2,concurr:2,through:2,file:[0,1,2],follow:0,"5pre":0,dynam:2,help:0,impact:2,"2pre":0,onli:[0,1,2],lgpl:1,launchpad:0,field:2,fix:[0,1],configur:[0,2],port:0,send:[0,2],either:2,add:[0,2],email:[0,2],dict:0,mail:[0,2],main:2,local:[0,2],app:[0,1,2],sent:2,sanit:0,applic:[0,1,2],them:2,sourc:[0,1],which:2,thei:2,mayb:1,python:[1,2],pypi:1,email_templ:2,next:2,automat:2,"new":[0,2],veri:1,now:0,enter:2,subscript:2,name:2,search:1,document:[0,1,2],like:[0,2],changelog:[0,1],edit:2,cmd:0,manual:[0,2],unix:0,server:[0,2],separ:2,send_part:2,basecod:0,mode:0,pygam:1,comma:2,where:2,page:[0,1,2],user:[0,2],sketch:0,set:0,list:2,some:[0,2],continu:0,sign:2,see:1,"static":2,"0pre":0,fail:0,themselv:2,fullnam:2,todo:[0,1],click:2,librari:2,out:[0,2],variabl:2,index:1,statu:2,lead:1,confirm:2,newslettersend:0,section:[0,2],per:2,content:1,"import":2,net:[],method:0,attribut:2,full:2,run:[1,2],html:[0,2],sendmail:0,screen:2,contain:2,subject:2,bodi:2,base:[0,2],web:[0,1,2],repositori:0,releas:0,org:1,becom:1,dudfield:1,stage:1,newsletter_send:2,about:1,postgresql:2,admin:[0,1,2],script:[0,2],exampl:0,"9pre":0,throttl:2,doctest:0,done:2,pywebsit:0,earli:1,improv:0,web_admin_templ:2,com:1,first:[0,2],"7pre":0,sqlitepickl:[0,2],extra:0,onc:2,bounc:2,each:2,tiny_mc:2,"8pre":0,ask:2,instruct:0,api:0,resili:0,instal:[1,2],web_front_templ:2,txt:0,open:2,your:2,select:2,"11pre":0,differ:2,newslett:[0,1,2],log:2,area:2,support:0,system:[0,2],been:2,newsletterapp:[0,1,2],websit:[1,2],almost:0,draft:0,compos:2,handl:2,interfac:[0,2],licenc:1,wait:2,"final":2,store:2,editor:2,newinstal:2,illum:1,option:2,peopl:2,hundr:2,basic:0,great:2,link:2,indic:1,rst:[],sphinx:0,line:[0,2],gmail:1,bug:[0,1],present:2,anoth:2,made:0,"default":0,setup:[0,2],access:2,until:2,project:[],directori:[1,2],tag:[0,2],limit:[1,2],can:[0,2],otherwis:2,modul:1,more:[0,1],everyon:2,control:0,"function":0,sqlite:2,featur:[0,1,2],rene:1,cherrypi:0,creat:2,process:2,well:2,modern:2,readm:0,customis:2,templat:[0,2],packag:1,"1pre":0,implement:0,ini:[0,2],have:[0,2],tabl:1,need:2,work:0,attach:2,subscrib:[0,2],password:2,develop:1,welcom:1,want:2,author:1,protect:2,make:[0,1],get:[0,2],detail:[1,2],same:0,check:[0,2],write:2,also:1,other:2,unsubscrib:2,sick:2,test:[0,2],instead:[0,2],you:2,csv:2,config:0,imag:2,css:2,updat:0,tmp:2,product:0,"4pre":0,http:1,plenti:2,track:2,clone:1,"10pre":0,tool:0,plan:0,mani:[0,2],extern:2,end:2,"3pre":0,chang:0,demonstr:2,reduc:2,bitbucket:[0,1],attempt:2,bzr:0,save:2,read:0,doc:1,clear:0,descript:[1,2],object:0,doe:2,issu:1,test_newsletterapp:2,maintain:1,command:[0,2],thi:2,databas:2,far:[0,1],renesd:1,copi:1},objtypes:{},titles:["newsletter changelog","Welcome to newsletter&#8217;s documentation!","newsletterapp"],objnames:{},filenames:["project","index","newsletterapp"]})

newsletter/newsletterapp/newsletterapp.py

 
 
 
-if __name__ == "__main__":
-
+def main():
     from optparse import OptionParser
 
     parser = OptionParser()
 
         cherrypy.engine.start()
         cherrypy.engine.block()
+
+
+if __name__ == "__main__":
+    main()

newsletter/newsletterapp/static/web_admin_templates/help.html

 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.7: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.8.1: http://docutils.sourceforge.net/" />
 <title>Using newsletter web admin</title>
 <style type="text/css">
 
 /*
 :Author: David Goodger (goodger@python.org)
-:Id: $Id: html4css1.css 6253 2010-03-02 00:24:53Z milde $
+:Id: $Id: html4css1.css 7056 2011-06-17 10:50:48Z milde $
 :Copyright: This stylesheet has been placed in the public domain.
 
 Default cascading style sheet for the HTML output of Docutils.
 dl.docutils dd {
   margin-bottom: 0.5em }
 
+object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
+  overflow: hidden;
+}
+
 /* Uncomment (and remove this text!) to get bold-faced definition list terms
 dl.docutils dt {
   font-weight: bold }
 
 /* reset inner alignment in figures */
 div.align-right {
-  text-align: left }
+  text-align: inherit }
 
 /* div.align-center * { */
 /*   text-align: left } */
   margin-top: 0 ;
   font: inherit }
 
-pre.literal-block, pre.doctest-block {
+pre.literal-block, pre.doctest-block, pre.math {
   margin-left: 2em ;
   margin-right: 2em }
 

scripts/newsletterapp

+#!/usr/bin/env python
+import newsletter.newsletterapp.newsletterapp
+
+newsletter.newsletterapp.newsletterapp.main()
 
 METADATA = {
     'name':             'newsletter',
-    'version':          '0.1.12pre',
+    'version':          '0.1.13pre',
     'license':          'LGPL',
     'url':              'https://bitbucket.org/illume/newsletter',
     'author':           'Rene Dudfield',
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.