*2008.07.24 11:14 python pylons administration
*2008.07.23 14:30 python pylons references book
pylons display message if exists - Google Search
Authentication and Authorization - Pylons Cookbook - PythonWeb
Simplesite tutorial Chapter (Pylons Book)
#405 ([Patch] Split up @validate) – Pylons – Trac
Toc Chapter (Pylons Book)
Javascript and ajax Chapter (Pylons Book)
Getting started Chapter (Pylons Book)
Urls routing and dispatch Chapter (Pylons Book)

 

*2008.07.17 11:52 python restructured_text

#http://docutils.sourceforge.net/docutils/examples.py def html_parts(input_string, source_path=None, destination_path=None,

System Message: ERROR/3 (<string>, line 3)

Unexpected indentation.
input_encoding='unicode', doctitle=1, initial_header_level=1):

System Message: WARNING/2 (<string>, line 4)

Block quote ends without a blank line; unexpected unindent.

""" Given an input string, returns a dictionary of HTML document parts.

Dictionary keys are the names of parts, and values are Unicode strings; encoding is up to the client.

Parameters:

  • input_string: A multi-line text string; required.
  • source_path: Path to the source file or object. Optional, but useful for diagnostic output (system messages).
  • destination_path: Path to the file or object which will receive the output; optional. Used for determining relative paths (stylesheets, source links, etc.).
  • input_encoding: The encoding of input_string. If it is an encoded 8-bit string, provide the correct encoding. If it is a Unicode string, use "unicode", the default.
  • doctitle: Disable the promotion of a lone top-level section title to document title (and subsequent section title to document subtitle promotion); enabled by default.
  • initial_header_level: The initial level for header elements (e.g. 1 for "<h1>").

System Message: WARNING/2 (<string>, line 26)

Bullet list ends without a blank line; unexpected unindent.

""" overrides = {'input_encoding': input_encoding,

System Message: ERROR/3 (<string>, line 28)

Unexpected indentation.
'doctitle_xform': doctitle, 'initial_header_level': initial_header_level}

System Message: WARNING/2 (<string>, line 30)

Block quote ends without a blank line; unexpected unindent.
parts = core.publish_parts(
source=input_string, source_path=source_path, destination_path=destination_path, writer_name='html', settings_overrides=overrides)

System Message: WARNING/2 (<string>, line 34)

Definition list ends without a blank line; unexpected unindent.

return parts

def html_body(input_string, source_path=None, destination_path=None,
input_encoding='unicode', output_encoding='unicode', doctitle=1, initial_header_level=1):

System Message: WARNING/2 (<string>, line 39)

Block quote ends without a blank line; unexpected unindent.

""" Given an input string, returns an HTML fragment as a string.

The return value is the contents of the <body> element.

Parameters (see html_parts() for the remainder):

  • output_encoding: The desired encoding of the output. If a Unicode string is desired, use the default value of "unicode" .

System Message: WARNING/2 (<string>, line 48)

Bullet list ends without a blank line; unexpected unindent.

""" parts = html_parts(

System Message: ERROR/3 (<string>, line 50)

Unexpected indentation.
input_string=input_string, source_path=source_path, destination_path=destination_path, input_encoding=input_encoding, doctitle=doctitle, initial_header_level=initial_header_level)

System Message: WARNING/2 (<string>, line 54)

Block quote ends without a blank line; unexpected unindent.

fragment = parts['html_body'] if output_encoding != 'unicode':

System Message: ERROR/3 (<string>, line 56)

Unexpected indentation.
fragment = fragment.encode(output_encoding)

System Message: WARNING/2 (<string>, line 57)

Block quote ends without a blank line; unexpected unindent.

return fragment

def text2html(content):

""" not sure if there is a way to do this with docutils, but just want to have html line breaks where there are new lines (n -> <br />n) """ #http://docutils.sourceforge.net/docs/user/rst/quickref.html new = '' for line in content.split('n'):

#s matches whitespace #S matches alphanumeric # #if it has characters, make it a 'line block' #http://docutils.sourceforge.net/docs/user/rst/quickref.html if re.search('S', line):

System Message: ERROR/3 (<string>, line 74)

Unexpected indentation.
new += "| " + line + 'n'

System Message: WARNING/2 (<string>, line 75)

Block quote ends without a blank line; unexpected unindent.

html = html_body(new) return literal(html)

 

*2008.07.17 08:25 python decorators

 

*2008.07.16 12:13 python pylons administration
paster server apache - Google Search
Paste Script — Paste Script v1.6.3 documentation
Deployment Chapter (Pylons Book)

 

*2008.07.16 12:12 python pylons database elixir
*2008.07.16 12:09 python pylons sqlalchemy sqlite
Instance is not persisted sqlalchemy - Google Search
SQLAlchemy 0.4 Documentation - module sqlalchemy.orm.session
sqlite show tables - Google Search
sqlite3: A command-line access program for SQLite databases

 

*2008.07.16 12:09 python pylons database sqlite
Instance is not persisted sqlalchemy - Google Search
SQLAlchemy 0.4 Documentation - module sqlalchemy.orm.session
sqlite show tables - Google Search
sqlite3: A command-line access program for SQLite databases

 

*2008.07.16 11:22 python pylons administration

paster serve --stop-daemon

 

*2008.07.16 09:51 python pylons administration
paster make-config "SimpleSite==0.3.0" production.ini
paster make-config "ffm" production.ini

 

*2008.07.16 09:49 python pylons administration

this picks up where installation leaves off

overlap is in starting server:

paster serve --reload development.ini

 

*2008.07.14 17:32 python pylons administration paster daemon server serve

figure out how to run server as a daemon pass --deamon to paster serve: paster serve --daemon --reload development.ini paster serve --daemon --reload production.ini

 

*2008.07.14 16:33 python testing debugging

import pdb; pdb.set_trace()

in pylons import nose; nose.tools.set_trace() or nosetests --nocapture --with-pylons=test.ini from comments in: http://wiki.pylonshq.com/display/pylonsdocs/Unit+Testing or python setup.py nosetests

 

*2008.07.14 14:10 python blog_and_cms pyblosxom
*2008.07.14 11:25 python restructured_text
restructuredtext add line breaks - Google Search
Python Package Index : Index of Packages Matching 'templates'
Python Package Index : rest2web 0.5.0 Final
README: Docutils
Docutils Front-End Tools
Docutils Front-End Tools
The Docutils Publisher
The Docutils Publisher
Docutils Front-End Tools
Writing HTML (CSS) Stylesheets for Docutils
Docutils FAQ (Frequently Asked Questions)
Docutils FAQ (Frequently Asked Questions)
Docutils FAQ (Frequently Asked Questions)
Quick reStructuredText
python regular expressions - Google Search
4.2 re -- Regular expression operations
Regular Expression HOWTO

 

*2008.07.14 08:02 python restructured_text

adding in helpers to memory/web/browser/lib/helper.py

 

*2008.07.13 09:46 python restructured_text
*2008.07.11 09:38 python blog_and_cms
python blog software - Google Search
PythonBlogSoftware - PythonInfo Wiki
Python blogging software
Baltimore Squirrels
Byteflow Blog Engine - Trac
WordPress › Blog Tool and Weblog Platform
blogmaker - Google Code
Pylogger - Python Blogging Software
Frog - Python web logging software
midtoad’s mess.ages » Python programmers don’t (all) blog with python
Python powered blogging software - Python Ireland | Google Groups
Firedrop2 the Python Blog Client
rest2web - The Site Builder
PyBlosxom - main site

 

*2008.07.10 20:05 python virtualenv
pylons virtualenv - Google Search
Python Package Index : virtualenv 1.1
Using a Virtualenv Sandbox - Pylons Cookbook - PythonWeb
pylons controller - Google Search
Welcome to Pylons’ documentation! — Pylons v0.9.7 documentation
Pylons
Bel-EPA :: Welcome

 

*2008.07.10 20:03 python pylons mako
Pylons Python Web Framework
Pylons Python Web Framework - Docs
Home - Pylons Official Docs - PythonWeb
Mako for people in a hurry - Pylons Cookbook - PythonWeb
Mako Templates for Python
welcome to Mako!
Mako Documentation - Syntax
Form Handling - Pylons Official Docs - PythonWeb
WebHelpers -- Module Reference
FormEncode -- Module Reference
Introducing HInclude

 

*2008.07.10 20:02 python blog_and_cms
turbogears CMS - Google Search
blog.brianbeck.com, RTA Schedule 2.0 - brian's blog
Pagoda CMS: Using Python to build a CMS that doesn't suck.
pagoda cms - Google Search
Pagoda: A first-class plugin-based content management system
/pagoda/trunk/Pagoda/pagoda/plugins - PagodaCMS - Trac
Brian Beck's Text Adventure
techspot.zzzeek.org
blog.reddit -- what's new on reddit: reddit goes open source

 

*2008.07.10 10:25 python pylons references
pylons sqlalchemy - Google Search
Home - Pylons Official Docs - PythonWeb
Home - Pylons Cookbook - PythonWeb
Making a Pylons Blog - Pylons Cookbook - PythonWeb
Accessing your model outside of Pylons - Pylons Cookbook - PythonWeb
Using SQLAlchemy with Pylons - Pylons Official Docs - PythonWeb
What's new in Pylons 0.9.7? - Pylons Cookbook - PythonWeb

 

*2008.07.10 10:22 python pylons database migrations
*2008.07.09 11:46 python blog_and_cms
*2008.07.07 18:32 python pylons REST controller
paster restcontroller - Google Search
ROTR » Blog Archive » Pylons controller template for REST
Representational State Transfer - Wikipedia, the free encyclopedia
How map.resource enables controllers as services - Pylons Cookbook - PythonWeb
pylons.commands – Command line functions — Pylons v0.9.7 documentation

 

*2008.07.07 14:12 python pylons sqlalchemy elixir
*2008.07.06 12:31 python pyroom
*2008.07.06 11:38 python restructured_text

restructured text is part of the docutils library

in that library, there are scripts to do conversions in examples:

#2008.07.06 11:43:02 ubuntu@ubuntu:~ sudo easy_install docutils

edit: /usr/bin/rst2html.py # EASY-INSTALL-SCRIPT: 'docutils==0.4','rst2html.py' __requires__ = 'docutils==0.4' import pkg_resources pkg_resources.run_script('docutils==0.4', 'rst2html.py')

/usr/lib/python2.5/site-packages/ cd /usr/lib/python2.5/site-packages/docutils-0.4-py2.5.egg/docutils/

from docutils.core import publish_cmdline, default_description

description = ('Generates HTML from standalone reStructuredText '
'sources (for testing purposes). ' + default_description)

publish_cmdline(writer_name='html', description=description)

vi core.py

 

*2008.07.05 11:10 python blog_and_cms turbogears cms blog
*2008.07.03 13:05 python blog_and_cms aggregators
python aggregator - Google Search
List of blogging terms - Wikipedia, the free encyclopedia
Aggregator - Wikipedia, the free encyclopedia
Simple Python Aggregator
SpycyRoll
Blogging in the wind: Planet Express 0.1
Planet Feed Reader
OPML Parser python - Google Search
[Python / OPML] Jaeger's OPML Parser « Ranting and Roaring
Onaswarm
Python Package Index : opml 0.5
OPML to HTML: Parsing a list of feeds | Field Guide to Programmers

Docutils System Messages

System Message: ERROR/3 (<string>, line 11); backlink

Unknown target name: "planet_express".

 

*2008.07.03 13:04 python pylons advanced tools references best_practices
*2008.07.03 13:02 python blog_and_cms pylons blog references
turbogears based blog - Google Search
Blog, CMS, and Wiki software - Pylons Projects - PythonWeb
Site Search - PythonWeb
Making a Pylons Blog - Pylons Cookbook - PythonWeb
Concepts of Pylons - Pylons Cookbook - PythonWeb
Blogging with Django/Turbogears? « dreamcatching
Frog - Python web logging software
About « dreamcatching