Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 3 commits
  • 3 files changed
  • 0 comments
  • 1 contributor
7 README.rst
Source Rendered
@@ -14,13 +14,16 @@ See `Rewriting codeinthehole.com`_ for more details.
14 14
15 15 .. _`Rewriting codeinthehole.com`: http://codeinthehole.com/writing/rewriting-codeintheholecom/
16 16
  17 +It's on my to-do list to package this up (name ReStructured Blog) and put it on
  18 +PyPI.
  19 +
17 20 Usage
18 21 =====
19 22
20 23 How to publish an article
21 24 -------------------------
22 25
23   -Create an RST article file within the ``articles`` folder::
  26 +Create an RST article file within the ``posts`` folder::
24 27
25 28 vim posts/my-new-article.rst
26 29
@@ -46,5 +49,3 @@ If you have changes to the django project or the static assets, you'll need to
46 49 run::
47 50
48 51 fab prod deploy
49   -
50   -to deploy.
10 www/posts/0055-purl-a-python-url-class.rst
Source Rendered
@@ -63,6 +63,13 @@ URLs.
63 63 purl
64 64 ----
65 65
  66 +.. warning::
  67 +
  68 + Warning - the code examples below are from version 0.2 of purl - please
  69 + consult the `Github documentation`_ for the latest reference.
  70 +
  71 +.. _`Github documentation`: https://github.com/codeinthehole/purl
  72 +
66 73 So I wrote a utility class to scratch this itch. It's a simple immutable
67 74 ``URL`` class that uses jQuery-style overloading of the attribute methods to be
68 75 both accessors and mutators.
@@ -73,6 +80,7 @@ Install with:
73 80
74 81 pip install purl
75 82
  83 +
76 84 Construct URL instances as follows:
77 85
78 86 .. sourcecode:: python
@@ -103,7 +111,7 @@ There's a full range of inspection methods:
103 111 u.port() # None (only returns something if explicitly set)
104 112 u.path() # '/search'
105 113 u.query() # 'q=testing'
106   - u.fragment() # 'q=testing'
  114 + u.fragment() # ''
107 115
108 116 # Convenience methods for inspecing path, query and host
109 117 u.path_segment(0) # 'search'
2  www/posts/0058-encoded-slashes-in-nginx-django-apache.rst
Source Rendered
@@ -101,5 +101,5 @@ Further reading
101 101 * This `StackOverflow answer`_ describes a similar technique to solve this problem for Google App Engine.
102 102 * A `Google Groups discussion`_ of the issue.
103 103
104   -.. _`StackOverflow answer`: kkk
  104 +.. _`StackOverflow answer`: http://stackoverflow.com/questions/3040659/how-can-i-receive-percent-encoded-slashes-with-django-on-app-engine
105 105 .. _`Google Groups discussion`: https://groups.google.com/forum/?fromgroups#!topic/django-users/31oV1WhuAZ4

No commit comments for this range

Something went wrong with that request. Please try again.